[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-503469-105":59,"doc-detail-503469-en":122},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":115,"head_meta":117,"extra_data":119,"updated_unix":121},105,"en","casper-prompt-sanitization-for-protecting-user-privacy-in-web-based-large-language-models","Casper - Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models","","Web-based Large Language Model services are widely used and enhanced by third-party plugins that access real-world data and functions. The privacy impact of these services and plugins remains unclear, especially when sensitive prompt content is stored, processed, and shared by cloud providers and third parties. Casper is proposed as a prompt sanitization technique that detects and removes sensitive information locally on the user device via a browser extension before prompts reach LLM services. A three-layer mechanism combines rule-based filtering, ML named entity recognition, and a local topic identifier, validated on 4000 synthesized prompts with high accuracy.",{"@graph":69,"@context":114},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/casper-prompt-sanitization-for-protecting-user-privacy-in-web-based-large-language-models/503469/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/casper-prompt-sanitization-for-protecting-user-privacy-in-web-based-large-language-models/503469.png","ImageObject",300,407,{"name":92,"@type":93},"8796093062539","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-06","2026-10-03",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108],{"name":109,"@type":110,"acceptedAnswer":111},"How is Casper evaluated and how effective is it?","Question",{"text":112,"@type":113},"Casper is evaluated on a dataset of 4000 synthesized prompts. Results show it can filter out Personal Identifiable Information (PII) with 98.5% accuracy and privacy-sensitive topics with 89.9% accuracy.","Answer","https://schema.org",{"og:url":83,"og:type":116,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":118,"canonical":83},"index,follow",{"doc_id":120,"site_id":62},503469,1791412038,{"code":4,"msg":5,"data":123},{"doc_id":120,"user_id":124,"nickname":92,"user_avatar":66,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":125,"file_id":126,"file_url":127,"file_type":128,"file_size":129,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":130,"language":131,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":132,"faqs":133,"seo_title":134,"seo_description":67,"update_tm":135,"read_time":136,"preview_page_count":19,"preview_urls":137},8796093062539,"Casper: Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models  \nChun Jie Chong  \nNew Jersey Institute of Technology Newark, New Jersey, USA [cc255@njit.edu](cc255@njit.edu)  \nChenxi Hou  \nNew Jersey Institute of Technology Newark, New Jersey, USA [ch395@njit.edu](ch395@njit.edu)  \narXiv :2408 .07004v1 [ cs .CR] 13 Aug 2024  \nZhihao (Zephyr) Yao  \nNew Jersey Institute of Technology Newark, New Jersey, USA [zhihao.yao@njit.edu](zhihao.yao@njit.edu)  \nSeyed Mohammadjavad Seyed Talebi  \nPyte Los Angeles, California, USA[mjavad@uci.edu](mjavad@uci.edu)  \nABSTRACT  \nWeb-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 thirdparty 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.  \nCCS CONCEPTS  \n• Security and privacy → Pseudonymity, anonymity and untraceability; Data anonymization and sanitization; Privacy protections.  \nKEYWORDS  \nLarge Language Model, Artificial Intelligence, Web Privacy, Named Entity Recognition, Topic Identification  \n1 INTRODUCTION  \nLarge Language Model (LLM) has been widely adopted in various online applications, such as chatbots, search engines, and translation tools. The success of LLM is a result of recent advancementsin machine learning, allowing transformer models [1] to train on a large corpus of data, measured in tens and hundreds of trillion tokens [2] . Cloud-based training and inference services have made LLM readily accessible to regular users, who can utilize the powerful language models without maintaining prohibitively expensive computational resources.  \nCloud-based LLM services offer convenience, but unfortunately, they also raise privacy concerns. As they are black-box systems, users have little control over how their prompts are processed and stored. According to their privacy policies, LLM service providers collect the prompts and share user’s inputs with third-party service providers for business-related purposes [3, 4] . We will take a closer look at the privacy policies of mainstream LLM service providers in Section 2 .1.  \nIndeed, the prompt collection is essential for improving the quality ofLLM responses. Training data for LLM models are collected from a broad range of sources to ensure the model’s generalization and flexibility. Without proper context, LLM may generate irrelevant or even nonsensical responses [5] . Using previous prompts to fine-tune and perform in-context learning improves the coherence and relevance of subsequent responses, effectively serving asa few-shot learning mechanism [2], but these features raise privacy concerns, as the refined model may leak sensitive information [6] .  \nIn addition, LLM plugins, such as online shopping portal and travel arrangement service, provide rich functionalities that allow LLM to interact with the real world, and these plugins may require users to share their inputs with third-party service providers to fulfill t","cbCaihVVvPARJ5Jc","https://ap.wps.com/l/cbCaihVVvPARJ5Jc","pdf",998357,13,"English","# Abstract\n# 1 Introduction\n## Privacy concerns in web-based LLM services\n## Prompt collection and privacy risks\n## Risks introduced by LLM plugins\n## Related work in voice assistant privacy\n## Casper system overview","[{\"question\":\"How is Casper evaluated and how effective is it?\",\"answer\":\"Casper is evaluated on a dataset of 4000 synthesized prompts. Results show it can filter out Personal Identifiable Information (PII) with 98.5% accuracy and privacy-sensitive topics with 89.9% accuracy.\"}]","Casper - Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models | PDF",1791056776,33,[138,142,146,150],{"page_no":8,"url":139,"width":140,"height":141},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/591c137744496bbf8e626cd6f944d648.webp",983,1272,{"page_no":14,"url":143,"width":144,"height":145},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5967805c8b20e2f9cec3a03938b017d2.webp",982,1270,{"page_no":81,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d56159f13ac7ac413124f574a3f65a1b.webp",981,1269,{"page_no":19,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/eddd954dd6784c279c810a37e84b24a7.webp",980,1268]