Pcornel
Security · DNS Security

Sinkhole

Cheat sheet · https://pcornel.dk/topic.php?topic=4798

Back to the Topic

Answer

A DNS sinkhole answers queries for malicious domains with a controlled IP address, so infected clients connect to a harmless server instead of the attacker, which also reveals which hosts are infected.

Remember

  • Infected hosts reveal themselves by contacting the sinkhole.
  • Sinkholes stop command-and-control.
  • Log all sinkhole connections.

First checks

  • dig <malicious-domain> — returns sinkhole IP
  • Sinkhole server logs — infected hosts contacting it
  • SIEM alert on sinkhole hits — response

Verify in this order

malicious domain query → sinkhole IP → logged contact

Where it usually breaks

First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4798

Confirmation

Confirm action

Continue?