Tuning, Suppression and Allow-Lists
Every detection meets reality the day it is enabled: the backup server that copies a million files at 01:00, the IT script that runs encoded PowerShell, the scanner that "brute forces" everything on Tuesdays. Tuning removes those false positives without removing the attacks. Done narrowly, it raises precision at almost no cost in recall; done carelessly ("exclude the whole server", "suppress this rule for a month"), it builds exactly the blind spots attackers look for. Tuning Alerts and False Positives covered IDS signatures; this lesson does the same for SIEM rules, with allow-lists that expire and a measurement of what each tuning choice costs.
The tools, narrowest first
| Tool | What it does | Risk |
|---|---|---|
| Fix the logic | The rule matched something it never should have (a substring, a missing field) | None; always first |
| Narrow allow-list entry | Exclude one exact combination: this host and this process path and this parent / command line, with an owner and an expiry date | Low, if every field is specific |
| Grouping / deduplication | Many alerts for one entity in one window become one alert with a count | Low; the information is kept |
| Throttling (suppression window) | After an alert for a key, don't alert again for that key for N minutes | Medium: a second, different attack on the same key inside the window is merged |
| Threshold change | Raise counts or narrow time windows | Medium to high: slow or small attacks fall under it |
| Broad exclusion | Whole host, whole user, whole subnet, or the rule disabled | High: an attacker on that host or with that account is invisible |
Allow-list entries that expire
An allow-list entry is a decision ("this is benign"), and decisions go stale: the server is rebuilt, the script is retired, the account changes hands. Every entry should record who added it, why (ticket), exactly what it matches, and until when. Expired entries stop applying automatically, so the alert returns and someone must re-confirm it.
Measuring a tuning proposal
The program takes two weeks of synthetic alerts from the rule "encoded PowerShell" with the analysts' verdicts, applies four tuning options, and reports what each one removes: false positives (good) and true positives (bad).
import pandas as pd
TODAY = pd.Timestamp("2026-01-15")
alerts = pd.DataFrame(
[("ws07", "LAB\\svc-inventory", "C:\\IT\\inventory.ps1", "taskeng", "FP")] * 140 +
[("srv-bkp01", "LAB\\svc-backup", "C:\\Backup\\rotate.ps1", "taskeng", "FP")] * 90 +
[("ws21", "LAB\\adm-bob", "interactive", "explorer", "FP")] * 25 +
[("ws07", "LAB\\erin", "interactive", "winword", "TP")] * 1 + # attacker on the same host
[("srv-bkp01", "LAB\\svc-backup", "C:\\Users\\Public\\u.ps1", "taskeng", "TP")] * 1 + # stolen service account
[("ws15", "LAB\\erin", "interactive", "winword", "TP")] * 2,
columns=["host", "user", "script", "parent", "verdict"])
ALLOW = pd.DataFrame([ # narrow entries: every field must match; owner and expiry recorded
("ws07", "LAB\\svc-inventory", "C:\\IT\\inventory.ps1", "taskeng", "it-ops/ha", "2026-06-30", "CHG-201"),
("srv-bkp01", "LAB\\svc-backup", "C:\\Backup\\rotate.ps1", "taskeng", "backup/long", "2025-12-31", "CHG-144"),
], columns=["host", "user", "script", "parent", "owner", "expires", "ticket"])
def narrow(a, honour_expiry=True):
live = ALLOW[pd.to_datetime(ALLOW.expires) >= TODAY] if honour_expiry else ALLOW
keys = set(map(tuple, live[["host", "user", "script", "parent"]].values))
return a[~a[["host", "user", "script", "parent"]].apply(tuple, axis=1).isin(keys)]
options = {
"no tuning": alerts,
"narrow allow-list (with expiry)": narrow(alerts),
"narrow allow-list (ignore expiry)": narrow(alerts, honour_expiry=False),
"exclude hosts ws07 + srv-bkp01": alerts[~alerts.host.isin(["ws07", "srv-bkp01"])],
"exclude service accounts": alerts[~alerts.user.str.contains("svc-")],
}
print(f"{'option':36} {'alerts':>6} {'FP':>4} {'TP':>3} {'precision':>9}")
for name, a in options.items():
tp, fp = (a.verdict == "TP").sum(), (a.verdict == "FP").sum()
print(f"{name:36} {len(a):6} {fp:4} {tp:3} {tp / len(a):9.1%}")
expired = ALLOW[pd.to_datetime(ALLOW.expires) < TODAY]
for r in expired.itertuples():
print(f"\nEXPIRED: {r.host}/{r.script} ({r.ticket}, owner {r.owner}) since {r.expires}: re-confirm or remove")option alerts FP TP precision
no tuning 259 255 4 1.5%
narrow allow-list (with expiry) 119 115 4 3.4%
narrow allow-list (ignore expiry) 29 25 4 13.8%
exclude hosts ws07 + srv-bkp01 27 25 2 7.4%
exclude service accounts 28 25 3 10.7%
EXPIRED: srv-bkp01/C:\Backup\rotate.ps1 (CHG-144, owner backup/long) since 2025-12-31: re-confirm or remove
Untuned, the rule raises 259 alerts in two weeks for 4 real ones: precision 1.5 %. The options differ in what they cost:
- The narrow allow-list keeps all 4 true positives. With expiry honoured it removes the inventory script's 140 alerts but not the backup job's 90, because that entry expired on 31 December; ignoring expiry would remove those too (29 alerts, 13.8 %). The right move is not to ignore expiry but to have the backup owner re-confirm the entry, which the last line asks for.
- Excluding the two hosts looks almost as quiet (27 alerts) but loses half of the true positives: the attacker running from a Word document on
ws07and the stolensvc-backupaccount running a script fromC:\Users\Publiconsrv-bkp01. Both sat on "noisy" hosts, which is no coincidence: noise is where attackers hide. - Excluding service accounts loses the stolen service account.
The narrow entries never touch the attacks because every field (host, account, exact script path, parent) must match; the attacker would have to reproduce all of them, including a script path that only administrators can write to.
Throttling and grouping
When one benign burst produces hundreds of identical alerts, grouping is better than suppression: keep one alert per entity and window, with a count and the first and last time. Analysts see that something happened 300 times without working 300 tickets, and the raw events stay searchable. Throttling (no new alert for the same key for N minutes) is a blunter version; set N no longer than your response time, because during the window a second, different attack on the same key is merged into the first. The brute-force-detect lab uses exactly this "one alert per key per window" logic (Brute Force Followed by Success).
How bad tuning is detected
- Review allow-lists like firewall rules: owner, ticket, expiry, and how specific every entry is. Entries with a single field (a whole host, a whole user) are findings.
- Track rules whose alert count fell to zero after a tuning change, and run their validation test.
- Purple-team on the exceptions: run a test technique on an allow-listed host or with an allow-listed account in the lab, and confirm the attack still alerts.
- Re-sample suppressed events: periodically look at a random sample of what the allow-list removed.
Pitfalls
- Tuning by the loudest complaint. The rule with the most alerts is not always the worst; precision and the cost of a miss matter more than volume.
- Allow-listing on fields the attacker controls. Process names, script names in user-writable folders, user-agent strings. Prefer full paths in protected folders, signatures, hashes, parents and accounts.
- No expiry. Permanent entries outlive the reason they were made.
Practice
1. Which option would you choose, and what must happen before it is deployed?
The narrow allow-list with expiry: it keeps all four true positives and removes the inventory script's 140 alerts at once; the backup job's 90 return until its owner re-confirms the expired entry with a new ticket and date, after which the rule is down to 29 alerts. Before deployment, owners confirm each entry, and a lab test shows that a different script on the same host, or the same script run by another account, still alerts.
2. The 25 alerts from adm-bob interactively on ws21 remain. How would you handle them?
Not with an allow-list for the admin account (an attacker with that session would be invisible). Options: ask why an admin runs encoded commands interactively and change the practice (signed scripts instead); lower the severity for admin accounts on their PAW only, keeping the alert; or group them per day.
3. Why is "exclude service accounts" so dangerous in this data?
The stolen svc-backup account running C:\Users\Public\u.ps1 is a true positive; excluding all svc- accounts removes it. Service accounts are attractive to attackers precisely because they are often excluded and rarely watched.
Test yourself
What should every allow-list entry record?
- Only the host name
- Who added it, why (ticket), exactly what it matches, and an expiry date
- The analyst's mood
- Nothing; it is temporary
In the program, what did excluding hosts ws07 and srv-bkp01 cost?
- Nothing
- Two true positives: the attacker on ws07 and the stolen service account on srv-bkp01
- All false positives
- Only adm-bob's alerts
When is grouping better than throttling?
- Never
- When one burst creates many identical alerts: grouping keeps one alert with a count and the details, without dropping a different attack on the same key
- Only for DNS
- When there are no alerts
What happens with the expired backup entry in the program?
- It still suppresses alerts
- It no longer applies, so its 90 alerts return until the owner re-confirms it
- It is deleted with its alerts
- It blocks the backup