Skip to content

Add optional --defense flag (RAGDefender) - #31

Open
DenisKimskku wants to merge 1 commit into
sleeepeer:mainfrom
DenisKimskku:add-ragdefender-defense
Open

DenisKimskku wants to merge 1 commit into
sleeepeer:mainfrom
DenisKimskku:add-ragdefender-defense

Conversation

@DenisKimskku

Copy link
Copy Markdown

Adds an optional, off-by-default --defense flag (none | ragdefender) so the attack can be run against a post-retrieval defense without touching anything else: when set, the top-k contents are filtered right before wrap_prompt. run.py gets a matching 'defense' entry and log-name suffix, and the README a short section.

RAGDefender is our ACSAC 2025 defense against PoisonedRAG-style attacks (https://github.com/SecAI-Lab/RAGDefender, pip install ragdefender). It is only imported when the flag is set, so the default run is unchanged. Happy to trim this further if you prefer to keep the repo minimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant