Bibliothèque › Skills

Skill

Détecter les modèles d'injection de commande

Analyse le code source pour détecter les motifs vulnérables à l'injection de commande dans plusieurs langages.

Comment l'utiliser

  1. Télécharge le skill (fichier .zip).
  2. Dans Claude (appli ou site) : ouvre les Paramètres, rubrique Skills, et importe le .zip.
  3. Dans Claude Code : décompressez le dossier dans ~/.claude/skills/ (tous vos projets) ou .claude/skills/ (un seul projet).
  4. Claude l'utilise de lui-même quand ta demande correspond à sa description.

Il existe aussi dans un plugin, à installer d'un coup dans Claude Code :

/plugin marketplace add jeremylongshore/tons-of-skills-marketplace
/plugin install penetration-tester@claude-code-plugins-plus

Le contenu

Le contenu est réservé aux abonnés

Compris dans SuperPrompt : copiez, téléchargez et installez toutes les fiches, avec les six agents métier x10. 7 jours gratuits, puis 97 € par an, résiliable en trois clics.

Ce skill contient aussi 3 fichiers annexes (references/PLAYBOOK.md, references/THEORY.md, scripts/scan_cmdi.py). Récupère le dossier complet sur le dépôt d'origine.

Description d'origine, en anglais

Scan a source tree for command-injection vulnerable patterns: shell=True calls in Python subprocess, os.system / os.popen with interpolated strings, Node child_process.exec with template literals, Ruby backticks / Kernel#system / Kernel#exec with interpolation, Go exec.Command with shell wrapping, PHP system / passthru / shell_exec / backticks with $-interpolation, Java Runtime.exec with concatenated args. Use when: pre-commit gate on code that calls out to shell utilities, audit of file-processing / archive-handling / image-conversion code, post-bug-report investigation for "we shell out to a tool." Threshold: any shell-invocation API called with a string that contains a variable interpolation, OR shell=True with anything other than a fixed literal. Trigger with: "scan command injection", "shell=True audit", "find exec calls", "check os.system".

D'où vient cette fiche

Création de Jeremy Longshore <jeremy@intentsolutions.io>, publiée sur jeremylongshore/tons-of-skills-marketplace sous licence MIT.

Le contenu est reproduit tel quel, dans le respect de sa licence. Le titre, le résumé et le classement en français sont rédigés par SuperPrompt.