Vai al contenuto
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
meltedinhex/hunting-dns-tunneling-and-exfiltrationRete, wireless e telecomunicazioni

hunting-dns-tunneling-and-exfiltration

⁨Detects DNS-based tunneling and data exfiltration in DNS logs: scoring high query⁩

v1.0.03 installazioni+3 in 7 giorni24 StelleApache-2.0sincronizzato 10 ore fa

Installa

Non hai ancora la CLI di NotHoly? Installala prima.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install meltedinhex/hunting-dns-tunneling-and-exfiltration

Scrive in ⁦~/.notholy/skills⁩ dopo aver controllato la firma e lo SHA-256.

FirmaFirmato, ed25519
0g2R8UnIV6…u4q95vBQ==La CLI controlla lo SHA-256 e la firma prima di scrivere qualsiasi file.
Pacchettofaa79df6…b7f4940f
faa79df65354…27f7b7f4940f4 file · ⁦3.5 KB⁩
ScansioneMedio2 segnalazioni
  • Script eseguibile incluso nella skillscripts/analyst.py
  • Link a domini esterni
Vedi la scansione completa
Sorgentegithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/hunting-dns-tunneling-and-exfiltration@da7600a

Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.

When to Use

  • You have DNS query logs (resolver, Zeek dns.log, Windows DNS) and want to find tunneling or exfiltration over DNS.
  • You are testing a hypothesis that an implant uses DNS as a covert channel.
  • You need to rank domains by tunneling indicators across many queries.

Do not use query length alone as a verdict — CDNs, antivirus lookups, and some SaaS use long encoded labels legitimately; combine entropy, volume, and record-type signals.

Prerequisites

  • DNS logs with query name, query type, source, and timestamp, over a meaningful window.
  • A way to whitelist known-benign high-volume domains (security vendors, CDNs).

Workflow

Step 1: Aggregate by registered domain

Group queries under their registered/parent domain so per-domain volume and subdomain diversity are visible.

Step 2: Score tunneling indicators

Weight: high unique-subdomain count, long average label length, high subdomain entropy (encoded data), heavy TXT/NULL/CNAME usage, and high query rate to one domain.

bash
python scripts/analyst.py hunt dns.json

Step 3: Estimate exfiltration volume

Sum encoded bytes implied by query lengths per domain; sustained high volume to a single nameserver suggests data egress.

Step 4: Whitelist and pivot

Remove known-benign high-entropy domains; for survivors, check domain age/registration, the authoritative nameserver, and the originating host.

Step 5: Confirm and respond

Validate by decoding sampled labels where possible and correlating with host activity; escalate confirmed tunnels and write a detection.

Validation

  • High-score domains combine multiple signals (entropy + volume + record type), not one alone.
  • Benign high-volume domains are whitelisted, keeping the list reviewable.
  • Confirmed tunnels tie to a specific host and a young/suspicious domain.

Pitfalls

  • Flagging long labels from CDNs and AV telemetry as tunneling.
  • Aggregating by full FQDN instead of registered domain, hiding subdomain diversity.
  • Ignoring record type; TXT/NULL carry far more data than A records.

References

  • See references/api-reference.md for the DNS hunt scorer.
  • ATT&CK T1071.004 and T1048 (linked in frontmatter).

File di questa versione

Permessi

PermessoDichiaratoTrovato dalla scansione
Legge fileNoNo
Scrive fileSìSì
Esegue comandi shellSìSì
Usa la reteSìSì
Usa i connettoriNoNo
Controlla un browserNoNo

Segnalazioni della scansione

Rivisto il 13 nov 2026

  1. MediaFile · Script eseguibile incluso nella skillscripts/analyst.py
  2. InfoLink · Link a domini esterni

Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.

VersionePubblicataCommitSHA-256FirmaCambio di permessi
v1.0.013 nov 2026da7600afaa79df6Firmata–

Chiedi tutto quello che il tuo perimetro consente.

Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.

  1. 1/3

    Crea l'account

    Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.

    PrivatoAzienda
  2. 2/3

    Aggiungi crediti

    Con carta. Paghi a token, senza abbonamento.

    $5.00ricarica minima
  3. 3/3

    Chiedi

    In chat, oppure installa la CLI ed esegui notholy login nel terminale.

    $ notholy login