bash-ast
CommunitySecure Bash commands with AST-based analysis.
Authorybbms777
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Bash AST parsing layer analyzes shell commands by converting them into an AST to identify dangerous patterns, helping teams enforce safe execution and prevent unsafe actions or injections.
Core Features & Use Cases
- Lexical analysis of Bash input into tokens
- Recursive-descent AST parsing to build command trees
- Dangerous command detection (rm, dd, chmod, curl|wget+pipe to shell)
- Path traversal detection and screening of sensitive paths
- Injection-chain and dangerous redirection detection
- Produces structured reports with threat level and justification for downstream tooling
Quick Start
Run python3 scripts/bash_ast.py '<command>' to analyze the command safety and generate a structured result.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: bash-ast Download link: https://github.com/ybbms777/openclaw-claude-code-integration/archive/main.zip#bash-ast Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.