affaan-m avatar

Perl Security

If you're shipping Perl code that touches user input, databases, or system calls, this walks you through the defensive patterns that matter: taint mode with proper untainting, three-argument open to avoid shell injection, list-form system and exec, DBI placeholders for every query, and regex patterns that won't blow up on attacker input. It's thorough on the stuff that actually breaks in production, like TOCTOU races, path traversal, and ReDoS. The examples show both the vulnerable pattern and the fix, which makes code review faster. You'll want this active anytime you're auditing legacy CGI scripts or building anything in Mojolicious or Catalyst that handles untrusted data.

skills.sh installs
5.9K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

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

Installs 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/ecc
Category
Security
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263

Recommended

More Security
1github avatarsecurity-reviewgithub/awesome-copilotAI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching5.8Kskills.sh installs
2affaan-m avatarquarkus-securityaffaan-m/eccQuarkus Security best practices for authentication, authorization, JWT/OIDC, RBAC, input validation, CSRF, secrets management, and dependency security.5.4Kskills.sh installs
3giuseppe-trisciuoglio avatarspring-boot-security-jwtgiuseppe-trisciuoglio/developer-kitProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 4.3Kskills.sh installs
4giuseppe-trisciuoglio avatartypescript-security-reviewgiuseppe-trisciuoglio/developer-kitProvides security review capability for TypeScript/Node.js applications, validates code against XSS, injection, CSRF, JWT/OAuth2 flaws, dependency CVEs, and sec4.1Kskills.sh installs
5dpearson2699 avatarswift-securitydpearson2699/swift-ios-skillsUse when working with iOS/macOS Keychain Services (SecItem queries, kSecClass, OSStatus errors), biometric authentication (LAContext, Face ID, Touch ID), Crypto3.2Kskills.sh installs
6semgrep avatarcode-securitysemgrep/skillsSecurity guidelines for writing secure code. Use when writing code, reviewing code for vulnerabilities, or asking about secure coding practices like 'check for 2.8Kskills.sh installs