LogicTrail
  • Trails
  • Check my app
  • Pricing
  • Sign in
  1. Trails
  2. /
  3. Working with your AI agent
  4. · 5 minutes · Pro

The ticket that gave orders

Your is connected to your database so it can triage support tickets. One ticket is not quite a question.

This answers: What is prompt injection in AI coding agents? No coding needed. 2 quick decisions.

  • Supervising your AI
  • Keys and secrets
  • Who may see what

Checking your access…

What is prompt injection in AI coding agents?

is when text the AI reads, such as a support ticket, email or web page, contains instructions the AI then follows as if they came from you. If the agent can read private data and send messages, it can leak that data. Limit its access with permissions, not prompts.

Trail of the bug
  1. Stranger
  2. AI agent
  3. Database

Breaks at AI agent: Ticket text obeyed as orders

Why AI tools write this bug

Agents are often connected to databases with admin keys for convenience, then pointed at user-submitted content to triage or summarise.

How to fix it

  1. Give agents read-only access to only the data they need.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock

Common questions

Can I fix prompt injection with a better system prompt?
Not reliably. Prompts reduce it; only removing access or the ability to send data out prevents the leak.

Related scenarios

  • The agent that reset productionFree · 5 min
  • The table anyone can readPro · 5 min
  • Day 31: permission deniedPro · 4 min

More on this trail

Working with your AI agent: Dangerous commands, fix loops, deleted tests, prompt injection and invented packages.

Want someone to look?

We check AI-built apps for this and three other common leaks, in plain English.

Check my app
Sign in

Sign in to walk this one

2 decisions, about 5 minutes, and a prompt to check your own app for the same problem.

Sign in No password. We email you a link.

How to fix it

  1. Give agents read-only access to only the data they need.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock