David Wagner
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Research Interests
David Wagner has a total of 31 co-authors. Here are the top co-authors by number of shared publications:
- Sizhe Chen
UC Berkeley, Berkeley, California, USA and FAIR, Meta, Menlo Park, California, USA
3 shared publications - Arman Zharmagambetov
FAIR, Meta, Menlo Park, California, USA
2 shared publications - Basel Alomair
King Abdulaziz City for Science and Technology
2 shared publications - Chawin Sitawarin
University of California, Berkeley, Berkeley, USA
2 shared publications - Dennis Jacob
UC Berkeley
2 shared publications - Julien Piet
University of California, Berkeley, Berkeley, USA
2 shared publications
Latest Publications
- Open Access
- 14 November 2026
- Published by Association for Computing Machinery (ACM)
- p. 79-90
Trojan Hippo Bench: A Dynamic Benchmark for Persistent Memory Attacks and Defenses in LLM Agents
Memory systems enable otherwise-stateless LLM agents to persist user information across sessions, but also introduce a new attack surface. The Trojan Hippo attack is a class of persistent memory attacks that operates under a more realistic threat model than prior memory poisoning work. The attacker plants a dormant payload into an agent’s long-term memory via a single untrusted tool call (e.g., a crafted email), which activates only when the user later discusses sensitive topics such as finance, health, or identity, and exfiltrates high-value personal data to the attacker. While anecdotal demonstrations of such attacks have appeared against deployed systems, no prior work systematically evaluates them across heterogeneous memory architectures and defenses. We introduce Trojan Hippo Bench, a dynamic evaluation framework for persistent memory attacks and memory-layer defenses, comprising two components: (1) an OpenEvolve-based [54] adaptive red-teaming benchmark that stress-tests defenses and memory backends against continuously refined attacks, and (2) a capability-aware security–utility analysis for persistent memory systems, enabling principled reasoning about defense deployment across different usage profiles. Instantiated on an email assistant across four memory backends (explicit tool memory, agentic memory, RAG, and sliding-window context), the undefended Trojan Hippo attack achieves up to 85–100% attack success rate (ASR) against current frontier models from OpenAI and Google, with planted memories successfully activating even after 100 benign sessions. We evaluate four memory-system defenses inspired by basic security principles; they reduce attack success to as low as 0–5%, but at utility costs that vary widely with the task mix. Effective real-world deployment thus remains an open challenge that Trojan Hippo Bench is built to study; we release it to support reuse and extension.
- 14 November 2026
- Published by Association for Computing Machinery (ACM)
- p. 79-90
Open AccessTrojan Hippo Bench: A Dynamic Benchmark for Persistent Memory Attacks and Defenses in LLM Agents
Memory systems enable otherwise-stateless LLM agents to persist user information across sessions, but also introduce a new attack surface. The Trojan Hippo attack is a class of persistent memory attacks that operates under a more realistic threat model than prior memory poisoning work. The attacker plants a dormant payload into an agent’s long-term memory via a single untrusted tool call (e.g., a crafted email), which activates only when the user later discusses sensitive topics such as finance, health, or identity, and exfiltrates high-value personal data to the attacker. While anecdotal demonstrations of such attacks have appeared against deployed systems, no prior work systematically evaluates them across heterogeneous memory architectures and defenses. We introduce Trojan Hippo Bench, a dynamic evaluation framework for persistent memory attacks and memory-layer defenses, comprising two components: (1) an OpenEvolve-based [54] adaptive red-teaming benchmark that stress-tests defenses and memory backends against continuously refined attacks, and (2) a capability-aware security–utility analysis for persistent memory systems, enabling principled reasoning about defense deployment across different usage profiles. Instantiated on an email assistant across four memory backends (explicit tool memory, agentic memory, RAG, and sliding-window context), the undefended Trojan Hippo attack achieves up to 85–100% attack success rate (ASR) against current frontier models from OpenAI and Google, with planted memories successfully activating even after 100 benign sessions. We evaluate four memory-system defenses inspired by basic security principles; they reduce attack success to as low as 0–5%, but at utility costs that vary widely with the task mix. Effective real-world deployment thus remains an open challenge that Trojan Hippo Bench is built to study; we release it to support reuse and extension.
- Open Access
- 14 November 2026
- Published by Association for Computing Machinery (ACM)
- p. 198-210
Repeat-After-Me: Black-Box Adaptive Visual Prompt Injection
- 14 November 2026
- Published by Association for Computing Machinery (ACM)
- p. 198-210
Open AccessRepeat-After-Me: Black-Box Adaptive Visual Prompt Injection
- Top Cited PapersOpen Access
- 19 November 2025
- Published by Association for Computing Machinery (ACM)
- p. 2833-2847
SecAlign: Defending Against Prompt Injection with Preference Optimization
- 19 November 2025
- Published by Association for Computing Machinery (ACM)
- p. 2833-2847
Top Cited PapersOpen AccessSecAlign: Defending Against Prompt Injection with Preference Optimization
- Top Cited PapersOpen Access
- 13 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 242-252
Defending Against Prompt Injection With a Few DefensiveTokens
- 13 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 242-252
Top Cited PapersOpen AccessDefending Against Prompt Injection With a Few DefensiveTokens
- Open Access
- 13 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 230-241
JailbreaksOverTime: Detecting Jailbreak Attacks Under Distribution Shift
- 13 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 230-241
Open AccessJailbreaksOverTime: Detecting Jailbreak Attacks Under Distribution Shift
- Open Access
- 4 June 2024
- Published by Association for Computing Machinery (ACM)
- p. 341-352
PromptShield: Deployable Detection for Prompt Injection Attacks
- 4 June 2024
- Published by Association for Computing Machinery (ACM)
- p. 341-352
Open AccessPromptShield: Deployable Detection for Prompt Injection Attacks
- Top Cited PapersOpen Access
- 16 October 2023
- Published by Association for Computing Machinery (ACM)
- p. 654-668
DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection
We propose and release a new vulnerable source code dataset. We curate the dataset by crawling security issue websites, extracting vulnerability-fixing commits and source codes from the corresponding projects. Our new dataset contains 18,945 vulnerable functions spanning 150 CWEs and 330,492 non-vulnerable functions extracted from 7,514 commits. Our dataset covers 295 more projects than all previous datasets combined. Combining our new dataset with previous datasets, we present an analysis of the challenges and promising research directions of using deep learning for detecting software vulnerabilities. We study 11 model architectures belonging to 4 families. Our results show that deep learning is still not ready for vulnerability detection, due to high false positive rate, low F1 score, and difficulty of detecting hard CWEs. In particular, we demonstrate an important generalization challenge for the deployment of deep learning-based models. We show that increasing the volume of training data may not further improve the performance of deep learning models for vulnerability detection, but might be useful to improve the generalization ability to unseen projects. We also identify hopeful future research directions. We demonstrate that large language models (LLMs) are a promising research direction for ML-based vulnerability detection, outperforming Graph Neural Networks (GNNs) with code-structure features in our experiments. Moreover, developing source code specific pre-training objectives is a promising research direction to improve the vulnerability detection performance.
- 16 October 2023
- Published by Association for Computing Machinery (ACM)
- p. 654-668
Top Cited PapersOpen AccessDiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection
We propose and release a new vulnerable source code dataset. We curate the dataset by crawling security issue websites, extracting vulnerability-fixing commits and source codes from the corresponding projects. Our new dataset contains 18,945 vulnerable functions spanning 150 CWEs and 330,492 non-vulnerable functions extracted from 7,514 commits. Our dataset covers 295 more projects than all previous datasets combined. Combining our new dataset with previous datasets, we present an analysis of the challenges and promising research directions of using deep learning for detecting software vulnerabilities. We study 11 model architectures belonging to 4 families. Our results show that deep learning is still not ready for vulnerability detection, due to high false positive rate, low F1 score, and difficulty of detecting hard CWEs. In particular, we demonstrate an important generalization challenge for the deployment of deep learning-based models. We show that increasing the volume of training data may not further improve the performance of deep learning models for vulnerability detection, but might be useful to improve the generalization ability to unseen projects. We also identify hopeful future research directions. We demonstrate that large language models (LLMs) are a promising research direction for ML-based vulnerability detection, outperforming Graph Neural Networks (GNNs) with code-structure features in our experiments. Moreover, developing source code specific pre-training objectives is a promising research direction to improve the vulnerability detection performance.
- Open Access
- 10 September 2023
- Published by Association for Computing Machinery (ACM)
- p. 1-7
DeTagTive: Linking MACs to Protect Against Malicious BLE Trackers
- 10 September 2023
- Published by Association for Computing Machinery (ACM)
- p. 1-7
Open AccessDeTagTive: Linking MACs to Protect Against Malicious BLE Trackers