Security Concepts · Topic 3 of 7

AI and LLM Vulnerabilities, and Phishing Controls

Learn the main vulnerabilities in AI and LLM systems, such as prompt injection and supply chain risk, and the layered controls against phishing.

  • 4 min
In a nutshell
  • Prompt injection can be direct from the user, or indirect from content the model reads.
  • Keep secrets out of a system prompt, because it can leak.
  • Vector stores need write controls and per user retrieval filtering.

What it is

This page covers weaknesses in AI language model applications, and the controls that reduce phishing and social engineering.

A large language model (LLM) generates text from the instructions it is given. Applications wrap it with a system prompt, extra data and tools, and each part can be attacked. Phishing is the older problem, and AI makes it cheaper for attackers, so the controls matter more.

User inputuntrusted textjoinsPromptsystem prompt and contextread byLLMfollows instructionsacts throughTools and datareal impact

How it works

Most LLM risks come from the model being unable to separate trusted instructions from untrusted text.

Prompt injection

Prompt injection means crafted input changes the behaviour of the model. In direct injection, the user types the malicious instruction. In indirect injection, the instruction is hidden in content the model reads, such as a web page, a document or an email.

Because the model follows text, a hidden instruction can make it ignore its rules, reveal data or call a tool. The impact grows with the permissions the model has been given.

System prompt leakage

The system prompt holds the rules and sometimes secrets, such as keys or internal logic. An attacker can try to make the model repeat it. Do not place credentials in a system prompt, and do not rely on the prompt as the only access control.

Vector and embedding weaknesses

Many applications retrieve documents by turning text into embeddings, which are number vectors, and searching a vector database. This is called retrieval augmented generation.

Weaknesses include poisoned documents added to the store, and weak access control that lets one user retrieve another user data. Embeddings can also leak information about the original text. Control who can write to the store and filter retrieval by the caller permissions.

Supply chain

An AI application depends on models, datasets, libraries and plugins from outside sources. A tampered model, a poisoned training set or a malicious package can compromise the application before it runs. Use trusted sources, verify integrity, and keep an inventory of components.

Mitigations in summary

RiskTypical control
Prompt injectionTreat all input as untrusted, filter input and output, limit tool permissions
System prompt leakageKeep secrets out of prompts, enforce rules outside the model
Vector and embedding weaknessesAccess control on the vector store, validate ingested content
Supply chainVet sources, verify integrity, track components

Human approval for sensitive actions is a useful extra control. Logging prompts and responses helps with detection.

Phishing and social engineering controls

No single control stops phishing, so layers are used. They fall into technical, process and human groups.

  • Email authentication: SPF, DKIM and DMARC help receivers detect forged sender domains.
  • Email security gateway: filters spam, malicious attachments and links, and can detonate files in a sandbox.
  • URL and web filtering: blocks known bad sites at click time and through DNS.
  • Multifactor authentication: a captured password alone does not give access.
  • Endpoint protection: stops a payload that a user opens.
  • Training and reporting: staff learn the signs and have an easy way to report mail.
  • Process controls: call back to a known number before changing payment details.

Simulated phishing campaigns measure how people respond and show who needs more training. Pair them with a simple report button, so a suspicious message reaches the security team quickly.

What to remember for the exam

Six facts cover most questions on this topic.

  • Prompt injection can be direct from the user, or indirect from content the model reads.
  • Keep secrets out of a system prompt, because it can leak.
  • Vector stores need write controls and per user retrieval filtering.
  • AI supply chain risk covers models, datasets, libraries and plugins.
  • Phishing defence is layered: email filtering, MFA, endpoint protection and training.
  • SPF, DKIM and DMARC help detect spoofed sender domains.
Exam tip

For an AI question, look for the control that limits what the model can do, such as least privilege tools, rather than only a better prompt.

Common mistakes

These four mistakes appear often.

Trusting the system prompt as a security boundary. A determined user can sometimes extract or override it, so enforce rules outside the model.

Forgetting indirect injection. The attack can sit in a document or page, not just in the chat box.

Relying on training alone. People still make mistakes, so combine training with filtering and MFA.

Giving the model broad tool access. An injected instruction then has real impact, so grant the least privilege.

Watch out

Do not assume a model hosted by a trusted vendor removes supply chain risk. The data, plugins and connectors you add are still your responsibility.

Check yourself

Work through these three questions.

  • How does indirect prompt injection differ from direct injection?

    In indirect injection the malicious instruction is hidden in content the model reads, such as a page or document, rather than typed by the user.

  • Why should secrets stay out of a system prompt?

    The system prompt can leak, so any credential in it could be exposed.

  • Which three layered controls help against phishing?

    Email filtering, multifactor authentication and user training, along with endpoint protection and sender authentication such as SPF, DKIM and DMARC.

Topic 3 of 7 in Security Concepts

Test yourself on Security Concepts

The full Cisco CCNP 350-701 SCOR question bank has 822 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.