Alpha · validated on real Windows 11 and macOS

Sentinelle, the open source EDR in Rust: Seven alerts.
One incident.

Sentinelle rebuilds process ancestry, applies 51 Sigma-style rules and folds a sequence's alerts into one incident. Written in Rust, self-hosted, for Windows, Linux and macOS. And it shows you what it doesn't cover yet.

Get started in 3 commands
  • 51 rules
  • 51 ATT&CK (sub-)techniques
  • 10 tactics
  • 45 live / 6 simulation-only
  • 63 tests
  • MIT license
  • sources ↗
Scripted scenario, replayed · captures/demo.jsonl · poste-test
Hand-written scenario, replayed by the real engine: measured result. Hatched = sensor not live yet.

Animation: replay of the captures/demo.jsonl scenario. explorer.exe launches winword.exe (facture.docm), which launches an encoded PowerShell: alerts SNT-0001, SNT-0010 and SNT-0012. PowerShell accesses lsass.exe memory (SNT-0300) and creates a named pipe (SNT-0320). evil.exe starts with a spoofed parent (SNT-B003), then an svchost.exe that is renamed PowerShell (SNT-B004). The 7 alerts form 1 critical incident, score 520, 5 tactics. SNT-0300, SNT-0320 and SNT-B003 are simulation-only.

The replay

A kill chain, replayed second by second

The captures/demo.jsonl scenario, replayed by the real detection engine. Scroll: each step lights up.

Replay view
  1. Sensor
  2. Tree
  3. Rules
  4. Behavior
  5. Score
  6. Correlation
  1. 20:00:00 → 20:00:01

    An ordinary endpoint

    explorer.exe launches winword.exe, which opens facture.docm. The sensor sees each process start; Sentinelle builds the tree. No rule matches.

  2. 20:00:02

    Office launches an encoded PowerShell

    powershell.exe -nop -w hidden -ep bypass -enc, spawned by Word. Three Sigma-style rules fire; SNT-0001 checks the whole ancestry, not just the direct parent.

    SNT-0010 high 70

    ImageName equals "powershell.exe" ✓

    CommandLine contains "-enc " ✓

    • critical SNT-0001
    • high SNT-0010
    • medium SNT-0012

    score 210Try this line in the test bench →

  3. 20:00:03 → 20:00:04

    LSASS, then a named pipe

    PowerShell opens lsass.exe memory (access 0x1410), then creates \\.\pipe\msagent_7f, a known C2 pipe name.

    • critical SNT-0300 sim (simulation-only)
    • high SNT-0320 sim (simulation-only)

    score 380210

  4. 20:00:05 → 20:00:06

    A fake parent, a fake svchost

    evil.exe claims explorer.exe as its parent, but PowerShell created it. Then comes an svchost.exe whose PE original name is PowerShell.EXE. Behavioral detectors see what a single rule can't.

    • high SNT-B003 sim (simulation-only)
    • high SNT-B004

    score 520280

  5. Correlation

    7 alerts4 alerts, 1 incident

    Same host, 120-second window: the alerts become one critical incident, score 520, 5 tactics280, 2 tactics (computed, not measured). The analyst reads one story, not seven alarms. From the console, they can kill the process, locally or remotely.

correlation

SENTINELLE_REPLAY_FILE=./captures/demo.jsonl cargo run --release -p sentinelle-agentd

Under the hood

How an EDR in Rust works: from sensor to console

