bmad-bmb-setup
Audited by Socket on Sep 15, 2026
2 alerts found:
AnomalySecurityThe code implements a CSV merge and legacy-file cleanup utility with no clear malware indicators. However, --module-code is unsanitized before being used in a deletion path, allowing path traversal and potentially unintended deletion of files named module-help.csv. Validate that the module code is a safe single directory name and ensure the resolved deletion path remains beneath the intended legacy directory. The fragment is also syntactically incomplete as displayed.
The code is not evidently malware and contains no network exfiltration, backdoor, or obfuscated payload. However, it performs recursive deletion using unsanitized user-controlled paths. Path traversal or absolute directory arguments can delete files outside the intended _bmad/ directory, potentially including highly sensitive system or project data when run with sufficient privileges. Directory-name validation and containment checks using resolved paths are required before use of shutil.rmtree(). The provided fragment also appears syntactically incomplete.