safeguards_adapter + mini_templar classification path (stateless API surface, deterministic tests).RUNPOD_DEPLOYMENT_CHECKLIST.md (legacy hosting notes). Local smoke helper: bash scripts/pre_flight_check.sh.tests/real_2026_training_dataset.jsonl, not the synthetic 100-prompt harness):app.py Streamlit dashboard (demo mode only, not part of hardened headless core package) enforcer.py Passive MCP/tool-call signature monitor + rate-based detector osint_expert.py NVD CVE feed ingestion + cross-reference with threat log rebuff_engine.py Prompt-injection shield — detect & log hostile instructions ghost_monitor.py Encrypted-traffic fingerprinting via timing/length analysis (passive) vault_guardian.py Alert-driven mock credential-rotation workflow p2p_mesh.py Signed threat-intel sync across trusted peers whisper_detector.py Shannon entropy analysis for steganography detection mimicry_hunter.py TF-IDF cosine-distance behavioral drift analyzer neural_mirror.py Offline red-team simulation harness config.py Central configuration — all tunable thresholds and pathsaudit_log.db (SQLite) with SHA-256 payload hashes and HMAC-SHA256 signatures for chain-of-custody.ghost_monitor.py live mode uses psutil only (no raw sockets)ghost_monitor.py --pcap mode optionally uses scapy (read-only)test_harness.py can score JSONL datasets (flags vary by environment — run python test_harness.py --help). Repository fixtures include tests/real_2026_training_dataset.jsonl.DARKSPACE_* prefix for continuity with older deployments and tooling (values shown below are unchanged)..env file.env file in the project root (never commit it):app.py only)ThreatFox API key: Register free at https://threatfox.abuse.ch/api/
http://localhost:8501config.py)ENFORCER_RATE_THRESHOLD 10 Events per window before rate alert ENFORCER_RATE_WINDOW_SECONDS 60 Sliding window for rate detection VAULT_CRITICAL_SCORE_THRESHOLD 8.0 Risk score that triggers mock rotation WHISPER_ENTROPY_THRESHOLD 3.5 bits/char above which text is flagged MIMICRY_DRIFT_THRESHOLD 0.8 Cosine distance above which drift is flagged NEURAL_MIRROR_SAMPLE_LIMIT 42 Max synthetic samples per red-team runaudit_log app.py ThreatFox search results, IOC records threat_log enforcer.py Signature & rate detections with HMAC sigs vuln_log osint_expert.py NVD CVEs vuln_correlation osint_expert.py CVE ↔ threat_log cross-references prompt_log rebuff_engine.py Prompt attempt hashes + verdicts ghost_log ghost_monitor.py Traffic timing/size metrics vault_events vault_guardian.py Mock rotation records mesh_inbox p2p_mesh.py Inbound peer intel summaries whisper_log whisper_detector.py Entropy scores mimicry_log mimicry_hunter.py Drift scores mirror_results neural_mirror.py Red-team run resultskinetic_hooks.py and the Kinetic Hooks dashboard tab provide this v2 response path; validate in deployment with dry-run first..mil agent traffic.220/220) are on synthetic/red-team-generated corpus data.kinetic_hooks.py supports real wiring via optional Keycloak integration, but most deployment actions remain environment-specific integration work..github/workflows/security-ci.ymlpython _smoke_v2.py)bandit, semgrep)pip-audit)SECURITY.mdMATURITY.mdCHANGELOG_CONFIG.mdtests/test_core_security.pysbom.cdx.jsonsbom.spdx.jsonDockerfilek8s/darkspace-deployment.yamlrunAsNonRoot, dropped Linux capabilitiesreadOnlyRootFilesystemseccompProfile: RuntimeDefaultconfig.enforce_security_baseline() now blocks runtime startup when minimum baselines are not met.DARKSPACE_OFFLINE_ONLY=trueosint_expert.py supports --offline-onlyapp.py ThreatFox fetch/search now respects offline-only mode and uses local IOC cacheDARKSPACE_OFFLINE_ONLY=true when unset)ioc_seed.json should be a JSON array of objects with fields such as: ioc, ioc_type, threat_type, malware_printable, confidence_level, reporter, raw_json.contrib/keycloak_idp_example.pykinetic_hooks.py quarantine/re-auth action pointsSecurity Metrics tab in Streamlitexport_security_metrics_prometheus.pygrafana/darkspace_security_metrics_dashboard.jsonhttp://localhost:9109/metrics for Prometheus scrape integration.config.enforce_security_baseline())>=97% target): completecalibrate.py): completeMATURITY.md: completecontrib/: complete (contrib/keycloak_idp_example.py)SECURITY.md: complete.github/workflows/security-ci.yml): completePosted Aug 11, 2026
Developed a prototype AI-agent safeguard system with multiple security modules.
1
0