Command_Injection_Test

🌐Community
by charpup · vlatest · Repository

Tests system prompts for command injection vulnerabilities by attempting to execute arbitrary shell commands.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add command_injection_test npx -- -y @trustedskills/command_injection_test
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "command_injection_test": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/command_injection_test"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill tests for command injection vulnerabilities in systems. It attempts to inject malicious commands into user inputs and observes the system's response, revealing potential security flaws. The skill is designed to identify weaknesses where untrusted data can be executed as shell commands.

When to use it

  • Security Audits: Evaluate the robustness of web applications or APIs that process external input.
  • Penetration Testing: Simulate an attacker's attempt to exploit command injection vulnerabilities.
  • Development Validation: Verify that code changes designed to prevent command injection are effective.
  • Automated Security Checks: Integrate into CI/CD pipelines for continuous vulnerability assessment.

Key capabilities

  • Command Injection Attempt: Injects various malicious commands into input fields.
  • Response Analysis: Analyzes the system's output to detect successful command execution.
  • Vulnerability Identification: Flags potential command injection vulnerabilities based on observed behavior.

Example prompts

  • "Test for command injection in the /search endpoint with the query 'test; ls -al'"
  • "Can you try injecting a command into the filename field? Try file.txt; whoami."
  • "Check if the system allows execution of commands when I enter <script>alert('xss')</script> in the comment box."

Tips & gotchas

The skill's effectiveness depends on the target system’s configuration and security measures. Ensure you have proper authorization before using this skill, as unauthorized testing can be illegal or violate terms of service.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
charpup
Installs
8

🌐 Community

Passed automated security scans.