Genai Security Demo
Description
A chatbot implementation that demonstrates security defenses for generative AI. Created for the talk: Hacking and securing your GenAI applications. Commit Conf 2025 Video: https://www.youtube.com/watch?v=FHckzoXfs9k Commit Conf 2025 slides: https://bit.ly/slides-genai-security
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Security Chatbot

A chatbot implementation that demonstrates security defenses for generative AI. Created for the talk: [Hacking and securing your GenAI applications](https://docs.google.com/presentation/d/18FUV5O1mfQEeSth6F8JlLV7fsSmDTGnG1OCgTOg8urU/edit#slide=id.p1)
Table of Contents
1. Installation
make install
1.1 Security Features
This project integrates two Meta Llama security tools:
- Llama PromptGuard
- Purple-Llama CodeShield
**Important**: These tools are part of the [Llama 3.1 license](https://www.llama.com/llama3_1/license/), which has restrictions on commercial use.
- You can disable security features by modifying the
LLAMA_SECURITY_FAMILYvariable in `src/config/llm_config.py`.
Accessing Security Models
- Request access to models on HuggingFace (e.g., meta-llama/Prompt-Guard-86M)

- Configure your
HF_TOKENenvironment variable with your HuggingFace personal token
2. LLM Providers
The chatbot supports three LLM providers:
- Amazon Bedrock
- Groq
- OpenAI
- Anthropic
Configure your preferred provider in [`config/llm_config.py`](config/llm_config.py).
2.1 Provider Setup
2.1.1 Amazon Bedrock
Configure AWS SSO profile:
PROFILE_NAME="data-dev"
ACCOUNT_NUMBER="123456789123"
ROLE="power"
SSO_START_URL="https://YOUR_ORGANIZATION.awsapps.com/start"
REGION="eu-west-1"
aws configure set sso_start_url $SSO_START_URL --profile $PROFILE_NAME
aws con
Related Skills
Fastapi Review
Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu
Security Defense in Depth
Implement multi-layered testing and security best practices.
Security SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
Security Threat Hunting with Sigma Rules
Use Sigma detection rules to hunt for threats and analyze security events
Security Maintenance Walkthrough - 2026-03-29
- Re-triaged the full 2026-03-15 security finding set against current `main` and wrote a fresh current-head re
Security Google Workspace Model Armor
Filter user-generated content for safety
Security Related Agents
Django Reviewer
Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfi
Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,