Hmmnm — Security Learning

AI Agent & LLM Security Checklist

10 defense areas · 90 free items · deeper editions by email

✓ Basic free · Intermediate by email · Advanced paid

You will be able to:

Threat model an AI feature before shipping it
Understand prompt injection and why it cannot be fully patched
Contain what an LLM can do when it goes rogue
Secure RAG pipelines and agent tool use
Decide when a human must approve an AI action
Handle model outputs as untrusted input everywhere
Protect data flowing to and from AI providers
Monitor AI systems for abuse in production

What's inside:

01 Thesis: Threat Model the AI Surface
02 Defend Against Prompt Injection
03 Treat Model Output as Hostile Input
04 Secure the RAG Pipeline
05 Guardrail Agent Tools and Functions
06 Constrain Agent Autonomy
07 Manage Model and Provider Risk
08 Protect Data Privacy in AI Flows
09 Monitor and Detect AI Abuse
10 Secure the AI Supply Chain
10sections
90items free on page
+20by email
+20in paid edition
5min per section
Who is this for: Developers · startup founders · IT admins · students · anyone who owns a web application
Prerequisites: Basic understanding of how websites work. No security background needed.
01

Thesis: Threat Model the AI Surface

Shipping an AI feature because "the model is smart" without mapping its actions
You should be able to state every action your AI can take and its worst-case blast radius
02

Defend Against Prompt Injection

Believing a better system prompt makes prompt injection go away
A malicious document fed to your RAG chat should not change the assistant behavior
03

Treat Model Output as Hostile Input

Rendering model output as trusted HTML in your app
A model asked to summarize a hostile page must not produce working XSS in your UI
04

Secure the RAG Pipeline

Ingesting everything into one vector store and hoping the prompt filters access
A user asking about another tenant data must get nothing — verify with two test tenants
05

Guardrail Agent Tools and Functions

Giving the agent one powerful API key "so it can do everything"
A fully manipulated agent must still be unable to spend money or email your users
06

Constrain Agent Autonomy

Letting an autonomous agent execute payments or deletions unattended
Turn off every guardrail in testing and prove the damage ceiling is still acceptable
07

Manage Model and Provider Risk

Hardcoding one provider key in the client and calling it an MVP
Your notes must state provider, model version, data policy, and monthly spend cap
08

Protect Data Privacy in AI Flows

Pasting customer data into a chat product with unknown retention
A deletion request must provably remove data from every AI store, including embeddings
09

Monitor and Detect AI Abuse

No logs, no alerts — learning about AI abuse from Twitter
You should be able to disable any AI feature globally within minutes
10

Secure the AI Supply Chain

Loading a random .bin/.pkl from a file-sharing link into your runtime
Every model file in production must trace to a verified source and checksum

Quick Reference

AI Attack Surface Map

HeaderExamplePrevents
Direct injectionuser crafts promptData theft, misuse
Indirect injectionhostile retrieved contentAgent hijack
RAG poisoningcorrupted ingestionPersistent lies
Tool abuseover-privileged functionsReal-world damage
Output XSS/SQLiunescaped model textClassic exploits
Data leakageprompts to providersCompliance breach
Supply chainmodels, SDKs, weightsCode execution

Verification Commands

$ pip audit && npm audit
$ python -m garak --model_type openai --probes promptinject
$ promptfoo eval -c redteam.yaml
$ curl -s https://yourapp.com/api/chat -d '{"msg":"ignore previous instructions"}'
$ docker run --rm -it --network none sandbox:latest

Severity Guide

CRITICAL Agent performs attacker actions, mass data theft
HIGH Cross-tenant RAG leak, injection to tool chain
MEDIUM Injection contained but outputs unvalidated
LOW Model version drift, verbose AI errors

Free Tools

  • OWASP LLM Top 10
  • Garak (LLM fuzzer)
  • PyRIT
  • promptfoo
  • Burp Suite (AI features)
  • Langfuse

Learn More

  • OWASP LLM Top 10
  • OWASP Agentic Security
  • NIST AI RMF
  • MITRE ATLAS
  • Hmmnm AI security services
  • Hmmnm blog (328+)

Hmmnm — research-first security, published openly.

Learn more at hmmnm.com/services · Get tested: hmmnm.com/contact