php-security

Analyze PHP source code and configuration for security vulnerabilities and unsafe practices.

39|4|Updated May 6, 2026
One-click install
npx skills add https://github.com/pruiz/CodeCome --skill php-security-pruiz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-security
Source: https://github.com/pruiz/CodeCome/tree/main/.opencode/skills/php-security
Command: npx skills add https://github.com/pruiz/CodeCome --skill php-security-pruiz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify security flaws and dangerous practices in PHP codebases, preventing exploitation and data breaches.

Core Features & Use Cases

  • Vulnerability Detection: Scan PHP source code for risky functions, insecure configurations, and common attack vectors like SQL injection or remote code execution.
  • Configuration Analysis: Evaluate server and application settings such as error reporting, session management, and dependency vulnerabilities.
  • Use Case: A developer audits their legacy PHP application before deployment to ensure that no critical security misconfigurations or insecure code patterns are present.

Quick Start

Use the php-security skill to analyze your PHP project directory for security weaknesses and risky code patterns.

Frequently Asked Questions about php-security

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

FAQPage Schema
How do I scan PHP source code for SQL injection and remote code execution vulnerabilities?

Scanning PHP source code for SQL injection and remote code execution involves analyzing risky functions, insecure configurations, and unsafe deserialization patterns to identify common attack vectors and enforce security best practices.

What is the best way to audit a legacy PHP application for security misconfigurations before deployment?

Auditing a legacy PHP application for security misconfigurations requires evaluating server settings, error reporting, and session management to detect unsafe functions and insecure dependencies before deployment.

How does PHP deserialization analysis prevent security flaws and data breaches?

PHP deserialization analysis prevents security flaws by identifying unsafe deserialization patterns in source code, which are common attack vectors for remote code execution and data breaches.

Can I use automated code review to find insecure PHP dependencies and configurations?

Automated code review can evaluate PHP project directories to find insecure dependencies, dangerous functions, and misconfigured application settings by applying best security standards.

What security risks should I check for when reviewing PHP session management and error reporting?

When reviewing PHP session management and error reporting, you should check for insecure configurations and risky code patterns that expose vulnerabilities and lead to exploitation.

Are there limitations to static analysis for detecting insecure practices in PHP web applications?

Static analysis for detecting insecure practices in PHP web applications focuses on source code and configuration, identifying known attack classes like injection and remote code execution, but may not catch runtime exploitation.