From the kernel to the analyst's screen, everything runs on your machines: no telemetry is sent to a vendor.

  1. 01

    Windows, Linux, macOS: one sensor per system

    Windows: kernel ETW (administrator rights), with automatic fallback to polling. Linux and macOS: process-table polling, roughly once per second; it can miss very short-lived processes.

    › process_start · powershell.exe · pid 4200
  2. 02

    Who launched whom

    A flat ECS/OCSF-style schema for 8 event types, plus the full ancestry of every process: a rule can require an Office ancestor.

    › powershell.exe ← winword.exe ← explorer.exe
  3. 03

    Readable Sigma-style rules

    Operators equals, contains, starts_with, ends_with, regex, cidr; an and/or/not tree; lineage. Sigma YAML import: base64, windash, cidr, all, “1 of” and “all of”.

    {
      "id": "SNT-0010",
      "title": "PowerShell avec commande encodee",
      "severity": "high",
      "attack": ["T1059.001", "T1027"],
      "kind": "process_start",
      "all": [
        { "field": "ImageName", "op": "equals",
          "values": ["powershell.exe", "pwsh.exe"] },
        { "field": "CommandLine", "op": "contains",
          "values": ["-encodedcommand", "-enc ", " -e "] }
      ]
    }
    title: PowerShell avec chaîne encodée en base64
    id: snt-sigma-ps-b64
    level: high
    tags: [attack.t1059.001, attack.t1027]
    logsource: { category: process_creation, product: windows }
    detection:
      selection:
        Image|endswith: '\powershell.exe'
        CommandLine|base64|contains:
          - 'Net.WebClient'
          - 'DownloadString'
          - 'IEX'
      condition: selection
    › SNT-0010: ImageName equals ✓ · CommandLine contains "-enc " ✓
  4. 04

    What a single rule can't see

    Four stateful detectors, plus a YARA-X scan of process images.

    • B001 process-creation burst
    • B002 mass file encryption sim (simulation-only)
    • B003 parent spoofing sim (simulation-only)
    • B004 renamed sensitive binary
    › replay: SNT-B003 · SNT-B004
  5. 05

    From alerts to an incident

    Per-host risk that builds up and decays, weighted by each rule's confidence; allowlist and deduplication. Same host, 120 s: one incident.

    • critical 100
    • high 70
    • medium 40
    • low 15
    • info 5
    › 100 + 70 + 40 = 210
  6. 06

    Real-time SOC console, remote kill

    An SSE console built into the binary. Win32 process termination, local or remote. Exports: Markdown report, ATT&CK Navigator layer, incidents as JSON.

    › /api/respond/kill/{host}/{pid}
  7. 07

    Self-hosted: one endpoint or a whole fleet over gRPC + mTLS

    Agents and a central server over mutual TLS (tonic + rustls), a pure-Rust PKI (rcgen), kill orders pushed to agents, a liveness heartbeat.

    poste-3: live (real: lagging > 25 s, silent > 60 s)

    › cargo run -p sentinelle-certgen -- ./certs

Optional SQLite (bounded retention) · /api/health · 10 crates · Rust, tokio, axum, tonic, rustls, rcgen, ferrisetw, sysinfo, YARA-X, rusqlite, serde

The 15 HTTP endpoints
  • /
  • /api/stream (SSE)
  • /api/alerts
  • /api/events
  • /api/stats
  • /api/history
  • /api/coverage
  • /api/coverage/reality
  • /api/health
  • /api/incidents
  • /api/navigator
  • /api/report
  • /api/simulate
  • /api/respond/kill/{host}/{pid}
  • /healthz
The 10 crates
  • common pure core: events, rules, scoring, correlation
  • sensor-windows ETW sensor
  • sensor-proc cross-platform polling sensor
  • scan YARA-X scanning
  • console built-in SOC console
  • agentd single-endpoint agent
  • proto gRPC definitions
  • server central fleet server
  • agent fleet agent
  • certgen mTLS PKI

Try it

Test bench: try the detection rules in your browser

Pick an example or enter a process, its ancestry and its command line. Nothing leaves your browser.

Simplified JavaScript port of the 45 process_start rules in rules.json (Rust engine ↗). Not simulated: B001–B004, YARA-X, per-host score, allowlist, correlation, imported Sigma rules.

The 6 non-process rules (SNT-0100, 0101, 0200, 0300, 0310, 0320) can't be evaluated here: their sensor isn't live.

Lines in the demo.jsonl format, to replay with SENTINELLE_REPLAY_FILE on the real engine.

Static result for the “Word macro → PowerShell” preset

3 rules fired: 1 critical, 1 high, 1 medium

