Command injection allows attackers to execute arbitrary OS commands by manipulating user input. This anti-pattern occurs when applications concatenate user input into shell command strings. Common in AI-generated code. Enables complete system compromise, data exfiltration, malware installation, and lateral movement.
User input embedded in shell command strings enables command injection. The shell cannot distinguish between intended commands and attacker-injected commands.
Sicherheits-Anti-Pattern für OS Command Injection-Schwachstellen (CWE-78). Wird zum Generieren oder Überprüfen von Code verwendet, der Shell-Befehle ausführt, Systemprozesse ausführt oder Benutzereingaben in Befehlszeilenvorgängen verarbeitet. Erkennt die Verkettung von Shell-Strings und empfiehlt Argumentarrays. Quelle: igbuend/grimbard.
Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/igbuend/grimbard --skill command-injection-anti-pattern Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw