php-config-audit

Audit PHP configuration files and runtime settings for security misconfigurations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHP projects often suffer from insecure configurations and leaked runtime details that enable attackers. This Skill analyzes PHP project configurations and execution-time settings to identify misconfigurations and categorize their risk, enabling targeted remediation.

Core Features & Use Cases

  • Configuration discovery: locate and evaluate important PHP settings in php.ini and project configs (CORS, error display, security headers, and dangerous switches).
  • Risk scoring & remediation guidance: output a severity-ranged report with practical fixes and PoC steps.
  • Use Case: before deployment, run audits to ensure settings like display_errors are off and CSP headers are enforced, then apply fixes and verify with a renewed audit.

Quick Start

Run the php-config-audit tool on your PHP project to generate a configuration-security report.

Frequently Asked Questions about php-config-audit

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

FAQPage Schema
How do I audit PHP runtime configurations for security vulnerabilities?

Auditing PHP runtime configurations involves scanning php.ini and project config files to locate insecure settings like enabled display_errors, weak CORS policies, and missing security headers, then mapping their impacts for remediation.

What causes CORS misconfigurations and information disclosure in PHP applications?

CORS misconfigurations and information disclosure in PHP applications stem from improper php.ini settings and missing runtime header protections, which expose execution-time details and enable attackers to exploit weak access controls.

Can I detect insecure PHP headers and risky runtime switches across multiple environments?

Yes, you can detect insecure PHP headers and risky runtime switches across multiple environments by evaluating static configuration files alongside runtime hints like ini_set calls to map impacts and produce fixes.

What is the best way to check php.ini settings before deployment?

The best way to check php.ini settings before deployment is to run a configuration audit verifying display_errors is off and CSP headers are enforced, yielding a severity-ranked report to apply fixes and verify with a renewed audit.

Does this configuration audit work with PHP projects of any size?

Yes, this configuration audit applies to PHP projects of any size, locating and evaluating important settings in php.ini and project configs to detect dangerous switches, weak CORS rules, and insecure headers.

How do I fix PHP error exposure and enforce CSP headers after detecting them?

To fix PHP error exposure and enforce CSP headers, apply the targeted remediation guidance from the audit report, which provides practical fixes and PoC steps to correct insecure runtime switches and header misconfigurations.