Total210

  • criticalSNT-0001T1203T1059score 100

    Office application spawns a script interpreter

    Why

    • lineage ancestor "winword.exe"C:\Program Files\Microsoft Office\winword.exe, C:\Windows\explorer.exe
  • highSNT-0010T1059.001T1027score 70

    PowerShell with an encoded command

    Why

    • ImageName equals "powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    • CommandLine contains "-enc "powershell.exe -nop -w hidden -ep bypass -enc SQBFAFgA
  • mediumSNT-0012T1059.001T1562.001score 40

    Stealthy PowerShell (hidden / bypass)

    Why

    • ImageName equals "powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    • CommandLine contains "-w hidden"powershell.exe -nop -w hidden -ep bypass -enc SQBFAFgA

Coverage

MITRE ATT&CK coverage: 51 techniques and sub-techniques, 10 of 14 tactics

51techniques and sub-techniques (37 base techniques)

10/14tactics covered

Rules per tactic; one rule can cover several tactics (64 rule–tactic pairs for 51 rules), but each technique counts only toward its primary tactic (tactic_of in the code). Initial Access is not covered.

Number of Sentinelle rules per MITRE ATT&CK Enterprise tactic
TacticRules
Reconnaissance0 (not covered)
Resource Development0 (not covered)
Initial Access0 (not covered)
Execution14
Persistence9
Privilege Escalation2
Defense Evasion17
Credential Access5
Discovery3
Lateral Movement2
Collection0 (not covered)
Command and Control8
Exfiltration1
Impact3

The 51 rules by severity

  • 8 critical
  • 21 high
  • 18 medium
  • 2 low
  • 2 info

Export the ATT&CK Navigator layer from the console: GET /api/navigator.

Show all 51 rules
Catalog of the 51 native Sentinelle EDR detection rules
IDTitleSeverityATT&CK techniquesTacticsStatus
SNT-0001Office application spawns a script interpretercriticalT1203 T1059Executionlive
SNT-0002Web browser spawns a script interpreterhighT1059Executionlive
SNT-0003LOLBin chain into an interpreterhighT1059 T1218Execution, Defense Evasionlive
SNT-0010PowerShell with an encoded commandhighT1059.001 T1027Execution, Defense Evasionlive
SNT-0011PowerShell download cradlehighT1059.001 T1105Execution, Command and Controllive
SNT-0012Stealthy PowerShell (hidden / bypass)mediumT1059.001 T1562.001Execution, Defense Evasionlive
SNT-0020Credential theft toolcriticalT1003Credential Accesslive
SNT-0021LSASS dump via comsvcs MiniDumpcriticalT1003.001Credential Accesslive
SNT-0030Persistence via registry Run keymediumT1547.001Persistencelive
SNT-0031Scheduled task creationlowT1053.005Persistencelive
SNT-0040Windows service creation/modificationmediumT1543.003Persistencelive
SNT-0050Shadow copy deletion (ransomware)criticalT1490Impactlive
SNT-0051Windows recovery sabotagehighT1490Impactlive
SNT-0060Remote execution via WMImediumT1047Executionlive
SNT-0070Microsoft Defender disabledhighT1562.001Defense Evasionlive
SNT-0100Connection to a common C2 porthighT1571 T1095Command and Controlsimulation-only
SNT-0101Ransom note droppedcriticalT1486Impactsimulation-only
SNT-0110Lateral movement via PsExechighT1021.002 T1569.002Execution, Lateral Movementlive
SNT-0111Remote execution via WMIC /nodehighT1021 T1047Execution, Lateral Movementlive
SNT-0120Event log clearinghighT1070.001Defense Evasionlive
SNT-0121USN journal deletionmediumT1070Defense Evasionlive
SNT-0130UAC bypass (fodhelper / eventvwr)highT1548.002Privilege Escalationlive
SNT-0140AMSI bypass attempthighT1562.001Defense Evasionlive
SNT-0160Windows Firewall disabledmediumT1562.004Defense Evasionlive
SNT-0080Download via certutil (LOLBin)highT1105 T1218Defense Evasion, Command and Controllive
SNT-0081Download via bitsadmin (LOLBin)mediumT1105 T1197Persistence, Command and Controllive
SNT-0090Local account creationmediumT1136.001Persistencelive
SNT-0200Known vulnerable driver loaded (BYOVD)criticalT1068 T1211Privilege Escalation, Defense Evasionsimulation-only
SNT-0210Network discoveryinfoT1016 T1049Discoverylive
SNT-0211System discoveryinfoT1082Discoverylive
SNT-0212Account / domain discoverylowT1087 T1018Discoverylive
SNT-0220Search for plaintext credentialsmediumT1552.001Credential Accesslive
SNT-0230Download via curl / wgetmediumT1105Command and Controllive
SNT-0231Decoding via certutilmediumT1140Defense Evasionlive
SNT-0240HTTP exfiltration (PowerShell)mediumT1048 T1567Exfiltrationlive
SNT-0250Persistence via Image File Execution Options (debugger)highT1546.012Persistencelive
SNT-0300LSASS memory access (credential theft via handle)criticalT1003.001Credential Accesssimulation-only
SNT-0310Remote thread injectionhighT1055.003Defense Evasionsimulation-only
SNT-0320Known C2 named pipehighT1572 T1055Defense Evasion, Command and Controlsimulation-only
SNT-1000Download piped into a shell (curl|bash)highT1059.004 T1105Execution, Command and Controllive
SNT-1001Base64 decode executed by a shellhighT1140 T1059.004Execution, Defense Evasionlive
SNT-1002Unix reverse shellcriticalT1059.004 T1071Execution, Command and Controllive
SNT-1003chmod +x in a temporary directorymediumT1222.002Defense Evasionlive
SNT-1004Execution from a temporary directorymediumT1059Executionlive
SNT-1005Unix credential access (/etc/shadow, SSH keys)highT1003.008 T1552.004Credential Accesslive
SNT-1006Persistence via cronmediumT1053.003Persistencelive
SNT-1007Persistence via shell startup filemediumT1546.004Persistencelive
SNT-1008Shell history clearing (anti-forensics)mediumT1070.003Defense Evasionlive
SNT-1009macOS: osascript runs shell commandshighT1059.002Executionlive
SNT-1010macOS: SIP / Gatekeeper disabledhighT1562.001Defense Evasionlive
SNT-1011macOS: LaunchAgent / LaunchDaemon persistencemediumT1543.001Persistencelive

