workflow-creator
Audited by Socket on Aug 3, 2026
2 alerts found:
Anomalyx2This fragment is a deterministic/sandbox-like harness that dynamically compiles and executes workflow JavaScript loaded from disk (including nested workflows selected by runtime name). While it blocks common nondeterministic APIs and captures console output, it still provides an extremely high-risk primitive for supply-chain attacks: executing arbitrary local .js source via new Function and potentially reading nested modules based on unsanitized name input. No overt malware behavior (network exfiltration, backdoors, crypto mining, file/process modification) is evident in the snippet itself, but the design warrants strict input control and verification of what GLOBALS/HOST_GLOBALS expose.
This module is not overt malware; it primarily orchestrates automated code cleanup by delegating discovery and destructive refactoring actions to an external agent/tooling layer. The main security risk is indirect and integrity-focused: untrusted “Find” outputs (file/symbol/kind strings) are interpolated into “Remove” instructions that command repository edits, potentially amplified by parallel execution. Safety ultimately depends on the external agent/tooling strictly sandboxing filesystem access to the intended worktree, validating/canonicalizing target paths/symbol identifiers, and reliably reverting edits when proof gates fail.