Skip to content
affaan-m avatar

Perl Security

Comprehensive Perl security guidance for taint mode, input validation, process execution, DBI queries, and web threats.

CCM score
75 of 100
skills.sh installs
12.2K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers taint mode with -T, untainting via specific regexes, input allowlists, and ReDoS-safe pattern design
  • Includes safe file handling (three-argument open, realpath traversal checks, sysopen with O_EXCL) and list-form process execution
  • Enforces parameterized DBI placeholders and column allowlists for dynamic SQL, flagging string-interpolated queries as vulnerabilities
  • Designed for reviewing Perl input handling, shell calls, DBI queries, and web-facing code such as CGI and Mojolicious apps

Install

$ npx -y skills add affaan-m/ecc --skill perl-security -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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;

Details

Repository
github.com/affaan-m/ecc
Category
Security
First seen
Jul 14, 2026

Questions

What does the perl-security skill cover for Perl code?

It covers Perl taint mode, input validation, safe process execution, DBI parameterized queries, web security such as XSS, SQL injection and CSRF, and perlcritic security policies. It is meant for reviewing Perl input handling, process execution, DBI queries and web-facing code.

How do I install the perl-security skill?

Run npx -y skills add affaan-m/ecc --skill perl-security -y in your project. Once installed, the agent can apply Perl security patterns such as untainting inputs and using list-form system calls.

Where does perl-security rank in the Security category?

On the Security category page it ranks in the top 50. Other skills listed alongside it include azure-compliance, entra-agent-id, firebase-security-rules-auditor, security-audit and cloudflare-one.

More from affaan-m/ecc

All 257

Similar to Perl Security

More Security