SkillsReviewed · mukul975

Building Detection Rules with Sigma

Building Detection Rules with Sigma is an assistant skill for security analysts and detection engineers, but its converter supports only Splunk and live detection reliability is unknown. It combines Sigma rule-writing guidance, pySigma examples and a local Python helper for conversion, metadata checks and MITRE ATT&CK tag summaries.

Researched 16 Nov 2026

In short.

Building Detection Rules with Sigma is an assistant skill for security teams creating portable detection rules, but its multi-platform guidance exceeds what the supplied Splunk-only converter implements. Sigma expresses detection logic in YAML, while pySigma translates it into platform-specific queries. The helper provides basic metadata checks, Splunk conversion and ATT&CK tag summaries; it does not generate rules from intelligence, test detections against events or deploy them. Runtime compatibility and detection accuracy are unassessed, and the deployment examples do not preserve the original example rule's full logic.

Researched and written by an AI model and checked by a second AI model. How it works

The scope is skills/building-detection-rules-with-sigma in mukul975/Anthropic-Cybersecurity-Skills at revision 54a798831d2266a3ca61ce68a7acb80b81160d57: SKILL.md, references/api-reference.md, scripts/agent.py and the folder LICENSE. The repository-level LICENSE is included as a related notice. Other repository folders, external dependencies, linked websites, assistant hosts and live SIEM systems are outside the supplied evidence. Runtime compatibility, conversion correctness, detection accuracy, performance and deployment behavior are unassessed.

The overview

Identity

The resource is the building-detection-rules-with-sigma folder in mukul975/Anthropic-Cybersecurity-Skills. It contains SKILL.md, references/api-reference.md, scripts/agent.py and a local LICENSE. The skill metadata identifies mahipal as author and declares version 1.0. The license notices identify mukul975 as copyright holder.

The original source location is [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/main/skills/building-detection-rules-with-sigma]. The supplied files do not establish Anthropic authorship, endorsement or compatibility with a particular assistant host.

Assessment

The strongest use is as an instructional starting point for managing security detections as versioned code. It connects threat behavior, Sigma rule fields, query conversion, ATT&CK tagging and proposed validation steps through a concrete Windows credential-access example.

Operational use requires substantial review. The documentation discusses Splunk, Elastic and Microsoft Sentinel, but the executable interface exposes only Splunk. Its full_pipeline action performs batch conversion and tag reporting, without event testing or deployment. The files establish intended behavior and implementation details, not successful operation.

Users

The intended users are security operations center analysts, detection engineers and developers maintaining detection rules in Git. It is particularly relevant when a team wants to express shared detection logic before translating it for a security information and event management system, or SIEM.

Beginners get explanations of rules, backends and field-mapping pipelines, but the material assumes knowledge of Windows telemetry, target log schemas and MITRE ATT&CK. Experienced teams can inspect or adapt the helper, although its fixed Windows pipeline and limited validation require additional engineering.

Capabilities

The instructions cover drafting Sigma YAML, checking syntax, translating queries, adding ATT&CK tags, creating Navigator layers and incorporating rule checks into GitHub Actions. Elastic and Microsoft KQL examples are documentation examples rather than options implemented in the helper.

The Python CLI accepts validate, convert, batch_convert, coverage and full_pipeline actions. Its implementation parses existing rules, checks selected metadata, converts rules to Splunk queries and writes JSON reports. Coverage output groups ATT&CK technique tags and scores them by the number of associated rules. A saved-search conversion function exists but is not exposed through a CLI action.

Using it

Requirements

The documentation specifies Python 3.8 or later, pySigma and relevant backend packages. The helper imports the Splunk backend and splunk_windows_pipeline at startup, so those imports must work even for validation or coverage actions. No dependency manifest or pinned package versions appear in the supplied folder; actual version compatibility is unknown.

Meaningful detections require suitable telemetry and mappings between Sigma fields and the target system's fields. The example needs Windows process-access data containing fields such as TargetImage, SourceImage and GrantedAccess. No assistant model, account requirement or host-specific skill installation procedure is specified.

Mechanism

Sigma stores selections, exclusions and conditions in YAML. The helper reads a file with SigmaRule.from_yaml, creates a Splunk backend using a fixed Windows pipeline and calls convert_rule. A pipeline supplies field mappings; conversion alone does not establish that the destination has the required events or fields.

For directory actions, the script recursively loads files ending in .yml. It extracts tags beginning with attack.t and writes an ATT&CK Navigator layer containing technique IDs, rule counts and example rule names. These counts describe declared tags, not measured detection coverage. The helper contains no model invocation, event replay or SIEM deployment integration.

Setup

Obtain the skill files from the original repository and prepare a Python environment with pySigma and the Splunk backend required by the script. The documented pip command installs pySigma and validators but does not explicitly install sigma-cli, despite later using sigma check and sigma convert. Confirm the CLI, backend and pipeline against the package versions you choose.

From the skill folder, an illustrative metadata-check command is python scripts/agent.py --action validate --rule rule.yml --output validation.json. A conversion command is python scripts/agent.py --action convert --rule rule.yml --output conversion.json. These commands follow the supplied argument parser; successful execution is not established.

Use distinct output filenames ending in .json for coverage actions. The script derives the Navigator filename by replacing .json with _layer.json; without that suffix, the report can overwrite the layer.

