factormad-debate-factor-mining

Warn

Audited by Socket on Oct 17, 2026

3 alerts found:

Securityx3
SecurityMEDIUM
scripts/factormad_runtime/factormad_compute_runtime.py

As supplied, the module has a syntax error in DEFAULT_EXAMPLES and cannot be imported. If corrected, it dynamically executes supplied factor code with inadequate restrictions, creating a significant code-execution risk for untrusted factor inputs; the timeout is disabled by default. It also sends chat messages to a configurable OpenAI-compatible endpoint using FACTORMAD_OPENAI_API_KEY or OPENAI_API_KEY, which is consistent with its LLM-client purpose. No explicit malicious payload, hardcoded secret, or suspicious network destination appears in this fragment.

Confidence: 99%Severity: 78%
SecurityMEDIUM
scripts/factormad_runtime/alpha_ops.py

The code implements market-data alpha evaluation and output writing, but its unrestricted eval of model-generated or fallback expression text is a high-severity arbitrary code execution risk. It also sends the expression and API credential to the configured OpenAI-compatible endpoint, which can be redirected by base URL configuration. No explicit malware, persistence, system-data harvesting, or destructive behavior is present; the main risk is unsafe code execution and credential exposure to a misconfigured endpoint. The supplied fragment also contains an incomplete HELPER_DOCS assignment and would not run as written.

Confidence: 99%Severity: 88%
SecurityMEDIUM
scripts/factormad_runtime/factormad_debug_runtime.py

This module is a factor-debugging tool that loads caller-selected files, executes supplied or LLM-generated factor code, and writes JSON results. The principal security concern is arbitrary code execution if factor inputs are untrusted and the evaluator does not provide a genuine sandbox; the import substring check is not sufficient protection and occurs after namespace construction. LLM transmission and path handling depend on helper implementations not included here. Severity is high when processing untrusted factor code, but no explicit malware behavior or hardcoded secret is present in this fragment.

Confidence: 91%Severity: 76%
Audit Metadata
Analyzed At
Oct 17, 2026, 09:18 AM
Package URL
pkg:socket/skills-sh/quantskills%2Fskill-factormad-debate-factor-mining%2Ffactormad-debate-factor-mining%2F@040bd21f5f5a2a06d8974581896778748c6fdac8