Cybersecurity AI: Hacking the AI Hackers via Prompt Injection

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Mayoral-Vilches, Víctor, Rynning, Per Mannermaa
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911267399139328
author Mayoral-Vilches, Víctor
Rynning, Per Mannermaa
author_facet Mayoral-Vilches, Víctor
Rynning, Per Mannermaa
contents We demonstrate how AI-powered cybersecurity tools can be turned against themselves through prompt injection attacks. Prompt injection is reminiscent of cross-site scripting (XSS): malicious text is hidden within seemingly trusted content, and when the system processes it, that text is transformed into unintended instructions. When AI agents designed to find and exploit vulnerabilities interact with malicious web servers, carefully crafted reponses can hijack their execution flow, potentially granting attackers system access. We present proof-of-concept exploits against the Cybersecurity AI (CAI) framework and its CLI tool, and detail our mitigations against such attacks in a multi-layered defense implementation. Our findings indicate that prompt injection is a recurring and systemic issue in LLM-based architectures, one that will require dedicated work to address, much as the security community has had to do with XSS in traditional web applications.
format Preprint
id arxiv_https___arxiv_org_abs_2508_21669
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Cybersecurity AI: Hacking the AI Hackers via Prompt Injection
Mayoral-Vilches, Víctor
Rynning, Per Mannermaa
Cryptography and Security
We demonstrate how AI-powered cybersecurity tools can be turned against themselves through prompt injection attacks. Prompt injection is reminiscent of cross-site scripting (XSS): malicious text is hidden within seemingly trusted content, and when the system processes it, that text is transformed into unintended instructions. When AI agents designed to find and exploit vulnerabilities interact with malicious web servers, carefully crafted reponses can hijack their execution flow, potentially granting attackers system access. We present proof-of-concept exploits against the Cybersecurity AI (CAI) framework and its CLI tool, and detail our mitigations against such attacks in a multi-layered defense implementation. Our findings indicate that prompt injection is a recurring and systemic issue in LLM-based architectures, one that will require dedicated work to address, much as the security community has had to do with XSS in traditional web applications.
title Cybersecurity AI: Hacking the AI Hackers via Prompt Injection
topic Cryptography and Security
url https://arxiv.org/abs/2508.21669