# kc-rubin/sigma-detection-rules architecture

> Architecture diagram of the GitHub repository kc-rubin/sigma-detection-rules, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kc-rubin/sigma-detection-rules
- Repository: https://github.com/kc-rubin/sigma-detection-rules

## Overview

##### Main Components
– Cloud Services: (e.g., cloud-azure)
– Linux: (e.g., linux-defender)
– Windows-based components: (e.g., windows-active_directory, windows-bitlocker, windows-dns, windows-exchange, windows-defender, etc.)
– Other Windows components: IIS, LSASS, RDP, WinRM, and more.
- SIEM Integration Layer: Since the rules are designed to be used by SIEM systems (with native SIGMA converters, SOC Prime online converter, and Kibana plugins), include a component that shows how the detection rules integrate with these SIEM platforms.
- Data Flow from Event Sources: You might want to represent the main Microsoft products (Windows 10, Windows Server, Active Directory, SQL Server, etc.) that generate the logs or events. These then feed into the SIEM, which uses these SIGMA rules to correlate, detect, and alert on anomalies.

##### Relationships and Interactions
- Relationship between rule categories and the target technologies. For instance, Windows Active Directory rules that use event IDs generated by AD domain controllers, or Linux Defender rules that monitor eBPF sensor deactivation events.

##### Architectural Patterns and Design Elements
- Modularity: The repository is split into multiple directories dedicated to different environments – a clear signal of a modular design where each module (or component) addresses a specific technology or attack vector.
- Extensibility: By organizing rules across many directories with clearly defined names (like windows-active_directory, windows-bitlocker, etc.), the project has been designed for easy extension to add further rules as needed.

##### Relevant Technologies and Frameworks
- Mention the Microsoft products listed in the README (Windows 10, Windows Server 2016, Active Directory Domain Services, SQL Server 2014, etc.), as these are likely the sources of events.
- SIGMA converter tools (both native and online versions) and the Kibana plugin from SOC Prime.
- Supporting technologies such as SYSMON and Windows Defender, which are directly referenced in the rules.

##### Overall Detail
- Be as detailed as practical and capture the essential architectural elements: the modular categorization of rules, the conversion and integration mechanisms, and the overall data flow from event detection to security analysis.

## Diagram (Mermaid)

```mermaid
flowchart TD
    A["Data Sources\n(Windows 10, Windows Server, AD, SQL, Linux, Cloud)"]:::source

    subgraph B["SIGMA Rules Repository"]
        R1["Cloud – Azure Rules"]:::rules
        R2["Linux Defender Rules"]:::rules
        subgraph W["Windows Detection Rules"]
            R3["Windows Active Directory Rules"]:::rules
            R4["Windows BitLocker Rules"]:::rules
            R5["Windows DNS Rules"]:::rules
            R6["Windows Exchange Rules"]:::rules
            R7["Windows Defender Rules"]:::rules
            R8["Windows IIS Rules"]:::rules
            R9["Windows LSASS Rules"]:::rules
            R10["Windows Lync/Skype Rules"]:::rules
            R11["Windows NTFS Rules"]:::rules
            R12["Windows OpenSSH Rules"]:::rules
            R13["General Windows OS Rules"]:::rules
            R14["Windows PKI-OCSP Rules"]:::rules
            R15["Windows RDP Rules"]:::rules
            R16["Windows Scheduled Task Rules"]:::rules
            R17["Windows Services Rules"]:::rules
            R18["Windows SQL Server Rules"]:::rules
            R19["Windows WinRM Rules"]:::rules
            R20["Windows Subsystem for Linux Rules"]:::rules
        end
    end

    C["SIEM Integration Layer\n(Native/Online SIGMA Converters, Kibana Plugin)"]:::integration

    A -->|"feeds"| C
    B -->|"supplies_rules"| C

    click R1 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/cloud-azure"
    click R2 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/linux-defender"
    click R3 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-active_directory"
    click R4 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-bitlocker"
    click R5 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-dns"
    click R6 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-exchange"
    click R7 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-defender"
    click R8 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-iis"
    click R9 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-lsass"
    click R10 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-lync-skype"
    click R11 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-ntfs"
    click R12 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-openssh"
    click R13 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-os"
    click R14 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-pki-ocsp"
    click R15 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-rdp"
    click R16 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-scheduled_task"
    click R17 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-services"
    click R18 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-sql_server"
    click R19 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-winrm"
    click R20 "https://github.com/kc-rubin/sigma-detection-rules/tree/main/windows-wsl"

    classDef source fill:#FFD700,stroke:#B8860B,stroke-width:2px
    classDef integration fill:#98FB98,stroke:#2E8B57,stroke-width:2px
    classDef rules fill:#ADD8E6,stroke:#1E90FF,stroke-width:2px
    classDef repo fill:#D3D3D3,stroke:#A9A9A9,stroke-width:2px
```
