Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
oakoss avatar

Secure Ai

  • 82 installs
  • 14 repo stars
  • Updated March 2, 2026
  • oakoss/agent-skills

Helps with security tasks during AI-assisted development.

About

secure-ai is a Claude Code skill for security. It helps solo builders move faster with AI-assisted coding.

  • secure-ai
  • Security
  • AI-coding skill

Secure Ai by the numbers

  • 82 all-time installs (skills.sh)
  • +5 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #1,086 of 2,203 Security skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/oakoss/agent-skills --skill secure-ai

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs82
repo stars14
Last updatedMarch 2, 2026
Repositoryoakoss/agent-skills

What it does

Helps with security tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

Secure AI

Overview

Secures AI integration layers through multi-layered defense, structural isolation, and zero-trust orchestration. Covers prompt injection defense, model output validation, agentic security, secure server actions, supply chain integrity, MCP tool security, and audit protocols for applications that interact with LLMs.

Aligned with the OWASP Top 10 for LLM Applications 2025 and the NIST AI Risk Management Framework (AI RMF 1.0). Provides coverage for all ten OWASP LLM risks with concrete defense patterns.

When to use: Securing LLM-powered features against prompt injection, validating and sanitizing model outputs before downstream use, implementing zero-trust for autonomous agents, hardening server actions for AI endpoints, securing MCP tool integrations, managing AI supply chain risks, auditing AI access patterns.

When NOT to use: General web application security without AI components, frontend-only security concerns, non-AI API hardening, basic authentication or authorization without AI involvement.

Quick Reference

PatternApproachKey Points
Structural isolationSeparate system/user message rolesNever mix instructions and user data in one string
Input boundariesDelimit user data with markersHelps models identify where untrusted data begins/ends
Guardian modelPre-scan input with a fast classifierDetect injection patterns before main reasoning model
Output validationTreat LLM output as untrusted inputContext-aware encoding, parameterized queries, CSP headers
Least privilegeCapability-based scopes per sub-taskAgents get only the tools needed for current work
Human-in-the-loopRequire human sign-off for destructive actionsFinancial or data-altering events need approval
Non-human identityOIDC-based agent authenticationVerifiable identity for every agent, rotate keys regularly
Server-only AI logicserver-only imports for all AI codeKeys and reasoning never leak to client bundle
Input validationZod schemas on all AI-facing server actionsNever pass raw user input to AI services
Rate limitingPer-user/IP token budget via RedisPrevent denial-of-wallet attacks on AI endpoints
Stream scrubbingFilter sensitive strings from AI output streamsRemove internal IDs, secrets before reaching client
MCP tool securityAllowlist tools, validate inputs/outputsTreat MCP servers as untrusted, enforce least privilege
Supply chain integrityVerify model provenance, maintain AI-BOMTrack models, datasets, and dependencies with checksums
Secret managementEnvironment variables with CI leak scanningUse gitleaks in CI to prevent committed secrets

Core Security Principles

1. Isolation is absolute -- user data must never be treated as system instruction 2. LLM output is untrusted -- treat all model responses as potentially malicious input before downstream use 3. Least privilege for agents -- grant only the tools needed for the current sub-task, revoke after completion 4. Human verification of destruction -- destructive or irreversible actions require a human signature 5. No secrets in client -- all AI logic and keys reside in server-only environments 6. Adversarial mindset -- assume both users and agents will attempt to bypass rules 7. Defense in depth -- layer defenses so that bypassing one layer does not compromise the system 8. Supply chain verification -- verify provenance and integrity of all models, datasets, and AI tools

OWASP LLM Top 10 (2025) Coverage

OWASP RiskReference
LLM01 Prompt InjectionPrompt Injection Defense
LLM02 Sensitive Information DisclosureSecure Server Actions (stream scrubbing, output filtering)
LLM03 Supply ChainSupply Chain and MCP Security
LLM04 Data and Model PoisoningSupply Chain and MCP Security
LLM05 Improper Output HandlingOutput Validation and Encoding
LLM06 Excessive AgencyAgentic Zero-Trust Security (least privilege, HITL)
LLM07 System Prompt LeakagePrompt Injection Defense (non-extractable prompts)
LLM08 Vector and Embedding WeaknessesOutput Validation and Encoding (RAG sanitization)
LLM09 MisinformationOutput Validation and Encoding (semantic filtering)
LLM10 Unbounded ConsumptionSecure Server Actions (rate limiting, token budgets)

Common Mistakes

MistakeCorrect Pattern
Mixing user input and system instructions in the same prompt fieldUse structural isolation with separate system and user message roles
Trusting LLM output and passing it directly to exec, eval, or SQLTreat all model output as untrusted; use parameterized queries and context-aware encoding
Giving agents unlimited tool access for all tasksApply capability-based scopes granting only tools needed per sub-task
Using static API keys for AI service authenticationUse OIDC with dynamic key rotation and short-lived tokens
Loading third-party models without provenance checksVerify model checksums, use signed artifacts, maintain AI-BOM
Granting MCP servers broad permissions without validationAllowlist MCP tools, validate all inputs/outputs, enforce human approval for sensitive actions
Passing raw user input directly to AI servicesValidate all input with Zod schemas before AI processing
Streaming AI responses without output filteringScrub sensitive strings from streams before they reach the client

Key Frameworks

  • OWASP Top 10 for LLM Applications 2025 -- industry standard for LLM vulnerability classification
  • NIST AI Risk Management Framework (AI RMF 1.0) -- four-function framework (Govern, Map, Measure, Manage) for AI risk
  • NIST Cybersecurity Framework Profile for AI (NISTIR 8596) -- guidelines for secure AI adoption
  • OWASP MCP Security Cheat Sheet -- practical guide for securing third-party MCP server integrations
  • CycloneDX 1.6 / SPDX 3.0 -- standards supporting AI Bill of Materials (ML-BOM)

Delegation

  • Scan codebase for prompt injection vulnerabilities: Use Explore agent to search for user data flowing into system prompts and unvalidated inputs
  • Implement zero-trust agent orchestration: Use Task agent to add identity verification, sandboxing, and human approval gates
  • Audit model output handling: Use Explore agent to find LLM outputs passed to exec, eval, SQL, or rendered as HTML without sanitization
  • Review MCP tool configurations: Use Explore agent to check MCP server permissions, tool allowlists, and authentication setup
  • Design secure AI integration architecture: Use Plan agent to map trust boundaries, agent scopes, and audit requirements
  • Assess supply chain risks: Use Explore agent to inventory third-party models, datasets, and MCP servers with provenance records
  • Set up security monitoring: Use Task agent to configure audit logging, anomaly detection, and incident response alerts
For general application security (OWASP Top 10, auth patterns, security headers, input validation), use the application-security skill. For database-layer security (RLS policies, audit trails, Postgres hardening), use the database-security skill.

References

  • Prompt Injection Defense -- multi-layered isolation, guardian models, input boundaries, indirect injection
  • Output Validation and Encoding -- zero-trust output handling, context-aware encoding, RAG sanitization
  • Agentic Zero-Trust Security -- non-human identity, resource isolation, anomaly detection
  • Secure Server Actions -- server-only patterns, input validation, rate limiting, stream security
  • Supply Chain and MCP Security -- model provenance, AI-BOM, MCP tool hardening, data poisoning defense
  • Security Audit Protocols -- monitoring agent behavior, compliance checklists, incident response

Related skills

Securityappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.