php-crypto-audit

Detect weak hashes, insecure encryption, and hard-coded secrets in PHP code.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes PHP source code to identify insecure cryptographic implementations, hard-coded keys, and signing/verification flaws, helping teams reduce security risk and improve key management.

Core Features & Use Cases

  • Detect weak hashes (MD5/SHA1 without salt) and insecure encryption patterns (ECB, fixed IV)
  • Identify hard-coded secrets, misused algorithms, and broken signature verification (JWT/HMAC)
  • Provide remediation guidance and structured findings suitable for security reports

Quick Start

Run the php-crypto-audit tool on your PHP codebase to generate a risk-focused audit report.

Frequently Asked Questions about php-crypto-audit

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

FAQPage Schema
How do I scan PHP code for insecure encryption and hard-coded keys?

Scanning PHP code for insecure encryption and hard-coded keys involves analyzing source files to detect weak hashes like MD5, insecure ECB mode, fixed IVs, and embedded secrets, which produces structured findings and recommended fixes.

What are common JWT and HMAC signature verification flaws in PHP?

Common JWT and HMAC signature verification flaws in PHP include misused algorithms, broken verification logic, and hard-coded signing secrets, which an audit identifies by analyzing source implementations to produce structured findings and remediation guidance.

Can this crypto audit tool analyze large PHP frameworks and small scripts?

Yes, this crypto audit applies across PHP projects ranging from small scripts to large frameworks, analyzing source code to detect weak cryptographic implementations and hard-coded keys while producing structured findings and recommended fixes.

How do I find MD5 or SHA1 hashes without salt in my PHP source?

To find MD5 or SHA1 hashes without salt in PHP source, run a crypto audit that scans for weak hashing patterns, identifying insecure implementations and producing structured findings with recommended fixes.

What is the best way to detect ECB mode and fixed IVs in PHP encryption?

The best way to detect ECB mode and fixed IVs in PHP encryption is to audit the source code for insecure encryption patterns, identifying these cryptographic flaws and generating structured findings with remediation guidance.

Why does my PHP application fail a security audit for key management?

Your PHP application fails security audits for key management due to hard-coded secrets and insecure cryptographic implementations, which an audit identifies by analyzing source code to produce structured findings and recommended fixes to reduce risk.