feat(airt): multi-step tool-attack search tool (Kaggle techniques) - #134
Merged
Conversation
generate_multistep_tool_attack: an algorithmic search over user-message chains that drives a tool-using HTTP agent into a replay-stable read-then-exfiltrate causal path (reads an untrusted source, then a privileged outbound action carries its contents), verified by a trace predicate. Our own implementation of the algorithmic techniques from the Kaggle 'AI Agent Security - Multi-Step Tool Attacks' competition (Kaggle x OpenAI x Google x IEEE, 2026), attributed in docstrings: replay-stable candidates + shared-prefix search (Pilkwang Kim), two-probe recovery (tetsu2131), split/multi-post exfil (JED / Nguyen Cong Tuan). Generalized to any agent/tools; runs inside an Assessment. Agent routing + tool reference updated.
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
Adds
generate_multistep_tool_attackso AIRT users (TUI/agent) can run an algorithmic multi-step tool-attack search against any HTTP agent by natural language.It searches user-message chains for a replay-stable read-then-exfiltrate causal path — the agent reads an untrusted source (
read_file/fetch_url/query_database) and then performs a privileged outbound action (fetch_url/send_email) carrying its contents — verified by a trace predicate and confirmed by a fresh replay.Our own implementation of the algorithmic techniques from the Kaggle AI Agent Security - Multi-Step Tool Attacks competition (Kaggle × OpenAI × Google × IEEE, 2026), attributed in docstrings:
We reimplement the algorithms (not the competition code) so we control the trace format and success predicate. Generalized to any agent/tools; runs inside an
Assessment. Companion cookbook notebook:agentic-red-teaming/06_multistep_tool_attacks.ipynb.Changes
scripts/attack_runner.py:generate_multistep_tool_attackemits a self-contained workflow (embeds theMultiStepToolAttacksearch + HTTP target + Assessment); registered inMETHODS.tools/attacks.py:generate_multistep_tool_attacktool wrapper (auto-registered fromtools/).agents/ai-red-teaming-agent.md: routing rule + tool reference.Validation
generate_onlyproduces a compiling, self-contained workflow targeting the givenagent_url.Test plan
generate_multistep_tool_attack(agent_url=...)in the TUI → auto-executes → assessment appears.