Research

BrowseSafe++: Benchmarking Prompt Injection Detection Across Web Contexts, Languages, and Browser Views

Yuetian Chen, Kaiyuan Zhang, Yuntao Du, Thomas Li, Mark Tenenholtz, Kyle Polley, Jerry Ma, Denis Yarats, Ninghui Li

PreprintPaper ↗Blog ↗

Browser agents need to make decisions and execute actions on behalf of users while consuming untrusted webpages, creating opportunities for malicious instructions embedded in webpages to redirect legitimate tasks. We introduce BrowseSafe++, which extends BrowseSafe from 14,719 pages to 38,675 pairs of pages. Most of its prompt injections were observed in the wild on production websites. We keep each injection unchanged and rewrite the sensitive parts of the page around it to protect privacy. Each attacked page has a clean copy of the same page as its control. Both are provided as HTML, Markdown, an accessibility tree, and a screenshot. Every pair includes a user task and its expected answer. The benchmark includes twelve types of websites, from news articles to shared documents and forums, with 24 attack types appearing in 18 different locations on a page. We use these paired pages to train BrowseSafe-Guard, two 0.8B-parameter detectors for text and screenshots. Both achieve higher F1 scores than the detector based on frontier models, while keeping false-positive rates on benign pages and inference cost low. BrowseSafe-Adapt revises benchmark injections from browser-agent feedback, and attacks that succeed on only a few percent of tasks when replayed directly reach up to 95.41

