TL;DR: DNS filtering intercepts malicious resolution requests before a connection is established, helping block phishing domains, malware command-and-control traffic, DNS tunneling, and newly registered domains, according to CyberFOX. Network teams should treat DNS as a preventative control layer, not just a routing function, because trust at resolution time is now an attack surface.
At a glance
What this is: This is a guide to DNS security and DNS filtering, with the central finding that blocking malicious DNS resolution is an early control point against phishing, malware, tunneling, and newly registered domains.
Why it matters: It matters because DNS sits on the path of nearly every connection, so teams responsible for IAM, NHI, and broader security governance need visibility and policy control before trust is granted.
👉 Read CyberFOX's guide to DNS security and DNS filtering
Context
DNS is the lookup layer that turns a domain name into an address, which makes it both foundational and easy to abuse. Because the protocol was designed long before modern threat models, many environments still treat DNS traffic as implicitly trusted, even though malicious resolution is now a routine attack path. That creates a governance gap between network plumbing and security control.
For identity and access teams, the relevance is indirect but real: DNS abuse often supports credential theft, malware delivery, and covert command channels that later affect human and non-human identities. A control that blocks bad destinations before connection establishment can reduce exposure across endpoints, workloads, and users, which is why this model is typical in mature security programmes but still uneven in practice.
CyberFOX frames DNS filtering as a preventative layer rather than a reactive one, and that distinction matters. Once a connection is already established, later controls are working inside the blast radius instead of at the point of trust decision.
Key questions
Q: How should security teams implement DNS filtering across remote and office users?
A: Start with a policy that follows the user and device, not the subnet. DNS filtering should remain active on managed laptops, home networks, and third-party Wi-Fi so malicious destinations are blocked before a session starts. That approach reduces exposure from phishing, malware delivery, and covert command channels without relying on the corporate perimeter.
Q: Why does DNS filtering reduce phishing and malware risk so early?
A: Because it denies the lookup that makes the connection possible. If a domain is blocked at resolution time, the browser or workload never reaches the malicious host, which removes a common path for credential theft, malware downloads, and command-and-control communication. Early denial is especially valuable when attackers rotate domains quickly.
Q: What are the signs that DNS filtering is not covering enough of the environment?
A: Look for uneven block coverage across users, devices, and locations, plus a lack of logs explaining which domains were denied and why. If remote users can still reach risky destinations or the security team cannot trace DNS decisions during an investigation, policy coverage is incomplete.
Q: What happens when DNS security is left to perimeter tools alone?
A: Controls become easy to bypass when users work off-network or when malware uses permitted DNS traffic to reach attacker infrastructure. Perimeter-only inspection also misses the governance value of policy consistency, because the same user may be protected in one location and exposed in another.
Technical breakdown
How DNS filtering blocks malicious resolution
DNS filtering inspects a query before the device reaches the destination. The control compares the requested domain against threat intelligence, reputation signals, and policy rules, then blocks or allows the resolution. That matters because the browser, endpoint, or workload never needs to contact the malicious host if the lookup fails. This is different from post-connection detection, which sees traffic after trust has already been extended. In practice, the security value is in stopping the first successful step of the attack path, not in cleaning up after the session begins.
Practical implication: place DNS filtering where resolution decisions happen, not only at the firewall or endpoint.
Why DNS tunneling and malware C2 evade standard controls
DNS tunneling hides data inside query patterns, while command-and-control traffic uses DNS to find infrastructure and receive instructions. Both abuse the fact that DNS is widely permitted and often under-monitored. Static blocklists miss fast-changing domains, and traditional perimeter tools may not inspect query intent deeply enough to spot low-and-slow abuse. Pattern-based detection helps by looking for anomalies such as unusual query volume, repeated subdomain encoding, or newly registered destinations associated with attacker infrastructure.
Practical implication: monitor DNS behaviour as a detection source, not just as infrastructure noise.
How policy granularity and roaming protection change enforcement
Modern DNS filtering is most effective when policy follows the user, device, or group rather than the office network alone. That matters because remote work breaks the assumption that inspection happens on-premises. Granular controls let security teams enforce different rules for different populations, while roaming protection keeps the policy active on home, hotel, and third-party networks. For identity governance, that means access risk is reduced before a compromised session can reach an external service or credential capture site.
Practical implication: enforce DNS policy consistently across managed endpoints, not only inside the corporate LAN.
Threat narrative
Attacker objective: The attacker wants to reach malicious infrastructure before defenders intervene, then use that path for phishing, malware control, or covert exfiltration.
- Entry begins when a user or device resolves a lookalike phishing domain, a malicious download host, or an attacker-controlled C2 endpoint through DNS.
- Escalation occurs when the initial connection lets malware establish command-and-control, receive instructions, or move the victim toward credential capture and data theft.
- Impact follows when the attacker uses that trust path to steal data, maintain covert access, or expand further into the environment through additional compromised identities.
NHI Mgmt Group analysis
DNS filtering is a trust-decision control, not just a blocklist. The security value comes from deciding whether a destination should be reachable before the connection exists. That places DNS policy closer to access governance than to simple web filtering. For programmes that already think in terms of allow, deny, and verification, DNS becomes another enforcement layer in the access path.
DNS abuse creates a hidden identity problem when credentials are the real target. Phishing domains, malware C2, and tunneling often exist to steal or abuse human and non-human identity material downstream. That makes DNS filtering relevant to IAM and NHI teams because the attack path frequently ends in credential theft, token abuse, or workload compromise. Practitioners should treat DNS as part of the identity attack surface, not as a separate network-only concern.
Visibility into DNS decisions is a named governance gap: resolution blind spot. Many organisations can inspect endpoint telemetry or firewall logs but still cannot explain which domains were blocked, by whom, and under what policy. That limits investigation, policy tuning, and auditability. The practical conclusion is simple: if DNS enforcement cannot be observed, it cannot be governed.
Network-level prevention is becoming a baseline expectation in security frameworks. DNS filtering aligns well with broader control sets such as NIST Cybersecurity Framework and CIS Controls because it reduces exposure before execution, collection, or exfiltration can occur. The issue is not whether a team can deploy a control, but whether it can prove that the control is consistently active across users, devices, and locations.
What this signals
DNS filtering is increasingly part of the control fabric that protects identity systems, not just the network stack. As attacks move faster and domains are spun up and retired quickly, teams need policy decisions that happen before trust is granted. That pattern fits broader zero-trust thinking and aligns with the NIST Cybersecurity Framework 2.0, especially where prevention and detection must operate together.
Resolution blind spot: organisations that cannot explain blocked queries, roaming enforcement, and policy scope will struggle to prove effective control. That is the operational test for maturity here, and it matters to identity teams because phishing and malware often use DNS as the path to credentials and tokens. The practical next step is to connect DNS telemetry to investigation and access-risk workflows, not leave it isolated in the network team.
Where DNS filtering intersects with NHI governance, the question is whether compromised endpoints can still reach infrastructure that later exposes secrets, tokens, or service accounts. That makes the control relevant to workload protection, identity hygiene, and incident containment. Teams should treat DNS logs as part of the evidence trail for identity compromise, especially when malicious domains are used to stage follow-on access.
For practitioners
- Treat DNS as an enforcement point Place DNS filtering in the path of every outbound resolution request so malicious destinations are blocked before a session forms, including roaming devices outside the office network.
- Prioritise detection for DNS tunneling patterns Tune monitoring for unusual subdomain length, high query frequency, and repeated lookups to new or low-reputation domains, then route those events into investigation workflows.
- Apply separate policy by user and device group Use granular rules for finance, engineering, contractors, and unmanaged endpoints so high-risk populations do not inherit a single flat DNS policy.
- Verify roaming protection outside the LAN Test whether policy enforcement remains active on home and public networks, because remote users often lose the benefit of perimeter-only controls.
Key takeaways
- DNS filtering works best as a pre-connection control, because blocking resolution removes the attacker’s first chance to reach malicious infrastructure.
- The operational risk is not only phishing, but also malware C2, DNS tunneling, and fast-moving newly registered domains that evade slower controls.
- Teams should govern DNS as part of the identity and access attack surface, with consistent enforcement across users, devices, and locations.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack surface, NIST CSF 2.0, CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, and ISO/IEC 27001:2022 define the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC-4 | DNS filtering supports controlled access to destinations and threat reduction before trust is extended. |
| CIS Controls v8 | CIS-9 , Email and Web Browser Protections | DNS filtering directly supports web destination protection against phishing and malicious domains. |
| NIST SP 800-53 Rev 5 | SI-3 | Blocking malicious domains aligns with malicious code protection and prevention of harmful connections. |
| ISO/IEC 27001:2022 | A.8.23 | DNS filtering fits technical web filtering and network access protection expectations. |
| MITRE ATT&CK | TA0001 , Initial Access; TA0011 , Command and Control | The article describes phishing entry and DNS-based C2 as core threat stages. |
Map DNS controls to initial access and C2 disruption, then tune detections for lookalike and newly registered domains.
Key terms
- DNS Filtering: DNS filtering is a control that blocks, allows, redirects, or reroutes traffic based on domain resolution requests. It reduces exposure to phishing, malware, and unwanted destinations by applying policy at the point where devices attempt to resolve names into reachable internet endpoints.
- DNS Tunneling: DNS tunneling is the use of DNS queries and responses to carry hidden data for command-and-control or exfiltration. Because DNS is commonly trusted and lightly inspected, attackers can hide malicious communication inside traffic that looks routine at first glance.
- Command-and-control: Command-and-control is the communication channel an attacker uses to issue instructions to malware and receive results back from a compromised host. For XWorm, the channel is encrypted and used for session management, payload delivery, surveillance, and modular expansion of capabilities after compromise.
- Newly Registered Domain: A newly registered domain is a domain created very recently, often with little or no reputation history. Security teams treat these domains as risky because attackers frequently use them to launch phishing, malware delivery, and short-lived campaigns before blocklists catch up.
What's in the full article
CyberFOX's full article covers the operational detail this post intentionally leaves for the source:
- Platform-level guidance on IPv6 coverage, AI-driven pattern recognition, and how those capabilities are configured in practice
- Policy design examples for users, groups, devices, and locations that go beyond the governance discussion here
- Implementation detail on roaming protection for remote workers and unmanaged network conditions
- Reporting and dashboard outputs that security teams can use for operational monitoring and compliance evidence
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners connect identity controls to the wider security programmes they operate every day.
Published by the NHIMG editorial team on September 3, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org