
Perl Security
This is the security checklist you run before shipping any Perl that touches user input, databases, or the shell. It walks through taint mode, input validation with allowlists instead of blocklists, three-argument open to prevent command injection, list-form system calls, and parameterized DBI queries. The examples are concrete: untainting usernames, preventing path traversal with realpath checks, avoiding ReDoS with possessive quantifiers, and validating sort columns against a hash of allowed fields. If you're writing CGI scripts, building a Mojolicious API, or just doing code review on anything that reads from STDIN or ENV, this gives you the patterns to catch injection bugs before they ship. Worth keeping open alongside perlsec.
- skills.sh installs
- 4.5K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill perl-security --agent claude-codeInstalls into .claude/skills of the current project.
Files
Perl Security Patterns
Comprehensive security guidelines for Perl applications covering input validation, injection prevention, and secure coding practices.
When to Activate
- Handling user input in Perl applications
- Building Perl web applications (CGI, Mojolicious, Dancer2, Catalyst)
- Reviewing Perl code for security vulnerabilities
- Performing file operations with user-supplied paths
- Executing system commands from Perl
- Writing DBI database queries
How It Works
Start with taint-aware input boundaries, then move outward: validate and untaint inputs, keep filesystem and process execution constrained, and use parameterized DBI queries everywhere. The examples below show the safe defaults this skill expects you to apply before shipping Perl code that touches user input, the shell, or the network.
Taint Mode
Perl's taint mode (-T) tracks data from external sources and prevents it from being used in unsafe operations without explicit validation.
Enabling Taint Mode
#!/usr/bin/perl -T
use v5.36;
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Category
- Security
- First seen
- Apr 16, 2026
More from affaan-m/everything-claude-code
All 256- Perl Testing4.5K
- Returns Reverse Logistics4.5K
- Team Builder4.5K
- X Api4.5K
- Design System4.4K
- Nuxt4 Patterns4.4K
- Browser Qa4.3K
- Jira Integration4.3K
- Rules Distill4.3K
- Click Path Audit4.2K
- Git Workflow4.2K
- Hexagonal Architecture4.2K
- Remotion Video Creation4.2K
- Santa Method4.2K
- Skill Comply4.2K
- Laravel Verification4.1K
- Nestjs Patterns4.1K
- Autonomous Agent Harness4K
- Benchmark4K
- Brand Voice4K
- Healthcare Phi Compliance4K
- Laravel Plugin Discovery4K
- Repo Scan4K
- Safety Guard4K