Feat(aegis/phase1): Telemetry audit pipeline + IntentGate observe service (Weeks 1-3)#518
Open
Jean-Regis-M wants to merge 3 commits into
Open
Conversation
- Add finbot/aegis/telemetry/schema.py with AuditEvent models - Add AEGIS_ENABLED and AEGIS_TELEMETRY_ENABLED settings - Extend events.py to support 'aegis.*' namespaces - Add unit tests for telemetry schema - Update conftest.py for aegis package discovery Week 1 deliverable - GSoC 2026 OWASP FinBot AEGIS
Contributor
|
@Jean-Regis-M |
Contributor
Author
|
Sir @mekaizen PR #518 is related to my GSoC work as we are doing one PR per week and another one #520 is where I was fixing the testing part of finbot apart from GSoC idea. Keeping them separate can be better to ease their evaluation! I updated their contents separately as they are serving different purposes. Thank you very much for the feedback! |
- Add AuditChain for HMAC-SHA256 tamper-evident chaining - Add SentinelStream service with namespace isolation - Add event-type indexing (O(1) performance) - Expand CI workflow (CTF, Labs, Agents tests) - 11 unit tests with ≥80% coverage OWASP: ASI01, ASI06
4d63115 to
2183eeb
Compare
e78af57 to
1181b4b
Compare
- Add IntentGate for policy-as-code PEP/PDP tool validation - Add AegisEnforcementService observe mode orchestrator - Add unit tests for IntentGate policy evaluation - Observe-only mode preserves CTF gameplay (no blocking) - Integrates with Week 2 SentinelStream for audit telemetry OWASP Coverage: - ASI01: Goal hijack detection via policy evaluation - ASI02: Tool misuse prevention via allow/block decisions - ASI05: Unexpected RCE blocking via policy rules Relates to GSoC Week 3 Milestone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase One: Weeks 1-3 Accomplishments
GSoC 2026 - OWASP FinBot CTF - AEGIS Security Hardening Framework
Overview
Phase One (Weeks 1-3) delivers the foundation of the AEGIS framework:
📅 Week 1-2: Telemetry Audit Pipeline
🎯 Goals
📁 Files Created/Modified
New Files:
finbot/aegis/__init__.pyfinbot/aegis/telemetry/__init__.pyfinbot/aegis/telemetry/schema.py(AuditEvent models, JSON-LD compatible)finbot/aegis/telemetry/chain.py(HMAC-SHA256 immutable audit chain)finbot/aegis/sentinel.py(SentinelStream service facade)tests/unit/aegis/test_telemetry_schema.py,tests/unit/aegis/test_telemetry_chain.py,tests/unit/aegis/test_sentinel.pyModified Files (non-breaking, additive):
finbot/ctf/processor/event_processor.py(structured logging foraegis.*events)finbot/ctf/processor/challenge_service.py(O(1) event-type indexing)finbot/config.py(feature flags:AEGIS_ENABLED,AEGIS_TELEMETRY_ENABLEDdefaultFalse)finbot/core/messaging/events.py(aegis.*namespace support).github/workflows/test.yml(expanded test matrix)✅ Key Achievements
aegis:audit:chain_head:ns_X).📅 Week 3: IntentGate + Observe Service
🎯 Goals
📁 Files Created/Modified
New Files:
finbot/aegis/intent_gate.py(Policy engine with YAML-based rules)finbot/aegis/service.py(Observe mode orchestrator for IntentGate, TrustMesh, SentinelStream)tests/unit/aegis/test_intent_gate.py(Unit tests for IntentGate)✅ Key Achievements
evaluate_tool_call(),load_policies(),is_tool_allowed().policy_observedevents without blocking tool execution.🔗 Phase One Integration Points
Integration with Previous Work:
sentinel.pyfor audit telemetry.AegisEnforcementService.📊 Phase One Deliverables Checklist
finbot/aegis/telemetry/finbot/aegis/sentinel.pyfinbot/aegis/intent_gate.pyfinbot/aegis/service.pytests/unit/aegis/test_intent_gate.pytest_intent_gate.pytests/unit/aegis/False🚀 Phase One Commit Strategy (Example)
Commit Message
✅ Success Criteria Met
✅ Telemetry Audit Pipeline: Structured, tamper-evident audit trail for all agent actions.
✅ IntentGate Policy Engine: Policy-as-code PEP/PDP for pre-execution tool validation.
✅ Observe Service Foundation: Orchestrator service with observe-mode logic (Week 3).
✅ Unit Tests Written: Comprehensive test suites for telemetry and IntentGate.
✅ OWASP Coverage: ASI01, ASI02, ASI05, ASI06, ASI08, ASI10 addressed.
✅ Integration Ready: Connects Week 2 telemetry to Week 3 policy engine; prepares for Week 4-5.
✅ Observe Semantics: Logs policy decisions without blocking CTF gameplay.
✅ Code Quality: Proper headers, typed, tested, formatted (Black/isort/mypy).
Combines Week 1-2 (Telemetry Audit Pipeline) and Week 3 (IntentGate + Observe Service) accomplishments