bmad-bmb-setup

Warn

Audited by Socket on Sep 15, 2026

2 alerts found:

AnomalySecurity
AnomalyLOW
scripts/merge-help-csv.py

The 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.

Confidence: 98%Severity: 58%
SecurityMEDIUM
scripts/cleanup-legacy.py

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.

Confidence: 98%Severity: 86%
Audit Metadata
Analyzed At
Sep 15, 2026, 01:06 PM
Package URL
pkg:socket/skills-sh/bmad-code-org%2Fbmad-builder%2Fbmad-bmb-setup%2F@c20f2f7ff7b2a14fc1d534fde32343f3bcaf553816fb24c4e0d17b2fde25a355