You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Supply Chain Firewall is failing to enforce behavioral density thresholds because the calculated risk exposures always return 0.0%. #156
bugUnintended behavior or logic failure in the enginepriority: criticalDrop-everything pipeline crash or fatal exceptionsupply-chainDependency firewall, manifest parsing, and CycloneDXthreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
The Supply Chain Firewall is failing to enforce behavioral density thresholds (e.g., Hidden Malware, Logic Bombs) because the calculated risk exposures always return 0.0%.
Root Cause
There is a schema mismatch between the Phase 1 RAM graph generator and the Security Lens risk evaluator:
In galaxyscope.py (Phase 1), security scan results are intentionally prefixed with sec_ before being appended to the equations dictionary (e.g., sec_high_risk_execution, sec_reflection_metaprogramming).
In supply_chain_firewall.py, the firewall extracts this equations dictionary and passes it directly into security.evaluate_risk().
In security_lens.py, the evaluate_risk() method attempts to fetch the counts using the raw, un-prefixed keys (e.g., aggregated_hits.get("reflection_metaprogramming", 0)).
Because the keys don't match, the risk evaluator defaults every threat count to 0, causing the firewall to silently bypass high-risk files.
The most isolated fix is to intercept and sanitize the dictionary inside the firewall before passing it to the evaluator.
In supply_chain_firewall.py, strip the sec_ prefix from the keys when cloning the dictionary for the sandbox:
# Clone the dictionary and strip the 'sec_' prefix for the security evaluatorlocal_counts= {}
fork, vinequations.items():
clean_key=k[4:] ifk.startswith("sec_") elseklocal_counts[clean_key] =v
bugUnintended behavior or logic failure in the enginepriority: criticalDrop-everything pipeline crash or fatal exceptionsupply-chainDependency firewall, manifest parsing, and CycloneDXthreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
Activity
fix(supply-chain): patch critical firewall bypasses and lock down sch…