siem-detection

siem-detection is a cursor rule for Cursor from briiirussell/cybersecurity-skills. It costs 128 tokens per session (2,608 once invoked), scanned A, original, MIT.

A process for creating and reviewing SIEM detection rules, which are rules that inspect security logs and raise alerts. It covers query formats such as Sigma, KQL, SPL, and Elastic ES|QL.

In plain words
What is it for?
It is for assessing log sources, writing and testing detection rules, mapping them to MITRE ATT&CK techniques, tuning alerts, and managing rules as code.
Why use it?
It helps teams detect suspicious activity, find missing log coverage, and reduce noisy false alarms.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It is for assessing log sources, writing and testing detection rules, mapping them to MITRE ATT&CK techniques, tuning alerts, and managing rules as code.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/briiirussell/cybersecurity-skills/siem-detection
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/briiirussell/cybersecurity-skills

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/siem-detection/github.svg)](https://agentmods.dev/rules/briiirussell/cybersecurity-skills/siem-detection)
Your own site
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/siem-detection"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/siem-detection/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 siem-detection

Your own site · 80×15
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/siem-detection"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/siem-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,608 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.00128 $0.02608
Opus 5.5 $0.00051 $0.01043
Sonnet 5.5 $0.00026 $0.00522
Haiku 4.5 $0.00013 $0.00261

Measured today against content hash 6b68fae38e48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

siem-detection 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 today.

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.

adapters/cursor/siem-detection.mdc · 243 lines

How it starts

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

SIEM Detection — Detection Engineering

Build, audit, and maintain SIEM detection content — the rules that fire alerts. Distinct from incident-triage (responds when alerts fire) and from soc-operations (runs the SOC that triages alerts). This skill is the engineering layer: log coverage, rule authoring, tuning, and detection-as-code workflows.

Cross-references: incident-triage for what happens after the alert, threat-hunting for proactive hypothesis-driven hunts that often graduate into detection rules, breach-patterns for detection ideas pulled from public breach disclosures, soc-operations for the alert-triage operations on top of the detections engineered here, log-watch for small teams that don't run a SIEM yet (a scheduled agent over the logs they already have — the on-ramp to this skill).

Authorization

Write and tune detections for environments the user owns or is authorized to work on. This skill writes rule files (it has Write for that); it doesn't deploy them, disable existing rules or change alert routing in a live SIEM. Testing a rule with simulated attack activity happens only in a lab, or on a host whose owner has signed off.

Scope

This skill covers:

  • Log source coverage assessment ("are we even collecting the events we'd need to detect X?")
  • Rule authoring across major SIEM query languages (Sigma, KQL, SPL, Elastic ES|QL, Chronicle YARA-L)
  • MITRE ATT&CK mapping — every rule tagged with technique IDs for coverage analysis
  • Detection-as-code workflows (rules in Git, CI tests, deployment automation)
  • Alert tuning workflow — reducing false positives without losing true positives
  • Coverage gap analysis using ATT&CK Navigator

This skill does NOT cover:

  • Live alert triage (that's incident-triage)
  • Building a SOC team or alert escalation criteria (soc-operations)
  • Active threat hunting (threat-hunting)

Methodology

Step 1: Map log sources to ATT&CK coverage

Before writing any rule, audit what you can detect.

Read the full file on GitHub · 243 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. today Changed · +4 lines 6b68fae38e48
  2. 1mo ago First seen · 239 lines · 128 tokens per session scan A 5bcb968b0355

Subscribe to this mod's changes

siem-detection is a cursor rule published in the GitHub repository briiirussell/cybersecurity-skills (435 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 2,608 once invoked, about $0.0005 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.