Skip to content
CAI
Software that uses CAICheck a score

zhuifengshaonianhanlu/pikachu

34.2

Weak · 17 November 2026

7.6k

lines of production code

PHP

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Pikachu is a vulnerable web application designed for web security training and penetration testing practice. It provides a PHP-based environment with Docker support that simulates various attack vectors, including XSS, SQL injection, CSRF, and brute-force attacks. The system includes dedicated modules for managing XSS testing scenarios and interactive labs for practicing authentication bypasses and request forgery exploits.

Features

Added brute-force and CSRF vulnerability labs

New interactive security training modules have been added to the vul directory, covering brute-force attack vectors (including form-based, client-side CAPTCHA bypass, server-side CAPTCHA bypass, and token-based protections) and Cross-Site Request Forgery (CSRF) scenarios (GET-based, POST-based, and token-protected forms). These files provide the frontend interfaces and backend logic for users to practice identifying and exploiting these specific authentication and request-forgery weaknesses.

vul · high confidence

Initial implementation of core application infrastructure and utilities

This change introduces the foundational \inc\ directory structure, establishing the application's core configuration, database connectivity, and utility functions. It adds \config.inc.php\ to define global settings such as the session start, timezone, character encoding, and MySQL connection parameters (host, user, password, database, port). The \mysql.inc.php\ file provides functions to establish database connections, execute queries, and escape data to prevent SQL injection. Additionally, \function.php\ implements essential helpers including CAPTCHA generation (\vcode\, \vcodex\), CSRF token management, page redirection, and multiple session/cookie-based login verification methods for different application modules. The \showvcode.php\ script handles CAPTCHA display and storage, while \uploadfunction.php\ introduces a suite of file upload handlers with varying levels of validation, from basic MIME checks to strict verification using file extensions, MIME types, \getimagesize\, and size limits.

inc · high confidence

Initial release of Pikachu web security training platform with Docker support

This change introduces the initial version of Pikachu, a vulnerable web application designed for web security training and penetration testing practice. The release includes the core PHP application files (index, install, header, footer) covering vulnerabilities such as brute force, XSS, CSRF, SQL injection, and SSRF. It also adds a Dockerfile based on Ubuntu 20.04 with PHP 7.4, which pre-configures the environment by enabling remote file inclusion and error display, installing the 'expect' PHP extension, and allowing phpMyAdmin to log in with an empty password to facilitate specific attack scenarios. An Apache 2.0 license and updated README documentation are also included.

(repo-wide) · high confidence

Initial release of the pkxss XSS management backend

This change introduces the complete pkxss module, a PHP-based management interface for XSS (Cross-Site Scripting) testing. It includes a login system (pkxss\_login.php), a database initialization script (pkxss\_install.php) that sets up MySQL tables for storing results, and a main dashboard (xssmanager.php) to access three specific testing modules: cookie collection (xcookie), phishing/credential harvesting (xfish), and keylogging (rkeypress). The module relies on new configuration (config.inc.php) and database connection helpers (mysql.inc.php) to store and display captured data such as cookies, HTTP authentication credentials, and keystrokes.

pkxss · high confidence

Behavioural changes

1 commit (0 fixes) modifying wiki

A change to existing behaviour in wiki — 1 commit, 2 files.

wiki · medium confidence · unverified

Added IE-specific and extended Ace Admin CSS styles

The assets directory now includes \ace-ie.min.css\ and \ace-part2.min.css\. The new IE stylesheet provides compatibility fixes for Internet Explorer, such as disabling gradients and adjusting layout properties. The second stylesheet adds comprehensive styling for profile pages, email inbox components, data tables, calendar views, and form controls (Chosen/Select2).

assets · high confidence

Test coverage

Added test files for PHP environment and code execution

Added two new test files: \phpinfo.txt\ to display PHP environment information and \yijuhua.txt\ to write a PHP web shell (\yijuhua.php\) that executes system commands via a GET parameter.

test · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 35.2 → 34.2 (-1.0)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 55.1 → 49.0 (-6.1)
  • Architecture 99.8 → 96.4 (-3.4)
  • Maturity 48.3 → 48.3 (0.0)
  • Readiness 11.3 → 11.3 (0.0)
  • Security 64.3 → 64.3 (0.0)

Resolved (4)

  • Duplicated block (11 lines × 5) (inc/function.php)
  • Members sharing a duplicated core (5 members, 50+ identical tokens) (inc/function.php)
  • No ADRs found
  • No tests found

New (4)

  • Edited copy of a member (17 corresponding lines) (inc/function.php)
  • Edited copy of a member (36 corresponding lines) (inc/uploadfunction.php)
  • No ADRs found (Dockerfile)
  • Off the main sequence: inc

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

zhuifengshaonianhanlu/pikachu was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 5e1e8d9d14a3ba61d62f28cf35531c4df4dd24fc — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.85+preprod-eba6548ac50f.