Example

The worked rule looks for access to lsass.exe, the Windows process involved in credential handling, and maps the behavior to ATT&CK T1003.001. Its selection combines a TargetImage suffix with four GrantedAccess text matches, then excludes source processes named svchost.exe, csrss.exe and wininit.exe.

An analyst could use this example to examine how selections and exclusions translate into a Splunk query. It signals possible credential access rather than proving Mimikatz use; the documentation itself lists legitimate security software as possible false positives. The deployment report's success counts, false-positive figures and execution time are illustrative template content, not demonstrated measurements.

Assessment & evidence

Limitations

The deployment examples change the worked rule's detection logic. The Splunk example searches Endpoint.Processes for an lsass.exe process name and omits the original access masks and source-process exclusions. The Elastic example also changes the fields and omits the access masks and wininit.exe exclusion. Neither establishes a faithful deployed equivalent of the original process-access rule.

The example labeled Microsoft Sentinel instantiates Microsoft365DefenderBackend. No Sentinel-specific table mapping or deployment implementation is shown, so Sentinel compatibility remains unverified. The helper itself accepts only splunk as a backend and exposes no custom pipeline configuration.

Validation consists of parsing and presence checks for selected metadata. It does not explicitly verify ATT&CK tag validity, detection effectiveness or false-positive behavior. Validation failures and caught batch conversion errors do not produce an explicit failing process exit status, limiting straightforward use as a CI gate.

Directory parsing failures are printed and skipped rather than retained in the JSON report, so batch totals exclude unreadable rules. Files ending in .yaml are also omitted. The full_pipeline action performs neither the documented validation action nor event tests or deployment. A successful conversion or a green Navigator layer therefore cannot establish operational protection.

Reasoning

The resource's practical value comes from connecting rule-writing concepts to readable examples and a small helper that developers can inspect. It can support learning and adaptation when a team already understands its telemetry.

The source supports a narrower operational role than the broad workflow suggests: local Splunk conversion and metadata reporting. The fixed backend, limited checks and changed deployment logic make independent review necessary before relying on any generated detection. Detection accuracy, scale and production suitability remain unknown.

Alternatives

The API reference identifies pySigma and sigma-cli as the underlying library and command-line tools. They are direct options for teams that want conversion without this skill's instructional layer: [https://github.com/SigmaHQ/pySigma] and [https://github.com/SigmaHQ/sigma-cli]. It also links the SigmaHQ rules repository as a source of existing detection content: [https://github.com/SigmaHQ/sigma].

Native SIEM rule authoring may better fit platform features outside these examples; SKILL.md specifically names Splunk risk-based alerting as a limitation. It also mentions Uncoder.IO as a web converter. Current capabilities, pricing and comparative quality of these alternatives are not assessed by the supplied files.

Evidence

The supplied source consists of the complete selected folder's skill instructions, API reference, Python helper and local license, together with the repository-level license. The instructions explain intended use; the Python source establishes the implemented CLI actions and their limits.

No execution logs, event fixtures, dependency lockfile, conversion comparisons or actual SIEM deployment records accompany these files. The deployment report appears within an output-format example and supplies no independent evidence for its success metrics. External linked resources are references rather than additional captured implementation evidence.

Access & freshness

Costs

The Apache 2.0 notices grant the covered rights without a license royalty. They do not establish the total cost of using the skill.

No prices are supplied for an assistant, SIEM licensing, log ingestion, storage, infrastructure or engineering time. The helper contains no AI-provider calls or billing integration. Any assistant charges and the overall operating cost remain unknown.

Rights

Both the repository-level and folder-level LICENSE files contain Apache License 2.0 with a 2026 mukul975 copyright notice. The license permits use, modification and redistribution, including commercial use, subject to its conditions.

Redistribution requires a license copy and preservation of applicable notices; modified files must prominently state that they changed. Applicable NOTICE attribution must also be retained if present. The license provides no general trademark permission and disclaims warranties. Terms for external dependencies, assistant services and separately obtained rule collections are not established by these notices.

Freshness

The supplied snapshot is pinned to revision 54a798831d2266a3ca61ce68a7acb80b81160d57 and was captured on 2026-11-16 at 22:13:37.306 UTC. A version-specific source location is [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/building-detection-rules-with-sigma]. The original main-branch URL may change independently.

The skill declares version 1.0. Its example rule uses 2024/03/15 dates, and the Navigator output hard-codes ATT&CK 14, Navigator 4.9 and layer 4.5. These values identify example metadata rather than establishing current compatibility. Compatibility with current package releases and Navigator schemas is unknown.

Actions

Start with one existing Sigma rule and representative Windows process-access events. Establish package versions, confirm the required backend imports and map the rule's fields to the actual destination schema. Compare the converted selections, access masks and exclusions with the original rule.

Before adopting the helper in CI, retain parsing failures in machine-readable output and ensure failed checks return a failing exit status. Add explicit checks for expected input files and review the output-path behavior.

Assess known positive and benign events before enabling alerts. The documentation proposes a non-alerting search over seven days of production data to examine false positives; that is a suggested future step, not an evidenced result. Review the deployment examples independently and resolve the Microsoft backend mapping before attempting Sentinel use.

Evidence for this report

LICENSEnotice · checked 2026-11-16