Organizations need allow list rules to keep detection usable and critical work running. But a rule doesn’t check intent, it checks conditions, and anyone who meets them inherits the permission. This is what allow list rules really allow, how attackers use them, and how to write one that hides as little as possible.
Drawn from Cynet’s research into allow list rules on tested client tenants and from public threat reporting. Customer hosts, users and tenant names are anonymized.
Why every environment needs allow list rules
Endpoint detection is built for the general case, and no organization is the general case. A backup agent reads every file on a server. A vulnerability scanner sweeps the whole network on a schedule. Finance runs a macro-heavy workbook at month end, IT manages machines with remote-administration tools, and operations runs PowerShell scripts nobody has touched in three years. To a behavioral engine, much of this looks like an attack, because attackers use the same tools in the same ways.
The result is noise, and noise has a measurable cost. In a February 2026 Microsoft and Omdia SOC study, 46% of alerts were false positives and 42% went uninvestigated. In the SANS 2025 Detection and Response Survey, 73% of teams named false positives as their top detection challenge. An allow list rule is how a team tells Cynet that a specific, known activity is expected and should not raise a specific detection.
Organizations write these rules for three reasons, all of them legitimate:
- Tuning the signal. Detections that fire on known activity every day bury the alerts that matter. Removing them is how a SOC keeps its queue small enough to investigate.
- Performance and stability. Some workloads trigger the same detection thousands of times: build pipelines, backup jobs, scanners, software deployment. Tuning those detections for the known process keeps the endpoint, the console and the analysts focused on what is new.
- Predictable critical workflows. A protection that blocks the nightly patch job or stops the finance macro on the last day of the quarter causes an outage. Allow list rules let operations finish reliably.
None of these reasons says how broad the rule should be. That is the part this article is about.
What an allow list rule does on the endpoint
It is easy to think of an allow list rule as a dashboard filter: the alert still happens, it just doesn’t show up in the queue. That isn’t how it works. The endpoint agent evaluates the rule. When activity matches, the agent doesn’t raise the detection and doesn’t carry out the response attached to it. If the detection would have blocked the process, the block doesn’t happen. The decision is made on the endpoint, before anyone looks at anything. An allow list rule changes what the endpoint protects against.
Every rule has three dimensions, and each one is a security decision:
- The artifact: what the rule matches. A process or file hash, a process or file path, a command line, an IP address, a domain, a user account, or an alert name. Process artifacts also come in an “all process tree” form that extends the match to every child process.
- The alert: which detection is silenced. A single named detection, or ALL ALERTS.
- The scope: where the rule applies. Specific hosts, host groups, or, when both are left blank, every endpoint in the tenant, including machines that join later.
How a fix for one script becomes permission for every script
Here is how an overly broad rule usually gets written. Nobody is being careless. Someone is fixing a real problem under time pressure.
An administrator has an approved maintenance script that runs every night on a set of servers. One night it stops completing: Cynet’s script-behavior detection, which inspects script content as it runs, flags it and intervenes. The administrator opens the alert. The most prominent field is the process that was running: powershell.exe. They create a rule allowing powershell.exe on that detection and apply it everywhere, because the script runs on many servers. The next night the job finishes. The ticket is closed.
Now read the rule as the endpoint reads it: for this detection, trust whatever powershell.exe runs, on every host. The detection was about the script’s content. The rule names the interpreter that ran it. The administrator answered “which program was running?” when the question that mattered was “which content was judged?” Every script now passes that detection: the approved one, and also an encoded download cradle launched from a phishing attachment next week.
Making the rule “stronger” doesn’t help. Switching from the path to a hash of powershell.exe identifies powershell.exe perfectly, and powershell.exe is exactly the tool an attacker wants to use. A hash is a precise identity, but here it precisely identifies the wrong thing. And because the rule was applied tenant-wide, the blind spot covers machines that never ran the script.
The rule that fixed the outage: Allow powershell.exe (by path or by hash) on the script detection, on every host.
Result: Silences every script PowerShell runs, on every endpoint, for that detection.
The rule the job needed: Allow the script file’s own hash, which the alert already records, on that one detection, on the hosts where the job runs.
Result: Silences exactly one script. If someone edits it, it alerts again, and it should.
The mistake is natural for three reasons. The alert screen leads with the process. The broad fix works immediately, which feels like confirmation. And nothing tells you how much else the rule just allowed. The same pattern appears with Office: allowing excel.exe to stop a macro alert silences every macro in every workbook Excel opens on that host. We found exactly that rule in a tested tenant.
The attacker only has to meet the same conditions
An allow list rule doesn’t check intent. It checks conditions: this artifact, this alert, this scope. Anyone whose activity satisfies those conditions inherits the permission that was meant for legitimate work. Read the way an attacker reads it, an allow list is a written list of the circumstances in which the defense won’t fire.
Attackers know this, and MITRE ATT&CK catalogs it as its own technique:
Adversaries may attempt to hide their file-based artifacts by writing them to specific folders or file names excluded from antivirus (AV) scanning and other defensive capabilities. … Adversaries may also use Security Software Discovery and other Discovery/Reconnaissance activities to both discover and verify existing exclusions in a victim environment.
MITRE ATT&CK T1564.012, Hide Artifacts: File/Path Exclusions
The technique’s procedure examples include APT38 exempting C:\Windows\System32 from Defender, Turla placing install files in directories exempt from scanning, and ransomware adding its own executable to the exempt list. ATT&CK’s mitigation, M1049, is short: “Review and audit file/folder exclusions, and limit scope of exclusions to only what is required where possible.” An allow list rule offers the attacker the same thing: a place the defender has already agreed not to look.
The Kaseya VSA attack of July 2021 shows how many separate trust decisions a single operation can reuse. REvil pushed a malicious “hot-fix” through compromised VSA servers to endpoints at about 60 MSPs and 1,500 downstream businesses, and almost every step maps to a rule shape someone might reasonably have written:
| Attack step (public reporting) | Rule shape that would hide it | The narrower alternative |
|---|---|---|
| Payload decoded into C:\kworking\agent.exe, a folder Kaseya’s own guidance asked customers to exempt from antivirus | A folder or wildcard path on a vendor working directory | Allow the vendor’s files by their hashes, so nothing written to the folder later inherits the allowance |
| certutil.exe copied to C:\Windows\cert.exe and used to decode the payload | An allowance for a built-in system tool, by name, path or hash | Never allow a built-in tool by name, path or hash. A renamed copy has the same hash, so a hash rule covers it too |
| PowerShell Set-MpPreference used to disable Defender protections | A broad PowerShell command line, or the interpreter itself | Allow one complete literal command for one action, never the interpreter |
| An old, legitimately signed Defender binary, MsMpEng.exe, dropped next to a malicious mpsvc.dll that it loads (T1574.002) | An allowance for a trusted binary by name or path | Identify the binary by hash, and never trust any binary running from a location ordinary users can write to |
| agent.exe launched by the trusted RMM agent agentmon.exe | An allowance on the remote-management agent, or on its whole process tree | Never extend a remote-management agent’s allowance to everything it launches; allow a specific child by its own hash |
This illustrates rule shapes, not a claim that any single control would have stopped Kaseya: the server compromise was a zero-day. Each step reused a trust decision a defender had already made.
Remote-management tools are the clearest case, because they are trusted by design. A joint CISA, NSA and MS-ISAC advisory (AA23-025A) puts it directly: “The use of RMM software generally does not trigger antivirus or antimalware defenses. … RMM software allows cyber threat actors to avoid using custom malware.” Microsoft’s Digital Defense Report 2025 found at least one remote-management tool in about 79% of the ransomware cases it observed, and found that attackers used antivirus exclusions to bypass defenses in 30% of the human-operated ransomware incidents it observed. CrowdStrike reports that 82% of its 2025 detections were malware-free. When the attack is built from legitimate tools, the rule that trusts a legitimate tool is the gap.
Finding those gaps is getting cheaper. Discovering and verifying exemptions is part of T1564.012 itself, and AI-assisted intrusion tooling, such as the campaign Anthropic documented in November 2025 (ATT&CK C0062), runs reconnaissance at machine speed using mostly off-the-shelf tools. A forgotten wildcard path is found faster than a quarterly review gets to it. Every rule needs a researcher-grade review, continuously.
Where the risk hides in an allow list rule
Overly broad rules fall into a small number of patterns. Each is a specific way the conditions in a rule can be met by someone other than the person it was written for.
Trusting a location instead of a file
A path rule matches where a file is, not what it contains. Anyone who can write to that path, whether a dropper, a compromised administrator or a misconfigured shared folder, can replace the file, and the replacement inherits the allowance. Wildcards widen the opening: c:\users\*\… covers every user’s profile, and a wildcard over Temp, Downloads or a shared application-data folder covers the first places malware lands. A wildcard under a system folder covers system binaries that don’t exist yet. A network share is an execution surface anyone with write access to the share can change (T1021.002).
Names deceive as well. Attackers name payloads after trusted processes and place them in trusted-looking folders (T1036): svchost.exe running from Temp, or invoice.pdf.exe displayed as a PDF (T1036.007).
Living-off-the-land binaries
Every operating system ships with tools that can do far more than their everyday job. certutil manages certificates, and also downloads and decodes files. regsvr32 registers DLLs, and also runs a remote scriptlet through a signed Microsoft binary (T1218.010). mshta runs HTML applications, rundll32 calls exported DLL functions, and odbcad32 can be used to bypass UAC. On Linux and macOS the list includes shells and interpreters, curl, nc and socat, crontab, osascript and launchctl, and on macOS, spctl and xattr can switch off or strip the checks Gatekeeper relies on (T1553.001). Attackers call this living off the land: using what is already installed, signed and trusted instead of bringing malware that might be caught. The LOLBAS project catalogs Windows binaries by what they can be abused for (execution, download, decode, alternate data streams, application-control bypass, UAC bypass), and GTFOBins does the same for Unix.
These binaries are why “use a hash” isn’t enough advice. A rule on one of them, by path or even by hash, allows every use of it, because the endpoint can’t tell the administrator’s invocation from the attacker’s. A perfect fingerprint of regsvr32.exe is still a fingerprint of regsvr32.exe. Renaming doesn’t change that: the Kaseya attackers’ cert.exe had the same hash as certutil.exe. The same applies to the tools of later attack stages: net for adding an account to the administrators group (T1098), ntdsutil for copying the domain credential database (T1003.003), and vssadmin and bcdedit for removing recovery options before ransomware runs (T1490).
A complete literal command line is the safe form. Allowing netsh advfirewall firewall add rule … with every argument written out permits one action. Allowing netsh.exe permits every firewall change anyone makes with it.
Trusting a process means trusting what it loads
An allowance for a process covers what that process does, and a process does whatever its loaded code tells it to. Many legitimate applications load DLLs from their own folder before the system folder, so an attacker who can write to that folder can plant a DLL with the expected name and have a trusted, signed program run it (T1574.001, T1574.002). The Kaseya attackers did exactly that with an outdated copy of Microsoft Defender. A rule on the trusted program, by name, path or even hash, then covers the attacker’s code too. The defense is the same as for paths: don’t trust programs that run from writable locations, and keep an allowance as narrow as the problem it solves.
Dual-use launchers: the program is not the content
One level below system tools sit the programs that run content for a living: Office applications such as excel.exe, winword.exe, outlook.exe and powerpnt.exe, language runtimes such as java.exe, node.exe and python.exe, and script hosts such as PowerShell and wscript. They aren’t attack tools, but they run whatever they are given, so allowing one allows the content it opens (T1059). Allowing excel.exe on a macro detection allows every macro in every workbook it opens, including tomorrow’s phishing attachment (T1566.001, T1204.002). A macro or script detection judges the content, and its alert usually records the content’s own identity next to the launcher’s. As the PowerShell example showed, the content is what the rule should name.
Remote-management and tunnelling tools
Remote-management tools such as TeamViewer, AnyDesk, ScreenConnect, RustDesk, NinjaOne and the VNC family exist to give someone full control of a machine from somewhere else. An allowance for one, by path, hash or bare command line, silences every session it carries, and an attacker’s session looks just like IT’s (T1219). The only narrow form is a complete literal command for one fixed action. Tunnelling tools such as ngrok raise the same problem from the other direction: they expose an internal host through an outbound connection that looks like ordinary web traffic (T1572).
Silencing more detections than the problem needed
A rule names one detection, or ALL ALERTS. A rule written to quiet one noisy detection on ALL ALERTS also disables every other detection for that artifact, including the ones for credential theft, ransomware behavior and malicious files. For that artifact, the effect is the same as an attacker impairing the defense directly (T1562.001), except that the defender did it in advance. Process-tree reach extends the rule to everything the program starts, so a scanner that can open remote sessions, or a server that processes untrusted files, passes its trust to whatever it launches. On a script host or a remote-management agent, that means every command an operator types.
Trusting identities that change hands
Some artifacts name something that can change owner. An IP address belongs to whoever holds it next: DHCP, NAT and VPN pools reassign addresses, and the new holder inherits the allowance. A domain can lapse and be re-registered, its DNS can be hijacked, and a deleted cloud storage bucket name can be claimed by anyone. An allowance for an apex domain covers every subdomain, current and future (T1583.001). A user account is only as trustworthy as its credentials: an allowance for an administrator on identity detections means a compromised administrator account raises no identity alerts at all, including for the mail-forwarding rules attackers use to exfiltrate mail (T1078, T1114.003).
Matching text instead of an action
Command-line rules match text, and they come in three shapes. A wildcard or partial fragment matches every process whose command line contains it, and an attacker only needs to include the string. A command line that is just a program path with no arguments is as broad as the program, and inherits its risk. A complete literal command line with all its arguments names one fixed action, and for a dangerous tool it is the most precise allowance you can write. Interpreters deserve extra care, because their arguments are code. Encoded commands such as powershell -e … hide what they do from whoever approves them (T1027), so decode them before allowing them.
Values that change on every run, such as a process ID, a one-time token or a temporary folder name, make a literal command even narrower, because an attacker can’t reproduce them. The trade-off is that such a rule may only ever match once.
Applying a rule everywhere
Leaving hosts and groups blank applies a rule to every endpoint, including machines that join later. An exception needed on three application servers becomes a blind spot on every workstation an attacker might land on first, and on the domain controllers they want to reach. Allowances on servers and domain controllers are worth the most to an intruder.
Keeping a rule after its purpose is gone
Rules outlive the projects, vendors and people that needed them. The software is retired, the address is reassigned, the vendor deletes the bucket, and the rule still applies. Without an owner and an end date, nobody revisits a rule until someone else finds it. And a rule with no recent alerts isn’t proven unused: telemetry ages out, so silence can mean the logs are gone rather than the activity.
The list itself is a target
Attackers look for exceptions before they rely on them. Discovering existing exclusions is part of T1564.012, and Security Software Discovery (T1518.001) is a routine early step in hands-on intrusions. An attacker with administrator access can usually read the exception list directly. A long list is also a good hiding place for a new entry: a broad rule added by a compromised or careless account looks like every other line in it. Treat allow list changes the way you treat firewall changes: logged, reviewed and owned by a named person. In a managed service, a broad rule copied from one client’s template to the next spreads the same gap to every tenant that received it.
Choosing what a rule trusts
Every artifact type gives a different answer to one question: what would an attacker have to do to meet this condition?
| Artifact | To inherit the allowance, an attacker needs to… | Where it breaks down |
|---|---|---|
| Content hash | Run that exact file, byte for byte | Precise, but if the file is a dual-use tool it precisely allows the tool. Every update changes it |
| Path | Put a file at that location | Any file there inherits the rule; wildcards and writable folders multiply the reach |
| Command line | Start a process whose command line matches | Wildcards and fragments match unrelated processes; a bare program path is as broad as the program |
| IP address | Hold that address | DHCP, NAT and VPN reassign addresses to new devices |
| Domain | Control that name | Names lapse, are re-registered, hijacked or reclaimed; an apex rule covers every subdomain |
| User account | Act as that user | A compromised account makes everything it does invisible |
NIST describes the same ladder, and the same tension, in its guide to application allow listing:
File path … Used by itself, this is a very weak attribute, because it allows any malicious files placed within the directory to be executed. … A combination of digital signature/publisher and cryptographic hash techniques generally provides the most accurate and comprehensive application whitelisting capability, but usability and maintainability requirements can put significant burdens on the organization.
NIST SP 800-167, Guide to Application Whitelisting
Trusting a publisher’s signature, where a product offers it, has its own weakness: attackers sign malware with stolen or fraudulently obtained certificates (T1553.002), so a signature says who signed a file, not whether it is safe to run. That is why NIST pairs it with a hash.
The second half of that quote is the practical problem. Hashes change with every update, and some files change every time they are written. The way through is to choose the identity that fits what the file is and what the detection judged.
File extensions: what the file claims to be
An extension is a claim about what a file contains. Use it to choose the right identity, never to conclude that a file is harmless.
- Executables and scripts should be identified by their hash. A path rule for them is a substitution risk.
- Macro-enabled documents, other active content and archives should be identified by the content’s own hash when the detection judged that file.
- Data that changes on every write, such as logs, exports, databases and configuration files, is the opposite case. A full literal path in a location ordinary users can’t write to is already a narrow allowance, while a hash would break on the next write without reducing what the rule covers.
- Extension and location combine. A wildcard that can reach executable or script extensions is over-broad, and in a writable location it is among the widest rules you can write.
- Double extensions such as invoice.pdf.exe disguise an executable as a document (T1036.007).
- Behavior outranks the label. A file that behaves like a program or a script should be treated as one, whatever its extension says.
The right hash for the detection
Alerts often record two identities: the process that was running and the file that was judged. File and script detections are about content, so they need the file’s hash. Process-behavior detections are about execution, so they need the process hash. On a script detection, a process hash names the launcher. It is a sound identity for the launcher and the wrong one for the alert, and it silences every script that launcher runs. That is the PowerShell mistake again, harder to spot because a hash looks strong.
The grey area: one rule, two readings
Some rules are clearly unsafe: a wildcard over Temp, a system tool allowed by hash, ALL ALERTS on a document launcher. Some are clearly sound: a scoped hash of an ordinary binary on one named detection. Most real decisions sit between them, because the same binary, command line or address is routine administration in one environment and an intrusion in another. The difference lies in context the rule itself doesn’t contain. Six kinds of grey area come up again and again.
- Dual-use software. Network scanners, tunnelling tools and admin utilities are bought by IT and used by intruders (T1046, T1572). Advanced IP Scanner appears in ransomware incident reports and on IT workstations alike. The useful question is who is authorized to run it, and on which machines.
- Security tampering that is also routine IT. Uninstalling an EDR agent is a textbook attacker move (T1562.001), and also what IT does during a vendor migration. A literal uninstall command that carries a session-specific folder and the organization’s own tenant key is a far narrower allowance than the uninstaller itself.
- Admin actions that look like attacks. Adding a user to the administrators group is privilege escalation (T1098) or onboarding, depending on who did it. Allow the one literal command, confirm who authorized it, and leave the tool itself monitored.
- Intent against reach. A rule’s name says what its author meant; its shape says what it silences. A rule named “allow admin to set external forward” that allows the admin account on identity detections silences every identity alert for that account, of which the forwarding rule is only one.
- Knowing what the detection protects. An IP allowance on a detection for LLMNR and NBT-NS poisoning (T1557.001) hides exactly the traffic Responder-style tools generate from that address. Before allowing it, confirm the address belongs to a stable, dedicated device.
- Partial and conflicting evidence. Alerts may cover some hosts and not others, show the same hash in an install folder and in a user’s Temp folder, or not exist at all. A rule review has to say what the evidence shows and where it stops.
None of these resolves with a lookup. Each needs someone who knows the software, the detection and the environment, and who writes down why the exception exists and what would end it.
Before you save an allow list rule
Everything above comes down to a few questions any researcher or administrator can ask before clicking save:
- What did the detection actually judge? The script, the document, the dropped file, or the process? Allow that, not the program that happened to be running.
- Is the artifact a content hash of the right type? A file hash for content, a process hash for execution. Use a path only when the file changes constantly and the location isn’t writable by ordinary users.
- Is the program a built-in system tool, a document launcher or a remote-management tool? Then no identity for the program is safe. Allow one complete literal command line, or the content it runs.
- Does the rule name one detection? If you reached for ALL ALERTS or the whole process tree, list the detections that actually fired and allow those.
- Where did it actually run? Scope the rule to those hosts or that group, and authorize any other sighting separately. Be especially careful with servers and domain controllers.
- How many rows does the rule have? Rows are OR-ed: each extra row is another way to match.
- Who owns it, and when should it end? If the product won’t record that, write it in the name. “Temporary” is the most permanent word in security.
Statistics describe the allow list rule sets of tested client tenants. Customer hosts, users, groups and tenant names are anonymized. External figures are quoted from their publishers with their stated populations: MITRE ATT&CK T1564.012 and M1049; NIST SP 800-167; CISA, NSA and MS-ISAC AA23-025A; Microsoft Digital Defense Report 2025; CrowdStrike 2026 Global Threat Report; Microsoft and Omdia SOC study (February 2026); SANS 2025 Detection and Response Survey; Anthropic’s November 2025 report on ATT&CK campaign C0062; public Kaseya VSA reporting from Kudelski Security, Zscaler and FortiGuard Labs; the LOLBAS and GTFOBins projects. None of these external incidents involved Cynet customers.