paper-with-me

홈 › Papers

Casper: Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models

2024-08-13 · Chun Jie Chong, Chenxi Hou, Zhihao Yao, Seyed Mohammadjavad Seyed Talebi

Web-based Large Language Model (LLM) services have been widely adopted and have become an integral part of our Internet experience. Third-party plugins enhance the functionalities of LLM by enabling access to real-world data and services. However, the privacy consequences associated with these services and their third-party plugins are not well understood. Sensitive prompt data are stored, processed, and shared by cloud-based LLM providers and third-party plugins. In this paper, we propose Casper, a prompt sanitization technique that aims to protect user privacy by detecting and removing sensitive information from user inputs before sending them to LLM services. Casper runs entirely on the user's device as a browser extension and does not require any changes to the online LLM services. At the core of Casper is a three-layered sanitization mechanism consisting of a rule-based filter, a Machine Learning (ML)-based named entity recognizer, and a browser-based local LLM topic identifier. We evaluate Casper on a dataset of 4000 synthesized prompts and show that it can effectively filter out Personal Identifiable Information (PII) and privacy-sensitive topics with high accuracy, at 98.5% and 89.9%, respectively.

📄 PDF Abstract BibTeX arXiv:2408.07004

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModellingLarge Language Model

Similar Papers 제목 키워드 기반

PromptGraph: Graph-Guided Prompt Sanitization for Balancing Privacy and Utility in LLM Inference

2026-07-12 · Chen Gu, Hui Wan, Donghui Hu, Hui Wang 외 arxiv

Large Language Model (LLM) services introduce a fundamental privacy challenge. Sensitive information may be inferred not only from explicit identifiers, such as names or phone numbers, but also from contextual associatio…

Preempting Text Sanitization Utility in Resource-Constrained Privacy-Preserving LLM Interactions

2024-11-18 · Robin Carpentier, Benjamin Zi Hao Zhao, Hassan Jameel Asghar, Dali Kaafar

Interactions with online Large Language Models raise privacy issues where providers can gather sensitive information about users and their companies from the prompts. While textual prompts can be sanitized using Differen…

Language ModelingLanguage ModellingPrivacy PreservingSmall Language Model

Text Sanitization Beyond Specific Domains: Zero-Shot Redaction & Substitution with Large Language Models

2023-11-16 · Federico Albanese, Daniel Ciolek, Nicolas D'Ippolito

In the context of information systems, text sanitization techniques are used to identify and remove sensitive data to comply with security and regulatory requirements. Even though many methods for privacy preservation ha…

Learning to Collaborate for User-Controlled Privacy

2018-05-18 · Martin Bertran, Natalia Martinez, Afroditi Papadaki, Qiang Qiu 외

It is becoming increasingly clear that users should own and control their data. Utility providers are also becoming more interested in guaranteeing data privacy. As such, users and utility providers should collaborate in…

One Size Fits All? A Modular Adaptive Sanitization Kit (MASK) for Customizable Privacy-Preserving Phone Scam Detection

2025-10-21 · Kangzhong Wang, Zitong Shen, Youqian Zhang, Michael MK Cheung 외 arxiv

Phone scams remain a pervasive threat to both personal safety and financial security worldwide. Recent advances in large language models (LLMs) have demonstrated strong potential in detecting fraudulent behavior by analy…