feat(kernel): implement containerized PDP with tiered security scanning#39
feat(kernel): implement containerized PDP with tiered security scanning#39eddymontana wants to merge 12 commits into
Conversation
Verified end-to-end security interception with 0b111 mask detection. Ready for L3 Summer expansion.
Aligned kernel with @dorcas Adetunji's feedback on per-hook risk templates (Prompt, Context, Tool, Memory).
|
went through the diff, few notes from the kernel side
smaller stuff, non-blocking:
|
|
Thanks for the thorough review, @VibhorGautam. I've pushed a series of commits to address the kernel-side notes:
Updated the README to reflect the new cross-platform build commands. Ready for another look! |
This PR finalizes the Phase 2 architecture for the Agentic Cognitive Firewall. It introduces a high-performance Go-based PDP (Policy Decision Point) and a Python PEP (Policy Enforcement Point) with a focus on low-latency security scanning.
Note: This is a fresh submission that replaces #17. It preserves Phase 1 logic while introducing Phase 2 enhancements, addresses prior feedback regarding project structure, and removes all compiled binaries from version control.
🛠️ Key Technical Implementations
Multi-Layer Kernel: Implemented tiered scanning—L1 Hygiene (Base64/Normalization) and L2 Lexical (Aho-Corasick) with ~0.5ms overhead.
Secure Transport: Windows Named Pipe and Unix Domain Socket support with HMAC-SHA256 signing and nonce-based replay protection.
Containerization: Added Dockerfile and docker-compose.yml for automated sidecar deployment.
Phase 3 Alignment: Updated prerequisites (Go 1.25+) and README documentation to match the project's roadmap.
🧪 Validation
Verified BLOCK signals for SQL injection and prompt injection attack vectors.
Confirmed the sidecar remains stable under sequential header-first reads.
100% pass rate on internal/kernel unit tests.
Why this version is better: