Skip to content

DNS Security Best Practices for Logging

Your Domain Name System (DNS) infrastructure enables users to connect to web-based resources by translating everyday language into IP addresses. Imagine going into a restaurant, in the age before the internet, only to find that the staff speaks and the menu is written in a different language from yours. Without some shared communication form, you can’t order dinner, and they can’t give you what you want. Finally, someone comes into the restaurant who speaks both languages, acting as the translator so you can get the service you need.

 

A DNS infrastructure is the translator for cloud-based operations for continued services. However, when malicious actors target your DNS, a successful attack can lead to downtime or a data breach.

 

To mitigate risk, you should implement some DNS security best practices, including knowing what logs help you monitor for and detect a potential incident.

 

What is DNS security?

DNS security refers to the measures taken to protect the Domain Name System (DNS) infrastructure from cyber attacks. DNS translates a human-readable URL (Uniform Resource Locator) into a machine-readable IP address, routing user requests to the appropriate digital resources.

 

Cyber attacks against the DNS infrastructure can lead to:

  • Website defacement
  • Traffic hijacking sending users to malicious websites or intercepting communications
  • Unauthorized access to sensitive information
  • Distributed Denial of Service (DDoS) attacks causing service outages and business interruption

 

DNS security controls typically include:

  • Redundancy: Using multiple DNS servers spread across different locations to prevent a single point of failure
  • DNS Security Extensions (DNSSEC): Protocols providing authentication and data integrity
  • DNS logging: Monitoring for and detecting malicious activities

 

Why is DNS security important?

The history of DNS gives insight into why it is not a secure technology. Originally created in 1983 so people could more easily navigate the nascent internet, no one predicted this new connectivity would change and become critical to daily operations.

Your DNS infrastructure acts as the foundation for your digital business operations meaning the service disruptions lead to downtime and lost revenue.

 

A successful attack against your DNS infrastructure can lead to:

  • Business disruption: Without the ability to translate URLs into IP addresses, users and customers cannot connect to digital services.
  • Lost revenue: Without the ability to connect to services, customers cannot engage in transactions, like being able to purchase items in an e-commerce store.
  • Data breach: Compromising DNS services can lead to unauthorized data transfers, modification, or access that impact sensitive data’s integrity and privacy.
  • Compliance risk: DNS is included in various compliance frameworks and mandates, including the Payment Card Industry Data Security Standard (PCI DSS) and International Organization for Standardization (ISO) 27002-2022

 

6 DNS Attack Types and How to Prevent Them

As attackers increasingly target the DNS infrastructure, knowing these four common attack types can help you implement security controls and the appropriate monitoring to mitigate risk.

 

DoS and DDoS

Many attacks against the DNS infrastructure fall into these categories, even if they use different methodologies for achieving the objective. Although similar, you should understand the following differences:

  • Denial of Service (DoS): one computer using one internet connection sends high volumes of traffic to a remote server
  • Distributed Denial of Service (DDoS): multiple devices across multiple internet connections target a resource, often using a botnet consisting of devices infected with malware

 

These attacks flood a DNS server with requests and traffic. As the server attempts to manage the responses, it becomes overloaded and shuts down.

 

DNS amplification attacks

One DDoS attack type is DNS amplification, in which malicious actors send high volumes of DNS name lookup requests to publicly accessible, open DNS servers. Instead of using their own IP in the source address, the attackers spoof the target’s address so that the DNS server responds to the target.

 

DNS hijacking

In a DNS hijacking attack, malicious actors make unauthorized changes to the DNS settings which redirect users to deceptive or malicious websites. Some varieties of DNS hijacking attack include:

  • Cache poisoning: inserting false data into the DNS server’s cache to redirect users when they try to access the website
  • Server hijacking: gaining unauthorized access to a domain’s DNS records and changing A or AAAA records that redirect users to a malicious IP address or attacker-controlled server

 

DNS Spoofing

DNS spoofing, also called DNS poisoning, exploits security gaps in the DNS protocol. The attacker gets in between the browser and the DNS server to supply the wrong response, diverting traffic to the malicious website.

 

DNS tunneling

DNS tunneling is a sophisticated attack where malicious actors insert data into the communication path between the browser and server. This enables them to bypass several defensive technologies, including:

  • Filters
  • Firewalls
  • Packet capture

 

This process routes queries to a command and control (C2) server, enabling them to steal information.

 

DNS Logging Best Practices for Improved Security

Whether you build your own DNS infrastructure or use a managed service, you should be integrating your DNS logs into your overarching security monitoring. While the logs should provide similar information, the field used changes based on your DNS server’s manufacturer. However, you should look for log fields supporting the following categories and event types.

Cloudflare Graphic Reference

Zone operations

In DNS-speak, the zone refers to the domain. Some data you should consider collecting include log fields related to the creation, deletion, or modification to:

  • Zones
  • Records
  • Nodes

 

DNS Security Extensions (DNSSEC)

DNSSEC are configurations that use digital signatures to authenticate DNS queries and responses. Some data you should consider collecting include log fields related to:

  • Addition of new keys or trust points
  • Removal of keys or trust points
  • Exports of metadata

 

Policies

DNS policies allow you to

  • Balance traffic loads
  • Assign DNS clients based on geographic location
  • Create zones
  • Manage query filters
  • Redirect malicious DNS requests to a non-existent IP address

 

Some data you should consider collecting include log fields related to the creation, deletion, or modification of:

  • Client subnet records
  • Server level policies
  • Forwarding policies
  • Zone policies

 

Graylog Security: Correlating DNS Log Events

DNS logs are often difficult to parse, sometimes creating a blind spot when monitoring DNS security. Graylog Security offers out-of-the-box content that streamlines this process with pre-built content to rapidly set up and start monitoring your DNS security.

Our prebuilt content to map security events to MITRE ATT&CK. By combining Sigma rules and MITRE ATT&CK, you can create high-fidelity alerting rules that enable robust threat detection, lightning-fast investigations, and streamlined threat hunting. For example, with Graylog’s security analytics, you can monitor user activity for anomalous behavior indicating a potential security incident. By mapping this activity to the MITRE ATT&CK Framework, you can detect and investigate adversary attempts at using Valid Accounts to gain Initial Access, mitigating risk by isolating compromised accounts earlier in the attack path and reducing impact.

Graylog’s risk scoring capabilities enable you to streamline your threat detection and incident response (TDIR) by aggregating and correlating the severity of the log message and event definitions with the associated asset, reducing alert fatigue and allowing security teams to focus on high-value, high-risk issues.

About Graylog 
At Graylog, our vision is a secure digital world where organizations of all sizes can effectively guard against cyber threats. We’re committed to turning this vision into reality by providing Threat Detection & Response that sets the standard for excellence. Our cloud-native architecture delivers SIEM, API Security, and Enterprise Log Management solutions that are not just efficient and effective—whether hosted by us, on-premises, or in your cloud—but also deliver a fantastic Analyst Experience at the lowest total cost of ownership. We aim to equip security analysts with the best tools for the job, empowering every organization to stand resilient in the ever-evolving cybersecurity landscape.

About Version 2 Digital

Version 2 Digital is one of the most dynamic IT companies in Asia. The company distributes a wide range of IT products across various areas including cyber security, cloud, data protection, end points, infrastructures, system monitoring, storage, networking, business productivity and communication products.

Through an extensive network of channels, point of sales, resellers, and partnership companies, Version 2 offers quality products and services which are highly acclaimed in the market. Its customers cover a wide spectrum which include Global 1000 enterprises, regional listed companies, different vertical industries, public utilities, Government, a vast number of successful SMEs, and consumers in various Asian cities.

NordStellar’s attack surface management: Spot vulnerabilities before attackers do

Attack surface management reduces cyber risks

Summary: NordStellar’s attack surface management (ASM) feature provides continuous visibility and assessment of your organization’s external attack surface.

We’re excited to introduce NordStellar’s latest feature – attack surface management (ASM) – designed to provide continuous visibility and assessment of your organization’s external attack surface.

“By introducing ASM, we aim to help improve our clients’ overall security posture, ensuring that their security teams are equipped with insights needed to effectively manage their attack surface, minimize exposure to external threats, and meet regulatory requirements for vulnerability assessments,” says Vakaris Noreika, head of product at NordStellar.

ASM helps security teams monitor internet-facing assets, such as websites, servers, applications, and cloud resources, while identifying and mitigating vulnerabilities before they can be exploited. By automating the discovery of security gaps, NordStellar’s ASM empowers organizations to proactively reduce cyber risks and strengthen their security posture.

Attack surface management feature

Why companies have trouble managing their attack surface

Many companies lack full visibility into their external-facing assets, making it difficult to detect potential vulnerabilities that could be easily found by attackers on the dark web and exploited.

“Any security gaps in a company’s websites, servers, applications, cloud resources, or internet of things devices are a ticking time bomb, and it’s vital to identify and mitigate these vulnerabilities before attackers have a chance to act,” says Noreika.

However, many organizations still struggle with understanding and managing their attack surface due to several key challenges:

  • Unidentified and unmanaged assets. Many organizations struggle to maintain a complete and accurate inventory of their internet-facing assets. Without visibility, securing unknown or forgotten systems becomes impossible, leaving critical blind spots for attackers to exploit.
  • Inefficient manual processes. Traditional methods of asset discovery and vulnerability assessment often involve manual processes, spreadsheets, and disparate tools. This is time-consuming and labor-intensive.
  • Difficulty prioritizing remediation efforts. With limited resources, knowing which vulnerabilities pose the greatest risk and require immediate attention can be a challenge.
  • Lack of real-time threat detection. The attack surface is constantly changing, with new vulnerabilities being discovered and exploited daily.
  • Shadow IT and unknown risks. Unauthorized devices, applications, or services connected to the network without IT’s knowledge (shadow IT) significantly expand the attack surface and introduce uncontrolled risks.

 

How NordStellar’s ASM works

NordStellar’s ASM consists of two main modules – automatic asset discovery and external vulnerability management. Automatic asset discovery maps your infrastructure by running various domain enumeration processes. This way, ASM automatically identifies and catalogs all internet-exposed assets related to your organization, such as web servers, applications, and other network-connected devices. NordStellar can also discover domains, SSL certificates, and IPs.

In the meantime, external vulnerability management continuously monitors and scans the discovered assets for known weaknesses, delivering actionable intelligence to streamline recovery efforts.

How NordStellar’s ASM works

How security teams can put ASM into practice

Continuously monitoring and assessing the attack surfaces is by no means an easy task, requiring a great deal of time and human resources. NordStellar’s ASM provides value for different members of your security team:

  • Security analysts. Imagine starting your day by opening the ASM dashboard, where critical internet-facing vulnerabilities – whether it’s a misconfigured server or an exposed cloud resource – are already detected. You can dive straight into investigating the highest risks, collaborating with IT teams, and implementing fixes before attackers can exploit them.
  • Security engineers. Picture integrating ASM into your workflow. The platform continuously scans your external assets, uncovering weak points that could be exploited. With ASM’s automated discovery, you streamline your vulnerability patching process and address gaps while freeing up time to focus on strategic infrastructure security questions.
  • Security managers. See yourself walking into a stakeholder meeting with NordStellar’s ASM reports. You can clearly demonstrate how the team has reduced the organization’s attack surface, track remediation progress in real time, and provide data-backed proof of compliance. You’re ready to show the tangible value of proactive risk reduction to the entire business.

With ASM, every member of your security team gains the tools they need to strengthen your organization’s security. From real-time monitoring to automated insights and clear reporting, ASM helps you stay ahead of threats and focus on what matters most – keeping your business protected.

Key benefits of NordStellar’s ASM

Security teams are under constant pressure to manage the attack surface: unknown assets, evolving vulnerabilities, and manual processes hamper them down and create unnecessary risk. That’s where NordStellar’s ASM comes in, providing:

  • Minimized attack surface. By identifying and mitigating vulnerabilities, NordStellar’s ASM helps you reduce the chance of a successful attack.
  • Enhanced shadow IT visibility. With ASM, you’ll be able to maintain an accurate list of internet-exposed assets, protecting them from unknown threats.
  • Automation-driven operational efficiency. This lets you avoid manual vulnerability scanning, which is time-consuming and prone to errors.
  • Real-time threat detection. Unlike traditional periodic scans that leave gaps between assessments, ASM ensures continuous monitoring and alerting.
  • Mitigating vulnerabilities before attackers do. NordStellar’s ASM lets you protect your assets before threat actors can do damage.
  • Meeting compliance requirements. You can use ASM to demonstrate compliance with industry regulations that require regular vulnerability assessments.
  • Cost saving. With this feature, you can minimize the financial impact of security incidents.

About NordStellar

NordStellar is a threat exposure management platform that enables enterprises to detect and respond to network threats before they escalate. As a platform and API provider, NordStellar can provide insight into threat actors’ activities and their handling of compromised data. Designed by Nord Security, the company renowned for its globally acclaimed digital privacy tool NordVPN.

About Version 2 Digital

Version 2 Digital is one of the most dynamic IT companies in Asia. The company distributes a wide range of IT products across various areas including cyber security, cloud, data protection, end points, infrastructures, system monitoring, storage, networking, business productivity and communication products.

Through an extensive network of channels, point of sales, resellers, and partnership companies, Version 2 offers quality products and services which are highly acclaimed in the market. Its customers cover a wide spectrum which include Global 1000 enterprises, regional listed companies, different vertical industries, public utilities, Government, a vast number of successful SMEs, and consumers in various Asian cities.