security-audit

Audit PHP/Laravel apps for OWASP Top 10 security issues and generate remediation tasks.

Updated Jul 13, 2023
One-click install
npx skills add https://github.com/changgenglu/changgenglu-blog --skill security-audit-changgenglu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-audit
Source: https://github.com/changgenglu/changgenglu-blog/tree/main/prompt_engineering/agents/skills/security-audit
Command: npx skills add https://github.com/changgenglu/changgenglu-blog --skill security-audit-changgenglu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHP/Laravel applications often suffer from security vulnerabilities due to inconsistent coding patterns, insecure dependencies, and misconfigured permissions. This skill provides a structured security audit guide focusing on OWASP Top 10 and common vulnerability patterns to help teams identify and remediate weaknesses efficiently.

Core Features & Use Cases

  • OWASP-aligned checks for SQL injection, XSS, sensitive data exposure, authentication/authorization flaws, and misconfigurations.
  • Laravel-specific guidance on safe Eloquent usage, encryption, env management, and secure routing/authorization patterns.
  • Use Case: During development or deployment, perform a guided security review and generate actionable remediation tasks for the codebase and configurations.

Quick Start

Run a comprehensive security assessment of a Laravel project and return a prioritized list of fixes and verification steps.

Frequently Asked Questions about security-audit

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

FAQPage Schema
How do I audit a Laravel application for OWASP Top 10 vulnerabilities?

To audit a Laravel application for OWASP Top 10 vulnerabilities, perform structured checks on Eloquent queries, output encoding, and authorization. This process identifies SQL injection, XSS, and access-control flaws, generating a prioritized list of actionable remediation tasks.

What is the best way to check for SQL injection in PHP Laravel code?

The best way to check for SQL injection in Laravel code is to verify proper parameterized queries and safe Eloquent usage. Reviewing typical Laravel patterns against secure coding standards helps identify and remediate unsafe database query construction.

How do I find hardcoded secrets and misconfigured permissions in my PHP codebase?

Finding hardcoded secrets and misconfigured permissions in a PHP codebase requires environment-based secrets management checks and authorization reviews. Auditing .env configurations and routing patterns exposes sensitive data exposure and access-control flaws for remediation.

Can I integrate a security audit into my Laravel development and deployment workflow?

Yes, you can integrate a security audit into Laravel development and deployment workflows. Running a guided security review during these phases identifies insecure dependencies and weaknesses, returning verification steps and fixes suitable for continuous integration.

Does this security audit cover third-party packages used in Laravel apps?

Yes, the security audit covers third-party packages used in Laravel apps. It evaluates typical Laravel patterns and package dependencies to locate inconsistent coding patterns and misconfigurations, ensuring robust authorization checks and secure implementations across the stack.