◆ 2026-11-08 · article — Why green squares on an ATT&CK map lie◆ 2026-11-07 · blog — auditd is losing events, and it tells you only if you ask◆ 2026-11-06 · article — Entra ID sign-in logs: what you get on each license◆ 2026-11-05 · article — Windows Event Forwarding: central logs without an agent◆ 2026-11-04 · blog — Event time versus ingestion time: which clock your rule is reading◆ 2026-11-03 · blog — Reading a Sysmon event 10 against LSASS◆ 2026-11-08 · article — Why green squares on an ATT&CK map lie◆ 2026-11-07 · blog — auditd is losing events, and it tells you only if you ask◆ 2026-11-06 · article — Entra ID sign-in logs: what you get on each license◆ 2026-11-05 · article — Windows Event Forwarding: central logs without an agent◆ 2026-11-04 · blog — Event time versus ingestion time: which clock your rule is reading◆ 2026-11-03 · blog — Reading a Sysmon event 10 against LSASS
01 — Who we are
A small purple team that writes down everything it learns. No vendor slides, no fear marketing — just detections that fire, attacks replayed in a lab to prove it, playbooks that work at 3 a.m., and the reasoning behind all of it.
/ 0x01
Detect
SIEM rule engineering for Wazuh, Sentinel and Defender — mapped to MITRE ATT&CK, tuned against noise.
/ 0x02
Respond
Incident playbooks and automation that turn an alert into a decision in minutes, not meetings.
/ 0x03
Harden
Baselines for endpoints and cloud tenants, plus awareness material people actually read.
/ 0x04
Validate
Adversary emulation in a lab with public tools: run the technique, check that the rule fires, fix what it misses.
01# =============================================================================02# Detection spec — template03#04# Companion to:05# https://entropywatch.dev/articles/write-the-detection-spec-before-the-rule/06# License: CC BY 4.0 — ENTROPY//WATCH07# Template version: 2026-10-2408# Structure inspired by Palantir's Alerting and Detection Strategy framework:09# https://github.com/palantir/alerting-detection-strategy-framework10#11# HOW TO USE12# One file per detection, next to the rule in version control, e.g.13# detections/windows/new-service-on-dc/spec.yml + rule.xml / rule.kql.14# Write `goal`, `data` and `blind_spots` BEFORE the rule. Fill `validation`15# before the rule goes to production. Append to `tuning_log`, never rewrite it.16#17# BEFORE YOU USE18# - ADAPT `status` values and `priority` to your own triage model.19# - ADAPT `data.sources` to the ids in your log source inventory.20# - The example below is complete but generic: replace every value.21# =============================================================================2223id: DET-0001# stable, never reused24title:"New service installed on a domain controller"25status: draft # draft | testing | production | retired26owner:""# person or team who answers for this rule27created: YYYY-MM-DD28updated: YYYY-MM-DD2930# What behavior should this detect, in one or two sentences, and why it matters.31goal:>32 Detect a new Windows service on a domain controller. Services run as SYSTEM, start33 automatically and are a common way to run code persistently or move laterally to a DC.34 New services on DCs are rare and planned.3536# ATT&CK only where the rule actually detects the technique.37attack:38-technique: T1543.00339name:"Create or Modify System Process: Windows Service"4041# Which data the rule reads, and what must be true for that data to exist.42data:43sources:44-inventory_id:"Windows domain controllers — Security log"# from log-source-inventory.yml45events:["4697"]46requires:"Advanced Audit Policy: System > Security System Extension: Success"47-inventory_id:"Windows domain controllers — System log"48events:["7045"]49requires:"Nothing: written by the Service Control Manager by default"50fields:51-"ServiceName, ServiceFileName (4697) / Service Name, Image Path (7045)"52-"SubjectUserName (4697): who installed it"5354# How the rule works, in plain language. The rule itself lives next to this file.55strategy:>56 Alert on any 4697 or 7045 on a domain controller. Join both on host and service name57 within 5 min to avoid duplicate alerts. Exclude services on the allowlist below.5859# What this rule will NOT see, and what it assumes. The most important section.60blind_spots:61-"Services created by changing an existing service's ImagePath: no 4697/7045. Covered by a separate rule on registry changes."62-"Security System Extension auditing disabled on a DC: only 7045 remains."63-"Attacker clears the System log after installing: 104 is written; covered by the log-clear rule."64assumptions:65-"All DCs are in the DC host group in the SIEM."66-"Planned service installations on DCs go through change management."6768# Expected legitimate matches and how they are handled.69false_positives:70-source:"Monthly patching: Windows Defender and agent updates reinstall services"71handling:"Allowlist by ServiceName + ImagePath, reviewed every quarter"72-source:"Backup or monitoring agent upgrades"73handling:"Allowlist by ImagePath under the vendor's program folder"74allowlist:75-service_name:""# exact name76image_path:""# full path, not a wildcard on the file name77reason:""78added: YYYY-MM-DD79review_by: YYYY-MM-DD8081# How to prove the rule works. Run before production and after every change.82validation:83environment:"Test DC or lab domain controller"84steps:85-"sc.exe create ew-det-test binPath= C:\\Windows\\System32\\notepad.exe"86-"sc.exe delete ew-det-test"87expected:88-"4697 and 7045 for ew-det-test on the test DC"89-"One alert in the SIEM within the expected latency"90last_run: YYYY-MM-DD91result:""# pass | fail + note9293priority: high # what triage does with it, not how scary it sounds94response:>95 Identify who installed the service (SubjectUserName on 4697) and whether a change96 ticket exists. If not: isolate per the DC compromise playbook; do not delete the service97 before collecting the binary at ImagePath.9899# Append-only record of changes and why.100tuning_log:101-date: YYYY-MM-DD102change:"Initial version"103why:""104alerts_per_week_before:null105alerts_per_week_after:null106107references:108- https://attack.mitre.org/techniques/T1543/003/
01## =============================================================================02## auditd baseline — ENTROPY//WATCH03##04## Companion to:05## https://entropywatch.dev/articles/auditd-for-people-who-mostly-run-windows/06## License: MIT — ENTROPY//WATCH07## Version: 2026-10-2308##09## Install as /etc/audit/rules.d/50-entropywatch.rules, then:10## augenrules --check # are the files in rules.d newer than audit.rules?11## augenrules --load # compile rules.d into audit.rules and load it12## auditctl -l # what the kernel has loaded now13##14## BEFORE YOU DEPLOY15## - ADAPT the arch=b32 lines: keep them on x86_64 (32-bit syscalls are a16## separate table). Remove them on architectures without 32-bit support.17## - ADAPT the service-account execve rule: set the UID of your web or app18## server user (33 = www-data on Debian/Ubuntu; check with `id -u <user>`).19## - auid>=1000 assumes regular users start at UID 1000 (check UID_MIN in20## /etc/login.defs). 4294967295 is the "unset" audit UID of processes that21## were never part of a login session.22## - The immutable flag (-e 2) is commented out. Enable it only after the23## rules have been tested: once set, changing rules requires a reboot.24## - Other files in rules.d may already set -D, -b and -f. Keep one of each.25## =============================================================================2627## Start clean, give the kernel room to buffer bursts, report failures via printk.28-D29-b 819230-f 13132## --- Identity and privileges ------------------------------------------------33-w /etc/passwd -p wa -k identity34-w /etc/shadow -p wa -k identity35-w /etc/group -p wa -k identity36-w /etc/gshadow -p wa -k identity37-w /etc/sudoers -p wa -k sudoers38-w /etc/sudoers.d/ -p wa -k sudoers3940## --- Remote access ----------------------------------------------------------41-w /etc/ssh/sshd_config -p wa -k sshd42-w /etc/ssh/sshd_config.d/ -p wa -k sshd4344## --- Persistence ------------------------------------------------------------45-w /etc/crontab -p wa -k cron46-w /etc/cron.d/ -p wa -k cron47-w /var/spool/cron/ -p wa -k cron48-w /etc/systemd/system/ -p wa -k systemd49-w /etc/ld.so.preload -p wa -k preload5051## --- The audit configuration itself -----------------------------------------52-w /etc/audit/ -p wa -k auditconfig5354## --- Kernel modules ---------------------------------------------------------55-a always,exit -F arch=b64 -S init_module,finit_module,delete_module -k modules56-a always,exit -F arch=b32 -S init_module,finit_module,delete_module -k modules5758## --- Commands run by people -------------------------------------------------59## Every execve by a process that belongs to a login session of a regular user,60## including commands they run through sudo (auid keeps the original user).61-a always,exit -F arch=b64 -S execve -F auid>=1000 -F auid!=4294967295 -k exec_user62-a always,exit -F arch=b32 -S execve -F auid>=1000 -F auid!=4294967295 -k exec_user6364## --- Commands run by an internet-facing service account ---------------------65## ADAPT: the UID of your web/app server user. A web shell runs as this user,66## outside any login session, so the rule above does not see it.67-a always,exit -F arch=b64 -S execve -F euid=33 -k exec_service68-a always,exit -F arch=b32 -S execve -F euid=33 -k exec_service6970## --- Make the rules immutable until reboot (enable after testing) -----------71# -e 2
01<#02=============================================================================03 PowerShell logging check — ENTROPY//WATCH0405 Companion to:06 https://entropywatch.dev/articles/powershell-logging-what-4104-shows/07 License: MIT — ENTROPY//WATCH08 Version: 2026-10-210910 READ-ONLY. Reports on THIS machine:11 - Script Block, Module and Transcription policy for Windows PowerShell 5.112 and PowerShell 7 (PowerShellCore policy keys)13 - whether the PowerShell 2.0 engine is installed14 - size of the PowerShell event logs and the newest 4104 event15 Changes nothing. Run from an elevated Windows PowerShell 5.1 or PowerShell 716 (elevation is needed to read the optional feature state).1718 BEFORE YOU DEPLOY19 - ADAPT nothing to run it; ADAPT your Group Policy to what it reports.20 - Policy values set by Group Policy live under HKLM:\SOFTWARE\Policies.21 Values set only in powershell.config.json (PowerShell 7) are not read here.2223 USAGE24 .\powershell-logging-check.ps1 | Format-Table -AutoSize25=============================================================================26#>27[CmdletBinding()]28param()2930Set-StrictMode-Version Latest31$ErrorActionPreference = 'Stop'3233functionGet-RegistryValue{34param([string]$Path,[string]$Name)35$item = Get-ItemProperty-Path $Path-Name $Name-ErrorAction SilentlyContinue36if($null-eq$item){return$null}37return$item.$Name38}3940functionNew-Result{41param([string]$Area,[string]$Check,[string]$Actual,[string]$Status)42[pscustomobject]@{ Area = $Area; Check = $Check; Actual = $Actual; Status = $Status}43}4445functionFormat-Value{param($Value)if($null-eq$Value){'not set'}else{[string]$Value}}4647# --- 1. Policy for both engines ----------------------------------------------48$engines = @(49 @{ Area = 'Windows PowerShell 5.1'; Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell'}50 @{ Area = 'PowerShell 7'; Key = 'HKLM:\SOFTWARE\Policies\Microsoft\PowerShellCore'}51)5253foreach($e in $engines){54$sbl = Get-RegistryValue"$($e.Key)\ScriptBlockLogging"'EnableScriptBlockLogging'55New-Result$e.Area 'Script block logging (4104)'(Format-Value$sbl) $(if($sbl-eq 1){'OK'}else{'MISSING'})5657$inv = Get-RegistryValue"$($e.Key)\ScriptBlockLogging"'EnableScriptBlockInvocationLogging'58New-Result$e.Area 'Invocation logging (4105/4106, noisy)'(Format-Value$inv)'INFO'5960$mod = Get-RegistryValue"$($e.Key)\ModuleLogging"'EnableModuleLogging'61New-Result$e.Area 'Module logging (4103)'(Format-Value$mod) $(if($mod-eq 1){'OK'}else{'INFO'})6263$tr = Get-RegistryValue"$($e.Key)\Transcription"'EnableTranscripting'64$dir = Get-RegistryValue"$($e.Key)\Transcription"'OutputDirectory'65New-Result$e.Area 'Transcription'"$(Format-Value$tr); directory: $(Format-Value$dir)"'INFO'6667if($e.Area -eq'PowerShell 7'){68$use = Get-RegistryValue"$($e.Key)\ScriptBlockLogging"'UseWindowsPowerShellPolicySetting'69New-Result$e.Area 'Script block logging follows Windows PowerShell policy'(Format-Value$use)'INFO'70}71}7273# --- 2. PowerShell 2.0 engine (no script block logging) ----------------------74$v2State = 'unknown'75try{76if(Get-CommandGet-WindowsOptionalFeature-ErrorAction SilentlyContinue){77# Client and Server name the engine feature MicrosoftWindowsPowerShellV2; clients also have a ...V2Root parent.78$f = Get-WindowsOptionalFeature-Online -FeatureName MicrosoftWindowsPowerShellV2 -ErrorAction SilentlyContinue |79Select-Object-First 180$v2State = if($null-eq$f){'not present'}else{[string]$f.State }81}82}catch{83$v2State = "unknown ($($_.Exception.Message))"84}85New-Result'Engine''PowerShell 2.0 feature'$v2State $(if($v2State-eq'Enabled'){'MISSING'}elseif($v2State-like'unknown*'){'CHECK'}else{'OK'})8687# --- 3. Event logs -------------------------------------------------------------88foreach($name in @('Microsoft-Windows-PowerShell/Operational','PowerShellCore/Operational')){89$log = Get-WinEvent-ListLog $name-ErrorAction SilentlyContinue90if($null-eq$log){91New-Result'Event log'$name'log not found (engine not installed?)''INFO'92continue93}94New-Result'Event log'"$name maximum size (MB)"([math]::Round($log.MaximumSizeInBytes / 1MB))'INFO'95$last = Get-WinEvent-FilterHashtable @{ LogName = $name; Id = 4104 }-MaxEvents 1 -ErrorAction SilentlyContinue96New-Result'Event log'"$name newest 4104" $(if($null-eq$last){'none'}else{[string]$last.TimeCreated })'INFO'97}
01<!--02=============================================================================03 Sysmon baseline — ENTROPY//WATCH0405 Companion to:06 https://entropywatch.dev/articles/sysmon-without-drowning/07 License: MIT — ENTROPY//WATCH08 Version: 2026-10-2009 Schema 4.50 = Sysmon 13 or later. Written for current Sysmon 15; newer10 versions accept older schema versions.1112 Philosophy: log every process start and the few event types that are rare13 and valuable; log the noisy types (network, file, registry) ONLY for an14 include list. Anything not listed is not logged.1516 BEFORE YOU DEPLOY17 - ADAPT every block marked ADAPT: exclusions for your EDR, backup and18 monitoring agents, and the paths your software really uses.19 - Test on a few machines first and measure events per day per event ID:20 Get-WinEvent -LogName Microsoft-Windows-Sysmon/Operational |21 Group-Object Id | Sort-Object Count -Descending22 - Install: sysmon64.exe -accepteula -i sysmon-baseline.xml23 Update: sysmon64.exe -c sysmon-baseline.xml24 Show: sysmon64.exe -c25=============================================================================26-->27<Sysmonschemaversion="4.50">28<HashAlgorithms>SHA256,IMPHASH</HashAlgorithms>29<CheckRevocation>False</CheckRevocation>30<EventFiltering>3132<!-- Event 1: process creation. Log everything; exclude only proven noise. -->33<RuleGroupname="ProcessCreate"groupRelation="or">34<ProcessCreateonmatch="exclude">35<!-- ADAPT: add high-frequency, known-good parents, e.g. your monitoring agent:36 <ParentImage condition="is">C:\Program Files\ExampleMonitor\agent.exe</ParentImage>37 -->38</ProcessCreate>39</RuleGroup>4041<!-- Event 3: network connections. Include only processes and ports that matter. -->42<RuleGroupname="NetworkConnect"groupRelation="or">43<NetworkConnectonmatch="include">44<Imagecondition="end with">\powershell.exe</Image>45<Imagecondition="end with">\pwsh.exe</Image>46<Imagecondition="end with">\rundll32.exe</Image>47<Imagecondition="end with">\regsvr32.exe</Image>48<Imagecondition="end with">\mshta.exe</Image>49<Imagecondition="end with">\certutil.exe</Image>50<Imagecondition="end with">\bitsadmin.exe</Image>51<Imagecondition="end with">\wscript.exe</Image>52<Imagecondition="end with">\cscript.exe</Image>53<Imagecondition="end with">\msbuild.exe</Image>54<Imagecondition="end with">\installutil.exe</Image>55<DestinationPortcondition="is">22</DestinationPort>56<DestinationPortcondition="is">3389</DestinationPort>57<DestinationPortcondition="is">5985</DestinationPort>58<DestinationPortcondition="is">5986</DestinationPort>59</NetworkConnect>60</RuleGroup>6162<!-- Event 5: process terminated. Off. -->63<RuleGroupname="ProcessTerminate"groupRelation="or">64<ProcessTerminateonmatch="include"/>65</RuleGroup>6667<!-- Event 6: driver loaded. Log all except drivers signed by Microsoft Windows with a valid signature. -->68<RuleGroupname="DriverLoad"groupRelation="or">69<DriverLoadonmatch="exclude">70<Rulename="MicrosoftSigned"groupRelation="and">71<Signaturecondition="is">Microsoft Windows</Signature>72<SignatureStatuscondition="is">Valid</SignatureStatus>73</Rule>74</DriverLoad>75</RuleGroup>7677<!-- Event 7: image (DLL) loaded. Off: very high volume. -->78<RuleGroupname="ImageLoad"groupRelation="or">79<ImageLoadonmatch="include"/>80</RuleGroup>8182<!-- Event 8: CreateRemoteThread. Log all; rare on most machines. -->83<RuleGroupname="CreateRemoteThread"groupRelation="or">84<CreateRemoteThreadonmatch="exclude">85<!-- ADAPT: exclude your EDR / AV if it shows up here constantly. -->86</CreateRemoteThread>87</RuleGroup>8889<!-- Event 9: raw disk read. Log all; expect backup and defrag tools. -->90<RuleGroupname="RawAccessRead"groupRelation="or">91<RawAccessReadonmatch="exclude">92<!-- ADAPT: exclude your backup agent. -->93</RawAccessRead>94</RuleGroup>9596<!-- Event 10: process access. Only access to LSASS. -->97<RuleGroupname="ProcessAccess"groupRelation="or">98<ProcessAccessonmatch="include">99<TargetImagecondition="is">C:\Windows\System32\lsass.exe</TargetImage>100</ProcessAccess>101</RuleGroup>102<RuleGroupname="ProcessAccessExclusions"groupRelation="or">103<ProcessAccessonmatch="exclude">104<!-- ADAPT: your EDR / AV reads LSASS all the time. Exclude it by full path:105 <SourceImage condition="is">C:\Program Files\ExampleEDR\sensor.exe</SourceImage>106 -->107</ProcessAccess>108</RuleGroup>109110<!-- Event 11: file created. Only persistence locations and executables in user-writable paths. -->111<RuleGroupname="FileCreate"groupRelation="or">112<FileCreateonmatch="include">113<TargetFilenamecondition="contains">\Start Menu\Programs\Startup\</TargetFilename>114<TargetFilenamecondition="begin with">C:\Windows\System32\Tasks\</TargetFilename>115<TargetFilenamecondition="begin with">C:\Windows\Tasks\</TargetFilename>116<Rulename="ExecutableInUserProfile"groupRelation="and">117<TargetFilenamecondition="begin with">C:\Users\</TargetFilename>118<TargetFilenamecondition="end with">.exe</TargetFilename>119</Rule>120<Rulename="ScriptInUserProfile"groupRelation="and">121<TargetFilenamecondition="begin with">C:\Users\</TargetFilename>122<TargetFilenamecondition="end with">.ps1</TargetFilename>123</Rule>124</FileCreate>125</RuleGroup>126127<!-- Events 12/13/14: registry. Only autostart and service locations. -->128<RuleGroupname="RegistryEvent"groupRelation="or">129<RegistryEventonmatch="include">130<TargetObjectcondition="contains">\Software\Microsoft\Windows\CurrentVersion\Run</TargetObject>131<TargetObjectcondition="contains">\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run</TargetObject>132<TargetObjectcondition="contains">\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\</TargetObject>133<TargetObjectcondition="contains">\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\</TargetObject>134<Rulename="ServiceImagePath"groupRelation="and">135<TargetObjectcondition="contains">\CurrentControlSet\Services\</TargetObject>136<TargetObjectcondition="end with">\ImagePath</TargetObject>137</Rule>138</RegistryEvent>139</RuleGroup>140141<!-- Event 15: alternate data stream hash. Off. -->142<RuleGroupname="FileCreateStreamHash"groupRelation="or">143<FileCreateStreamHashonmatch="include"/>144</RuleGroup>145146<!-- Events 17/18: named pipes. Off. ADAPT: enable when you have a detection that needs it. -->147<RuleGroupname="PipeEvent"groupRelation="or">148<PipeEventonmatch="include"/>149</RuleGroup>150151<!-- Events 19/20/21: WMI event subscriptions. Log all; rare and a known persistence method. -->152<RuleGroupname="WmiEvent"groupRelation="or">153<WmiEventonmatch="exclude"/>154</RuleGroup>155156<!-- Event 22: DNS queries. Off by default: high volume.157 ADAPT: if your DNS servers do not log queries, consider enabling with an exclude list. -->158<RuleGroupname="DnsQuery"groupRelation="or">159<DnsQueryonmatch="include"/>160</RuleGroup>161162<!-- Event 23: file delete with archiving. Off: copies deleted files to disk. -->163<RuleGroupname="FileDelete"groupRelation="or">164<FileDeleteonmatch="include"/>165</RuleGroup>166167<!-- Event 24: clipboard. Off: may capture sensitive data. -->168<RuleGroupname="ClipboardChange"groupRelation="or">169<ClipboardChangeonmatch="include"/>170</RuleGroup>171172<!-- Event 25: process tampering (hollowing, herpaderping). Log all; rare. -->173<RuleGroupname="ProcessTampering"groupRelation="or">174<ProcessTamperingonmatch="exclude"/>175</RuleGroup>176177</EventFiltering>178</Sysmon>
01# =============================================================================02# Log source inventory — template03#04# Companion to:05# https://entropywatch.dev/articles/which-logs-do-you-actually-have/06# License: CC BY 4.0 — ENTROPY//WATCH07# Template version: 2026-10-1708#09# HOW TO USE10# 1. Write your questions first (section `questions`). Every source you list11# should answer at least one of them; every question should have a source.12# 2. One entry per SOURCE TYPE, not per host ("Windows domain controllers",13# not "DC01", "DC02"). List hosts only where coverage differs.14# 3. Fill a field only after you have checked it on a real system. Unknown is15# a valid answer: write `unknown`, not a guess.16# 4. Copy every gap you find into `gaps` and rank it.17#18# BEFORE YOU USE19# - ADAPT `questions` to your environment and threat model.20# - ADAPT `retention_target_days` per source: how far back YOUR incidents need21# to look, plus any legal or contractual requirement. Write down why.22# - DELETE the example entries (marked `example: true`) once you have your own.23# Every hostname, domain and IP below is a documentation placeholder.24# - Treat the finished file as sensitive: it is a map of what you can and25# cannot see. Do not publish your filled-in copy.26# =============================================================================2728as_of: YYYY-MM-DD # date of the last full review29owner:""# person or team who keeps this file current30review_every: quarterly # and after any SIEM, agent or audit-policy change3132# -----------------------------------------------------------------------------33# 1. Questions an investigation must be able to answer34# Start here. Sources exist to answer questions, not the other way round.35# -----------------------------------------------------------------------------36questions:37-id: Q138ask:"Who logged on where, when, and how (interactive, network, remote)?"39typical_sources:[domain controllers, Windows Security on members, Entra ID sign-ins, VPN, Linux auth]40-id: Q241ask:"What ran on this machine, with which command line, started by what?"42typical_sources:[Windows Security 4688 with command line, Sysmon, EDR, Linux auditd]43-id: Q344ask:"What did this machine talk to outside the network?"45typical_sources:[firewall allow + deny, DNS queries, web proxy, EDR network events]46-id: Q447ask:"What changed in identity and privileges (accounts, groups, roles, MFA)?"48typical_sources:[domain controllers, Entra ID audit log, cloud control-plane logs]49-id: Q550ask:"What was read, sent or shared from mail and SaaS?"51typical_sources:[Microsoft 365 unified audit log, mailbox audit, SaaS admin logs]52-id: Q653ask:"Who changed the infrastructure (cloud resources, servers, network devices)?"54typical_sources:[Azure Activity log, AWS CloudTrail, network device AAA/config logs, Linux sudo]5556# -----------------------------------------------------------------------------57# 2. Sources — one entry per source type58#59# Field reference60# name what the source is61# category identity | endpoint | server | network | email_saas | cloud | application62# answers question ids from section 163# systems scope: how many systems, which are NOT covered64# records what is actually enabled (audit subcategories, event types)65# local_retention how far back the log on the system itself reaches TODAY66# central where it is forwarded (null if nowhere)67# central_retention_days how long the central copy is kept, per storage tier68# retention_target_days what you need (see BEFORE YOU USE)69# volume_gb_per_day measured, not estimated; null until measured70# time time source and timezone of the timestamps71# collection agent | syslog | API | none — and what alerts if it stops72# owner who can change the logging config73# verified YYYY-MM-DD + how (command, query, test event)74# known_gaps free text; copy each one into section 375# -----------------------------------------------------------------------------76sources:7778-name:"Windows domain controllers — Security log"79example:true80category: identity81answers:[Q1, Q4]82systems:"all DCs in corp.example (DC01, DC02)"83records:84-"Advanced Audit Policy per `auditpol /get /category:*` (paste or attach output)"85-"Account Logon / Kerberos Authentication Service: Success and Failure"86-"Account Management / Security Group Management: Success"87local_retention:"unknown — check: Get-WinEvent -LogName Security -MaxEvents 1 -Oldest"88central:"SIEM via agent"89central_retention_days:{hot:null,archive:null}90retention_target_days:null91volume_gb_per_day:null92time:"domain time hierarchy (PDC emulator → external NTP); timestamps UTC in SIEM"93collection:"agent; alert if no events for 1 h: not yet"94owner:"AD team"95verified:"YYYY-MM-DD — test failed logon seen in SIEM as 4771 / 4625"96known_gaps:97-"Security log max size never changed from default — check `wevtutil gl Security`"9899-name:"Windows member servers and workstations — Security + Sysmon"100example:true101category: endpoint102answers:[Q1, Q2]103systems:"all domain-joined Windows; NOT covered: kiosk machines outside the domain"104records:105-"4688 process creation — is 'Include command line in process creation events' enabled?"106-"Sysmon config version: ''"107local_retention: unknown108central:"SIEM via agent"109central_retention_days:{hot:null,archive:null}110retention_target_days:null111volume_gb_per_day:null112time:"domain time; check skew on laptops off the network"113collection:"agent"114owner:"endpoint team"115verified:""116known_gaps:[]117118-name:"Linux servers — auth, sudo, auditd"119example:true120category: server121answers:[Q1, Q2, Q6]122systems:"SRV-APP01..SRV-APP12; NOT covered: appliances without agent support"123records:124-"auth / secure log via rsyslog or journald"125-"auditd rules per `auditctl -l` (empty output = no rules loaded)"126local_retention:"check logrotate config and `journalctl --disk-usage`"127central:"SIEM via syslog"128central_retention_days:{hot:null,archive:null}129retention_target_days:null130volume_gb_per_day:null131time:"chrony/NTP; check whether syslog timestamps carry a timezone"132collection:"syslog; a stopped forwarder is silent — nothing alerts"133owner:"platform team"134verified:""135known_gaps:[]136137-name:"Perimeter firewall"138example:true139category: network140answers:[Q3]141systems:"fw01 (HQ), fw02 (branch)"142records:143-"deny: yes"144-"allow: unknown — many policies log denies only"145-"NAT translations: unknown (needed to map public IP back to an internal host)"146local_retention: unknown147central:"SIEM via syslog from 192.0.2.10"148central_retention_days:{hot:null,archive:null}149retention_target_days:null150volume_gb_per_day:null151time:"check device NTP and the timezone in the syslog header"152collection: syslog153owner:"network team"154verified:""155known_gaps:[]156157-name:"DNS — internal resolvers"158example:true159category: network160answers:[Q3]161systems:"Windows DNS on DC01, DC02"162records:163-"query logging: off unless enabled (Windows DNS analytic/debug logging is off by default)"164local_retention: n/a165central:null166central_retention_days:{hot:null,archive:null}167retention_target_days:null168volume_gb_per_day:null169time:""170collection: none171owner:"AD team"172verified:""173known_gaps:174-"No record of which host resolved which domain"175176-name:"Microsoft 365 — unified audit log, Entra ID sign-in and audit logs"177example:true178category: email_saas179answers:[Q1, Q4, Q5]180systems:"tenant contoso.example"181records:182-"unified audit log: on? (check in the Purview portal)"183-"sign-in and audit logs exported to SIEM: which categories?"184local_retention:"depends on license — check current Microsoft documentation"185central:"SIEM via API connector"186central_retention_days:{hot:null,archive:null}187retention_target_days:null188volume_gb_per_day:null189time:"UTC"190collection:"API; connector health alert: unknown"191owner:"M365 admins"192verified:""193known_gaps:[]194195# -----------------------------------------------------------------------------196# 3. Gaps — ranked197# impact: which question goes unanswered, for which systems198# fix_cost: low (config change) | medium (new collection/storage) | high (new product or project)199# -----------------------------------------------------------------------------200gaps:201-id: G1202example:true203source:"Windows domain controllers — Security log"204question: Q1205finding:"Local Security log reaches back N hours on DC01 at Monday peak"206impact:"If forwarding stops, logon history older than N hours is lost"207fix:"Raise max log size; add an alert on forwarding silence"208fix_cost: low209owner:"AD team"210status: open # open | planned | fixed | accepted211accepted_reason:""212213# -----------------------------------------------------------------------------214# 4. Verification commands (read-only)215# -----------------------------------------------------------------------------216checks:217windows:218-cmd:"auditpol /get /category:*"219shows:"which audit subcategories are enabled (run elevated)"220-cmd:"wevtutil gl Security"221shows:"maxSize and retention of the Security log"222-cmd:"Get-WinEvent -LogName Security -MaxEvents 1 -Oldest | Select-Object TimeCreated"223shows:"how far back the local Security log reaches right now"224linux:225-cmd:"auditctl -s"226shows:"whether auditd is enabled and how many events it lost"227-cmd:"auditctl -l"228shows:"loaded audit rules; 'No rules' means nothing beyond defaults"229-cmd:"journalctl --disk-usage"230shows:"space used by the journal"231-cmd:"journalctl -o short-iso | head -n 1"232shows:"oldest journal entry still on disk"233siem_microsoft_sentinel:234-query:"union withsource=SourceTable * | where TimeGenerated > ago(7d) | summarize LastEvent = max(TimeGenerated) by SourceTable | sort by LastEvent asc"235shows:"tables that went quiet first (expensive on big workspaces: narrow the time range)"236siem_wazuh:237-cmd:"/var/ossec/bin/agent_control -l"238shows:"agents and their status (Active, Disconnected, Never connected)"
01# =============================================================================02# SIEM selection matrix — Wazuh, Elastic Security, Microsoft Sentinel,03# IBM QRadar SIEM, Splunk Enterprise Security04#05# Companion to:06# https://entropywatch.dev/articles/choosing-a-siem-by-what-you-run/07# https://entropywatch.dev/articles/siem-operating-cost-in-people/08# License: CC BY 4.0 — ENTROPY//WATCH09# Facts as of: 2026-10-17 (vendor documentation; every fact carries its source)10#11# BEFORE YOU USE12# - This is a reading of vendor documentation, not a benchmark. Re-check every13# linked source on the day you decide: prices, tiers and grants change often.14# - ADAPT size_tiers to your security team's capacity, not company headcount.15# - ADAPT the filters to where your highest-value logs live (identity,16# endpoints, perimeter), not where most of your servers are.17# - Prices appear only where the vendor publishes them; "not published" means18# ask for a quote.19# =============================================================================2021as_of:2026-10-172223measure_first:24-metric: daily_volume_per_source25unit:"GB/day (Sentinel, Elastic Serverless, Splunk ingest), EPS/FPM (QRadar), alerts/s + agents (Wazuh)"26how:"Measure per source type (DCs or Entra sign-ins, firewall, proxy, endpoints, cloud audit) for at least one week."27-metric: engineering_hours_per_week28how:"Hours someone can really spend on parsers, tuning, upgrades and capacity — not headcount."2930size_tiers:31small:32definition:"No dedicated security staff; one IT generalist or security as part of an IT role."33microsoft_centric: Microsoft Sentinel34on_prem_or_zero_budget: Wazuh (single node)35linux_or_multi_cloud_with_search_skills: Elastic Security (Serverless Essentials)36avoid:37-"Splunk Free as a SIEM: no alerting, no users or roles, 500 MB/day."38-"Splunk ES: documented minimum 16 physical cores / 32 GB RAM per search head and indexer."39-"QRadar Community Edition in production: 3-month license, 100 EPS / 5,000 FPM."40mid_size:41definition:"Small security team, or one or two people plus an MSSP; hybrid infrastructure."42microsoft_heavy_hybrid:"Microsoft Sentinel with analytics tier for primary data, data lake tier for verbose logs"43mixed_or_non_microsoft:"Elastic Security (check which paid tier you can buy), or Wazuh as endpoint layer feeding a SIEM"44splunk_or_qradar_when:"Already owned, staff know SPL/AQL, or an MSSP runs it"45large:46definition:"24/7 SOC, detection engineers, platform/data team; hundreds of GB to TB per day."47deciding_questions:48-"Must data stay on-premises or in a specific jurisdiction?"49-"Which estate dominates: Microsoft, Cisco/Splunk, IBM, or mixed?"50-"Which query language does the current team already know: KQL, SPL, AQL, ES|QL?"51candidates:52- Splunk Enterprise Security53- Microsoft Sentinel54- IBM QRadar SIEM (existing estates, network flows, on-prem appliances)55- Elastic Security (especially where Elasticsearch already runs)56- Wazuh (endpoint/compliance layer; primary SIEM only with strong engineering)5758infrastructure_filters:59microsoft_365_entra_azure:60favors: Microsoft Sentinel61why:"Free data sources (Azure Activity, Office 365 audit, Defender alerts); M365 E5/A5/F5/G5/E7 grant up to 5 MB/user/day."62air_gapped_or_data_must_stay_on_prem:63excludes:[Microsoft Sentinel, Elastic Serverless, Splunk Cloud Platform]64remaining:[Wazuh, Elastic self-managed, IBM QRadar SIEM, Splunk Enterprise]65network_flows_first_class:66favors: IBM QRadar SIEM67why:"Licenses and processes flows (FPM) separately from events (EPS); dedicated Flow Collector/Processor."68linux_containers_multi_cloud:69neutral_options:[Wazuh, Elastic Security, Splunk Enterprise Security]7071platforms:72wazuh:73current_version:"4.14.x"74license:"GPLv2 and Apache 2.0"75deployment:"Self-managed (server, indexer, dashboard, agents) or Wazuh Cloud"76detection_language:"XML rules and decoders; custom rule IDs 100000-120000"77sizing_single_host_90_days:78-{agents:"1-25",cpu:"4 vCPU",ram:"8 GiB",storage:"50 GB"}79-{agents:"26-50",cpu:"8 vCPU",ram:"8 GiB",storage:"100 GB"}80-{agents:"51-100",cpu:"8 vCPU",ram:"8 GiB",storage:"200 GB"}81indexer_node:{min_ram:"4 GB",min_cpu:2,rec_ram:"16 GB",rec_cpu:8}82beyond_100_agents:"Distributed deployment: server cluster behind a load balancer, multi-node indexer"83upgrades:"Server, indexer, dashboard must match to patch level; agents must not be newer than the server"84ops_effort:"Low at small scale; medium to high distributed"85sources:86- https://documentation.wazuh.com/current/quickstart.html87- https://documentation.wazuh.com/current/installation-guide/wazuh-indexer/index.html88- https://documentation.wazuh.com/current/user-manual/wazuh-server-cluster/index.html89- https://documentation.wazuh.com/current/user-manual/ruleset/rules/custom.html90- https://documentation.wazuh.com/current/upgrade-guide/compatibility-matrix/index.html91- https://documentation.wazuh.com/current/getting-started/use-cases/index.html9293elastic_security:94license:"Elastic License 2.0, SSPL 1.0, or AGPLv3 (AGPL option added 2024-08-29) for the free source"95deployment:"Self-managed, Elastic Cloud Hosted, Elastic Cloud Serverless"96detection_language:"KQL, EQL, ES|QL"97paid_feature_gates_self_managed:98-"Elastic Defend ransomware, memory threat, malicious behavior protection: Platinum or Enterprise"99-"Response actions and response console: Enterprise"100-"Alert suppression: Platinum or higher"101-"Alerting on ML anomaly detection: Platinum or Enterprise"102-"Searchable snapshots (frozen tier): Enterprise"103-"Platinum not available to new customers (per subscriptions page footnote)"104serverless_pricing_as_low_as:105essentials:{ingest_per_gb:"$0.09",retention_per_gb_month:"$0.017"}106complete:{ingest_per_gb:"$0.11",retention_per_gb_month:"$0.019"}107per_endpoint_fee:"None since 2026-03-23"108ops_effort:"Low infra on Serverless; medium to high self-managed"109sources:110- https://www.elastic.co/subscriptions111- https://www.elastic.co/pricing/serverless-security112- https://www.elastic.co/docs/solutions/security/configure-elastic-defend/configure-an-integration-policy-for-elastic-defend113- https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots.html114- https://www.elastic.co/blog/elastic-security-detection-engineering115- https://www.businesswire.com/news/home/20240829537786/en116117microsoft_sentinel:118deployment:"SaaS on Azure; on-prem sources via Linux forwarder with Azure Monitor Agent (+ Azure Arc outside Azure)"119portal:"Azure portal support ends 2027-03-31; Defender portal only after that"120detection_language: KQL121billing:122analytics_tier:"Pay-as-you-go or commitment tiers from 100 GB/day; tier can be lowered every 31 days"123analytics_retention:"90 days included, extensible to 2 years"124data_lake_tier:"Per-GB ingestion, processing, storage (6:1 compression basis) and query meters"125free_trial:"First 10 GB/day free for 31 days"126free_sources:"Azure Activity, Office 365 audit (SharePoint, Exchange admin, Teams), Defender/Entra ID Protection alerts"127m365_grant:"Up to 5 MB/user/day of Microsoft 365 data for E5/A5/F5/G5 (and E7)"128extra_costs:"Logic Apps (automation), Azure Functions (some connectors)"129ops_effort:"Low infra; ongoing cost governance"130sources:131- https://learn.microsoft.com/en-us/azure/sentinel/billing132- https://learn.microsoft.com/en-us/azure/sentinel/log-plans133- https://learn.microsoft.com/en-us/azure/sentinel/connect-cef-syslog-ama134- https://azure.microsoft.com/en-us/pricing/offers/sentinel-microsoft-365-offer135136ibm_qradar_siem:137current_version:"7.6.0 (announced 2026-06-30)"138deployment:"On-premises hardware or virtual appliances; All-in-One or distributed (Console, Event/Flow Collectors and Processors, Data Nodes)"139licensing:"Usage model: EPS + FPM; Enterprise model: Managed Virtual Servers; subscription or perpetual"140detection_language:"Custom Rules Engine (rule wizard), AQL"141saas_status:"QRadar SaaS sold to Palo Alto Networks (closed 2024-09); QRadar on Cloud EOL 2026-04-14; on-prem not affected"142notes:143-"QRadar Incident Forensics not available in 7.6.x; stay on 7.5.0 UP15 if you use it"144-"Over-allocating EPS/FPM in License Pool Management can block Log/Network Activity tabs"145-"Community Edition: 3-month license, 100 EPS, 5,000 FPM"146ops_effort:"High; specialist skills"147sources:148- https://www.ibm.com/products/hosted-security-intelligence/pricing149- https://community.ibm.com/community/user/blogs/ashish-kothekar/2026/06/30/announcing-ibm-qradar-760-the-biggest-qradar-relea150- https://www.paloaltonetworks.com/services/support/end-of-life-announcements/end-of-life-summary151- https://investors.paloaltonetworks.com/news-releases/news-release-details/palo-alto-networksr-closes-acquisition-ibms-qradar-saas-assets152- https://www.ibm.com/support/pages/node/6964816153- https://www.ibm.com/community/101/qradar/ce/154155splunk_enterprise_security:156owner:"Cisco (acquisition completed 2024-03-18)"157current_version:"ES 8.x (8.4 GA 2026-02; 8.6 controlled availability 2026-07)"158deployment:"Splunk Enterprise (forwarders, indexers, search heads) or Splunk Cloud Platform"159minimum_hardware:"16 physical cores / 32 GB RAM per search head and per indexer (ES 8.x)"160detection_language:"SPL; data normalized to the Common Information Model"161pricing_models:"Ingest (GB/day), workload (SVC in Cloud, vCPU on-prem), activity-based (Cloud only); prices not published"162splunk_free:"500 MB/day, single instance, no alerting, no users or roles — not a SIEM"163upgrade_notes:164-"ES 8.4: finding-based detections created before 8.4 may need updates"165-"ES 8.x on Splunk Enterprise 10.x on-prem: install from the command line"166ops_effort:"High self-managed; dedicated administrator"167sources:168- https://help.splunk.com/en/splunk-enterprise-security-8/install/8.3/planning169- https://help.splunk.com/en/splunk-enterprise-security-8/release-notes-and-resources170- https://www.splunk.com/en_us/products/pricing/pricing-models.html171- https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/10.0/configure-splunk-licenses/about-splunk-free172- https://newsroom.cisco.com/c/r/newsroom/en/us/a/y2024/m03/cisco-completes-acquisition-of-splunk.html173174proof_of_concept:175candidates:2176duration:"at least 2 weeks"177same_sources_into_both:178-"Domain controllers or Entra ID sign-ins"179-"Perimeter firewall"180-"Endpoint telemetry from a sample of machines"181measure:182-"Ingested GB/day per source"183-"Alerts/day before and after one tuning round"184-"Engineering hours per job: onboarding, tuning, platform upkeep"185-"Time to write and tune one identical detection in each platform"
Diceware passphrases and random passwords from your browser's CSPRNG, with exact entropy and crack-time estimates. The page is not allowed to make a single network request — the built-in self-test shows the browser blocking it.