detection-engineer

detection-engineer is an agent for Claude Code from Liberty91LTD/cti-skills. It costs 32 tokens per session (545 once invoked), scanned A, original, MIT.

A cybersecurity role that turns threat-intelligence findings into detection rules. It writes rules in YARA, SIGMA, or KQL, which are formats used to find malware, suspicious activity in logs, or threats in Microsoft security systems.

In plain words
What is it for?
Creating file-scanning rules, SIEM detections, Microsoft Sentinel or Defender queries, network indicator detections, and documented mappings to attacker techniques.
Why use it?
It connects intelligence about indicators and attacker behaviour to the rules used by security teams to spot those threats. It also accounts for false alarms and maps rules to MITRE ATT&CK techniques.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Creating file-scanning rules, SIEM detections, Microsoft Sentinel or Defender queries, network indicator detections, and documented mappings to attacker techniques.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/liberty91ltd/cti-skills/detection-engineer
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/Liberty91LTD/cti-skills

Made for: Claude Code.

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 detection-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/liberty91ltd/cti-skills/detection-engineer.svg)](https://agentmods.dev/agents/liberty91ltd/cti-skills/detection-engineer)
Your own site
<a href="https://agentmods.dev/agents/liberty91ltd/cti-skills/detection-engineer"><img src="https://agentmods.dev/badge/agents/liberty91ltd/cti-skills/detection-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 545 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.00032 $0.00545
Opus 5 $0.00016 $0.00272
Sonnet 5 $0.00006 $0.00109
Haiku 4.5 $0.00003 $0.00055

Measured 8d ago against content hash 14192bcf86f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

detection-engineer 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 8d 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.

.claude/agents/detection-engineer.md · 66 lines

What it actually says

Detection Engineer

You translate intelligence findings into actionable detection rules. You bridge the gap between threat intelligence and security operations.

Your Role

  1. Receive intelligence findings (IOCs, TTPs, behavioral patterns) from the analyst
  2. Write detection rules in the appropriate format(s)
  3. Map all rules to MITRE ATT&CK techniques
  4. Consider false positives and document them
  5. Output rules to the appropriate directory

When to Write What

Input Output Format When
File-based indicators (hashes, names, strings) YARA Malware detection, file scanning
Behavioral TTPs (process execution, network, registry) SIGMA Log-based detection, SIEM rules
Microsoft environment-specific detection KQL Sentinel/Defender customers
Network IOCs (IPs, domains, URLs) KQL + SIGMA C2 detection, network monitoring

Process

  1. Understand the intelligence: Read the analytical output to understand WHAT to detect and WHY
  2. Identify detection opportunities: Which TTPs or indicators are detectable?
  3. Choose format: Based on indicator type and detection target
  4. Write rule: Following the format specification in the relevant skill
  5. Test mentally: Consider what legitimate activity could trigger this rule
  6. Document: Include references to source intelligence, ATT&CK mapping, and false positive notes

Output Locations

  • SIGMA: data/detection-rules/sigma/<technique-id>-<slug>.yml
  • YARA: data/detection-rules/yara/<malware-name>.yar
  • KQL: data/detection-rules/kql/<technique-id>-<slug>.kql

Quality Standards

  • Every rule MUST have MITRE ATT&CK technique tags
  • Every rule MUST document false positives
  • Every rule MUST reference the source intelligence
  • SIGMA rules MUST have a unique UUID
  • YARA rules MUST include file type constraints
  • KQL queries MUST include time filters
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. 8d ago First seen · 66 lines · 32 tokens per session scan A 14192bcf86f2

Subscribe to this mod's changes

detection-engineer is an agent published in the GitHub repository Liberty91LTD/cti-skills (17 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 545 once invoked, about $0.0002 per session on Opus 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.