Lesson 5 of 9 · 25m
Tuning False Positives Without Creating Blind Spots
The difference between noisy, wrong, and impossible detections — and how to tune with allowlists, thresholds, and context rather than deleting value.
Every immature SOC eventually solves noise the same way: broad exclusions, disabled rules, and a quiet console. Six months later they discover the silence was not health — it was blindness. Tuning is the art of removing predictable benign behavior while preserving attacker-shaped behavior.
Diagnose the noise before editing the rule
False positives usually fall into three buckets:
- Wrong logic: the rule does not encode what the author thought it did.
- Missing context: the behavior is suspicious in some places and normal in others.
- Bad telemetry: malformed fields, duplicate events, or inventory errors make normal activity look abnormal.
The fix is different for each. Do not suppress a correct detection because the parser put a username in the wrong field.
Prefer the narrowest suppression that captures reality
This Sigma-style fragment is fragile:
filter:
User: 'SYSTEM'
condition: selection and not filterIt suppresses everything running as SYSTEM, including attacker-created services. Better:
filter_windows_update:
Image: 'C:\Windows\System32\svchost.exe'
CommandLine|contains: ' -k netsvcs -p -s wuauserv'
ParentImage: 'C:\Windows\System32\services.exe'
condition: selection and not filter_windows_updateThe narrow filter names the full relationship. If an attacker mimics all of it, at least they are constrained to a recognizable shape.
Tune with dimensions, not emotions
When an alert is noisy, group the last 30 days by the fields that explain it:
SELECT host_role, parent_process, command_line_hash, count(*) AS hits
FROM alerts
WHERE rule_id = 'PSH_DOWNLOAD_CRADLE'
GROUP BY host_role, parent_process, command_line_hash
ORDER BY hits DESC;The result usually shows a long tail. Eighty percent of noise is one approved software deployment, fifteen percent is a backup agent, and five percent is genuinely suspicious but repetitive. Tune the first two deliberately; investigate the third.
Beware the identity illusion
Excluding "admin users" or "server accounts" is dangerous because those are exactly the identities attackers want. If administrators legitimately use psexec, restrict the approved host pairs and binary hash instead of excluding all admin use:
approved_psexec:
User|startswith: 'ORG\\adm-'
SourceHostGroup: 'tier0-admin-workstations'
ImageHash: 'sha256=9f3c...'Measure suppression risk
Every suppression should have an owner, expiry, and reason. A temporary change-window exclusion that never expires is a permanent hole. High-risk exclusions deserve detective controls — for example, alert when a suppressed hash changes or when an approved path appears outside the expected host group.
Field notes
- Do not tune a rule from a single alert; inspect a representative sample.
- Suppress combinations of evidence, not powerful identities.
- Keep a changelog on detection logic; future you needs to know why the exception exists.
- If the only way to make a rule quiet is destroying its premise, retire the rule and write a better one.
Was this lesson helpful?