CASE STUDY · OPEN-SOURCE SECURITY TOOLING

PHPScan: A Taint-Tracking Security Scanner for PHP

A case study of PHPScan, an open-source PHP security scanner with taint tracking, more than 60 rules, and CI-ready reports.

Client
PHPScan
Engagement
Security engineering
Timeline
v2.0.0, 2026

RESULT

More than 60 security rules, taint tracking from request sources to sensitive sinks, six report formats, baselines, and incremental caching.

Context

PHPScan is a static application security scanner for PHP codebases. It is open source and version 2.0.0 is the current release.

The scanner is built for developers and CI pipelines. It runs from the command line, can scan a full repository or only changed files, and writes reports in formats that a code review or build system can consume.

The problem

Pattern-based scanners produce noisy findings. A request parameter that is cast to an integer or passed through htmlspecialchars should not be reported the same way as a value that reaches a shell command untouched. The scanner needs to follow data, not only match strings.

The second problem is workflow. A security report is only useful if it reaches the place where the work happens. That means CI output, stable fingerprints, baselines, and a format that code scanning tools can read.

The approach

PHPScan version 2 adds a taint-tracking engine. Values from $_GET, $_POST, php://input, and headers are tracked through assignments and calls until they reach a sensitive sink. If a sanitizer clears the value, the finding is dropped.

The rule set covers more than 60 checks, including RCE, deserialization, LFI, SQLi, XSS, XXE, SSRF, LDAP, uploads, sessions, crypto, CSRF, type juggling, and configuration smells. Each rule carries a CWE identifier and remediation text.

The scanner also includes:

The result

Evidence

What this proves

PHPScan shows the ability to build a security tool with a real analysis model, a rule system, CI output, and a maintainable release. It is a build case study, not a client outcome.

What this does not prove

The public repository has no adoption metrics. It does not show how many codebases were scanned, how many findings were fixed, or how much time was saved. Those numbers are not invented here.

Limits

PHPScan is a static analysis tool. It does not replace manual review, runtime testing, or a full penetration test. The case study is evidence of engineering depth, not a security guarantee.

Public project data. No client quote is published.

NEXT STEP

Tell me what you are trying to build, secure, or run.

Work is contracted through Builder Hall Ltd. After a fit call, you receive a written scope and a quote.