con un clic
script-execution-analysis
Guidance for analyzing executable scripts found in skills
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Guidance for analyzing executable scripts found in skills
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Command execution guard. Must be used when a tool call executes an operating-system command through shell, terminal, process, task, exec, command, MCP, or computer-use command tools. Requires user confirmation for dangerous Linux, Windows, and macOS commands.
Script execution risk guard. Use when a tool call executes a script file or multi-line interpreter payload, or when command_execution_guard identifies a launcher command that points to a script. Focus on script content, hidden execution chains, and mismatch between user intent and script behavior.
Browser and web access risk guard. Use when tool calls open URLs, browse webpages, fetch web content, follow redirects, download web resources, or execute actions influenced by webpage content.
File and data exfiltration risk guard. Use when tool calls may move data outside trusted boundaries (network upload, external messaging, email attachment, cloud sync, or removable device transfer).
Sensitive file access and path abuse guard. Use when tool calls read/list/search filesystem paths and may touch credentials, system files, private documents, or high-impact configuration.
General guard for uncategorized tool risks and browser/web access safety. Use when a tool call does not cleanly match a specialized skill, or when webpage access/content can influence downstream tool behavior.
| name | script_execution_analysis |
| description | Guidance for analyzing executable scripts found in skills |
| version | 1.0.0 |
| author | ClawSecbot |
| tags | ["scenario","script-analysis"] |
Load this skill when you discover executable scripts (.sh, .py, .js, .ps1, etc.) or embedded code blocks in the target skill. Scripts are the most versatile attack vector because malicious operations can be hidden among legitimate commands.
CRITICAL: Never judge a script by its filename alone. A script named cleanup.sh could contain data exfiltration code. Always read the actual content.
When analyzing a script, think through these questions:
A setup script should install dependencies and configure the project. If it's also sending data to external servers or modifying files outside the project directory, that's a red flag. Ask yourself:
A text processing skill shouldn't need network access. A code formatter shouldn't modify ~/.bashrc. Consider:
Scripts may have conditional branches that behave differently under different conditions:
if branch vs the else branch?Legitimate scripts rarely need to hide their code. Look for:
eval or exec with string manipulationLook for these patterns hidden in otherwise normal-looking scripts:
curl | bash or wget | sh — remote code executionsudo, chmod +s, modifying sudoers)rm -rf, disk operations)Some attacks hide payloads in comments that get extracted and executed later:
grep or sed to extract content from commentsCRITICAL — Immediate concern:
curl|bash, encoded payload execution)HIGH — Requires investigation:
MEDIUM — Needs context: