# magvilson/splunk-soc-ssh-monitoring architecture

> Architecture diagram of the GitHub repository magvilson/splunk-soc-ssh-monitoring, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/magvilson/splunk-soc-ssh-monitoring
- Repository: https://github.com/magvilson/splunk-soc-ssh-monitoring

## Overview

This repository documents a Splunk SOC lab rather than implementing a standalone application. Its main workflow collects Linux SSH authentication events, stores them in Splunk, searches for failures and brute-force patterns, alerts on threshold breaches, and supports analyst investigation. The three SPL files represent distinct detection searches; the README also documents an advanced failure-followed-by-success scenario and MITRE ATT&CK mapping. The graph reflects documented relationships only: no source excerpts were provided, and lab configuration details beyond the README cannot be verified.

Main entry points: [`detections/ssh-brute-force.spl`](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/ssh-brute-force.spl) (Brute-Force Search), [`detections/failed-ssh-logins.spl`](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/failed-ssh-logins.spl) (Failed Login Search), [`detections/ssh-brute-force-followed-by-success.spl`](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/ssh-brute-force-followed-by-success.spl) (Failure-Then-Success Search), [`docs/incident-analysis.md`](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/docs/incident-analysis.md) (Incident Analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_telemetry["SSH Telemetry"]
  node_auth_log["auth.log"]
  node_splunk["Splunk Enterprise"]
  node_security_index[("security Index")]
  node_lab_setup["Lab Setup<br/>[lab-setup.md]"]
end

subgraph group_detections["Detection Searches"]
  node_failed_search["Failed Login Search"]
  node_brute_force["Brute-Force Search"]
  node_followed_success["Failure-Then-Success Search"]
end

subgraph group_response["Alert And Investigation"]
  node_alert["Splunk Alert"]
  node_incident_analysis["Incident Analysis"]
end

subgraph group_mapping["Threat Mapping"]
  node_mitre["T1110 Mapping<br/>[README.md]"]
end

node_ssh_activity(("SSH Activity"))
node_analyst(("SOC Analyst"))

node_ssh_activity -->|"generates events"| node_auth_log
node_auth_log -->|"ingested by"| node_splunk
node_splunk -->|"stores events"| node_security_index
node_security_index -->|"searched by"| node_failed_search
node_security_index -->|"searched by"| node_brute_force
node_security_index -->|"searched by"| node_followed_success
node_brute_force -->|"triggers"| node_alert
node_alert -->|"notifies"| node_analyst
node_analyst -->|"investigates"| node_incident_analysis
node_brute_force -->|"mapped to"| node_mitre

click node_failed_search "https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/failed-ssh-logins.spl"
click node_brute_force "https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/ssh-brute-force.spl"
click node_followed_success "https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/ssh-brute-force-followed-by-success.spl"
click node_incident_analysis "https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/docs/incident-analysis.md"
click node_lab_setup "https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/docs/lab-setup.md"
click node_mitre "https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/README.md"

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_auth_log,node_splunk,node_security_index,node_lab_setup toneBlue
class node_failed_search,node_brute_force,node_followed_success toneAmber
class node_alert,node_incident_analysis toneMint
class node_mitre toneRose
class node_ssh_activity,node_analyst toneIndigo
```

## Components

### SSH Telemetry

- **auth.log**
- **Splunk Enterprise**
- **security Index**
- [Lab Setup](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/docs/lab-setup.md): `docs/lab-setup.md`

### Detection Searches

- [Failed Login Search](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/failed-ssh-logins.spl): `detections/failed-ssh-logins.spl`
- [Brute-Force Search](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/ssh-brute-force.spl): `detections/ssh-brute-force.spl`
- [Failure-Then-Success Search](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/detections/ssh-brute-force-followed-by-success.spl): `detections/ssh-brute-force-followed-by-success.spl`

### Alert And Investigation

- **Splunk Alert**
- [Incident Analysis](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/docs/incident-analysis.md): `docs/incident-analysis.md`

### Threat Mapping

- [T1110 Mapping](https://github.com/magvilson/splunk-soc-ssh-monitoring/blob/main/README.md): `README.md`

### Other components

- **SSH Activity**
- **SOC Analyst**

## Connections

- SSH Activity → auth.log: generates events (evidence: `README.md`)
- auth.log → Splunk Enterprise: ingested by (evidence: `README.md`)
- Splunk Enterprise → security Index: stores events (evidence: `README.md`)
- security Index → Failed Login Search: searched by (evidence: `README.md`)
- security Index → Brute-Force Search: searched by (evidence: `README.md`)
- security Index → Failure-Then-Success Search: searched by (evidence: `README.md`)
- Brute-Force Search → Splunk Alert: triggers (evidence: `README.md`)
- Splunk Alert → SOC Analyst: notifies (evidence: `README.md`)
- SOC Analyst → Incident Analysis: investigates (evidence: `README.md`)
- Brute-Force Search → T1110 Mapping: mapped to (evidence: `README.md`)
