← All lessons
Threats · Beginner · 4 min
AI & security
Deepfakes, prompt injection and AI-powered defence.
What it is
AI cuts both ways. Attackers use it to write convincing phishing in any language, clone voices and faces for fraud, and speed up finding bugs. AI systems also bring new weaknesses: prompt injection hides instructions in content an AI reads so it does something its user didn't intend, and AI agents with access to tools can be tricked into leaking data. Defenders use AI to sort alerts, analyse malware and spot anomalies faster.
How defenders stop it
- Verify payment requests out-of-band, even on video
- Treat anything an AI reads (web pages, emails, files) as untrusted
- Give AI agents the least access they need and require approval for risky actions
- Follow the OWASP Top 10 for LLM applications
Check yourself
1. What is prompt injection?
- Typing very long prompts
- Hiding instructions in content an AI processes to hijack its behaviour
- Injecting SQL into a chatbot
- Training an AI on bad data
Show answer
Hiding instructions in content an AI processes to hijack its behaviour. The AI can't reliably tell its user's instructions from text it's reading.
2. Your boss appears on a video call asking for an urgent payment. What's the safe move?
- Reply in the call's chat
- Verify through a separate channel you already trust
- Ask them to switch the camera on
- Pay: you can see their face
Show answer
Verify through a separate channel you already trust. Faces and voices can be cloned. Check payment requests out-of-band, even on video.
3. Why should an AI agent get only the access it needs?
- It saves on licence costs
- It makes the agent faster
- AI can't use permissions anyway
- If prompt injection tricks it, the damage it can do is limited
Show answer
If prompt injection tricks it, the damage it can do is limited. Agents can be tricked by instructions hidden in what they read. Least access, plus approval for risky actions, limits the harm.
Answer them in the app to earn XP.
Next: Cloud security →