Web Attack Surface
Summary
Enumerate Subdomains
Subdomain enumeration is the process of identifying all subdomains associated with a main domain (e.g., finding blog.example.com
, shop.example.com
, etc., for example.com
).
Subdomains Databases
Many databases and tools aggregate data from a variety of online sources, such as DNS databases, certificate transparency logs, APIs (e.g., Shodan, VirusTotal), and other publicly available sources to compile a comprehensive list of potential subdomains.
-
projectdiscovery/chaos-client - Go client to communicate with Chaos DB API.
-
projectdiscovery/subfinder - Fast passive subdomain enumeration tool.
-
owasp-amass/amass - In-depth attack surface mapping and asset discovery
-
Findomain/Findomain - The complete solution for domain recognition.
Bruteforce Subdomains
Subdomain brute-forcing is a technique used to discover subdomains of a target domain by systematically trying out potential subdomain names against it. This is done by using a predefined list of common or likely subdomain names, known as a wordlist. Each word in the wordlist is appended to the target domain (e.g., admin.example.com, mail.example.com) to check if it resolves to a valid subdomain.
Unlike passive subdomain enumeration, which relies on existing data from sources, brute-forcing actively queries DNS records to discover live subdomains that may not be listed in public databases.
- infosec-au/altdns - Generates permutations, alterations and mutations of subdomains and then resolves them.
- owasp-amass/amass - In-depth attack surface mapping and asset discovery.
- projectdiscovery/dnsx - A fast and multi-purpose DNS toolkit allow to run multiple DNS queries of your choice with a list of user-supplied resolvers.
- subfinder/goaltdns - A permutation generation tool written in golang.
Certificate Transparency Logs
Certificate Transparency (CT) logs are public databases that record all SSL/TLS certificates issued by certificate authorities (CAs). These logs are designed to improve the security and transparency of the SSL/TLS ecosystem by making it easier to monitor and audit certificates.
DNS Resolution
Once you've generated a list of potential subdomains, the next step is to resolve them to retrieve their DNS records (A and AAAA) to obtain their IPv4 and IPv6 addresses.
- blechschmidt/massdns
- projectdiscovery/dnsx - a fast and multi-purpose DNS toolkit allow to run multiple DNS queries of your choice with a list of user-supplied resolvers.
Technology Discovery
Technology discovery is the process of identifying the underlying technologies, software, and frameworks used by a website or digital infrastructure. This often includes detecting web servers, CMS platforms, programming languages, databases, JavaScript libraries, and other software components.
-
projectdiscovery/httpx - A fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
-
projectdiscovery/wappalyzergo - A high performance go implementation of Wappalyzer Technology Detection Library.
-
michenriksen/aquatone - A Tool for Domain Flyovers
-
rverton/webanalyze - Port of Wappalyzer in Go
-
wappalyzer - Identify technologies on websites.
Subdomain Takover
A subdomain takeover is a type of security vulnerability that occurs when a subdomain (e.g., sub.example.com
) is still live but its DNS records point to a service or platform (like AWS S3, GitHub Pages, or Heroku) that is no longer active or properly configured. This situation can allow an attacker to claim the unclaimed resource and take control of the subdomain, enabling them to host malicious content or impersonate the legitimate website.
For example, if sub.example.com
points to an AWS S3 bucket that has been deleted or abandoned, an attacker could create a new S3 bucket with the same name, gaining control over the subdomain and potentially causing security risks, like phishing attacks or reputational damage to the main domain.
Refer to EdOverflow/can-i-take-over-xyz for a list of services and guidance on claiming subdomains with dangling DNS records.
-
projectdiscovery/nuclei-templates/http/takeovers - Community curated list of templates for the nuclei engine to find security vulnerabilities.
-
anshumanbh/tko-subs - A tool that can help detect and takeover subdomains with dead DNS records