injection-prevention

Detect security vulnerabilities in PopKit plugins with automated secret scanning and OWASP-aligned checks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jrc1883/popkit-claude --skill injection-prevention
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: injection-prevention
Source: https://github.com/jrc1883/popkit-claude/tree/main/skills/pop-assessment-security
Command: npx skills add https://github.com/jrc1883/popkit-claude --skill injection-prevention

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Injection prevention standards covering command, code, and SQL injection, plus path traversal defense.

Core Features & Use Cases

  • Prevention strategies: safe subprocess usage, prepared statements, template safety.
  • Guidance: recommended mitigations and safe patterns.
  • Education: aligns with security best practices.

Quick Start

Integrate prevention guidelines into your code reviews and CI checks.

Frequently Asked Questions about injection-prevention

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent SQL injection vulnerabilities in my code?▼

SQL injection prevention uses prepared statements with parameterized queries to separate code from data. This ensures user input cannot alter command logic, eliminating the most common injection attack vector in database applications.

What are the best practices for safe command execution and subprocess usage?▼

Command injection prevention avoids shell interpretation by passing arguments as arrays rather than concatenated strings. Use subprocess libraries with array-based APIs and disable shell=True to prevent attackers from injecting shell metacharacters.

How do I defend against code injection and path traversal attacks?▼

Code injection defense restricts dynamic code execution; path traversal defense validates and sanitizes file paths to prevent directory escape. Both require input validation, allowlisting, and avoiding eval-like functions with untrusted data.

What injection vulnerabilities should I check for in security reviews?▼

Security reviews should identify command, code, SQL, and path traversal injection vectors. Check for unsafe subprocess calls, dynamic SQL concatenation, eval usage, and unvalidated file path operations against OWASP injection checklists.

Can I automate injection vulnerability detection in my CI pipeline?▼

Automated injection detection scans code for unsafe patterns—shell metacharacters in subprocess calls, SQL string concatenation, and unvalidated path operations. Integration into CI checks catches vulnerabilities before deployment.

Why is template safety important for preventing injection attacks?▼

Template safety prevents injection by isolating data from template logic through auto-escaping and context-aware encoding. This protects against code and command injection when rendering user-controlled content in templates.