Blind spots

Real coverage: what Sentinelle can't see yet

A blind spot you show is a blind spot you can fix. Its API reports it itself: GET /api/coverage/reality.

45/ 51

rules fed by a live sensor

live simulation-only

Not a replacement for CrowdStrike, SentinelOne or Microsoft Defender for Endpoint. To learn, audit, self-host or complement: yes.

45 of the 51 rules rely on a live sensor. The other 6 exist but still wait for their sensor source (Sysmon, additional ETW providers):

  • SNT-0100 network
  • SNT-0101 file write
  • SNT-0200 image or driver load
  • SNT-0300 LSASS handle access
  • SNT-0310 remote thread
  • SNT-0320 named pipe

Add the SNT-B002 (file writes) and SNT-B003 (real parent) detectors, which have no live source either; the endpoint only lists rules.

curl http://localhost:8787/api/coverage/reality

Validated on real hardware

  • Windows 11 Pro: live kernel ETW, SNT-0012, SNT-B001 and SNT-B004 detections on real processes
  • Real Win32 kill, live mTLS fleet, SQLite that survives a restart, Sigma import, YARA
  • macOS: real sensor, real SNT-1002 detection; one false positive found, then fixed
  • Ubuntu + Windows CI on every commit (fmt + clippy -D warnings), 63 tests
  • Benign Windows and Linux corpus: 0 false positives on this corpus

What it isn't (yet)

  • No kernel anti-tamper (PPL / MVI): an administrator can stop the agent
  • No large-scale threat intelligence, no 24/7 SOC
  • Unsigned binaries: Defender may quarantine them
  • Outside Windows, polling can miss very short-lived processes
  • Alpha, a single maintainer

