# elastic/protections-artifacts architecture

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

- Interactive diagram: https://gitdiagram.com/elastic/protections-artifacts
- Repository: https://github.com/elastic/protections-artifacts

## Overview

Protections Artifacts is a collection of detection and prevention artifacts for Elastic Security for endpoint, not an application with an internal execution pipeline. The README identifies EQL behavior rules, YARA malware-protection rules, and a ransomware-protection artifact as its main product branches. The tree shows platform-specific behavior rule directories; implementation details and artifact consumption mechanics were not sampled, so the graph shows only the documented product relationship.

Main entry points: [`behavior/rules/cross-platform`](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/cross-platform) (Cross-platform rules), [`behavior/rules/linux`](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/linux) (Linux rules), [`behavior/rules/macos`](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/macos) (macOS rules), [`behavior/rules/windows`](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/windows) (Windows rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_behavior["Behavior detections"]
  node_cross_platform_rules["Cross-platform rules"]
  node_linux_rules["Linux rules"]
  node_macos_rules["macOS rules"]
  node_windows_rules["Windows rules"]
end

subgraph group_malware["Malware protection"]
  node_yara_rules["YARA rules"]
end

subgraph group_ransomware["Ransomware protection"]
  node_ransomware_artifact["Ransomware artifact<br/>[artifact.lua]"]
end

node_elastic_endpoint(("Elastic Security"))

node_cross_platform_rules -->|"provides detections"| node_elastic_endpoint
node_linux_rules -->|"provides detections"| node_elastic_endpoint
node_macos_rules -->|"provides detections"| node_elastic_endpoint
node_windows_rules -->|"provides detections"| node_elastic_endpoint
node_yara_rules -->|"provides protection"| node_elastic_endpoint
node_ransomware_artifact -->|"provides protection"| node_elastic_endpoint

click node_cross_platform_rules "https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/cross-platform"
click node_linux_rules "https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/linux"
click node_macos_rules "https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/macos"
click node_windows_rules "https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/windows"
click node_yara_rules "https://github.com/elastic/protections-artifacts/tree/main/yara/rules"
click node_ransomware_artifact "https://github.com/elastic/protections-artifacts/blob/main/ransomware/artifact.lua"

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_cross_platform_rules,node_linux_rules,node_macos_rules,node_windows_rules toneBlue
class node_yara_rules toneAmber
class node_ransomware_artifact toneMint
class node_elastic_endpoint toneIndigo
```

## Components

### Behavior detections

- [Cross-platform rules](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/cross-platform): `behavior/rules/cross-platform`
- [Linux rules](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/linux): `behavior/rules/linux`
- [macOS rules](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/macos): `behavior/rules/macos`
- [Windows rules](https://github.com/elastic/protections-artifacts/tree/main/behavior/rules/windows): `behavior/rules/windows`

### Malware protection

- [YARA rules](https://github.com/elastic/protections-artifacts/tree/main/yara/rules): `yara/rules`

### Ransomware protection

- [Ransomware artifact](https://github.com/elastic/protections-artifacts/blob/main/ransomware/artifact.lua): `ransomware/artifact.lua`

### Other components

- **Elastic Security**

## Connections

- Cross-platform rules → Elastic Security: provides detections (evidence: `README.md`)
- Linux rules → Elastic Security: provides detections (evidence: `README.md`)
- macOS rules → Elastic Security: provides detections (evidence: `README.md`)
- Windows rules → Elastic Security: provides detections (evidence: `README.md`)
- YARA rules → Elastic Security: provides protection (evidence: `README.md`)
- Ransomware artifact → Elastic Security: provides protection (evidence: `README.md`)
