sample-module-setup

Warn

Audited by Socket on Sep 16, 2026

2 alerts found:

SecurityAnomaly
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%
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%
Audit Metadata
Analyzed At
Sep 16, 2026, 02:49 AM
Package URL
pkg:socket/skills-sh/bmad-code-org%2Fbmad-builder%2Fsample-module-setup%2F@222be3a6cfbd9b9b66528b87a23d3be8b411081b878b7c7dc0548f293951d7af