Prompt injection has emerged as a serious security threat to large language models (LLMs). At present, the current best-practice for defending against newly-discovered prompt injection techniques is to add additional guardrails to the system (e.g., by updating the system prompt or using classifiers on the input and/or output of the model.) However, in the same way that variants of a piece of malware are created to evade anti-virus software, variants of a prompt injection can be created to evade the LLM's guardrails. Ideally, when a new prompt injection technique is discovered, candidate defenses should be tested not only against the successful prompt injection, but also against possible variants.
In this work, we present, a tool to assist defenders in performing automated variant analysis of known prompt injection attacks. This involves solving two main challenges: (1) automatically generating variants of a given prompt according, and (2) automatically determining whether a variant was effective based only on the output of the model. This tool can also assist in generating datasets for jailbreak and prompt injection attacks, thus overcoming the scarcity of data in this domain.
We evaluate Maatphor on three different types of prompt injection tasks. Starting from an ineffective (0%) seed prompt, Maatphor consistently generates variants that are at least 60% effective within the first 40 iterations.
Automated Vulnerability Injection in Smart Contracts Using Large Language Models
Università degli Studi di Napoli Federico II(那不勒斯费德里科二世大学);Gran Sasso Science Institute (GSSI)(格兰萨索科学研究所);University of Coimbra(科英布拉大学);College of Computing and Informatics, University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校计算与信息学院)
Automating Agent Hijacking via Structural Template Injection
Tsinghua University \& Ant Group Hangzhou China;Tsinghua University Beijing China;Zhongguancuan Laboratory Beijing China;Tsinghua University \& Ant Group;Tsinghua University;Zhongguancuan Laboratory
IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection
Jheronimus Academy of Data Science(Jheronimus数据科学学院);Tilburg University(蒂尔堡大学);Eindhoven University of Technology(埃因霍温理工大学);University of Sannio(萨诺尼大学)
Decoupling Reconnaissance and Exploitation: Measuring the Capability Boundaries of LLM-Based Web Penetration Testing
University of Science and Technology of China(中国科学技术大学);Suzhou Institute for Advanced Research, University of Science and Technology of China(中国科学技术大学苏州先进研究院);Nanjing University of Science and Technology(南京理工大学);Research Institute, Runjian Co., Ltd(润杰有限公司研究院)
Deep Expert Injection for Anchoring Retinal VLMs with Domain-Specific Knowledge
Beijing Institute of Technology, Beijing, China(北京理工大学);National University of Singapore, Singapore(新加坡国立大学);Tsinghua University, Beijing, China(清华大学);The Hong Kong Polytechnic University, Hong Kong(香港理工大学)
Evaluating LLMs on Sequential API Call Through Automated Test Generation
The University of Tokyo(东京大学);Macau University of Science and Technology(澳门科技大学);Shandong University(山东大学);Hong Kong University of Science and Technology(香港科技大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Alberta(阿尔伯塔大学)
Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection
Beijing Jiaotong University(北京交通大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);INRIA Rennes-Bretagne-Atlantique(法国国家信息与自动化研究所雷恩-布列塔尼-大西洋分所);Xi’an Jiaotong University(西安交通大学)
Misleading Large Language Models used (or misused) in Scientific Peer-Reviewing via Hidden Prompt-Injection Attacks
University of Padua(帕多瓦大学);Fondazione Bruno Kessler(布鲁诺·凯斯勒基金会);Örebro University(厄勒布鲁大学);Reykjavik University(雷克雅未克大学);University of Liechtenstein(列支敦士登大学)
Claudini: Autoresearch Discovers State-of-the-Art Adversarial Attack Algorithms for LLMs
MATS ELLIS Institute(MATS ELLIS研究所);Max Planck Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);Tübingen AI Center(图宾根人工智能中心);Imperial College London(伦敦帝国理工学院)
Automated Exploit and Security Test Generation: A Systematic Literature Review
Hamburg University of Technology(汉堡工业大学);University of Trento(特伦托大学);University of Szeged(塞格德大学);University of Salerno(萨莱诺大学);FrontEndART Ltd.(FrontEndART有限公司);Vrije Universitiet Amsterdam(阿姆斯特丹自由大学)