NeuroNest Security Architecture — 7-Layer Defense-in-Depth
NeuroNest protects every AI agent action with seven independent security layers. No single point of failure. Defense in depth means each layer catches threats that the others miss.
The 7 Security Layers
- Firewall Engine — Zero-dependency TypeScript engine running before any text reaches an agent. Applies sanitization, regex-based prompt injection detection, secrets scanning, and policy enforcement in under 1 ms.
- Enhanced Firewall — LLM-powered semantic analysis layer catches sophisticated injection attempts that evade pattern matching. Includes configurable policy presets and PII redaction.
- Action Analyzer — Pre-execution screening for every shell command, file write, and network request. Pattern Analyzer and Policy Rail Analyzer combine into an ensemble risk score. High-risk actions are blocked; uncertain actions escalate to human approval.
- Runtime Protection — Anti-tamper monitoring: DevTools attachment detection, debugger flag scanning, SHA-256 file integrity verification, environment anomaly detection, and keyboard shortcut blocking.
- HMAC Request Signing — All inter-agent communication signed with HMAC-SHA256. Nonce-based replay protection prevents message reuse attacks.
- Native C++ Crypto Layer — Post-quantum cryptographic operations (ML-KEM-768, ML-DSA-65, SLH-DSA-SHAKE-128s) run in native code outside the LLM execution sandbox.
- Edit Lock System — File and directory-level protection. Locked paths cannot be modified by any agent, including the orchestrator, without explicit human approval.
Local-First by Design
Source code is processed locally by default. Nothing is sent to NeuroNest servers. When cloud providers are configured, code goes only to that provider under their privacy policy. You can audit every agent action through the Action Log.
Prompt Injection Protection
NeuroNest's dual-layer firewall is the most comprehensive prompt injection defense available in any IDE. Layer 1 catches known injection patterns in under 1 ms. Layer 2 uses LLM semantic analysis to catch novel injections that pattern matching cannot detect.