Expand description
Main bash command security analyzer.
Combines AST parsing, quote context, redirect validation, command prefix extraction, recursive command substitution analysis, and zsh/advanced shell checks into a single fail-closed classification.
Enums§
- Command
Safety - Outcome of analyzing a shell command.
- Security
Analysis - Result of analyzing a command string for security.
Functions§
- analyze
- Analyze a bash command string and return its safety classification.
- analyze_
security - Analyze a bash command string and return detailed results.
- classify_
simple_ command - Classify a single simple command as safe or needing review.
- extract_
command_ prefix - Extract the command prefix for permission rule matching.