What problem does it solve?
Perl applications often fail security basics (tainted input, unsafe regexes, command/path injection, SQLi, and unencoded output), leading to exploitable vulnerabilities in web and backend code.
Core Features & Use Cases
- Taint-mode & input boundaries: teaches taint-aware execution patterns and safe untainting via strict allowlists and regex validation.
- Injection-resistant coding: covers safe process execution (list-form system/exec, IPC approaches), secure file operations (three-arg open, TOCTOU/path traversal protections), and DBI SQL parameterization (including dynamic column allowlists).
- Web security & output handling: provides patterns for XSS-safe encoding by context (HTML/URL/JSON), CSRF token generation guidance, and defensive HTTP/session/header configuration.
- Security tooling enforcement: supplies security-focused perlcritic policy configurations to catch insecure Perl patterns during review and CI.
Quick Start
Use the perl-security skill to produce a security review plan for your Perl web endpoints that validates and untaints user input, parameterizes every DBI query, and ensures all output is context-encoded.