Urgent.News

What's breaking now, across hundreds of outlets.

Tech

DNS Tunneling, Explained: How Data Hides Inside Ordinary DNS Lookups

Most company firewalls say no to almost everything going out. But they nearly always say yes to one thing: DNS, the lookup that turns github.com into an IP address. Without it nothing works, so it stays open. DNS tunneling is what happens when an attacker notices that open door and starts walking data through it. This post explains how it works without assuming you know DNS internals, shows a…

DNS tunneling is a method by which attackers hide data inside ordinary Domain Name System (DNS) lookups to bypass company firewalls. This technique exploits the fact that most company firewalls do not block DNS requests. The source material explains how DNS tunneling works, provides a small Python script to detect simulated leaks, and lists various defenses to prevent such attacks.

The process begins with the attacker registering a domain and running its name server. Malware running on a compromised device then performs DNS lookups for names like "stolen-data.exfil-demo.example." The company's DNS resolver, which is usually configured to trust the domain owner, will answer the query and forward the response to the attacker. The attacker can embed commands within TXT records, which are hidden within the DNS response.

A normal DNS lookup works as follows: when a laptop needs to access GitHub, it asks the company resolver, which then contacts the name server responsible for github.com. The name server responds with an IP address, which is then delivered to the laptop. The key point is that the resolver queries the domain owner, and any requests for names under that domain will be handled by the domain owner's server.

The attacker's trick is to encode data inside the DNS question itself. This is done by encoding the data in a legal format, such as Base32 or hex, and breaking it into manageable slices. Each slice is then sent as a separate DNS query to the attacker's name server, which reconstructs the original data from these slices. The attacker's name server logs each query, enabling them to decipher the data and potentially issue commands to the infected device.

Despite the size limitations of DNS (63 bytes per label and 255 bytes for the full name), tunneling is still possible but slow, making it difficult to detect since it blends in with normal traffic. Malware often uses long, random, unique names under a single domain, which are easy to spot with the right defenses. The MITRE ATT&CK framework lists DNS tunneling under Technique T1071.004, Application Layer Protocol: DNS.

To detect DNS tunneling, the source material suggests looking for four signals: long labels (close to the 63-byte limit), high character entropy in the encoded data, many unique names under a single domain, and an unusual prevalence of TXT records. These indicators, when present together, can signal potential DNS tunneling activity.

The author provides a small Python script that analyzes DNS query logs to flag potential DNS tunneling suspects. The script calculates scores based on four signals: long labels, randomness in the encoded data, the number of unique names under a single domain, and the frequency of TXT records. By running this script on DNS query logs, organizations can identify and mitigate potential DNS tunneling attacks.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Hai lần giảm giá liên tiếp trong JavaScript: kiểm thử bằng số nguyên

Khi viết bài tập JavaScript về phần trăm, một lỗi thường gặp là cộng hai mức giảm trước khi tính. Ví dụ, giảm 25% rồi giảm thêm 20% khiến giá từ 100 xuống 75, rồi từ 75 xuống 60.

  • Function accepts amount in cents and percentage discount
  • Apply one-step function to calculate final discounted amount
  • Assert intermediate and final amounts match expected values

Predicting Injury Counts in Motor Vehicle Collisions

What is Playwright? Playwright is an end to end testing tool. End to end refers to the practice of testing an application frontend and backend. End to end mimics user behavior in an automated fashion.

  • Playwright is used for end-to-end testing of applications.
  • Flaky tests occur due to unpredictable computers and multiple tests on a single server.
  • Resource Intensive Queue (RIQ) prevents deadlocks and out-of-memory errors in tests.

MCP Server Backup and Disaster Recovery: A Practical Plan

Quick answer: Backups and high availability solve different problems, and an MCP deployment needs both. Failover moves traffic to a healthy node when one crashes, but it does not protect against a…

  • Failover moves traffic to healthy node, not logical failure protection
  • Backup stateful parts like registry, routing config, and metadata
  • 3-2-1 backup strategy with off-site storage in different region

Tencent Hy4's Weights Are Finally Downloadable: 770B Parameters, 1.55TB, and a License Trap

Tencent Hy4's Weights Are Finally Downloadable: 770B Parameters, 1.55TB, and a License Trap On November 4, Tencent announced Hy4: 770B parameters, 49B active, a million-token context.

  • Tencent unveiled Hy4 language model with 770 billion parameters on November 4
  • Hy4's weights became downloadable on November 20, totaling 1.55TB
  • Licensing terms under Tencent Hy License restrict model usage

Gravity Bridge lost $5.4M because one key could say withdraw(all)

On May 30, 2026, Gravity Bridge lost about $5.4M. Not to a reentrancy bug. Not to an oracle manipulation, or a flash loan, or a clever math error.

  • Gravity Bridge lost $5.4M in May 2026 due to key compromise.
  • Attacker converted stolen assets into ETH, some to Binance.
  • Incident highlights need for better operational security and key management.

Indexing 2,588+ Real YouTube Spoken Phrase Pages Alongside 200M+ Movie Lines Without Browser Extensions

When people look up how a natural English phrase actually sounds in everyday speech, they usually run into two extremes: scripted textbook audio that sounds overly enunciated, or browser extensions…

  • WinkLingo indexes over 2,588 YouTube spoken phrase pages
  • Accompanies 200 million+ movie lines without browser extensions
  • Addresses YouTube caption challenges with normalization techniques

More from Monday 23 November →