php-sql-audit

Audit PHP projects for SQL injection vulnerabilities with JSON and Markdown reports.

80|6|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/yunmengya/PHP_AUDIT_SKILLS --skill php-sql-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-sql-audit
Source: https://github.com/yunmengya/PHP_AUDIT_SKILLS/tree/main/php-sql-audit
Command: npx skills add https://github.com/yunmengya/PHP_AUDIT_SKILLS --skill php-sql-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of auditing PHP code for SQL injection vulnerabilities, ensuring secure coding practices and providing detailed, actionable reports.

Core Features & Use Cases

  • SQL Injection Detection: Identifies potential SQL injection flaws using static analysis and evidence chaining.
  • Evidence-Based Reporting: Generates comprehensive reports including source-to-sink evidence, validation checks, and proof-of-concept templates.
  • Use Case: A security auditor can use this Skill to quickly scan a large PHP codebase for SQL injection vulnerabilities, receive a prioritized list of findings with clear remediation steps, and verify the effectiveness of existing sanitization functions.

Quick Start

Use the php-sql-audit skill to audit the provided PHP project for SQL injection vulnerabilities.

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, this Skill analyzes route mappings, traces data flow from source to sink, and validates sanitization mechanisms to output standardized findings with remediation advice.

How does static analysis detect SQL injection in PHP projects?

Static analysis detects SQL injection by tracing data flow to identify source-to-sink evidence chains and validating whether existing sanitization and escape mechanisms effectively prevent the vulnerability.

Can I generate proof-of-concept templates for SQL injection findings?

Yes, you can generate proof-of-concept templates. The audit outputs standardized findings in JSON and Markdown formats, which include evidence chains, validation checks, and proof-of-concept templates.

What is the best way to verify if PHP sanitization functions prevent SQL injection?

The best way to verify sanitization functions is by running an audit that validates escape mechanisms and traces source-to-sink data flow, providing a prioritized list of findings with remediation steps.

Does the SQL injection audit work for large PHP codebases?

Yes, the SQL injection audit works for large PHP codebases by automating static analysis to quickly scan routes, trace data flow, and identify vulnerabilities, ensuring secure coding practices at scale.