security-automate

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

A command for examining a manual security task and designing an automated version with code or a SOAR platform.

In plain words
What is it for?
Use it to automate phishing triage, alert enrichment, account-lockout investigations, or ransomware containment workflows.
Why use it?
It helps reduce repetitive work and shorten the time needed to investigate and respond to security alerts while keeping approval controls for risky actions.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the security-automation plugin — 2 skills, 1 command, 2 agents shipped together

Good fit Use it to automate phishing triage, alert enrichment, account-lockout investigations, or ransomware containment workflows.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libresecops-claude-code/security-automate
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 security-automation, the plugin that ships this one along with the rest of its 2 skills, 1 command, 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-automate

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/security-automate/github.svg)](https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/security-automate)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/security-automate"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/security-automate/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-automate

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/security-automate"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/security-automate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 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,008 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.00028 $0.01008
Opus 5.5 $0.00011 $0.00403
Sonnet 5.5 $0.00006 $0.00202
Haiku 4.5 $0.00003 $0.00101

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

Security

Grade A, and why

security-automate 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 12d 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/security-automation/commands/security-automate.md · 115 lines

How it starts

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

/security-automate

Automate a specific security workflow by analyzing the manual process and designing an automated equivalent with implementation code.

Trigger

Use when you need to:

  • Automate a repetitive security operations task
  • Build an automated response playbook for a specific alert type
  • Create enrichment automation for SOC analysts
  • Design containment automation with appropriate approval gates
  • Reduce mean time to respond (MTTR) for a specific incident type

Input

  • Required: Description of the security workflow to automate. Examples:
    • "Automate phishing email triage and response"
    • "Auto-enrich all SIEM alerts with IOC reputation data"
    • "Automate account lockout investigation and response"
    • "Build automated containment for ransomware alerts"
  • Optional: Current tools in use (SIEM, EDR, email security, IAM, ticketing)
  • Optional flag: --platform [shuffle|tines|xsoar|python] -- target automation platform
  • Optional flag: --risk [low|medium|high] -- automation risk appetite (affects approval gates)

Process

  1. Workflow Analysis: Break down the manual workflow into discrete steps:

    • What triggers this workflow? (Alert, schedule, manual request)
    • What data is needed? (IOCs, user info, asset info, alert context)
    • What tools are involved? (SIEM query, EDR action, email gateway, IAM)
    • What decisions are made? (Is this malicious? What severity? What action?)
    • What actions are taken? (Quarantine, block, disable, escalate, close)
    • What is the output? (Ticket, notification, report)
  2. Automation Assessment: For each step, determine:

    • Can this step be fully automated? (API available, deterministic decision)
    • Should this step be automated? (Risk of automated action vs. speed benefit)
    • Does this step need human approval? (High-impact, irreversible actions)
  3. Playbook Design: Structure the automated workflow:

    • Trigger mechanism (webhook, polling, schedule)
    • Data enrichment steps (parallel where possible)
    • Decision logic (severity calculation, triage rules)
    • Automated actions (with rollback capability)
    • Human approval gates (for high-impact actions)
    • Notification and documentation steps
    • Error handling and failure paths

Read the full file on GitHub · 115 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. 12d ago Changed · +5 lines · +28 tokens per session b921593cd169
  2. 1mo ago First seen · 110 lines · 0 tokens per session scan A f0af62ce3f53

Subscribe to this mod's changes

security-automate is a command published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 9d ago), licensed MIT. It adds 28 tokens to every session and 1,008 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-09-03.