bagelhole/devops-security-agent-skills/ai-security-hardening
Claude Code and agent skill by bagelhole/devops-security-agent-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Harden AI/LLM deployments against prompt injection, data exfiltration, model theft, and supply chain attacks. Covers input validation, output filtering, access control, model API security, and compliance controls for production AI systems.
Install
npx vskill@latest install bagelhole/devops-security-agent-skills/ai-security-hardeningSKILL.md
The same SKILL.md was published earlier as bagelhole/devops-security-agent-skills/ai-security-hardening.
AI Security Hardening
Secure LLM and AI systems against prompt injection, jailbreaks, data leakage, and supply chain threats in production environments.
When to Use This Skill
Use this skill when:
- Deploying an LLM-powered application handling sensitive user data
- Protecting against prompt injection attacks in AI agents
- Implementing output filtering and content moderation
- Securing model weights and API endpoints from theft
- Achieving SOC2 or ISO 27001 compliance for AI systems
AI-Specific Threat Model
Prompt Injection Defense
Guardrails with NeMo Guardrails
Output Filtering & PII Scrubbing
API Security for LLM Endpoints
Model Weight Security
Network Isolation for AI Services
Audit Logging
Common Issues
| Issue | Cause | Fix | |
|---|---|---|---|
| False positive injection blocks | Overly broad regex | Tune patterns; use ML-based classifier for high-traffic | |
| PII in model outputs | Model trained on PII data | Add Presidio scrubbing to output layer | |
| API key leakage | Keys in logs or responses | Mask keys in logging; use vault for key storage | |
| Model weight tampering | Unverified downloads | Always verify SHA-256; use modelscan | |
| Rate limit bypass | Per-IP not per-user | Rate limit on authenticated user ID, not IP |
Best Practices
- Never log raw prompts or completions — they may contain PII or sensitive data.
- Treat LLM output as untrusted input — always encode before rendering in HTML.
- Use network policies to prevent LLM pods from making outbound internet calls.
- Rotate API keys quarterly; use short-lived JWT tokens for service-to-service auth.
- Run
modelscanon any model downloaded from the internet before serving.
Related Skills
- hashicorp-vault - Secrets management for API keys
- network-security - Network-level controls
- linux-hardening - Host hardening
- agent-observability - AI audit logging
- llm-gateway - Centralized access control
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsecurity/ai/ai-security-hardening/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bagelhole/devops-security-agent-skills/ai-security-hardening)