top of page

Security by design for AI-powered applications

Red padlock on a computer keyboard

MeritBey Team

16 Sept 2025

New risks to plan for when your software includes large language models

Applications built on large language models face familiar security risks plus some new ones. Treating AI features like any other source of untrusted input is a good starting point.


Risks to plan for


  • Prompt injection, where text in a document, email or web page tries to override the system's instructions.

  • Data leakage through answers that reveal information a user shouldn't see.

  • Excessive permissions that let an AI feature take harmful actions.

  • Unsafe handling of model output, such as running generated code without checks.


Practical safeguards


  • Enforce access controls in your systems, not in the prompt.

  • Limit the tools and data each AI feature can reach.

  • Require human approval for sensitive actions.

  • Validate model output before using it.

  • Monitor and log usage for unusual patterns.


Test like an attacker


Include AI-specific scenarios in security testing, such as malicious documents and attempts to extract hidden instructions. Repeat the tests whenever models or prompts change.


Follow emerging guidance


Industry groups such as OWASP publish guidance on common risks for LLM applications. Use it as a checklist during design and review.


Talk to us about building AI features securely.

bottom of page