Use case · Agent security
Agents fail through tool calls, retrieval corpora, and long-horizon plans — surfaces a prompt-only red-team can't see. MEGA fuses static OWASP review with a dual-axis Red Team / Blue Team simulation, then iterates surgical fixes until both defense and over-refusal land inside budget.
Why agents are different
Three failure modes a prompt-only test set never sees.
The optimization loop
Static review reads source; dynamic probes never do. Findings merge by severity × failure category, then every fix is Pareto-checked on both DSR (defense) and FRR (over-refusal) before it earns its keep.
Two surfaces. One priority queue.
The static review reads source; the dynamic Red Team never does. Both feed independent findings into the hardening loop, merged by severity × failure category.
Pareto every iteration. Three exits.
Every fix earns its keep on both axes — defense up AND over-refusal within budget — or it auto-reverts. The loop ends when there’s nothing surgical left, or the architecture itself needs to change.
Defense leaderboard
Validation-set DSR across frontier and small models after the hardening loop converges.
Average defense success rate
Small models with MEGA optimize beat the full frontier average.
Frontier average
Mean across all 4 frontier models
0.000
Small + MEGA optimize average
Mean across all 4 small models with mega-security:prompt-optimize
0.000