Bitsquatting dot gov.au domains – exploring network data bitflips in DNS traffic
Matt Belvedere (Principal Security Consultant · Proactive Labs)
BSides Canberra VIII (2025) · Day 1 · Off-Main Track
Overview
In this insightful talk from BSides Canberra, Matt Belvedere, a Principal Security Consultant at Proactive Labs, delves into the fascinating and often overlooked phenomenon of bit squatting within the context of Australia's .gov.au domain space. Bit squatting, a concept initially disclosed over a decade ago, describes a scenario where machine-induced errors, primarily bit flips in memory, cause a DNS resolver to query a slightly altered, unintended domain name instead of the legitimate one. Belvedere's research, conducted with a strictly passive observational approach, aimed to validate prior work and gather real-world data on the prevalence and characteristics of these bit flips in DNS traffic targeting strategically chosen .gov.au bit-squatted domains.

Key moments
- 0:00 Introduction: What is Bitsquatting?
- 2:30 Prior Work & Scale of Bit Squatting
- 8:10 Technical Causes of Bit Flips in Hardware
- 17:45 Correlation: Solar Flares and Bit Flip Spikes
- 22:30 Discovering Internal Active Directory Services via Flips
- 24:15 Offensive Applications: Credential Capture & RCE
- 28:00 Unexpected Outcome: Domains Seized for Research
Bitsquatting dot gov.au domains – exploring network data bitflips in DNS traffic
Speakers: Matt Belvedere, Principal Security Consultant, Proactive Labs
Conference: BSides Canberra
YouTube: https://www.youtube.com/watch?v=wuOzxKkYgo0
Overview
In this insightful talk from BSides Canberra, Matt Belvedere, a Principal Security Consultant at Proactive Labs, delves into the fascinating and often overlooked phenomenon of bit squatting within the context of Australia's .gov.au domain space. Bit squatting, a concept initially disclosed over a decade ago, describes a scenario where machine-induced errors, primarily bit flips in memory, cause a DNS resolver to query a slightly altered, unintended domain name instead of the legitimate one. Belvedere's research, conducted with a strictly passive observational approach, aimed to validate prior work and gather real-world data on the prevalence and characteristics of these bit flips in DNS traffic targeting strategically chosen .gov.au bit-squatted domains.
The significance of this research lies in its empirical demonstration that bit flips occur with enough frequency to be a viable attack vector, even against critical government infrastructure. While the speaker explicitly states that no exploits were conducted, the findings illustrate how attackers could leverage these machine errors for various malicious purposes, ranging from reconnaissance and service mapping to credential harvesting and potential remote code execution (RCE) under specific conditions. By registering bit-flipped variations of high-value .gov.au domains and monitoring DNS requests, Belvedere provides a compelling case for why organizations, especially those operating critical services, need to understand and mitigate the risks posed by this subtle yet persistent form of network data corruption. The talk also touches upon the unexpected challenges of such research, including the speaker's own corporate domains being seized as a consequence of this sensitive investigation.
Background
▶ Watch: Introduction: What is Bitsquatting? (0:00)
The concept of bit squatting traces its origins to Artum Artem Dinaburg's disclosure at Defcon 19 in 2011. Artem Dinaburg coined the term to describe a phenomenon analogous to typo squatting, but where the source of the error is a machine rather than a human. Essentially, a single bit in memory or during transmission flips from a 0 to a 1 or vice-versa, altering a character in a domain name and causing a DNS query for a non-existent or attacker-controlled domain. Artem Dinaburg's initial proof of concept demonstrated the capture of sensitive data, including Windows core dumps, cookies, and credentials.
Subsequent research has expanded on this foundation. In 2013, Schulz presented a follow-up talk emphasizing HTTP, exploring how bit flips in URLs could be exploited, particularly before the widespread adoption of SSL/TLS. Ed Miles in 2018 observed significant traffic (25,000 requests per week across 30 domains) to his bit-squatted domains, noting a substantial portion originating from Google's public DNS resolvers. More recently, at Black Hat 2024, Sto and Juna conducted offensive research, registering bit-flipped domains for common SaaS platforms and successfully capturing a large volume of credentials. Belvedere's work builds upon this lineage, focusing specifically on the .gov.au top-level domain (TLD) and adopting a passive observation strategy to understand the prevalence and characteristics of bit flips without engaging in active exploitation.
To understand how bit squatting works, a basic understanding of DNS (Domain Name System) is crucial. When an application or machine needs to resolve a domain name to an IP address, it typically queries a local resolver (e.g., systemd-resolved on Linux), which then forwards the request to a recursive resolver, often provided by the Internet Service Provider (ISP). This recursive resolver queries a hierarchy of servers: root servers, top-level domain (TLD) servers (like .au), and finally the authoritative name server for the specific domain. A bit flip can occur at various stages within this resolution path, most commonly in the DRAM of an end-user device or an intermediate caching server, leading to the altered domain name being queried. The widespread adoption of the .au TLD in 2022, allowing registrations like food.au, also enabled the registration of bit-flipped variations of critical domains, such as gnv.au or g06.au for gov.au.
Key Findings
▶ Watch: Technical Causes of Bit Flips in Hardware (8:10)
Belvedere's research yielded significant empirical data on the frequency and nature of bit flips affecting .gov.au domains. Over the observation period, the study captured a total of 226,000 requests to the two registered bit-squatted domains. Prior to February 2025 (the specific end date of the data collection was July 2025), approximately 139,000 requests had been logged. On average, the researchers observed around 10,000 requests per month for just these two bit-flipped domains, indicating a persistent and non-trivial rate of occurrence.
A particularly striking finding was the correlation between spikes in bit-flipped DNS requests and solar activity. In October 2024, a significant surge was observed, with daily requests climbing from an average of 400 to approximately 1,600. This spike coincided with an X3-class solar flare, an event of considerable energy, of which only about eight occur per 11-year solar cycle. A similar, though less dramatic, spike was noted in June 2025, peaking at around 7,000 requests on a specific day, aligning with a weaker solar flare event. These correlations strongly support the hypothesis that cosmic radiation, amplified during solar flares, contributes to bit flips in computer memory.
Analysis of request types revealed a distribution different from typical public DNS server statistics. While A records (IPv4 address lookups) were the most common, accounting for 89,000 requests, they represented less than half of the total, contrary to public DNS data (e.g., from Vicana) which often shows A records comprising over 50%. MX records (mail exchange) were the second most frequent, followed by Quad A (IPv6), DNSKEY, and TXT records. The lower proportion of Quad A requests compared to general internet statistics (10% vs. 19%) suggested a slower uptake of IPv6 at the edges of the .gov.au ecosystem.
Geographical and ASN (Autonomous System Number) analysis provided insights into the origin of these requests. While geolocation is inherently flaky, the data suggested a significant proportion of requests from the United States, followed by Hong Kong, Ireland, and Australia. Grouping by ASN proved more reliable, revealing that a large volume of requests originated from major cloud and DNS providers such as Google, Amazon, and Cloudflare. The Cloudflare requests were particularly interesting, as it was unclear if they stemmed from Cloudflare's DNS resolvers or from origin servers attempting to connect back, the latter having more significant implications.
Crucially, the research identified requests indicative of internal Active Directory (AD) service discovery. These requests, characterized by names like _kerberos or _ldap within bit-flipped .gov domains, are typically made by machines on an internal network attempting to locate authentication services. This finding suggests that internal, malfunctioning systems within .gov networks are susceptible to bit flips, potentially leading them to query external, attacker-controlled domains for sensitive internal services. This specific observation highlights a previously less explored application of bit squatting, focusing on system-to-system interactions rather than just end-user web traffic.
Technical Deep Dive
▶ Watch: Correlation: Solar Flares and Bit Flip Spikes (17:45)
The core mechanism enabling bit squatting is the bit flip, a spontaneous change in the state of a single bit (0 to 1, or 1 to 0) within computer memory or during data transmission. These errors, often referred to as single-bit errors (SBEs), are primarily caused by various environmental and hardware factors:
- Memory Errors: The most common culprit is errors in DRAM (Dynamic Random-Access Memory). These can be induced by cosmic rays, alpha particles from packaging materials, or other forms of background radiation.
- Environmental Factors: Heat, power fluctuations, and electromagnetic interference can all contribute to memory instability and bit flips. The talk specifically mentioned Adelaide's mains voltage exceeding 260 volts at times, potentially pushing hardware beyond its operational limits.
- Hardware Age and Quality: Studies, such as Google's "DRAM Errors in the Wild," have shown a strong correlation between the age of hardware and the frequency of faults. Older or lower-quality components, especially those without ECC (Error-Correcting Code) memory, are more susceptible. The speaker humorously noted issues with older CPUs lacking certain instruction sets, making them prone to such problems.
When a bit flip occurs in the memory holding a domain name, say gov.au, a single character might change, transforming it into gnv.au or g06.au. This corrupted string is then used in a DNS lookup. The DNS resolution process then proceeds as normal, but for the incorrect domain.
The speaker referenced Artem Dinaburg's original work, which identified two primary paths for bit flips to manifest:
- DNS Path: The corruption occurs within an intermediate DNS resolver or caching server. In this scenario, the client's original request is correct, but the resolver's cached entry or its query to an upstream server is corrupted.
- Content Path: The corruption occurs on the end-user device, typically in its DRAM, before the DNS request is even sent. This is considered the more common path.
A critical implication for attackers is that if the bit flip happens early enough (e.g., on the client device), it can bypass TLS/SSL certificate validation. If the domain name used for the DNS lookup is fu.go.au (a bit-flipped version of food.gov.au), the client will attempt to establish a TLS connection to fu.go.au. If an attacker owns fu.go.au and has obtained a legitimate SSL certificate for it, the client's SSL validation will pass, as it's checking the certificate against the bit-flipped domain it believes it's connecting to, not the original intended domain. This can lead to the successful interception of encrypted traffic and credentials.
For the .gov.au specific research, the speaker leveraged the 2022 availability of the .au TLD. This allowed the registration of domains like gnv.au and g06.au, which are single-bit flips of gov.au. The strategy involves:
- Identifying high-value target domains (e.g.,
gov.au). - Co-opting these domains by generating all possible single-bit flip variations.
- Filtering out unusable variations (already registered, non-ASCII, invalid DNS characters).
- Registering the available bit-flipped domains.
- Setting up an authoritative name server for these domains to log incoming DNS queries.
The research's focus on internal Active Directory (AD) service discovery traffic is a notable technical extension. Queries for _ldap._tcp.domain.gov.au or _kerberos._tcp.domain.gov.au are standard for AD clients seeking domain controllers. When a bit flip occurs in domain.gov.au to domain.gnv.au (for example), and a client within an AD environment makes such a query, it indicates a malfunctioning internal system attempting to locate an authentication service via an external, bit-squatted domain. This provides attackers with valuable reconnaissance on internal network layouts, site names (e.g., VityLakes), and even product affiliations (e.g., traffic coming from Zscaler).
Demo / Proof of Concept
▶ Watch: Offensive Applications: Credential Capture & RCE (24:15)
While no active exploitation or "demo" in the traditional sense was performed, the speaker outlined a robust and passive proof-of-concept setup for data collection, which served to demonstrate the prevalence of bit flips in the wild. The primary goal was to observe and log DNS requests to bit-squatted domains without interacting with the requesting clients or attempting to capture sensitive data.
The setup was intentionally minimal and focused on logging:
- Domains Registered: Two strategically chosen bit-flipped variations of
.gov.audomains were registered (e.g.,gnv.au,g06.au). The speaker explicitly mentioned that other potential flips were already taken, but these two served the purpose. - Name Server: Amazon Route 53 was used as the authoritative name server for the registered bit-squatted domains. Route 53 is a highly reliable and scalable DNS service, and its integration with AWS logging capabilities was crucial for the passive data collection.
- Logging: All DNS query logs from Route 53 were automatically pumped into an Amazon S3 bucket. This provided a raw, tamper-resistant repository for all incoming DNS requests to the bit-squatted domains.
- Analysis: The collected logs, which included fields such as date, query name, query type, resolver IP, and EDNS client subnet (for approximate client origin), were then processed and analyzed using tools like Jupyter Notebook. This allowed for filtering, aggregation, and visualization of the vast dataset.
The resulting data, presented as tables and graphs in the talk, clearly showed the volume, type, and origin of the bit-flipped requests. For instance, the logs displayed specific query names (e.g., _ldap._tcp.datacenter.gnv.au), their corresponding ASN, and the time of the request. This passive approach successfully validated the hypothesis that bit flips occur frequently enough to generate significant traffic, even to obscure, machine-generated domain variations. The "demo" was in the meticulous collection and presentation of this real-world, observed data, proving the concept's viability without crossing ethical boundaries into active attack.
Defensive Implications
▶ Watch: Unexpected Outcome: Domains Seized for Research (28:00)
The findings from this bit squatting research carry significant implications for defenders, particularly for organizations operating critical infrastructure within the .gov.au domain space. The core message is that machine errors, often considered rare, occur with enough frequency to be a persistent and exploitable threat.
Here are key defensive implications:
- Monitor for Bit-Flipped Domains: Organizations should actively monitor their DNS logs and network traffic for queries to domains that are single-bit (or even multi-bit) flips of their legitimate domains. This includes not just
.com.auor.gov.aubut also internal Active Directory domains (.domain.local). Tools like Elasticsearch or EDR (Endpoint Detection and Response) systems should be configured to flag such anomalous requests. - Implement Robust DNS Security: While not a direct solution to bit flips, ensuring secure DNS practices (e.g., DNSSEC for integrity) and using trusted, well-maintained recursive resolvers can help. However, given that bit flips often occur before the DNS query leaves the client or within an intermediate caching server, traditional DNS security measures may not fully mitigate the risk.
- Prioritize ECC Memory: For critical servers and systems, especially those handling sensitive data or performing frequent DNS lookups, the use of ECC (Error-Correcting Code) memory is highly recommended. ECC memory can detect and correct single-bit errors, significantly reducing the likelihood of bit flips affecting domain names or other critical data. The talk highlighted that many embedded devices and older systems may not use ECC.
- Harden Client-Side DNS Resolution: Developers should consider implementing mechanisms like certificate pinning or other forms of endpoint validation to detect connections to unexpected endpoints, even if TLS validation passes due to a bit-flipped certificate. Applications should be resilient to connecting to incorrect IP addresses.
- Be Aware of Internal Service Discovery Leaks: The observation of bit-flipped Active Directory service discovery requests (
_ldap,_kerberos) is a critical finding. Defenders should recognize that internal network layouts and services can be mapped by attackers monitoring bit-squatted domains. This information can then be used for targeted internal reconnaissance or to craft more sophisticated attacks once an initial foothold is gained. - Mitigate Credential Harvesting and RCE Risks: As demonstrated by prior research (Sto & Juna), bit squatting can be used for large-scale credential harvesting. Organizations should assume that sensitive data (e.g., authentication tokens, system credentials, telemetry) could be leaked via bit-flipped requests. For unsigned update services, a bit flip could lead to an attacker serving malicious updates, potentially resulting in Remote Code Execution (RCE).
- Review Embedded Systems and Appliances: Devices like Wi-Fi access points, printers, and other embedded systems often use non-ECC memory and may be more susceptible to bit flips. These devices often make DNS requests for various services (e.g., RADIUS, LDAP for authentication). Defenders should assess the risk posed by such devices in their environment.
- Understand Research Risks: As a cautionary note, the speaker's own corporate domains were seized as a result of conducting this research, highlighting the potential legal and operational risks involved in registering and monitoring potentially sensitive bit-flipped domains, even for purely defensive or observational purposes.
In essence, defenders must acknowledge that bit flips are a real and measurable phenomenon. By proactively monitoring for bit-squatted domain requests, investing in resilient hardware and software, and understanding the potential attack vectors, organizations can better protect themselves against this subtle yet potent threat.
Key Takeaways
- Bit Flips Are Real and Frequent: Machine-induced bit flips in DNS traffic are not theoretical; they occur often enough (e.g., 10,000 requests/month for two domains) to be a viable attack vector.
- Solar Activity Correlation: There is a measurable correlation between solar flares (e.g., X3-class) and significant spikes in bit-flipped DNS requests, suggesting cosmic radiation as a primary cause.
- Internal Service Discovery at Risk: Bit flips can expose internal Active Directory service discovery requests, allowing attackers to map internal network layouts, site names, and potentially identify vulnerable systems.
- Bypass TLS/SSL Validation: If a bit flip occurs on the client side, attackers can obtain legitimate SSL certificates for the bit-flipped domain, allowing them to bypass TLS/SSL validation and intercept encrypted traffic.
- Diverse Attack Applications: Bit squatting enables various offensive applications, including reconnaissance, credential harvesting (e.g., 15,000 emails caught in prior work), and potentially RCE via unsigned update services.
- Defenders Need Proactive Monitoring: Organizations must implement monitoring for bit-flipped domain requests in their DNS and network logs, prioritize ECC memory for critical systems, and harden client-side application validation.
About the Speaker(s)
Matt Belvedere is a Principal Security Consultant at Proactive Labs, a penetration testing firm based in Canberra. With over a decade of experience as a penetration tester, he describes himself as a "professional cheeky individual" who gets paid to be a "pest." His work often involves uncovering novel security vulnerabilities and exploring unconventional attack surfaces. This talk showcases his expertise in deep technical analysis and his commitment to understanding fundamental network phenomena.