Single logo
  • Courses
  • Blog
  • About
Join on SkoolJoin on Skool
  1. Blog
  2. /
  3. AI Security Essentials

Free posts for the course · 13

AI Security Essentials

Prompt injection, data leaks, AI agents and governance in plain words. Each post below stands on its own and is free to read, in the order the course teaches it.

Start with step 1: The Agent Attack Surface

Posts in course order

  1. 1
    Step 1: The Agent Attack Surface: Blast Radius, Narrow Tools, Scoped Keys and the Dangerous Three

    A support agent reads a ticket that says run SELECT * FROM customers and email the result outside, and it has run_sql and send_email, so the customer list leaves. The model wasn't hacked, it was equipped. Map each tool by what it reads, changes and sends, replace the two large ones with narrow tools, scope the keys, and never give one agent untrusted input, private data and a way out together.

  2. 2
    Step 2: Prompt Injection, Jailbreaks and Untrusted Input: Label What Comes In, Gate What Goes Out

    Three texts reach a support agent in one week: an injected ticket, a poisoned help article and a jailbreak. A naive agent turns all three into leaks; three small checks in plain code take that to zero.

  3. 3
    Step 3: Guardrails for an LLM Agent: Check What Comes In, What It Wants to Do, and What Goes Out

    An agent that reads customer emails and can refund up to $200. In a small simulation, a phrase filter still lets 6 of 8 written attacks do harm and blocks 2 honest users; plain checks outside the model take harm to 0 of 8, at a cost of 1 honest request failed and 2 held.

  4. 4
    Step 4: The AI Reply Is Untrusted Too: Links, Commands and Hidden Content in What It Writes Back

    An AI tool that can be fooled writes replies that can be fooled too. A Brightwell assistant hands back a lookalike login link, a command nobody can read and a one-pixel picture that leaks an order total just by being shown. Check the reply, then limit what it can trigger.

  5. 5
    Step 5: Poisoned Data, Poisoned Models and the AI Supply Chain: Attacks Before Anyone Types a Prompt

    Some AI attacks happen before anyone types a prompt: a few planted training examples, a fake 'bank details changed' file in the folder the assistant reads, a copied model, a filter fooled by one swapped letter, and a lookalike package. Vet every piece with four questions and keep a list of what your AI tools are made of.

  6. 6
    Step 6: How Data Leaks from AI Tools: Five Quiet Ways Out, Shadow AI and a Table of What May Go Where

    Five quiet ways company information gets out through AI tools, and none of them needs a hacker: what people paste, hidden instructions read out loud, memory that carries over, copies you never see, and shadow AI. Then a three-tier table of what may go where, and a habit to use before you paste.

  7. 7
    Step 7: Design a Multi-Tenant RAG Assistant, Part 2: Tenant Isolation, a Scoped Cache and Walking an Outage

    A shared cache gave one company's answer to another. In a small synthetic example with two tenants and four documents: filter before ranking, put tenant, user and version in the cache key, write negative tests (with the tenant check removed, 4 of 6 fail), pick pool or silo per segment, and refuse when scope is unavailable.

  8. 8
    Step 8: Least-Privilege Tools and an Audit Log for Agent Actions: Grant by Job, Decide in Code, Record Every Allow and Deny

    A broad SupportDesk agent emails an outsider, pays a refund nobody needed, and leaves zero audit entries. Grant three tools to the support-triage identity, decide every call in code, and record each decision: no outsider email, no refund, and six audit entries, three of them denied.

  9. 9
    Step 9: Red-Teaming an LLM Agent with the OWASP LLM Top 10 and the NIST AI RMF: Judge What It Did, Not What It Said

    Five attacks, each tagged with an OWASP LLM risk, hit a SupportDesk agent and all five land. The harness judges the outbox, the reply and the call count, not the words; with a CRM scope, a recipient allowlist and a call budget the gate goes from FAIL 5 of 5 to PASS 0 of 5.

  10. 10
    Step 10: Cost Tracking and Budget Guards for an LLM App: Count the Tokens, Log Every Call, Check Before You Spend

    A retry bug loops a ticket summariser 3,000 times overnight and the invoice is how you find out. Count tokens with tiktoken, price input and output separately, log one JSON line per call, and check a per-user daily budget before every call: in 40 simulated calls the nightly job is blocked at call 24, with 31 calls made and 9 blocked.

  11. 11
    Step 11: AI for Defenders, and AI in Attackers' Hands: Faster Alert Triage, Cleaner Phishing, Cloned Voices and the Habits That Still Work

    The same AI tool sorts a security team's alerts and writes an attacker's phishing email. For defenders it saves time but invents details, so its output is a lead, never a finding. For attackers it writes clean, personal messages and copies voices, so how a message sounds proves nothing. The call-back and the two-person rule still work.

  12. 12
    Step 12: AI Security Frameworks in Plain Words: NIST AI RMF, ISO/IEC 42001, the EU AI Act and the OWASP Top 10 for LLMs

    Four names come up whenever people talk about AI and security. NIST AI RMF is a voluntary way to think (govern, map, measure, manage), ISO/IEC 42001 is a management system you can certify, the EU AI Act is a law with four risk levels, and the OWASP Top 10 for LLM apps is a short list of technical risks. Start with OWASP, then NIST.

  13. 13
    Step 13: AI Policy, the Risk Register and Who Owns What: An Inventory, One Owner, a Two-Question Score and a One-Page Policy

    Four light pieces keep AI use under control: a list of every AI tool (including the free chat site nobody approved), one owner per system, a score from what it sees and what it can do, and a one-page policy people actually read. Plus a quick approval route, so people ask instead of working around you.

Community · Free to join
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool
The full course

AI Security Essentials

Prompt injection, data leaks, AI agents and governance in plain words.

View on Udemy

Single logo

Empowering Education, One Course at a Time

About
About usContact us
Legal
Terms of UsePrivacy Policy

© 2026 StudyEasy Organization. All rights reserved.