Roadmap: wire the sensor sources for the 6 rules and for SNT-B002 / SNT-B003. Contribute on GitHub ↗

Get started

Install the self-hosted EDR in three commands

Prerequisite: the Rust toolchain (cargo). Then open the console at http://localhost:8787 (fleet: the server's, at http://localhost:8080).

Single endpoint

git clone https://github.com/Pazificateur69/sentinelle-edr
cd sentinelle-edr
cargo run --release -p sentinelle-agentd

Replay the demo

SENTINELLE_REPLAY_FILE=./captures/demo.jsonl cargo run --release -p sentinelle-agentd

mTLS fleet

cargo run -p sentinelle-certgen -- ./certs
cargo run --release -p sentinelle-server
SENTINELLE_HOST=poste-1 cargo run --release -p sentinelle-agent

Set SENTINELLE_TOKEN before exposing the server: without a token, its kill response route is open. The single-host agent listens on 127.0.0.1 and leaves kill and simulate open until a token is set.

Windows: run the terminal as Administrator for ETW. Defender may quarantine these unsigned binaries: exclude the folder in Windows Security.

Environment variables
  • SENTINELLE_DB
  • SENTINELLE_RULES_DIR
  • SENTINELLE_YARA_DIR
  • SENTINELLE_REPLAY_FILE
  • SENTINELLE_CONFIG
  • SENTINELLE_ALLOWLIST
  • SENTINELLE_TOKEN
  • SENTINELLE_HTTP

FAQ

Sentinelle EDR: frequently asked questions

Another question? Open an issue ↗

What is an open source EDR?

An EDR (Endpoint Detection & Response) monitors activity on endpoints (processes and more), detects malicious behavior and lets you respond to it. Sentinelle is open source under the MIT license: its code and its 51 rules are readable and auditable.

How does an EDR work?

A sensor observes endpoint activity; for Sentinelle in live mode, that means process creations. Each event is normalized, attached to the process tree, evaluated by rules and behavioral detectors, scored, then correlated with the host's other alerts into incidents, which an analyst reviews and can act on, for example by killing a process.

Does Sentinelle replace CrowdStrike, SentinelOne or Microsoft Defender for Endpoint?

No. Sentinelle has no kernel anti-tamper, no large-scale threat intelligence and no 24/7 SOC. It is meant for learning, auditing, self-hosting or complementing an existing setup.

Is Sentinelle self-hosted? Does it send data to a vendor?

Yes, it is fully self-hosted: no telemetry is sent to any vendor.

Which operating systems are supported?

Windows (ETW sensor, with polling as a fallback), Linux and macOS (process-table polling, roughly every second). 39 Windows rules and 12 Linux/macOS rules.

Is it compatible with Sigma rules?

Yes: it imports Sigma YAML rules with the base64, windash, cidr and all modifiers, and the “1 of” and “all of” quantifiers.

How is MITRE ATT&CK coverage measured?

Each rule declares its ATT&CK techniques: 51 distinct techniques and sub-techniques (37 base techniques), 10 tactics covered. Initial Access is not covered. The console exports an ATT&CK Navigator layer (/api/navigator).

What does “simulation-only” mean?

6 rules (network, file write, image load, LSASS handle access, remote thread, named pipe) exist but don't have a live sensor yet. They fire during replay. The /api/coverage/reality endpoint reports this. The SNT-B002 (file writes) and SNT-B003 (real parent) behavioral detectors have no live source either; that endpoint does not mention them.

Why does Windows Defender quarantine Sentinelle?

The binaries are not signed (Authenticode). That is expected for an unsigned EDR: exclude the folder in Windows Security.

Does it need administrator rights?

On Windows, yes, for the ETW sensor. Without them, Sentinelle automatically falls back to polling.

Can I use it in production?

Sentinelle is alpha software maintained by a single person. Read the known limitations before any deployment.

How do I add a rule?

Add a JSON entry to crates/common/rules.json and rebuild (native rules are compiled into the binary), or drop a Sigma YAML file into a folder set via SENTINELLE_RULES_DIR (for example ./rules.d). An allowlist helps reduce false positives.