vuln-patterns-injection

Detect injection vulnerabilities in Python code by analyzing sources and sinks.

74|10|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/yhy0/ghsa-skill-builder --skill vuln-patterns-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vuln-patterns-injection
Source: https://github.com/yhy0/ghsa-skill-builder/tree/main/vuln-skills/skills/vuln-patterns-injection
Command: npx skills add https://github.com/yhy0/ghsa-skill-builder --skill vuln-patterns-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and prevent injection vulnerabilities in Python code, such as command injection, SQL injection, and code injection, which can lead to unauthorized access or data breaches.

Core Features & Use Cases

  • Source Identification: Detects user input from various sources like HTTP requests, LLM outputs, and configuration files.
  • Sink Analysis: Analyzes dangerous functions like eval(), exec(), subprocess with shell=True, and SQL execution functions.
  • Sanitization Validation: Checks for proper security measures like parameterized queries and input validation.
  • Use Case: When auditing a web application, use this Skill to automatically scan for instances where user-provided data might be used in constructing SQL queries or system commands, flagging potential SQL injection or command injection flaws.

Quick Start

Use the vuln-patterns-injection skill to audit the provided Python script for potential injection vulnerabilities.

Frequently Asked Questions about vuln-patterns-injection

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

FAQPage Schema
How do I detect SQL injection vulnerabilities in Python code?

To detect SQL injection vulnerabilities in Python code, this skill analyzes dangerous execution functions, identifies user input sources from HTTP requests or config files, and validates the presence of parameterized queries and input sanitization measures.

What is the best way to audit Python code for command injection flaws?

The best way to audit Python code for command injection flaws is to trace user input to dangerous sinks like subprocess with shell=True, checking if proper security measures and input validation are implemented before execution.

Can I scan Python applications for code injection and template injection risks?

Yes, you can scan Python applications for code injection and template injection risks by analyzing dangerous functions like eval() and exec(), validating sanitization measures, and identifying sources of user input that reach these sinks.

Does this injection detection skill cover CWE-77 and CWE-89 for Python?

Yes, this injection detection skill covers CWE-77, CWE-78, CWE-89, CWE-94, CWE-95, and CWE-917 for Python applications by identifying user input sources, analyzing dangerous sinks, and validating sanitization measures.

How do I check if user input from HTTP requests reaches dangerous Python sinks?

To check if user input from HTTP requests reaches dangerous Python sinks, this skill identifies sources of user input, analyzes functions like eval() and subprocess with shell=True, and validates existing sanitization measures.

What are common sources of user input analyzed during Python code audits?

Common sources of user input analyzed during Python code audits include HTTP requests, LLM outputs, and configuration files, which are traced to dangerous sinks to identify potential command injection, SQL injection, and code injection vulnerabilities.