hadriansecurity/subwiz

A lightweight GPT model, trained to discover subdomains.

What it solves

Subwiz is designed to discover new subdomains for a target domain by predicting likely candidates based on existing known subdomains. It moves beyond simple list-based guessing by using a generative model to suggest potential targets.

How it works

It uses an ultra-lightweight transformer model (17.3M parameters) based on the nanoGPT architecture. The model was trained on 26M tokens derived from passive subdomain lists. When provided with a seed list of known subdomains, the tool uses a beam search algorithm to predict the N most likely new subdomain sequences. It can also resolve these predicted subdomains to verify their existence.

Who it’s for

Security researchers and penetration testers who need to expand their attack surface mapping by discovering hidden or non-obvious subdomains.

Highlights

  • Lightweight Architecture: Built on nanoGPT with only 17.3M parameters for fast inference.
  • Recursive Discovery: Supports recursive re-runs of the inference process after finding new subdomains.
  • Beam Search Inference: Predicts multiple likely sequences rather than a single output.
  • DNS Resolution: Includes built-in functionality to resolve and filter predicted subdomains, including handling for wildcard DNS records.

Related

  • Project
  • Project
  • Project
  • Project