AISecurity — Data skill for Claude Code
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/**

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
Related Skills
Semantic Layer Demo
Companion repo for KC Labs AI video: Semantic Layers - Bundled vs Standalone. Demos Snowflake Semantic Views a
Agent Safe Migrate
🛡️ Catch unsafe AI-generated database migrations before they lock production. AST safety rules + disposable s
Agent Pilot
Agent-Pilot · 飞书 AI 校园挑战赛 · 从 IM 对话到演示稿的一键智能闭环 6 Agent Multi-Agent Pipeline · MiniMax M2.7 Tool Calling · 飞书 B
Generator Assets
Headless, modular local AI pipeline: 2D/3D Godot & Blender assets (Flux.1, SDXL, ESRGAN), AI video generation
Dd Ds
Open the Data Science department (build stage) and route the request to one of its 22 atomic tasks. Frame mode
Phi Vet
Hard pre-commit gate scanning files for PHI (Protected Health Information) leakage in medical-data research re
Related Agents
Kavach LLM
KAVACH LLM/AI security specialist. Audits prompt injection (direct + indirect/RAG), jailbreak/persona/system-p
Threejs Lighting Shadows
Master of three.js lighting — light types and physical units, shadow maps and their bias/filter tuning, cascad
Leakage Reviewer
Skeptical data-leakage / look-ahead-bias reviewer for time-indexed data and ML pipelines (features, labels, ti