tui.scan.run
tui.scan.run PATH [DEEP]
Security-scans a script or folder for obvious red flags: pipe-to-shell, reverse shells, rm -rf /, setuid, secrets, persistence.
Parameters
DEEP:1also runs Semgrep when installed (or setDABT_SCAN_SEMGREP=1). ShellCheck runs whenever it is onPATH.
Sets: TUI_SCAN_HIGH, TUI_SCAN_WARN (counts), TUI_SCAN_REPORT (text).
Returns: always 0; check the counts.
Notes
- Static checks only: obfuscated code is not detected, so a clean report is not a guarantee.
- Not loaded by
tui.sh; calltui.require tui_scanfirst.
