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 ↗
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.
Without the 3 simulation-only detections, 4 alerts remain: score 280 (100 + 70 + 40 + 70), 2 tactics, still 1 incident. Computed from the code's weights, not measured.
- Sensor
- Tree
- Rules
- Behavior
- Score
- Correlation
-
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.
-
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-0010high 70ImageName equals "powershell.exe"✓CommandLine contains "-enc "✓- critical
SNT-0001 - high
SNT-0010 - medium
SNT-0012
score 210Try this line in the test bench →
- critical
-
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-0300sim (simulation-only) - high
SNT-0320sim (simulation-only)
score 380210
- critical
-
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-B003sim (simulation-only) - high
SNT-B004
score 520280
- high
-
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.
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.
-
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 -
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 -
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 " ✓ -
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 -
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 -
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} -
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: livelaggingsilent (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
commonpure core: events, rules, scoring, correlationsensor-windowsETW sensorsensor-proccross-platform polling sensorscanYARA-X scanningconsolebuilt-in SOC consoleagentdsingle-endpoint agentprotogRPC definitionsservercentral fleet serveragentfleet agentcertgenmTLS 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
Office application spawns a script interpreter
Why
lineage ancestor "winword.exe"C:\Program Files\Microsoft Office\winword.exe, C:\Windows\explorer.exe
PowerShell with an encoded command
Why
ImageName equals "powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeCommandLine contains "-enc "powershell.exe -nop -w hidden -ep bypass -enc SQBFAFgA
Stealthy PowerShell (hidden / bypass)
Why
ImageName equals "powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeCommandLine contains "-w hidden"powershell.exe -nop -w hidden -ep bypass -enc SQBFAFgA
The lesson: no name-based rule sees this svchost.exe. SNT-B004 catches it through the PE's original name (OriginalFilename), which is not simulated here.
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.
| Tactic | Rules |
|---|---|
| Reconnaissance | 0 (not covered) |
| Resource Development | 0 (not covered) |
| Initial Access | 0 (not covered) |
| Execution | 14 |
| Persistence | 9 |
| Privilege Escalation | 2 |
| Defense Evasion | 17 |
| Credential Access | 5 |
| Discovery | 3 |
| Lateral Movement | 2 |
| Collection | 0 (not covered) |
| Command and Control | 8 |
| Exfiltration | 1 |
| Impact | 3 |
Export the ATT&CK Navigator layer from the console: GET /api/navigator.
Show all 51 rules
| ID | Title | Severity | ATT&CK techniques | Tactics | Status |
|---|---|---|---|---|---|
SNT-0001 | Office application spawns a script interpreter | critical | T1203 T1059 | Execution | live |
SNT-0002 | Web browser spawns a script interpreter | high | T1059 | Execution | live |
SNT-0003 | LOLBin chain into an interpreter | high | T1059 T1218 | Execution, Defense Evasion | live |
SNT-0010 | PowerShell with an encoded command | high | T1059.001 T1027 | Execution, Defense Evasion | live |
SNT-0011 | PowerShell download cradle | high | T1059.001 T1105 | Execution, Command and Control | live |
SNT-0012 | Stealthy PowerShell (hidden / bypass) | medium | T1059.001 T1562.001 | Execution, Defense Evasion | live |
SNT-0020 | Credential theft tool | critical | T1003 | Credential Access | live |
SNT-0021 | LSASS dump via comsvcs MiniDump | critical | T1003.001 | Credential Access | live |
SNT-0030 | Persistence via registry Run key | medium | T1547.001 | Persistence | live |
SNT-0031 | Scheduled task creation | low | T1053.005 | Persistence | live |
SNT-0040 | Windows service creation/modification | medium | T1543.003 | Persistence | live |
SNT-0050 | Shadow copy deletion (ransomware) | critical | T1490 | Impact | live |
SNT-0051 | Windows recovery sabotage | high | T1490 | Impact | live |
SNT-0060 | Remote execution via WMI | medium | T1047 | Execution | live |
SNT-0070 | Microsoft Defender disabled | high | T1562.001 | Defense Evasion | live |
SNT-0100 | Connection to a common C2 port | high | T1571 T1095 | Command and Control | simulation-only |
SNT-0101 | Ransom note dropped | critical | T1486 | Impact | simulation-only |
SNT-0110 | Lateral movement via PsExec | high | T1021.002 T1569.002 | Execution, Lateral Movement | live |
SNT-0111 | Remote execution via WMIC /node | high | T1021 T1047 | Execution, Lateral Movement | live |
SNT-0120 | Event log clearing | high | T1070.001 | Defense Evasion | live |
SNT-0121 | USN journal deletion | medium | T1070 | Defense Evasion | live |
SNT-0130 | UAC bypass (fodhelper / eventvwr) | high | T1548.002 | Privilege Escalation | live |
SNT-0140 | AMSI bypass attempt | high | T1562.001 | Defense Evasion | live |
SNT-0160 | Windows Firewall disabled | medium | T1562.004 | Defense Evasion | live |
SNT-0080 | Download via certutil (LOLBin) | high | T1105 T1218 | Defense Evasion, Command and Control | live |
SNT-0081 | Download via bitsadmin (LOLBin) | medium | T1105 T1197 | Persistence, Command and Control | live |
SNT-0090 | Local account creation | medium | T1136.001 | Persistence | live |
SNT-0200 | Known vulnerable driver loaded (BYOVD) | critical | T1068 T1211 | Privilege Escalation, Defense Evasion | simulation-only |
SNT-0210 | Network discovery | info | T1016 T1049 | Discovery | live |
SNT-0211 | System discovery | info | T1082 | Discovery | live |
SNT-0212 | Account / domain discovery | low | T1087 T1018 | Discovery | live |
SNT-0220 | Search for plaintext credentials | medium | T1552.001 | Credential Access | live |
SNT-0230 | Download via curl / wget | medium | T1105 | Command and Control | live |
SNT-0231 | Decoding via certutil | medium | T1140 | Defense Evasion | live |
SNT-0240 | HTTP exfiltration (PowerShell) | medium | T1048 T1567 | Exfiltration | live |
SNT-0250 | Persistence via Image File Execution Options (debugger) | high | T1546.012 | Persistence | live |
SNT-0300 | LSASS memory access (credential theft via handle) | critical | T1003.001 | Credential Access | simulation-only |
SNT-0310 | Remote thread injection | high | T1055.003 | Defense Evasion | simulation-only |
SNT-0320 | Known C2 named pipe | high | T1572 T1055 | Defense Evasion, Command and Control | simulation-only |
SNT-1000 | Download piped into a shell (curl|bash) | high | T1059.004 T1105 | Execution, Command and Control | live |
SNT-1001 | Base64 decode executed by a shell | high | T1140 T1059.004 | Execution, Defense Evasion | live |
SNT-1002 | Unix reverse shell | critical | T1059.004 T1071 | Execution, Command and Control | live |
SNT-1003 | chmod +x in a temporary directory | medium | T1222.002 | Defense Evasion | live |
SNT-1004 | Execution from a temporary directory | medium | T1059 | Execution | live |
SNT-1005 | Unix credential access (/etc/shadow, SSH keys) | high | T1003.008 T1552.004 | Credential Access | live |
SNT-1006 | Persistence via cron | medium | T1053.003 | Persistence | live |
SNT-1007 | Persistence via shell startup file | medium | T1546.004 | Persistence | live |
SNT-1008 | Shell history clearing (anti-forensics) | medium | T1070.003 | Defense Evasion | live |
SNT-1009 | macOS: osascript runs shell commands | high | T1059.002 | Execution | live |
SNT-1010 | macOS: SIP / Gatekeeper disabled | high | T1562.001 | Defense Evasion | live |
SNT-1011 | macOS: LaunchAgent / LaunchDaemon persistence | medium | T1543.001 | Persistence | live |
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-0100networkSNT-0101file writeSNT-0200image or driver loadSNT-0300LSASS handle accessSNT-0310remote threadSNT-0320named 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/realityValidated 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-agentdReplay the demo
SENTINELLE_REPLAY_FILE=./captures/demo.jsonl cargo run --release -p sentinelle-agentdmTLS fleet
cargo run -p sentinelle-certgen -- ./certs
cargo run --release -p sentinelle-server
SENTINELLE_HOST=poste-1 cargo run --release -p sentinelle-agentSet 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.