php-sql-audit

Trace PHP SQL execution points from user input to assess injection risk.

386|38|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-sql-audit-0xshe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-sql-audit
Source: https://github.com/0xShe/PHP-Code-Audit-Skill/tree/main/php-sql-audit
Command: npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-sql-audit-0xshe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies SQL execution points in PHP source code and traces data flow to assess injection risk.

Core Features & Use Cases

  • Static and dynamic analysis of PHP sources to locate SQL execution points (PDO/mysqli/ORM).
  • Data-flow tracing from user input to SQL execution to determine exploitability.
  • Vulnerability reporting with severity rating, PoC guidance, and remediation recommendations based on evidence.

Quick Start

Run the PHP SQL audit on your project to generate a full vulnerability report and review the results.

Frequently Asked Questions about php-sql-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit PHP code for SQL injection vulnerabilities?

To audit PHP code for SQL injection, the Skill traces data flow from user-supplied inputs to SQL execution points. It identifies risks across PDO, mysqli, or ORM implementations and generates structured vulnerability reports with severity ratings and remediation guidance.

What is data-flow tracing for SQL injection detection?

Data-flow tracing for SQL injection detection maps how user-supplied input travels through PHP source code to reach SQL execution sinks. By tracking this path, static analysis determines if the input can manipulate the query and verifies actual exploitability.

How do I trace user input to SQL execution points in PHP?

You trace user input to SQL execution points in PHP by running static and dynamic analysis on the source code. This identifies where external data enters and follows its path to PDO, mysqli, or ORM queries to assess injection risk.

Does this SQL injection analysis support ORM frameworks?

Yes, this SQL injection analysis supports ORM frameworks alongside standard PDO and mysqli methods. It locates SQL execution points across these implementations to evaluate data-flow paths from user inputs to the final query sinks.

What is included in a PHP SQL injection vulnerability report?

A PHP SQL injection vulnerability report includes severity ratings, proof-of-concept guidance, and remediation recommendations based on evidence. It maps user inputs to SQL execution points and final sinks to determine exploitability and satisfy data-flow tracing.

When do I need tracer results for code auditing?

You need tracer results for code auditing when determining the exploitability of identified SQL execution points. Tracer results map the complete data-flow path from user input to the sink, providing the evidence required to assess injection risk and plan remediation.