langgraph
Warn
Audited by Socket on Sep 2, 2026
1 alert found:
AnomalyAnomalyscripts/lg-swarm-scaffold.py
LOWAnomalyLOW
scripts/lg-swarm-scaffold.py
No direct malware activity is evident in the generator logic shown; it primarily performs filesystem-based scaffolding. However, it dynamically generates and writes executable Python code using CLI-controlled project/agent strings, then modifies the generated graph.py via textual replacement. This creates a supply-chain/code-generation integrity risk: if untrusted inputs can reach this generator (e.g., in CI or automated workflows), the resulting generated project could embed unintended or malicious logic. Confidence is limited because key template variables that define the contents of handoff_tools.py/agents.py/graph.py are not included in the snippet.
Confidence: 55%Severity: 50%
Audit Metadata