Repository navigation
Add the adversarial test suite (roadmap 3.5) - #31
Merged
Merged
Conversation
Runs smearing, laundering, dilution and label spoofing through the real parser and scorer, offline, and pins how far each moves the score. With independent beacons the protections hold. When OTX is the only witness, three attacks work, so those are pinned as known weaknesses and filed as PDX-38 and PDX-39. Story: PDX-15 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Story: PDX-15
Adds
tests/test_adversarial.py, which runs each attack through the real OTX parser, reverse DNS check and scorer, offline, with no real lookups spent. "Guarantee" tests must keep holding. "Known weakness" tests pin attacks that work today, so a fix or a regression has to change the number on purpose. No scoring code changes.What it found
Files PDX-38 (smearing) and PDX-39 (OTX's whitelist). Not fixed here, because each fix risks the early warning or the false-positive fix behind the rule and needs a rescore first. Padding is covered under PDX-38 for now.
Tested
Limits
These are today's rules against attacks we thought of, on fixtures where other beacons are set by hand. They don't show what a real attacker can do, whether OTX would catch sock puppets, or how often this happens. The pinned numbers are exact to a small tolerance, so any legitimate scoring change will need to update them on purpose.
🤖 Generated with Claude Code