# vishnugovindu23-cmd/splunk-mitre-detections architecture

> Architecture diagram of the GitHub repository vishnugovindu23-cmd/splunk-mitre-detections, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishnugovindu23-cmd/splunk-mitre-detections
- Repository: https://github.com/vishnugovindu23-cmd/splunk-mitre-detections

## Overview

This repository is a detection-as-code library: scheduled Splunk searches are authored as YAML and mapped to ATT&CK, with validation, app/layer generation, and replay against Splunk. The main workflow is rule authoring → validation → app generation and deployment; sample replay is a separate verification path. The tree differs from README paths, so nodes use only paths actually present. The rule definitions are grouped by platform; the listed JSON artifacts are not assumed to be replay samples. Relationships follow README workflow statements or shown source calls.

Main entry points: [`build.py`](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/build.py) (App Builder), [`validate.py`](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/validate.py) (Rule Validation), [`win_kerberoasting.yml`](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/win_kerberoasting.yml) (Windows Rules), [`aws_cloudtrail_logging_disabled.yml`](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/aws_cloudtrail_logging_disabled.yml) (AWS Rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_detections["Detection Rules"]
  node_windows["Windows Rules"]
  node_aws["AWS Rules"]
  node_linux["Linux Rule"]
  node_okta["Okta Rule"]
end

subgraph group_tooling["Rule Tooling"]
  node_common["Shared Rule Loader<br/>[common.py]"]
  node_validate["Rule Validation<br/>[validate.py]"]
  node_build["App Builder<br/>[build.py]"]
  node_replay["Sample Replay<br/>[replay.py]"]
end

subgraph group_splunk["Splunk Integration"]
  node_splunk[("Splunk Service")]
end

subgraph group_outputs["Generated Artifacts"]
  node_navigator["ATT&amp;CK Layer"]
end

node_author(("Rule Author"))

node_author -->|"authors"| node_windows
node_author -->|"authors"| node_aws
node_author -->|"authors"| node_linux
node_author -->|"authors"| node_okta
node_windows -->|"validates"| node_validate
node_aws -->|"validates"| node_validate
node_linux -->|"validates"| node_validate
node_okta -->|"validates"| node_validate
node_validate -->|"loads rules"| node_common
node_build -->|"loads rules"| node_common
node_replay -->|"loads rules"| node_common
node_windows -->|"packages rules"| node_build
node_aws -->|"packages rules"| node_build
node_linux -->|"packages rules"| node_build
node_okta -->|"packages rules"| node_build
node_build -->|"generates"| node_navigator
node_replay -->|"sends and searches"| node_splunk

click node_windows "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/win_kerberoasting.yml"
click node_aws "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/aws_cloudtrail_logging_disabled.yml"
click node_linux "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/linux_ssh_brute_force.yml"
click node_okta "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/okta_mfa_fatigue.yml"
click node_common "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/common.py"
click node_validate "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/validate.py"
click node_build "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/build.py"
click node_replay "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/replay.py"
click node_navigator "https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/attack_navigator_layer.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_windows,node_aws,node_linux,node_okta toneBlue
class node_common,node_validate,node_build,node_replay toneAmber
class node_splunk toneMint
class node_navigator toneRose
class node_author toneIndigo
```

## Components

### Detection Rules

- [Windows Rules](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/win_kerberoasting.yml): `win_kerberoasting.yml`
- [AWS Rules](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/aws_cloudtrail_logging_disabled.yml): `aws_cloudtrail_logging_disabled.yml`
- [Linux Rule](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/linux_ssh_brute_force.yml): `linux_ssh_brute_force.yml`
- [Okta Rule](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/okta_mfa_fatigue.yml): `okta_mfa_fatigue.yml`

### Rule Tooling

- [Shared Rule Loader](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/common.py): `common.py`
- [Rule Validation](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/validate.py): `validate.py`
- [App Builder](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/build.py): `build.py`
- [Sample Replay](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/replay.py): `replay.py`

### Splunk Integration

- **Splunk Service**

### Generated Artifacts

- [ATT&CK Layer](https://github.com/vishnugovindu23-cmd/splunk-mitre-detections/blob/main/attack_navigator_layer.json): `attack_navigator_layer.json`

### Other components

- **Rule Author**

## Connections

- Rule Author → Windows Rules: authors (evidence: `README.md`)
- Rule Author → AWS Rules: authors (evidence: `README.md`)
- Rule Author → Linux Rule: authors (evidence: `README.md`)
- Rule Author → Okta Rule: authors (evidence: `README.md`)
- Windows Rules → Rule Validation: validates (evidence: `README.md`)
- AWS Rules → Rule Validation: validates (evidence: `README.md`)
- Linux Rule → Rule Validation: validates (evidence: `README.md`)
- Okta Rule → Rule Validation: validates (evidence: `README.md`)
- Rule Validation → Shared Rule Loader: loads rules (evidence: `validate.py`)
- App Builder → Shared Rule Loader: loads rules (evidence: `build.py`)
- Sample Replay → Shared Rule Loader: loads rules (evidence: `replay.py`)
- Windows Rules → App Builder: packages rules (evidence: `README.md`)
- AWS Rules → App Builder: packages rules (evidence: `README.md`)
- Linux Rule → App Builder: packages rules (evidence: `README.md`)
- Okta Rule → App Builder: packages rules (evidence: `README.md`)
- App Builder → ATT&CK Layer: generates (evidence: `README.md`)
- Sample Replay → Splunk Service: sends and searches (evidence: `replay.py`)
