security-alert-triage

security-alert-triage is a skill for Claude Code, Codex from aspectrr/deer. It costs 39 tokens per session (1,521 once invoked), scanned A, original, MIT.

A workflow for investigating Elastic Security alerts, which are warnings about possible security problems found in system data. It gathers evidence, classifies the alert, creates a case, and acknowledges it.

In plain words
What is it for?
Use it for security operations work such as reviewing detections, collecting investigation context, documenting findings, creating cases, and closing the alert-handling step.
Why use it?
It helps security teams investigate alerts in order and avoid deciding too early that a warning is harmless, unknown, or malicious.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node skills/security/alert-triage/scripts/fetch-next-alert.js.

Good fit Use it for security operations work such as reviewing detections, collecting investigation context, documenting findings, creating cases, and closing the alert-handling step.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/aspectrr/deer
agentmods
npx agentmods add skills/aspectrr/deer/security-alert-triage

Made for: Claude Code, Codex.

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-alert-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/aspectrr/deer/security-alert-triage/github.svg)](https://agentmods.dev/skills/aspectrr/deer/security-alert-triage)
Your own site
<a href="https://agentmods.dev/skills/aspectrr/deer/security-alert-triage"><img src="https://agentmods.dev/badge/skills/aspectrr/deer/security-alert-triage/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-alert-triage

Your own site · 80×15
<a href="https://agentmods.dev/skills/aspectrr/deer/security-alert-triage"><img src="https://agentmods.dev/badge/skills/aspectrr/deer/security-alert-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,521 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.00039 $0.01521
Opus 5.5 $0.00016 $0.00608
Sonnet 5.5 $0.00008 $0.00304
Haiku 4.5 $0.00004 $0.00152

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

Security

Grade A, and why

security-alert-triage 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 3mo 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.

deer-cli/internal/skill/defaults/security-alert-triage/SKILL.md · 156 lines

How it starts

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

Alert Triage

Analyze Elastic Security alerts one at a time: gather context, classify, create a case, and acknowledge. This skill depends on the case-management skill for case creation.

Prerequisites

Set the required environment variables:

export ELASTICSEARCH_URL="https://your-cluster.es.cloud.example.com:443"
export ELASTICSEARCH_API_KEY="your-api-key"
export KIBANA_URL="https://your-cluster.kb.cloud.example.com:443"
export KIBANA_API_KEY="your-kibana-api-key"

Quick start

All commands from workspace root. Always fetch → investigate → document → acknowledge.

node skills/security/alert-triage/scripts/fetch-next-alert.js
node skills/security/alert-triage/scripts/run-query.js --query-file query.esql --type esql
node skills/security/case-management/scripts/case-manager.js create --title "..." --description "..." --tags "classification:..." "agent_id:<id>" --severity <level> --yes
node skills/security/alert-triage/scripts/acknowledge-alert.js --related --agent <id> --timestamp <ts> --window 60 --yes

Critical principles

  • Do NOT classify prematurely. Gather ALL context before deciding benign/unknown/malicious.
  • Most alerts are false positives, even if they look alarming.
  • "Unknown" is acceptable and often correct when evidence is insufficient.
  • MALICIOUS requires strong corroborating evidence: persistence + C2, credential theft, lateral movement.

Workflow

- [ ] Step 0: Group alerts by agent/host and time window
- [ ] Step 1: Check existing cases
- [ ] Step 2: Gather full context (DO NOT SKIP)
- [ ] Step 3: Create or update case (only AFTER context gathered)
- [ ] Step 4: Acknowledge alert and all related alerts
- [ ] Step 5: Fetch next alert group and repeat

Step 0: Group alerts before triaging

Query open alerts, group by agent.id, sub-group by time window (~5 min):

FROM .alerts-security.alerts-*
| WHERE kibana.alert.workflow_status == "open" AND @timestamp >= "<start>"
| STATS alert_count=COUNT(*), rules=VALUES(kibana.alert.rule.name) BY agent.id
| SORT alert_count DESC

Read the full file on GitHub · 156 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. 3mo ago First seen · 156 lines · 39 tokens per session scan A d5f104d7288d

Subscribe to this mod's changes

security-alert-triage is a skill published in the GitHub repository aspectrr/deer (405 stars, last pushed 7mo ago), licensed MIT. It adds 39 tokens to every session and 1,521 once invoked, about $0.0002 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-30.

Related

security-alert-triage compared with skills from other repositories

security-alert-triage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-alert-triageaspectrr/deerSkill4057mo agoMITA39Claude Code, Codex
architecture-diagrammateaix/mateclawSkill1.2ktodayApache-2.0A15Claude Code, Codex
makefile-generationathola/claude-night-marketSkill358todayMITA31Claude Code
sitesCloudgeni-ai/opengeniSkill229todayApache-2.0A125Codex
terraform-search-importCloudgeni-ai/opengeniSkill229todayApache-2.0A39Claude Code, Codex
team-topologyCotal-AI/CotalSkill414todayApache-2.0A168Claude Code
skill-managementCloudgeni-ai/opengeniSkill229todayApache-2.0A31Claude Code, Codex