security-gate

security-gate is a command for Claude Code from HermeticOrmus/LibreSecOps-Claude-Code. It costs 25 tokens per session (1,037 once invoked), scanned A, original, MIT.

A command for setting rules that decide whether a software build passes or fails based on security scan results. It can apply to code, dependencies, running applications, containers, infrastructure settings, and exposed secrets.

In plain words
What is it for?
Use it to create or adjust security checks in a CI/CD pipeline, choose strictness levels, set scanner-specific thresholds, or establish a baseline for existing findings.
Why use it?
It helps teams balance security with development speed by setting clear thresholds and treating existing findings differently from new ones.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the devsecops-pipelines plugin — 2 skills, 2 commands, 2 agents shipped together

Good fit Use it to create or adjust security checks in a CI/CD pipeline, choose strictness levels, set scanner-specific thresholds, or establish a baseline for existing findings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libresecops-claude-code/security-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreSecOps-Claude-Code

Made for: Claude Code.

Or install devsecops-pipelines, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-gate

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/security-gate/github.svg)](https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/security-gate)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/security-gate"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/security-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-gate

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/security-gate"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/security-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.01037
Opus 5.5 $0.00010 $0.00415
Sonnet 5.5 $0.00005 $0.00207
Haiku 4.5 $0.00003 $0.00104

Measured 21d ago against content hash 518ed05ada2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/devsecops-pipelines/commands/security-gate.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/security-gate

Define or modify quality gates that determine whether a build passes or fails based on security findings.

Trigger

Use when you need to:

  • Define security gates for a new pipeline
  • Adjust existing gate thresholds (too strict causing friction, or too loose letting vulns through)
  • Add a gate for a specific scanner or finding type
  • Implement differential gating (stricter for new code, lenient for existing)

Input

  • Required: The CI/CD configuration file to modify or the pipeline platform being used
  • Optional: --scanner [sast|sca|dast|container|iac|secrets] -- configure gate for specific scanner
  • Optional: --strategy [strict|balanced|permissive] -- preset threshold strategy
  • Optional: --baseline -- establish a baseline of existing findings to suppress

Process

  1. Current Gate Analysis: Review existing pipeline configuration for any quality gate definitions. Identify what thresholds are set, what scanners are gated, and what is warn-only.

  2. Strategy Selection: Based on the requested strategy or interactive assessment:

    Strict (new projects, security-critical applications):

    • Block on any Critical or High finding
    • Warn on Medium
    • Log Low and Informational
    • Zero tolerance for new secrets in code

    Balanced (established projects, general applications):

    • Block on Critical findings
    • Block on High findings with EPSS > 10%
    • Warn on other High and Medium
    • Log Low
    • Block on new secrets only (baseline suppression for existing)

    Permissive (legacy codebases being onboarded, initial adoption):

    • Block on Critical findings with known exploits (CISA KEV)
    • Warn on Critical and High
    • Log everything else
    • Block on new secrets only
  3. Differential Gating Configuration: Configure the pipeline to distinguish between:

    • New findings (introduced in this PR/commit) -- stricter gates
    • Existing findings (baseline) -- tracked but not blocking
    • Suppressions (reviewed and accepted) -- excluded from gates

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed · +5 lines · +25 tokens per session 518ed05ada2f
  2. 1mo ago First seen · 105 lines · 0 tokens per session scan A 9d0a64f42673

Subscribe to this mod's changes

security-gate is a command published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 18d ago), licensed MIT. It adds 25 tokens to every session and 1,037 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.