Working With DNS-Encoded Strings

Understanding how attackers hide data inside DNS, and how the Axiom|Spectre DNS Decoder HUD reveals the truth.

1. Why DNS Encoding Matters

DNS is one of the oldest and most permissive protocols on the Internet. Because of this, attackers often tunnel data through DNS by encoding it using Base32, Base64, hex, or escaped TXT sequences. These strings end up inside:

  • Suspicious DNS queries
  • TXT records
  • Multi-label subdomains (e.g., abcd.efgh.ijkl)
  • DNS tunneling tools like dnscat2, iodine, or custom malware
≈·*•—[ A|S ]—•*·≈   “Every encoded signal leaks its pattern.”

2. Types of DNS Encoded Data

Most DNS payloads use one of the following encoding formats:

  • Base32 — used by many tunneling tools
  • Base64 — common in C2 beacons and exfil
  • URL-safe Base64 — seen in JWTs and telemetry
  • Hex encoding — simple, survives DNS transport
  • TXT escape sequences — e.g., \032 for space
  • Multi-label segments — broken into DNS-safe chunks

3. Safe Test Samples You Can Paste

These samples demonstrate every decoder and analysis feature.

Base32

NB2WY3DPEB3W64TFOBBWG3DJNZTSA===

Base64

dGhpcyBpcyBhIHRlc3QgcGF5bG9hZA==

URL-Safe Base64

QXhpby1TcGVjdHJlX0ROU19EZWNvZGVyLXJ1bnt9

Hex

68656c6c6f2c2072756e652d7465636820776f726c6421

Multi-Label

74686973.69732.6c6f6e67.6578706f7274

TXT Escaped

hello\032world\033this\032is\032escaped

High-Entropy (tunneled)

MJXWQ33OP5XW6ZJAORXXEZLYMVZWC===

dnscat2-style

i4geq.mb2gi.nb2tq

4. How the Decoder HUD Works

  • Auto-removes domain suffixes
  • Auto-joins dot-split labels
  • Tries Base32, Base64, hex, TXT escapes
  • Outputs plaintext, hex, binary
  • Supports HUD / Minimal / JSON views

5. Auto-Analysis Breakdown

  • Entropy — measures randomness
  • Classification — text, binary, config, tunneled
  • Notes — hints about behavior

Example Classification Output

Entropy: 126.4 bits (4.37 bits/char) Classification: High-entropy encoded payload Notes: • High entropy per character; possible tunneling • Long payload; may be part of DNS exfil

6. When to Suspect DNS Tunneling

  • High entropy (4.5+ bits/char)
  • Long multi-label subdomains
  • Unreadable or binary-looking output
  • Repeated Base32/Base64 patterns
  • Unusual or unregistered domains

7. Workflow: Investigating DNS Encoded Data

  1. Capture DNS queries
  2. Extract suspicious subdomains
  3. Paste into DNS Decoder HUD
  4. Interpret plaintext, hex, binary outputs
  5. Check entropy and classification
  6. Determine if tunneling is happening

8. Summary

DNS-encoded data is common in both legitimate services and malicious activity. With the DNS Decoder HUD, you can decode, analyze, and classify these signals with clarity.

≈·*•—[ A|S ]—•*·≈   “Signal clarity begins with removal of noise.”

- Crafted by Axiom|Spectre