All work

Case studyAI companiesLLM application testing

Making sure the assistant couldn’t be talked into leaking data.

The assistant could read help articles and each customer’s tickets. The team wanted to know what an attacker could make it do before launch.

  • illustrative example
  • ten days, with a rerun after fixes
AI security test log

The situation

An AI startup adding a support assistant to its customer portal. The assistant used retrieval over help articles and the signed-in customer’s tickets, and could create new tickets on the customer’s behalf.

The team had tested that answers were helpful, but not what happened when someone tried to misuse it.

Before

An assistant with access to customer tickets and no testing beyond normal QA.

After

Prompt injection limited by design, other customers’ data unreachable and a test set the team reruns on every release.

What we did

  1. 1
    Map what it can reach

    We listed every data source, tool and permission the assistant used, and whose permissions each one ran with.

  2. 2
    Direct and indirect injection

    We tried to override its instructions directly, and through text planted in tickets and help articles it would later read.

  3. 3
    Data access

    We tested whether the assistant could be steered into revealing system instructions or another customer’s tickets.

  4. 4
    Rerun after fixes

    The team received every test prompt, so fixes could be checked and the tests rerun on future releases.

What we found

  • Instructions hidden in a ticket could make the assistant create tickets with attacker-chosen content.
  • Ticket search ran with a service account, so a crafted request could return another customer’s ticket titles.
  • The system instructions could be extracted with a few attempts.

What changed

  • Ticket search now runs with the signed-in customer’s own permissions, so other customers’ data is unreachable.
  • Creating a ticket now needs the customer to confirm it.
  • The 120 test prompts became part of the release checklist.

What the team received

  • A security test of the agreed AI feature and its data sources
  • A report with severity, evidence, business impact and fix guidance for each finding
  • A walkthrough call with your developers
  • One retest of fixed findings and an updated report you can share with customers

Timeline: Ten days, with a rerun after fixes.

You can’t make a model immune to prompt injection. You can limit what a successful attack is able to reach and do.

More work