By efij
Enforce runtime security policies for Claude Code sessions, controlling shell, git, MCP, secret, and exfiltration risks via configurable profiles and a local gateway service.
Install or enable Stallion with the recommended balanced baseline.
Inspect the current Stallion posture, enabled protections, and recent audit events.
Tune Stallion with stricter or lighter profiles and explain individual guards.
Admin access level
Server config contains admin-level keywords
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Modifies files
Hook triggers on file write and edit operations
Modifies files
Hook triggers on file write and edit operations
Runtime security guardrails for Claude Code, Codex, and MCP-based coding setups.
Stallion sits between the agent and risky actions so you can:
Coding agents can:
That is useful, but it is also enough to leak data or damage a machine fast.
Stallion helps reduce that risk with:
minimal, balanced, and strictclaude plugin marketplace add efij/stallion
claude plugin install stallion@stallion
claude plugin list
Expected result:
stallion@stallionStatus: enabledIf your Codex supports local bundle install, install this repo as a plugin bundle.
Fallback:
./bin/stallion generate-runtime-config codex balanced
git clone https://github.com/efij/stallion.git
cd stallion
./bin/stallion install balanced
./bin/stallion doctor
minimal: lowest frictionbalanced: sensible defaultstrict: strongest blocking and review promptsSecrets & IdentitySupply Chain & DependenciesGit & Source ControlMCP, Plugins & SkillsRuntime, Network & EgressInfra & Production AccessTrust, Persistence & EvasionQuality & WorkflowMemory & KnowledgeSaaS & Control PlanesFileless & Inline ExecutionRemote Content PromotionLocal Data StoresLocal IPC & HelpersPublish, Release & Supply ChainDestructive Actions & Blast RadiusFull guard inventory: GUARDS.md
./bin/stallion install balanced
./bin/stallion doctor
./bin/stallion audit .
./bin/stallion list protections
./bin/stallion list runtimes
./bin/stallion wrap list-packs
./bin/stallion wrap add postgres-dev --command uvx --arg mcp-server-postgres --pack postgres --context-file ./db-context.md --runtime generic-mcp
./bin/stallion client status --json
./bin/stallion generate-runtime-config codex balanced
./bin/stallion generate-runtime-config cursor balanced
./bin/stallion generate-runtime-config windsurf balanced
./bin/stallion generate-runtime-config claude-desktop balanced
This OSS plugin can run as a Stallion-managed client. The private Stallion server/admin repo owns policy authoring, RBAC, audit warehousing, and organization governance; this repo only consumes signed or cached policy and enforces it locally.
Client-side support includes:
Local commands:
./bin/stallion client status --json
./bin/stallion client policy --json
./bin/stallion client record-prompt --runtime codex --agent-id parent-1 "user prompt text"
./bin/stallion client flush
Default config is disabled at config/stallion-client.json; managed deployments should provision the server URL, policy cache, verification mode, and fail-closed posture.
Use the inline gateway when you want to front an upstream MCP server with Stallion policy, context injection, and read-only SQL guardrails.
./bin/stallion wrap list-packs
./bin/stallion wrap add postgres-dev \
--command uvx \
--arg mcp-server-postgres \
--pack postgres \
--context-file ./db-context.md \
--sqlite-schema ./local-dev.sqlite3 \
--runtime generic-mcp
./bin/stallion gateway serve strict --config ./config/gateway.json --api-port 9470
./bin/stallion generate-runtime-config generic-mcp balanced
What this adds:
npx claudepluginhub efij/secure-claude-code --plugin stallionA secure runtime for Claude Code. Intercepts every tool call with policy-based allow/block/ask decisions, evasion detection, path fencing, file snapshots, and audit logging.
Runtime security enforcement for AI coding agents — policy hooks, audit receipts, threat hunting, and security tools for Claude Code.
Protect secrets and credentials from Claude Code. Blocks writes to .env files, detects API keys in shell commands, prevents hardcoded tokens, and guards service account JSON files.
Achieve flow state safely with Claude Code. Auto-approves routine work, gates risky actions, hard-blocks dangerous patterns. Dual enforcement (skill + hooks), token cap for cost governance, full audit trail. Zero dependencies.
Security guardrails - credential protection, destructive command blocking, write scope enforcement, supply chain control, browser restrictions
Command Line Agent Safety Harness. All interactions with clash policy should go through this plugin