paper-with-me

Papers

Prompt Obfuscation for Large Language Models

2024-09-17 · David Pape, Sina Mavali, Thorsten Eisenhofer, Lea Schönherr

System prompts that include detailed instructions to describe the task performed by the underlying LLM can easily transform foundation models into tools and services with minimal overhead. Because of their crucial impact on the utility, they are often considered intellectual property, similar to the code of a software product. However, extracting system prompts is easily possible. As of today, there is no effective countermeasure to prevent the stealing of system prompts and all safeguarding efforts could be evaded. In this work, we propose an alternative to conventional system prompts. We introduce prompt obfuscation to prevent the extraction of the system prompt with only little overhead. The core idea is to find a representation of the original system prompt that leads to the same functionality, while the obfuscated system prompt does not contain any information that allows conclusions to be drawn about the original system prompt. We evaluate our approach by comparing our obfuscated prompt output with the output of the original prompt, using eight distinct metrics, to measure the lexical, character-level, and semantic similarity. We show that the obfuscated version is constantly on par with the original one. We further perform three different deobfuscation attacks with varying attacker knowledge--covering both black-box and white-box conditions--and show that in realistic attack scenarios an attacker is not able to extract meaningful information. Overall, we demonstrate that prompt obfuscation is an effective mechanism to safeguard the intellectual property of a system prompt while maintaining the same utility as the original prompt.

📄 PDF Abstract BibTeX arXiv:2409.11026

Code (0)

등록된 구현이 없습니다.

Tasks

Large Language ModelSemantic SimilaritySemantic Textual Similarity

Similar Papers 제목 키워드 기반

Analyzing Chain of Thought (CoT) Approaches in Control Flow Code Deobfuscation Tasks

2026-04-16 · Seyedreza Mohseni, Sarvesh Baskar, Edward Raff, Manas Gaur arxiv

Code deobfuscation is the task of recovering a readable version of a program while preserving its original behavior. In practice, this often requires days or even months of manual work with complex and expensive analysis…

Personalized Author Obfuscation with Large Language Models

2025-05-17 · Mohammad Shokri, Sarah Ita Levitan, Rivka Levitan

In this paper, we investigate the efficacy of large language models (LLMs) in obfuscating authorship by paraphrasing and altering writing styles. Rather than adopting a holistic approach that evaluates performance across…

LLM Security and Safety: Insights from Homotopy-Inspired Prompt Obfuscation

2026-01-20 · Luis Lazo, Hamed Jelodar, Roozbeh Razavi-Far arxiv

In this study, we propose a homotopy-inspired prompt obfuscation framework to enhance understanding of security and safety vulnerabilities in Large Language Models (LLMs). By systematically applying carefully engineered …

Code Generation

EmojiPrompt: Generative Prompt Obfuscation for Privacy-Preserving Communication with Cloud-based LLMs

2024-02-08 · Sam Lin, Wenyue Hua, Zhenting Wang, Mingyu Jin 외

Cloud-based Large Language Models (LLMs) such as ChatGPT have become increasingly integral to daily operations. Nevertheless, they also introduce privacy concerns: firstly, numerous studies underscore the risks to user p…

Privacy PreservingSentiment Analysis

PromptPET: Privacy-Utility Optimized Prompt Obfuscation

2026-07-03 · Ke Yang, Olivia Figueira, Umar Iqbal, Athina Markopoulou arxiv

Privacy is an important challenge when users interact with AI chatbots, since users may share sensitive information, explicitly or implicitly, and AI chatbots can use this information for user profiling. In this paper, w…