Vulnerabilities and AI security risks
Classify vulnerabilities, rank them using severity and context, and describe the new risks that AI systems introduce.
16 min
A vulnerability is a weakness. A threat exploits it. Risk is the chance and impact of that happening. Know common types:
- Software: bugs, unpatched systems, zero-day (no fix exists yet), end-of-life software, vulnerable libraries and dependencies.
- Configuration: default credentials, open ports, excessive permissions, misconfigured cloud storage.
- Hardware and firmware: outdated firmware, unsupported devices, legacy equipment.
- Memory and input flaws: buffer overflow, injection, race conditions, memory leaks.
- Virtualization and cloud: VM escape, shared-tenant risks, insecure APIs.
- Mobile: jailbreaking and rooting, sideloading, unmanaged devices.
- Supply chain: a trusted vendor or component carries the flaw.
Ranking vulnerabilities. The CVE system gives each known flaw a public ID. CVSS scores severity from 0 to 10 (Low, Medium, High, Critical). But severity alone is not priority. Factor in exploitability (is there a known exploit?), asset criticality (is it your payment server?), exposure (internet-facing?), compensating controls and business impact. A 9.8 on an isolated test box can wait longer than a 7.5 on a public web server being exploited now.
AI security risks are an addition to the objectives:
- Prompt injection: crafted input makes a model ignore its instructions or leak data. Indirect prompt injection hides the instructions in a web page or document the model reads.
- Data leakage and privacy: sensitive data pasted into a prompt, or exposed through outputs or logs. Training data can be memorized.
- Data poisoning: tampering with training or fine-tuning data so the model learns bad behavior.
- Model theft and inversion: extracting a model or reconstructing training data.
- Hallucination and unreliable output: confident but false answers. Never use unverified AI output in a security decision.
- Over-permissioned agents: an AI tool with broad access can be tricked into harmful actions.
- Shadow AI: staff using unapproved AI tools.
- AI-enabled attacks: more convincing phishing and deepfakes, faster reconnaissance.
Defenses: an acceptable-use policy for AI, data classification rules about what may enter a prompt, least privilege for AI agents, human review of important outputs, input and output filtering, logging, and vendor assessment.
Prioritize: severity plus context
Public web server
- CVSS
- 7.5
- Context
- Exploit is active in the wild
- Priority
- 1: patch now
Internal file server
- CVSS
- 9.8
- Context
- No known exploit, only reachable from one VLAN
- Priority
- 2: patch in the next window
Isolated test box
- CVSS
- 9.8
- Context
- Holds no data and is offline
- Priority
- 3: schedule
Order: known exploited and exposed first. Then critical assets. Then everything else by score.
A vulnerability scanner reports a score of 9.1 on a server. The server is not reachable from the internet, holds no sensitive data and has a compensating control that blocks the vulnerable port. A second finding scores 6.8 on an internet-facing login server for which exploit code is circulating. Which do you fix first, and why?
- 1
Compare exposure
The login server is internet-facing. The 9.1 server is not reachable.
An employee pastes a spreadsheet of customer details into a public AI chatbot to 'tidy it up'.
What is the primary risk, and the BEST control?
“A higher CVSS score always means fix it first.”
The score is the number on the report.
What is actually true
CVSS describes technical severity in general. Priority also depends on exposure, exploit availability, asset value and compensating controls.
- Weakness is the vulnerability, the exploit is the threat, and risk is likelihood times impact.
- CVE names a flaw. CVSS scores severity from 0 to 10. Priority also uses exploitability, exposure and asset value.
- AI risks: prompt injection, data leakage, poisoning, model theft, hallucination, over-permissioned agents, shadow AI.
- Defend with AI policy, data classification, least privilege, human review and logging.
Check the concepts.
A flaw for which no patch is available yet and which attackers are already using is called what?
- ALegacy
- BZero-day
- CMisconfiguration
- DEnd-of-life
An attacker hides instructions in a web page that an AI assistant is asked to summarize, causing it to reveal user data. What is this?
- ASQL injection
- BIndirect prompt injection
- CModel inversion
- DData poisoning
Which is the BEST reason to rank a vulnerability above a higher-scored one?
- AIt is on an internet-facing system with a known active exploit
- BIt was discovered later
- CIt has a shorter CVE number
- DThe vendor is well known
Tampering with the data used to train a model so that it behaves badly is called what?
- AShadow AI
- BHallucination
- CPrompt injection
- DData poisoning
Which TWO controls reduce the risk of AI data leakage?
- AGiving AI agents administrator rights
- BData classification rules about what may be entered into prompts
- CDisabling logs
- DLetting every team pick its own tools
- EApproved AI tools with DLP
Practise this lesson, not just read it
In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of CompTIA Security+ (SY0-801) is planned around your week. Free.