| title | AI Security Education Interactive Demo | |||||
|---|---|---|---|---|---|---|
| emoji | 🛡️ | |||||
| colorFrom | red | |||||
| colorTo | blue | |||||
| sdk | gradio | |||||
| sdk_version | 4.44.0 | |||||
| app_file | app.py | |||||
| pinned | false | |||||
| license | apache-2.0 | |||||
| models |
|
|||||
| tags |
|
Live demonstration of AI jailbreak attacks and defence systems
This Space lets you:
- 🔴 Attack a vulnerable AI model - See jailbreaks work in real-time
- 🛡️ Test defence systems - Watch attacks get blocked
- ⚖️ Compare side-by-side - Vulnerable vs protected models
- 🇦🇺 Learn Australian compliance - Privacy Act 1988 context
- DAN (Do Anything Now) - Classic instruction override
- Skeleton Key - Microsoft's 2024 discovery
- Base64 Encoding - Obfuscation attacks
- Role Playing - Persona jailbreaks
- System Extraction - Prompt leaking
- 7-Layer Defence System
- Input Validation
- Prompt Sanitisation
- Context Isolation
- Output Filtering
- Monitoring & Logging
- Rate Limiting
- Human Oversight
- Privacy Act 1988 — post-2024 reform (tiered penalties up to $50M / 3× benefit / 30% turnover for serious/repeated breaches; new statutory tort for serious invasions of privacy commenced 10 Jun 2025)
- ACSC Essential Eight
- Notifiable Data Breaches scheme + OAIC 30-day notification
- APRA CPS 234, PSPF / ISM context
This Space is part of a complete AI Security Education course:
Repository: Benjamin-KY/AISecurityModel
Includes:
- 🎓 18 progressive Jupyter notebooks across three tracks
- 🟢 Foundational (nb01–nb06): introduction → defence-in-depth at the prompt boundary
- 🟠 Advanced (nb07–nb15): red-teaming, monitoring, fine-tuning, multi-modal, supply chain, incident response
- 🟣 2026 Architectural Capstone (nb16–nb18): agent/MCP tool misuse, RAG-layer prompt injection, harness paradigm
- 💻 Hundreds of small, executable, individually-runnable code cells (refactored to gold-standard pedagogy in v2.2.x)
- 📖 Comprehensive educator guide with five course formats (2 h workshop → 5-day intensive)
- 🧭 Strategic positioning doc and operational reading order across the three-repo constellation
- 🔬 XAI & interpretability tools
- 🛡️ Defence code patterns (not production-ready as shipped — see disclaimer)
- 🇦🇺 Australian regulatory compliance grounding
Perfect for:
- University AI security courses
- Security professional training
- Australian organisations deploying AI
- Researchers studying LLM vulnerabilities
This Space is the attacks lab half of the picture. The whole story spans three repositories:
| Repo | Role |
|---|---|
| AISecurityModel (this Space) | Model & prompt-layer attacks course + bridge into the architectural layer |
| harmless-harnesses | Architectural / harness-layer course — 29 modules across F/C/P/T/CAP tracks |
| sa-sovereign-llm-harness | Research codebase + SA-GOV-BENCH evaluation methodology (May 2026 results) |
Recommended path: AISecurityModel → harmless-harnesses → sa-sovereign-llm-harness. See docs/POSITIONING.md for the full map.
Vulnerable-Then-Educate:
- Model shows the vulnerability (complies with jailbreak)
- Provides educational analysis
- Explains prevention strategies
- References compliance requirements
Model: Qwen2.5-3B fine-tuned with LoRA Parameters: 3 billion Size: ~6 GB (FP16) Training: 15 vulnerability examples Hardware: Optimised for RTX 3060 12GB
-
Choose a Tab:
- 🔴 Vulnerable Model - See attacks work
- 🛡️ Defended Model - See defences block attacks
- ⚖️ Comparison - See both side-by-side
-
Select an Attack:
- Use dropdown for pre-made examples
- Or type your own custom attack
-
Click the Button:
- Watch the response in real-time
- Read the educational analysis
- Understand the security implications
-
Learn & Experiment:
- Try different attack types
- Modify existing attacks
- See what gets blocked and why
All educational content includes:
- Privacy Act 1988 references
- ACSC Essential Eight controls
- Notifiable Data Breaches scheme
- Australian English orthography
- Local PII patterns (TFN, Medicare, etc.)
- Model: Zen0/Vulnerable-Edu-Qwen3B
- GitHub: AISecurityModel
- Educator Guide: docs/EDUCATOR_GUIDE.md
- Positioning across the three repos: docs/POSITIONING.md
- Operational reading order: docs/READING_ORDER.md
- Notebooks: All 18 in the repository (foundational nb01–nb06, advanced nb07–nb15, 2026 architectural capstone nb16–nb18)
- Sibling course (architectural layer): Harmless Harnesses
- Research basis (IDSov-led): sa-sovereign-llm-harness
- Educational Use Only — This model is intentionally vulnerable
- Not for Production — Use defence examples for real deployments; for the architectural layer above the model, see the
harmless-harnessessibling course - Necessary, not sufficient — Defending only at the prompt boundary (what this Space demonstrates) does not eliminate harm. The 2026 Architectural Capstone notebooks (nb16–nb18) and
harmless-harnessesmake the case explicitly - Supervised Use — For educational and research contexts
- Ethical Use — Do not use techniques maliciously
- IDSov boundary — This course sits inside the dominant Western technical-governance frame and does not model Indigenous Data Sovereignty practice as a first-class governance authority. For the full positioning, see
docs/the-harness-paradigm.mdinsa-sovereign-llm-harness(referenced verbatim inharmless-harnessesF0 §6 and F2 §6)
If you use this in research or education:
@software{aisecurityedu2026,
author = {Kereopa-Yorke, Benjamin},
title = {AISecurityModel: AI Security Education Course},
year = {2026},
url = {https://github.com/Benjamin-KY/AISecurityModel},
note = {Interactive demo: https://huggingface.co/spaces/Zen0/AI-Security-Education}
}Found an issue? Have suggestions?
- Open an issue on GitHub
- Submit a PR with improvements
Author: Benjamin-KY GitHub: Benjamin-KY Model: Zen0/Vulnerable-Edu-Qwen3B
Built with ❤️ for AI Security Education by Ben Kereopa-Yorke 🇦🇺 Australian Privacy Act 1988 context — post-2024 reform aware