@article{chen2026browsesafe,
  title = {BrowseSafe++: Benchmarking Prompt Injection Detection Across Web Contexts, Languages, and Browser Views},
  author = {Chen, Yuetian and Zhang, Kaiyuan and Du, Yuntao and Li, Thomas and Tenenholtz, Mark and Polley, Kyle and Ma, Jerry and Yarats, Denis and Li, Ninghui},
  journal = {arXiv preprint arXiv:2610.17457},
  year = {2026},
  eprint = {2610.17457},
  archivePrefix = {arXiv},
  primaryClass = {cs.CR},
  url = {https://arxiv.org/abs/2610.17457},
  doi = {10.48550/arXiv.2610.17457}
}

RATION: Towards Quantitative Risk-Based Access Control for AI Agents

Yuntao Du, Harsh Chaudhari, Yuetian Chen, Ron Heichman, Ashish Jayamohan, Kumar Pallav, Mahim Patel, Kaiyuan Zhang, Kyle Polley, Jerry Ma, Ninghui Li

PreprintPaper ↗

AI agents increasingly interact with external environments to complete complex user tasks. These interactions can lead to unexpected behavior and expose agents to security threats such as indirect prompt injection. Current agent security systems largely protect agents by restricting their actions, which can result in a substantial security-utility trade-off for complex, open-ended tasks. To address this, we propose a quantitative risk-based approach to access control for AI agents that regulates measurable risks accumulated during task execution. As a concrete realization of this approach, we introduce RATION, a security framework that tracks measurable risks associated with agent actions and enforces quantitative constraints throughout execution. RATION first constructs a task-specific policy by combining explicit constraints derived from the user request with implicit risks calibrated from historical executions of similar tasks. During task execution, RATION continuously tracks the accumulated risks and applies different enforcement strategies depending on the type of risk. Extensive experiments on four security benchmarks show that RATION provides strong security while maintaining high task utility across diverse models and environments.

@article{du2026ration,
  title = {RATION: Towards Quantitative Risk-Based Access Control for AI Agents},
  author = {Du, Yuntao and Chaudhari, Harsh and Chen, Yuetian and Heichman, Ron and Jayamohan, Ashish and Pallav, Kumar and Patel, Mahim and Zhang, Kaiyuan and Polley, Kyle and Ma, Jerry and Li, Ninghui},
  journal = {arXiv preprint arXiv:2610.24311},
  year = {2026},
  eprint = {2610.24311},
  archivePrefix = {arXiv},
  primaryClass = {cs.CR},
  url = {https://arxiv.org/abs/2610.24311},
  doi = {10.48550/arXiv.2610.24311}
}

Membership Inference Attacks Against Fine-tuned Diffusion Language Models

Yuetian Chen, Kaiyuan Zhang, Yuntao Du, Edoardo Stoppa, Charles Fleming, Ashish Kundu, Bruno Ribeiro, Ninghui Li

ICLR 2026Paper ↗Blog →

Diffusion Language Models (DLMs) represent a promising alternative to autoregressive language models, using bidirectional masked token prediction. Yet their susceptibility to privacy leakage via Membership Inference Attacks (MIA) remains critically underexplored. This paper presents the first systematic investigation of MIA vulnerabilities in DLMs. Unlike the autoregressive models' single fixed prediction pattern, DLMs' multiple maskable configurations exponentially increase attack opportunities. This ability to probe many independent masks dramatically improves detection chances. To exploit this, we introduce SAMA (Subset-Aggregated Membership Attack), which addresses the sparse signal challenge through robust aggregation. SAMA samples masked subsets across progressive densities and applies sign-based statistics that remain effective despite heavy-tailed noise. Through inverse-weighted aggregation prioritizing sparse masks' cleaner signals, SAMA transforms sparse memorization detection into a robust voting mechanism. Experiments on nine datasets show SAMA achieves 30

@inproceedings{chen2025membership,
  title = {Membership Inference Attacks Against Fine-tuned Diffusion Language Models},
  author = {Chen, Yuetian and Zhang, Kaiyuan and Du, Yuntao and Stoppa, Edoardo and Fleming, Charles and Kundu, Ashish and Ribeiro, Bruno and Li, Ninghui},
  editor = {Vondrick, C. and Hariharan, B. and Raffel, C. and Pinto, L. and Yang, D. and Faust, A.},
  booktitle = {The Fourteenth International Conference on Learning Representations},
  year = {2026},
  pages = {63264--63295},
  url = {https://proceedings.iclr.cc/paper_files/paper/2026/hash/6737d8602f32986b9baed1df21d19377-Abstract-Conference.html}
}

Window-based Membership Inference Attacks Against Fine-tuned Large Language Models

Yuetian Chen, Yuntao Du, Kaiyuan Zhang, Ashish Kundu, Charles Fleming, Bruno Ribeiro, Ninghui Li

USENIX Security 2026Paper ↗Blog →

Most membership inference attacks (MIAs) against Large Language Models (LLMs) rely on global signals, like average loss, to identify training data. This approach, however, dilutes the subtle, localized signals of memorization, reducing attack effectiveness. We challenge this global-averaging paradigm, positing that membership signals are more pronounced within localized contexts. We introduce WBC (Window-Based Comparison), which exploits this insight through a sliding window approach with sign-based aggregation. Our method slides windows of varying sizes across text sequences, with each window casting a binary vote on membership based on loss comparisons between target and reference models. By ensembling votes across geometrically spaced window sizes, we capture memorization patterns from token-level artifacts to phrase-level structures. Extensive experiments across eleven datasets demonstrate that WBC substantially outperforms established baselines, achieving higher AUC scores and 2-3 times improvements in detection rates at low false positive thresholds. Our findings reveal that aggregating localized evidence is fundamentally more effective than global averaging, exposing critical privacy vulnerabilities in fine-tuned LLMs.

@inproceedings{chen2025window,
  title = {Window-based Membership Inference Attacks Against Fine-tuned Large Language Models},
  author = {Chen, Yuetian and Du, Yuntao and Zhang, Kaiyuan and Kundu, Ashish and Fleming, Charles and Ribeiro, Bruno and Li, Ninghui},
  booktitle = {35th USENIX Security Symposium (USENIX Security 26)},
  year = {2026},
  pages = {1187--1206},
  publisher = {USENIX Association},
  address = {Baltimore, MD},
  isbn = {978-1-939133-58-8},
  url = {https://www.usenix.org/conference/usenixsecurity26/presentation/chen-yuetian}
}

Imitative Membership Inference Attack

Yuntao Du, Yuetian Chen, Hanshen Xiao, Bruno Ribeiro, Ninghui Li

USENIX Security 2026Paper ↗

A Membership Inference Attack (MIA) assesses how much a target machine learning model reveals about its training data by determining whether specific query instances were part of the training set. State-of-the-art MIAs rely on training hundreds of shadow models that are independent of the target model, leading to significant computational overhead. In this paper, we introduce Imitative Membership Inference Attack (IMIA), which employs a novel imitative training technique to strategically construct a small number of target-informed imitative models that closely replicate the target model's behavior for inference. Extensive experimental results demonstrate that IMIA substantially outperforms existing MIAs in various attack settings while only requiring less than 5

@inproceedings{du2025imitative,
  title = {Imitative Membership Inference Attack},
  author = {Du, Yuntao and Chen, Yuetian and Xiao, Hanshen and Ribeiro, Bruno and Li, Ninghui},
  booktitle = {35th USENIX Security Symposium (USENIX Security 26)},
  year = {2026},
  pages = {1167--1186},
  publisher = {USENIX Association},
  address = {Baltimore, MD},
  isbn = {978-1-939133-58-8},
  url = {https://www.usenix.org/conference/usenixsecurity26/presentation/du}
}

Cascading and Proxy Membership Inference Attacks

Yuntao Du, Jiacheng Li, Yuetian Chen, Kaiyuan Zhang, Zhizhen Yuan, Hanshen Xiao, Bruno Ribeiro, Ninghui Li

NDSS 2026Paper ↗

A Membership Inference Attack (MIA) assesses how much a trained machine learning model reveals about its training data by determining whether specific query instances were included in the dataset. We classify existing MIAs into adaptive or non-adaptive, depending on whether the adversary is allowed to train shadow models on membership queries. In the adaptive setting, where the adversary can train shadow models after accessing query instances, we highlight the importance of exploiting membership dependencies between instances and propose an attack-agnostic framework called Cascading Membership Inference Attack (CMIA), which incorporates membership dependencies via conditional shadow training to boost membership inference performance. In the non-adaptive setting, where the adversary is restricted to training shadow models before obtaining membership queries, we introduce Proxy Membership Inference Attack (PMIA). PMIA employs a proxy selection strategy that identifies samples with similar behaviors to the query instance and uses their behaviors in shadow models to perform a membership posterior odds test for membership inference. We provide theoretical analyses for both attacks, and extensive experimental results demonstrate that CMIA and PMIA substantially outperform existing MIAs in both settings, particularly in the low false-positive regime, which is crucial for evaluating privacy risks.

@inproceedings{du2026cascading,
  title = {Cascading and Proxy Membership Inference Attacks},
  author = {Du, Yuntao and Li, Jiacheng and Chen, Yuetian and Zhang, Kaiyuan and Yuan, Zhizhen and Xiao, Hanshen and Ribeiro, Bruno and Li, Ninghui},
  booktitle = {Proceedings 2026 Network and Distributed System Security Symposium (NDSS 2026)},
  year = {2026},
  publisher = {Internet Society},
  address = {San Diego, CA, USA},
  isbn = {979-8-9919276-8-0},
  url = {https://www.ndss-symposium.org/ndss-paper/cascading-and-proxy-membership-inference-attacks/},
  doi = {10.14722/ndss.2026.230661}
}

SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attacks

Kaiyuan Zhang, Siyuan Cheng, Hanxi Guo, Yuetian Chen, Zian Su, Shengwei An, Yuntao Du, Charles Fleming, Ashish Kundu, Xiangyu Zhang, Ninghui Li

USENIX Security 2025Paper ↗

Large language models (LLMs) have achieved remarkable success and are widely adopted for diverse applications. However, fine-tuning these models often involves private or sensitive information, raising critical privacy concerns. In this work, we conduct the first comprehensive study evaluating the vulnerability of fine-tuned LLMs to membership inference attacks (MIAs). Our empirical analysis demonstrates that MIAs exploit the loss reduction during fine-tuning, making them highly effective in revealing membership information. These findings motivate the development of our defense. We propose SOFT (Selective data Obfuscation in LLM Fine-Tuning), a novel defense technique that mitigates privacy leakage by leveraging influential data selection with an adjustable parameter to balance utility preservation and privacy protection. Our extensive experiments span six diverse domains and multiple LLM architectures and scales. Results show that SOFT effectively reduces privacy risks while maintaining competitive model performance, offering a practical and scalable solution to safeguard sensitive information in fine-tuned LLMs.

@inproceedings{zhang2025soft,
  title = {SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attacks},
  author = {Zhang, Kaiyuan and Cheng, Siyuan and Guo, Hanxi and Chen, Yuetian and Su, Zian and An, Shengwei and Du, Yuntao and Fleming, Charles and Kundu, Ashish and Zhang, Xiangyu and Li, Ninghui},
  booktitle = {34th USENIX Security Symposium (USENIX Security 25)},
  year = {2025},
  pages = {8135--8154},
  publisher = {USENIX Association},
  address = {Seattle, WA},
  isbn = {978-1-939133-52-6},
  url = {https://www.usenix.org/conference/usenixsecurity25/presentation/zhang-kaiyuan}
}

Membership Inference Attacks as Privacy Tools: Reliability, Disparity and Ensemble

Zhiqi Wang, Chengyu Zhang, Yuetian Chen, Nathalie Baracaldo, Swanand R. Kadhe, Lei Yu

CCS 2025Paper ↗

Membership inference attacks (MIAs) pose a significant threat to the privacy of machine learning models and are widely used as tools for privacy assessment, auditing, and machine unlearning. While prior MIA research has primarily focused on performance metrics such as AUC, accuracy, and TPR@low FPR - either by developing new methods to enhance these metrics or using them to evaluate privacy solutions - we found that it overlooks the disparities among different attacks. These disparities, both between distinct attack methods and between multiple instantiations of the same method, have crucial implications for the reliability and completeness of MIAs as privacy evaluation tools. In this paper, we systematically investigate these disparities through a novel framework based on coverage and stability analysis. Extensive experiments reveal significant disparities in MIAs, their potential causes, and their broader implications for privacy evaluation. To address these challenges, we propose an ensemble framework with three distinct strategies to harness the strengths of state-of-the-art MIAs while accounting for their disparities. This framework not only enables the construction of more powerful attacks but also provides a more robust and comprehensive methodology for privacy evaluation.

@inproceedings{wang2025membership,
  title = {Membership Inference Attacks as Privacy Tools: Reliability, Disparity and Ensemble},
  author = {Wang, Zhiqi and Zhang, Chengyu and Chen, Yuetian and Baracaldo, Nathalie and Kadhe, Swanand R. and Yu, Lei},
  booktitle = {Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security},
  series = {CCS '25},
  year = {2025},
  pages = {1724--1738},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1145/3719027.3744818},
  doi = {10.1145/3719027.3744818}
}

Reflections & Resonance: Two-Agent Partnership for Advancing LLM-based Story Annotation

Yuetian Chen, Mei Si

LREC-COLING 2024Paper ↗

We introduce a novel multi-agent system for automating story annotation through the generation of tailored prompts for a large language model (LLM). This system utilizes two agents: Agent A is responsible for generating prompts that identify the key information necessary for reconstructing the story, while Agent B reconstructs the story from these annotations and provides feedback to refine the initial prompts. Human evaluations and perplexity scores revealed that optimized prompts significantly enhance the model's narrative reconstruction accuracy and confidence, demonstrating that dynamic interaction between agents substantially boosts the annotation process's precision and efficiency. Utilizing this innovative approach, we created the “StorySense” corpus, containing 615 stories, meticulously annotated to facilitate comprehensive story analysis. The paper also demonstrates the practical application of our annotated dataset by drawing the story arcs of two distinct stories, showcasing the utility of the annotated information in story structure analysis and understanding.

@inproceedings{chen-si-2024-reflections,
  title = {Reflections {\&} Resonance: Two-Agent Partnership for Advancing {LLM}-based Story Annotation},
  author = {Chen, Yuetian and Si, Mei},
  editor = {Calzolari, Nicoletta and Kan, Min-Yen and Hoste, Veronique and Lenci, Alessandro and Sakti, Sakriani and Xue, Nianwen},
  booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation ({LREC}-{COLING} 2024)},
  year = {2024},
  pages = {13813--13818},
  publisher = {ELRA and ICCL},
  address = {Torino, Italia},
  url = {https://aclanthology.org/2024.lrec-main.1206/}
}

Prompt to GPT-3: Step-by-Step Thinking Instructions for Humor Generation

Yuetian Chen, Bowen Shi, Mei Si

ICCC 2023Paper ↗Blog →

Artificial intelligence has made significant progress in natural language processing, with models like GPT-3 demonstrating impressive capabilities. However, these models still have limitations when it comes to complex tasks that require an understanding of the user, such as mastering human comedy writing strategies. This paper explores humor generation using GPT-3 by modeling human comedy writing theory and leveraging step-by-step thinking instructions. In addition, we explore the role of cognitive distance in creating humor.

@inproceedings{chen2023prompt,
  title = {Prompt to GPT-3: Step-by-Step Thinking Instructions for Humor Generation},
  author = {Chen, Yuetian and Shi, Bowen and Si, Mei},
  editor = {Pease, Alison and Cunha, Jo{\~a}o Miguel and Ackerman, Maya and Brown, Daniel G.},
  booktitle = {Proceedings of the 14th International Conference on Computational Creativity (ICCC'23)},
  year = {2023},
  pages = {437--441},
  publisher = {Association for Computational Creativity},
  address = {Waterloo, ON, Canada},
  isbn = {978-989-54160-5-9},
  url = {https://computationalcreativity.net/iccc23/papers/ICCC-2023_paper_129.pdf}
}

Automated Visual Story Synthesis with Character Trait Control

Yuetian Chen, Bowen Shi, Peiru Liu, Ruohua Li, Mei Si

AHFE 2023Paper ↗

Visual storytelling is an art form that has been utilized for centuries to communicate stories, convey messages, and evoke emotions. The images and text must be used in harmony to create a compelling narrative experience. With the rise of text-to-image generation models such as Stable Diffusion, it is becoming more promising to investigate methods of automatically creating illustrations for stories. However, these diffusion models are usually developed to generate a single image, resulting in a lack of consistency be- tween figures and objects across different illustrations of the same story, which is especially important in stories with human characters.This work introduces a novel technique for creating consistent human figures in visual stories. This is achieved in two steps. The first step is to collect human portraits with various identifying characteristics, such as gender and age, that describe the character. The second step is to use this collection to train DreamBooth to generate a unique token ID for each type of character. These IDs can then be used to replace the names of the story characters in the image-generation process. By combining these two steps, we can create controlled human figures for various visual storytelling contexts.

@inproceedings{chen2023automated,
  title = {Automated Visual Story Synthesis with Character Trait Control},
  author = {Chen, Yuetian and Shi, Bowen and Liu, Peiru and Li, Ruohua and Si, Mei},
  booktitle = {Artificial Intelligence and Social Computing},
  year = {2023},
  volume = {72},
  pages = {67--76},
  publisher = {AHFE Open Access},
  isbn = {978-1-958651-48-3},
  url = {https://openaccess.cms-conferences.org/publications/book/978-1-958651-48-3/article/978-1-958651-48-3_7},
  doi = {10.54941/ahfe1003275}
}

Visual Story Generation Based on Emotion and Keywords

Yuetian Chen, Ruohua Li, Bowen Shi, Peiru Liu, Mei Si

INT @ AIIDE 2022Paper ↗

Automated visual story generation aims to produce stories with corresponding illustrations that exhibit coherence, progression, and adherence to characters' emotional development. This work proposes a story generation pipeline to co-create visual stories with the users. The pipeline allows the user to control events and emotions on the generated content. The pipeline includes two parts: narrative and image generation. For narrative generation, the system generates the next sentence using user-specified keywords and emotion labels. For image generation, diffusion models are used to create a visually appealing image corresponding to each generated sentence. Further, object recognition is applied to the generated images to allow objects in these images to be mentioned in future story development.

@inproceedings{2023arXiv230102777C,
  title = {{Visual Story Generation Based on Emotion and Keywords}},
  author = {{Chen}, Yuetian and {Li}, Ruohua and {Shi}, Bowen and {Liu}, Peiru and {Si}, Mei},
  booktitle = {13th Intelligent Narrative Technologies Workshop (INT 2022), held with the Eighteenth AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment (AIIDE 2022)},
  year = {2022},
  address = {Pomona, CA, USA},
  eprint = {2301.02777},
  archivePrefix = {arXiv},
  primaryClass = {cs.AI},
  url = {https://arxiv.org/abs/2301.02777},
  doi = {10.48550/arXiv.2301.02777}
}

All publications

Writing and projects

All posts

News

  1. Jan 2026SAMA, the first MIA on diffusion language models, accepted to ICLR 2026.
  2. Dec 2025Two papers accepted to USENIX Security 2026: WBC and IMIA.
  3. Aug 2024Started my PhD in Computer Science at Purdue.
  4. May 2023Poster at the Gameful and Immersive Learning Symposium, EMPAC.
  5. May 2023Presented at the RPI Undergraduate Research Fair.