Skip to content
Plaintext Cybersecurity·Indexed by this site · Originally published· Attacks →SelectedAttention40

Hacking back at AI penetration testing agents

Hacking Back AI Pentesting Agents

AI summary

A security researcher used indirect prompt injection to induce an AI penetration testing agent to execute a backdoored credman binary on the machine running the agent, thereby gaining RCE; all 6 penetration testing agents tested executed the implanted program. The technique placed the binary, an encrypted vault and an instruction file in a hidden directory pointed to by robots.txt, using content such as hash verification, an internal repository address and a vault seed to make running the binary look like the natural next step. Of 12 command-line models, 8 executed the implanted program, and 2 of the penetration testing agents also exposed the operator's AI token. The author notes that agents that execute commands in an isolated sandbox can confine RCE to the session, whereas ARTEX and PentestAgent execute commands in the same container as the agent by default. He also released the Moqesh project, which uses the ideas of HoneyAI and TokenExhaust to trap attacking agents and consume their tokens.

Why it was selected

The authors tested the same set of indirect prompt injection payloads on 12 models and 6 penetration testing agents, and compared the differences in results between sandbox isolation and execution in the same container, which can serve as a reference when evaluating agent execution environments.

Read originalplaintext.do