Encrypted Prompt: Securing LLM Applications Against Unauthorized Actions

Shih-Han Chan
3/29/2025
cs.CRcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Security threats like prompt injection attacks pose significant risks to applications that integrate Large Language Models (LLMs), potentially leading to unauthorized actions such as API misuse. Unlike previous approaches that aim to detect these attacks on a best-effort basis, this paper introduces a novel method that appends an Encrypted Prompt to each user prompt, embedding current permissions. These permissions are verified before executing any actions (such as API calls) generated by the LLM. If the permissions are insufficient, the LLM's actions will not be executed, ensuring safety. This approach guarantees that only actions within the scope of the current permissions from the LLM can proceed. In scenarios where adversarial prompts are introduced to mislead the LLM, this method ensures that any unauthorized actions from LLM wouldn't be executed by verifying permissions in Encrypted Prompt. Thus, threats like prompt injection attacks that trigger LLM to generate harmful actions can be effectively mitigated.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chan2025encrypted,
  title  = {Encrypted Prompt: Securing LLM Applications Against Unauthorized Actions},
  author = {Shih-Han Chan},
  year   = {2025},
  eprint = {2503.23250},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.23250v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.23250.svg)](https://codeofpaper.com/paper/2503.23250)

Discussion