Skip to content
PURPLEDUEL

Aliases with no owner

Recon & Scanning · hard level · 5 objectives · 790 XP in total

The DNS of corp.nr is full of aliases pointing to outside suppliers’ services, and nobody remembers who owns them. You have the exported zone and the company CMDB: find the alias whose target no longer exists and close the case.

Lab 9 of 10 in the Recon & Scanning path. If you get stuck you have 3 hints, from the vaguest to the most precise: they cost 0, 50 and 150 XP.

What you learn

Objectives complete themselves while you work in the terminal; each one is worth experience points:

  • Read the exported zone (60 XP)
  • List the aliases (CNAME records) (80 XP)
  • Find a name that DNS no longer resolves (150 XP)
  • Open the orphan alias’s record in the CMDB (200 XP)

Topics: recon, dns, cname, igiene.

Commands you will use

The terminal is simulated and understands about forty Linux commands. In this lab you will mostly need these:

  • cat: prints the contents of a file: the most direct way to read configurations, notes and logs.
  • grep: finds the lines that contain a word, even across whole folders with -r. It is the main tool for analysing text and logs.
  • dig: queries DNS and tells you which address a name points to; if the name does not exist it answers NXDOMAIN.
  • curl: makes HTTP requests from the terminal and shows the server’s raw answer, headers included.

The simulated environment

The target is an invented host on a simulated private network: you can only reach it from the game terminal.

The target exposes these services:

  • Web (HTTP): a web server with pages, APIs or admin panels: the most exposed part of almost every organisation.

The defensive lesson

Once the lab is solved, the write-up explains what went wrong and how to protect yourself:

An alias (CNAME) is a promise: "this name is that one". If the service it points to is shut down but the alias stays in the zone, your name points to something you no longer control, and whoever managed to obtain that outside name would make their own content appear under your domain, with all the trust that implies. Spotting it takes no attack: it is enough to compare the zone with reality. Defense: an owner and an expiry date for every record, a periodic check that flags aliases whose target no longer exists or answers with a "free space" page, removing the record in the same ticket that closes the supplier’s contract, and comparing the zone with the CMDB regularly.

Before and after this lab

To unlock it you must have solved:

It is one of the final labs: no other lab requires it.

The Recon & Scanning path

Recon & Scanning is reconnaissance: before defending a network, or testing it with permission, you need to know what is in it. You learn to discover live hosts, list ports and services, read the banners services greet you with, and query DNS and HTTP headers. Every lab also shows the defender’s point of view: an up-to-date asset inventory, minimal banners, internal DNS kept apart from public DNS and nothing forgotten left running.

All labs in the Recon & Scanning path

Learn more with the guides

All guides