alfredang

AISecurity — Data skill for Claude Code

Data community

Five hands-on browser labs on AI agent risks: prompt injection, jailbreak, data leakage, shadow AI, bias and blame.

How to install AISecurity

This entry records only its repository, not the path inside it, so there is no exact command to give. Open alfredang/AISecurity and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AISecurity does

Five hands-on browser labs on AI agent risks: prompt injection, jailbreak, data leakage, shadow AI, bias and blame. Attack the agent, then switch on the defences. Runs on OpenAI, MiniMax, Claude or Gemini with your own key, or in demo mode.

Alternatives in Data

  • Private GPT — Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more 57.5k ★
  • LLM Redteam — LLM red-team corpus runner — fires categorized prompt-injection / jailbreak / system-prompt-leak / data-exfil 4.5k ★
  • Claude Deep Research Skill — Enterprise-grade deep research skill for Claude Code with 8-phase pipeline, source credibility scoring, and au 1k ★

README

AI Agent Security Lab

Attack the agent, then switch on the defences. Five hands-on browser labs on the risks that come with AI agents (prompt injection, jailbreak, data leakage, shadow AI, bias and blame), set at Meridian Services, a fictitious property-services company.

Live Demo

**https://alfredang.github.io/AISecurity/**

![AI Agent Security Lab — home screen](screenshot.png)

The labs

Learners attack the agent first, then turn on one defence at a time and see which one actually stops the damage.

Lab The attack The defence that holds
1 Prompt injection Instructions hidden in an email the triage agent reads Permission control and human approval, checked in code
2 Jailbreak Role-play, "test mode", step-by-step pressure, fake authority in the chat A hard refund cap and an output check, outside the model
3 Data leakage A coordinator pastes a ticket with an NRIC and phone number into an outside AI tool Mask personal data before it leaves; approved tool only
4 Shadow AI Six workplace situations to sort Ask, approve fast, one-page policy
5 Bias and blame Two identical faults, different client tiers Paired-case test, hide the tier, a named DRI

Each lab marks whether a defence lives **in the prompt** (helps, can be talked around) or **in code** (holds even when the model is fooled).

AI models

Pick a model under **Your AI model**. The providers and models are the same as the [AI Coaching simulator](https://alfredang.github.io/AICoaching/):

Option Model ID Key
Demo mode none (scripted agent) no key, no API calls
OpenAI GPT-6.2 Sol gpt-6.2-sol OpenAI key
MiniMax M3.1 Flash MiniMax-M3.1-Flash MiniMax key
Anthropic Claude Haiku 5.5 claude-haiku-5-5 Anthropic key
Anthropic Claude Sonnet 5.5 claude-sonnet-5-5 Anthropic key (shared with Haiku)
Google Gemini 4 Hydrogen gemini-4-hydrogen Google AI Studio key
  • Each provid