alxayo/goflow/shellcheck-security-scan

Claude Code and agent skill by alxayo/goflow

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Shell script static analysis using ShellCheck. Detects command injection, unquoted variables, reverse shell patterns, dangerous rm operations, obfuscated payloads. Combine with graudit for patterns ShellCheck may miss.

Install

npx vskill@latest install alxayo/goflow/shellcheck-security-scan

SKILL.md

The same SKILL.md was published earlier as alxayo/goflow/shellcheck-security-scan.

ShellCheck Security Scan Skill

ShellCheck is a static analysis tool for shell scripts (bash, sh, dash, ksh). It identifies bugs, security vulnerabilities, and dangerous patterns.

Core Commands

bash
# Scan a single script
shellcheck script.sh
# Scan with all checks enabled and warning threshold
shellcheck --enable=all --severity=warning script.sh
# JSON output for parsing
shellcheck --enable=all --format=json script.sh
# Scan all scripts recursively
find . -name "*.sh" -exec shellcheck --enable=all --severity=warning {} +
# SARIF output for security tools
shellcheck --format=sarif --enable=all script.sh
# Specify shell dialect
shellcheck --shell=bash script.sh

Security-Critical Checks

CodePatternRiskMITRE ATT&CK
SC2086Unquoted variable in rm/curlCommand injectionT1059.004
SC2046Unquoted command substitutionCommand injectionT1059.004
SC2091Executing command output $(...)Arbitrary code executionT1059.004
SC2115Empty var + rmRoot filesystem wipeT1485
SC2216Pipe to rmArbitrary file deletionT1070.004
SC2029SSH command injectionRemote command confusionT1021.004
SC2087Unquoted heredocData injectionT1059.004

Supplementary Pattern Detection

ShellCheck misses obfuscated/malicious patterns. Also check:

bash
# Reverse shells
grep -rn --include="*.sh" -E "(bash\s+-i|/dev/tcp/|nc\s+(-e|-c)|mkfifo)" .
# Download-and-execute
grep -rn --include="*.sh" -E "(curl|wget).*\|.*(ba)?sh" .
# Data exfiltration
grep -rn --include="*.sh" -E "curl.*-d.*\$|wget.*--post-data" .
# Obfuscated payloads
grep -rn --include="*.sh" -E "(base64\s+(-d|--decode)).*\|\s*(ba)?sh" .
# Persistence mechanisms
grep -rn --include="*.sh" -E "(crontab|/etc/cron|systemctl.*enable|update-rc.d)" .

Interpreting Results

  • error: Definite bugs or syntax errors
  • warning: Likely bugs or security-relevant patterns
  • info: Suggestions for improvement
  • style: Stylistic issues

Triage Priority

  1. CRITICAL: SC2091 (executing output), SC2115 (empty var + rm)
  2. HIGH: SC2086/SC2046 with user input in rm/curl/eval
  3. MEDIUM: General quoting issues, permission problems
  4. LOW: Style issues, minor suggestions

Limitations

  • Cannot detect obfuscated reverse shells (base64 | bash)
  • No taint tracking — misses data flow from untrusted sources
  • Shell-only analysis — embedded Python/Perl/Ruby is ignored
  • Cannot detect time bombs or environment-triggered payloads

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
7
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alxayo/goflow/shellcheck-security-scan/badge)](https://verified-skill.com/skills/alxayo/goflow/shellcheck-security-scan)

Something wrong with this skill or its page? Tell us.