The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
GUARDRAIL
GUARDRAIL - MCP Security - Gateway for Unified Access, Resource Delegation, and Risk-Attenuating Information Limits
Install
git clone https://github.com/nshkrdotcom/GUARDRAILInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →GUARDRAIL: Security Framework for Large Language Model Applications
Application Security Onion
Overview
The Application Security Onion diagram visualizes the layered security concerns that modern applications face, with a particular focus on how newer LLM (Large Language Model) and Agent-based systems build upon traditional security foundations.
Understanding the Layers
Like an onion, application security consists of multiple layers that must all be addressed for comprehensive protection:
Layer 1: Traditional Web Security (Outer Layer)
The foundation of all application security, covering fundamental concerns like authentication, authorization, input validation, and transport security. These are well-established practices that remain essential regardless of application type.
Layer 2: Data & Infrastructure Security
Building on basic web security, this layer addresses how data is stored, processed, and transported across infrastructure components. This includes database security, container protection, network segmentation, and dependency management.
Layer 3: LLM Application Security
Specific security concerns for applications that leverage large language models. This newer domain includes protections against prompt injection, jailbreaking attempts, output sanitization, and preventing data leakage through model interactions.
Layer 4: Agent & MCP Security (Core)
At the center are emerging security concerns specific to autonomous agents and the Model Context Protocol (MCP). This includes message classification, context verification, trust scoring, and flow control between agent components.
Applications
The Application Security Onion can be used to:
- Assess security coverage across different domains
- Identify gaps in security planning
- Prioritize security initiatives based on foundational requirements
- Educate teams on the relationship between traditional and emerging security concerns
- Create security checklists that ensure all layers are addressed
Implementation Guidance
When approaching application security, work from the outside in:
- Ensure traditional web security controls are robust and well-implemented
- Address data and infrastructure security concerns
- Implement LLM-specific protections as needed
- Apply agent and MCP-specific security controls at the core
Remember that inner layers depend on outer layers - LLM application security measures will be undermined if traditional web security elements like authentication are weak.
Contributing
This model is evolving as security practices for LLM applications and agents mature. Contributions and suggestions for improving the Application Security Onion are welcome.
The Application Security Onion diagram is licensed under CC BY 4.0. Feel free to share and adapt with attribution.
Practical Security vs. Framework Complexity: The GUARDRAIL Reality Check
1. Isolation vs. Framework Complexity
Simple containerization or VM isolation often provides more immediate security benefits than complex frameworks. While GUARDRAIL offers sophisticated protocol-level security, basic isolation through Docker or VMs:
- Creates clear security boundaries
- Limits potential damage from compromises
- Requires minimal specialized knowledge to implement
- Provides proven protection with lower implementation risk
Similar plugs
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) ·…
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust…
An open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP,…