critical
suspicious.dynamic_code_execution
- Location
- .claude/worktrees/check/src/core/runner.ts:1023
- Finding
- Dynamic code execution detected.
- Evidence
const fn = new Function("state", `"use strict"; return !!(${resolved});`);
AdvisoryAudited by Static analysis on May 19, 2026.
Detected: suspicious.dynamic_code_execution, suspicious.env_credential_access
const fn = new Function("state", `"use strict"; return !!(${resolved});`);const fn = new Function("state", `"use strict"; return !!(${resolved});`);const fn = new Function("state", `"use strict"; return !!(${resolved});`);const fn = new Function("input", "state", `"use strict"; return (${node.run});`);const fn = new Function("state", `"use strict"; return !!(${resolved});`);const fn = new Function("state", `"use strict"; return !!(${resolved});`);// Seed state.env: flow defaults → shell-expand $(…) → process.env overrides
/** Resolved env (merged from flow.env + process.env). Empty object if none. */
// Seed state.env: flow defaults → shell-expand $(…) → process.env overrides
// Seed state.env: flow defaults → shell-expand $(…) → process.env overrides
const apiKey = this.cfg.apiKey ?? process.env.ANTHROPIC_API_KEY;
/** Resolved env (merged from flow.env + process.env). Empty object if none. */
// Seed state.env: flow defaults → shell-expand $(…) → process.env overrides
/** Resolved env (merged from flow.env + process.env). Empty object if none. */
// Seed state.env: flow defaults → shell-expand $(…) → process.env overrides