Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):

- brain/        LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
                dispatch, A51 channels, and the OSINT cluster
- knowledge/    LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
                MITRE ATT&CK data
- reference/    defensive threat-reference (C3, shhbruh doc) + AdaYaml parser

License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.

Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.

https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
2026-06-10 06:53:01 +00:00

32 lines
1.1 KiB
Python

#!/usr/bin/env python3
"""Memory Protection Auditor - Checks exploit mitigation status on Windows."""
import json, subprocess, sys, os
from datetime import datetime
def check_mitigations() -> dict:
ps_cmd = """
$sys = Get-ProcessMitigation -System
$apps = Get-ProcessMitigation -Name * 2>$null | Select-Object -First 20
@{System = $sys; Apps = $apps} | ConvertTo-Json -Depth 3
"""
try:
r = subprocess.run(["powershell", "-NoProfile", "-Command", ps_cmd],
capture_output=True, text=True, timeout=30)
return json.loads(r.stdout) if r.returncode == 0 else {"error": r.stderr}
except Exception as e:
return {"error": str(e)}
if __name__ == "__main__":
result = check_mitigations()
if "error" in result:
print(f"Error: {result['error']}")
print("This tool requires Windows with Exploit Protection support.")
sys.exit(1)
out = sys.argv[1] if len(sys.argv) > 1 else "memory_protection_audit.json"
with open(out, "w") as f:
json.dump({"generated": datetime.utcnow().isoformat() + "Z", **result}, f, indent=2)
print(f"Report: {out}")