Week 8: Implement AEGIS Harness Components for Red-Team Testing Framework#546
Open
Jean-Regis-M wants to merge 2 commits into
Open
Week 8: Implement AEGIS Harness Components for Red-Team Testing Framework#546Jean-Regis-M wants to merge 2 commits into
Jean-Regis-M wants to merge 2 commits into
Conversation
- Add finbot/aegis/telemetry/schema.py with AuditEvent models - Add AEGIS_ENABLED and AEGIS_TELEMETRY_ENABLED settings in config.py - Extend events.py to accept 'aegis.*' event namespaces (backward compatible) - Add unit tests for telemetry schema - Update conftest.py to include aegis package Week 1 deliverable (GSoC 2026 - OWASP FinBot AEGIS)
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.
PR Description
This PR implements the foundational harness components for the AEGIS (Adversarial ECM-Based Generative Intelligence System) red-team testing framework as part of Week 8 deliverables in the GSoC 2026 project focused on enhancing FinBot's financial crime detection capabilities through adversarial machine learning techniques.
Technical Implementation Summary
Created Components
finbot/aegis/harness/__init__.py: Package initialization file establishing the harness as a proper Python package with version control and public API definitionfinbot/aegis/harness/plugin.py: Comprehensive pytest plugin implementation featuring:@pytest.mark.attack,@pytest.mark.defense) for test categorizationfinbot/aegis/harness/benchmark.py: Performance evaluation utilities comprising:DetectorBenchmarkResultdataclass encapsulating precision, recall, F1-score, and confusion matrix metricscompute_f1()function implementing robust F1-score calculation with edge-case handlingbenchmark_detector()function providing standardized benchmarking interface for detector evaluationTechnology Stack & Architectural Decisions
Alignment with GSoC Project Objectives
This implementation directly advances the GSoC project goal of "Building a comprehensive red-team harness for FinBot's AEGIS module to enable systematic evaluation of financial crime detection systems against adversarial attacks." Specifically:
Educational Value & Best Practices Demonstrated
This implementation serves as an educational reference for:
Testing & Quality Assurance
Future Work Alignment (Week 9+)
This foundation directly supports upcoming Week 9 deliverables:
harness/scoring.py: AIVSS-aligned FinBot Security Score implementation (building on benchmark.py)Acknowledgments
Special thanks to my mentors, @mekaizen and @steadhac, for their expert guidance, insightful feedback, and unwavering support throughout this GSoC journey. Their expertise has been instrumental in shaping this implementation to meet both academic rigor and industry standards.