Good Papers

Know Your Agent: Reconnaissance-Driven Pentesting of AI Agents

Know Your Agent automates black-box reconnaissance-driven pentesting of AI agents by profiling targets to craft stronger indirect prompt injection attacks. Evaluations on benchmarks and a real-world coding agent demonstrate improved attack leverage.

Published Jul 22, 2026▲ 1 on Hugging Face

83%
OverallMust read
?
OverallMust readVote to see the score
Readers
–

Only vote on papers you've read. Sign in to vote.

AI panel11/20reviewers recommend it
lenient 5/5
medium 6/10
strict 0/5
AI panel?Vote to see what the 20 AI reviewers said

Abstract

Traditional pentesting uses reconnaissance at each step to uncover unseen weaknesses, build stronger attacks, and advance the objective; we argue that AI agents require the same treatment. We formalize agent reconnaissance by modeling the process and identifying the knowledge assets it seeks to extract: what they are, how they are used, and which agent weaknesses they exploit to give adversaries leverage in indirect prompt injection attacks. We instantiate these insights in Know Your Agent (KYA), a framework that automates black-box, reconnaissance-driven pentesting by probing agents, building target profiles, and using those profiles to craft stronger attacks. We evaluate KYA on agent-security benchmarks and a real-world coding agent, and release KYA, its benchmarks, and baseline implementations for reproducibility.

Are you an author?

Good Papers badgeAuthor of this paper? Add this badge to your README or page
[![Good Papers](https://www.goodpapers.org/badge/W7170178200.svg)](https://www.goodpapers.org/paper/W7170178200)