feat(testing): add adversarial testing module for mofa-testing (#1459)#1551
Open
iashutoshyadav wants to merge 1 commit intomofa-org:mainfrom
Open
feat(testing): add adversarial testing module for mofa-testing (#1459)#1551iashutoshyadav wants to merge 1 commit intomofa-org:mainfrom
iashutoshyadav wants to merge 1 commit intomofa-org:mainfrom
Conversation
Contributor
|
You do not need to create mofa testing inside crates there is an existing foundation in the tests directory in root for this , i suggest you check it out first |
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.
Summary
This PR introduces a foundational Adversarial Testing Module in
mofa-testingto enable systematic security and robustness evaluation of AI agents.It provides a modular framework to simulate adversarial scenarios aligned with OWASP LLM Top 10 risks.
Key Features
1. Adversarial Testing Framework
Added a new
adversarialmodule with structured components:category.rs– Defines adversarial categoriescorpus.rs– Contains adversarial test datasetsevaluator.rs– Implements evaluation logicreport.rs– Generates structured reportstests.rs– Includes unit tests2. Modular & Extensible Design
3. Integration
lib.rsCargo.tomlTesting
tests.rsMotivation
Current
mofa-testingfocuses on functional correctness but lacks mechanisms for security validation.This module lays the groundwork for:
Scope
This PR implements only the foundational layer.
Advanced evaluators and comprehensive OWASP coverage will be added in future PRs.
Related Issue
Closes #1459