T08 · Insecure Dependencies
- Location
scripts/kickstart_cli.py:130- Finding
Unverified Companion Module Is Dynamically Imported and Executed In-Process
- Content
View full analysis
Path | None: """Locate lygo_ops_detector.py near this skill or under LYGO_STACK_ROOT.""" here = Path(__file__).resolve() candidates = [ here.parents[2] / "lygo-ops-detector" / "scripts" / "lygo_ops_detector.py", here.parents[1] / "vendor" / "lygo_ops_detector.py", ] stack = os.environ.get("LYGO_STACK_ROOT", "").strip() if stack: candidates.append( Path(stack) / "clawhub" / "mirrors" / "lygo-ops-detector" / "scripts" / "lygo_ops_detector.py" ) # common install locations home = Path.home() candidates += [ home / ".grok" / "skills" / "lygo-ops-detector" / "scripts" / "lygo_ops_detector.py", Path(r"I:\E Drive\.grok\skills\lygo-ops-detector\scripts\lygo_ops_detector.py"), Path(r"D:\lygo-protocol-stack\clawhub\mirrors\lygo-ops-detector\scripts\lygo_ops_detector.py"), ] for p in candidates: if p.is_file(): return p return None ``` `scripts/kickstart_cli.py:283-299`: ```python if not det_path: return { "ok": False, "error": "ops_detector_missing", "plain_english": ( "Ops Detector is not installed next to this skill. " "Install: npx clawhub@latest install deepseekoracle/lygo-ops-detector " "or set LYGO_STACK_ROOT to your lygo-protocol-stack clone." ), "install": "npx clawhub@latest install deepseekoracle/lygo-ops-detector", } # In-process import (no subprocess) scripts_dir = str(det_path.parent) if scripts_dir not in sys.path: sys.path.insert(0, scr ...[truncated 3553 chars]- Remediation
View remediation
