What problem does it solve?
Laravel applications are prone to common web vulnerabilities including authentication bypass, SQL injection, XSS, and insecure data handling if not properly hardened, leading to data breaches, compliance violations, and reputational damage.
Core Features & Use Cases
- Authentication & Access Control: Implements secure API auth via Sanctum/Passport, model-level authorization with policies, and rate limiting for sensitive endpoints like login and password reset.
- Input & Data Safety: Enforces strict input validation, mass assignment protection, encrypted storage for sensitive attributes, and SQL injection prevention via parameter binding.
- Production Hardening: Configures security headers, CORS policies, secure session cookies, secret management, and signed URLs for tamper-proof temporary links.
Use case: A SaaS Laravel application can use this skill to lock down user data endpoints, prevent unauthorized access to sensitive customer records, and meet GDPR compliance requirements.
Quick Start
Use the laravel-security skill to audit your Laravel application's authentication and input validation logic for unaddressed security gaps.