command-injection-testing

Detects and validates OS command injection vulnerabilities in web applications.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/dungsnowaxe/prometheus-red-team-bot --skill command-injection-testing-dungsnowaxe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-injection-testing
Source: https://github.com/dungsnowaxe/prometheus-red-team-bot/tree/main/promptheus/skills/dast/command-injection-testing
Command: npx skills add https://github.com/dungsnowaxe/prometheus-red-team-bot --skill command-injection-testing-dungsnowaxe

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps identify and validate OS Command Injection vulnerabilities (CWE-78, CWE-77, CWE-88) in web applications, preventing attackers from executing arbitrary commands on the server.

Core Features & Use Cases

  • Direct Command Injection: Detects when commands execute and their output is visible in the response.
  • Blind Command Injection: Uses time delays or out-of-band callbacks to confirm execution when output is not directly visible.
  • Argument Injection: Tests if arguments can be injected to alter command behavior.
  • Use Case: An application takes user input for a filename that is passed to a system command. This Skill tests if malicious commands can be injected via the filename parameter to gain unauthorized access.

Quick Start

Use the command-injection-testing skill to test the '/ping' endpoint for OS command injection vulnerabilities.

Frequently Asked Questions about command-injection-testing

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

FAQPage Schema
How do I test for OS command injection vulnerabilities in web applications?

To test for OS command injection, inject shell metacharacters and commands into user-controlled inputs to check if arbitrary operating system commands execute on the server, covering direct, blind, and argument injection vectors.

What is blind command injection and how is it detected?

Blind command injection occurs when command output is not visible in the response. It is detected by measuring response delays using time-based techniques or monitoring external out-of-band callbacks to confirm execution.

Does command injection testing work on both Linux and Windows platforms?

Yes, command injection testing validates vulnerabilities across various platforms like Linux and Windows by injecting platform-specific shell metacharacters into user inputs such as filenames passed to system commands.

How do I validate CWE-78 argument injection vulnerabilities?

To validate CWE-78 argument injection, test if additional arguments can be injected into user-controlled inputs to alter the behavior of existing system commands executed by the application.

What is the best way to detect direct command injection vulnerabilities?

The best way to detect direct command injection is to inject shell metacharacters into user inputs and observe whether the executed command output is directly visible within the application response.

When should I use time-based detection for command injection?

Time-based detection for command injection should be used when application responses do not return command output directly, requiring response delay measurements to confirm vulnerability execution.