Urgent.News

What's breaking now, across hundreds of outlets.

Tech

OWASP Amass: 20 Commands for Attack Surface Mapping and Subdomain Enumeration

OWASP Amass is the most comprehensive tool for attack surface mapping and asset discovery. It goes beyond simple subdomain enumeration by mapping relationships between domains, IP addresses, netblocks, and autonomous systems. Amass integrates with over 50 passive data sources and supports active reconnaissance techniques including DNS brute forcing, zone transfer attempts, and certificate…

OWASP Amass is a powerful tool for mapping an organization's attack surface and discovering subdomains. It goes beyond simple subdomain enumeration by mapping relationships between domains, IP addresses, netblocks, and autonomous systems. This guide details twenty useful Amass commands, explaining their purpose and when to employ them during a security assessment.

1. Passive subdomain discovery using Amass' passive mode (-passive flag) queries data sources without sending DNS queries to the target, preserving anonymity.

2. Basic domain enumeration (-d flag) provides standard enumeration capabilities, which may include some active DNS resolution.

3. Active DNS queries (-active flag) enable more aggressive reconnaissance techniques, such as zone transfer attempts and certificate grabbing, to uncover subdomains not found through passive means.

4. DNS brute forcing (-brute flag) systematically tests candidate subdomains using a built-in wordlist, revealing internal naming conventions and development environments.

5. Custom wordlist brute forcing allows specifying a tailored wordlist (e.g., from SecLists) to improve discovery rates by targeting specific subdomain patterns.

6. Saving results to a text file (-o flag) preserves audit trails and facilitates feeding results into subsequent tools without redundant queries.

7. Saving results in multiple formats (-oA flag) accommodates various downstream tools that require different output formats.

8. Resolving IP addresses alongside discovered subdomains (-ip flag) reveals active subdomains and provides insights into shared hosting or cloud provider infrastructure.

9. Associating data sources with discovered subdomains (-src flag) highlights the reliability of each result by indicating the source that reported it.

10. Enumerating multiple domains from a file (-df flag) allows scanning across large scopes, such as during bug bounty programs involving numerous in-scope domains.

11. Setting an enumeration timeout (-timeout flag) determines the maximum runtime for a scan, accommodating both quick checks and thorough assessments.

12. Controlling DNS query rates (-dns-qps flag) prevents overwhelming target DNS servers and evades detection mechanisms during active enumeration.

13. Utilizing custom DNS resolvers (-r flag) leverages public resolvers like Google or Cloudflare to improve resolution speed and reliability.

14. Excluding specific subdomains (-bl flag) prevents Amass from investigating certain subdomains that are out of scope or potentially problematic.

15. Excluding data sources (-exclude flag) avoids querying specific sources that may be rate-limited, unreliable, or unnecessary for a particular assessment.

16. Conducting organization intelligence gathering (-org flag) reveals Autonomous System Numbers (ASNs) and CIDR ranges associated with a target organization, expanding the attack surface to the organization's owned IP space.

17. Performing reverse WHOIS lookups (-whois flag) with the intel subcommand helps discover additional domains registered by the same organization, potentially uncovering hidden subdomains.

18. Enumerating by ASN (-asn flag) allows Amass to perform intelligence gathering based on a specific Autonomous System Number, rather than a domain name.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

headcount: 172 skills organized as a company org chart, now with a Chinese README

There is a specific kind of mess that shows up once you have more than about thirty prompts saved. You stop remembering what you have.

  • The headcount project organizes skills as a company org chart with 16 departments and 172 skills.
  • Each department functions as an independent plugin, loading only necessary components.
  • A Chinese README is available at yangshun2005/headcount-cn for Chinese-speaking developers.

More from Wednesday, 14 October 2026 →