Prompt Injection: Direct and Indirect Attacks on Agents

· 1 min read · By the Prominent Software Lab engineering team

Prompt injection tries to make a model follow an attacker's instructions instead of yours, either typed by a user or hidden in content the agent reads.

Key points

  • Direct: a user tries to override the system instructions
  • Indirect: instructions hidden in web pages, emails or documents
  • No filter blocks every attempt, so limit what an injected agent could do
  • Separate trusted instructions from untrusted data
  • Test with a library of known and custom attacks

What to do next

List every tool and data source each agent can reach. That inventory is the starting point for deciding what to restrict and what to test.

How Prominent Software Lab helps

Our AI Agent Security Audit service gives you:

  • Threat modeling of agents, tools and data access
  • Red-team testing with realistic attacks
  • Review of permissions, secrets and approval steps
  • Guardrail and monitoring recommendations
  • Retesting after each model, prompt or tool change

Need help with AI Agent Security Audit?

Talk to a senior engineer at Prominent Software Lab. We will review your situation and suggest a practical plan, with no obligation.

See the service Book a free consultation

Related service: AI Agent Security Audit