Reconnaissance
Reconnaissance is the information-gathering phase of ethical hacking. It helps security professionals understand an authorized target, identify its publicly exposed information, and prepare for further security assessment.
This section introduces reconnaissance techniques, tools, and workflows used during authorized penetration testing.
What You'll Learn
- Understand the purpose of reconnaissance in ethical hacking.
- Differentiate between passive and active reconnaissance.
- Learn how to gather publicly available information.
- Understand domains, DNS records, IP addresses, and subdomains.
- Explore reconnaissance tools and their appropriate use.
- Organize collected information for later assessment.
- Follow authorization, privacy, and scope requirements.
Lessons
1. Reconnaissance Fundamentals
Learn how reconnaissance helps establish an initial understanding of a target before scanning or testing begins.
Topics include:
- Reconnaissance objectives
- Passive versus active reconnaissance
- Target identification and scope
- Publicly available information
- Domain and subdomain discovery
- DNS and IP address research
- Information validation and documentation
Reconnaissance Workflow
- Define the scope — Identify authorized domains, systems, and boundaries.
- Collect information — Gather relevant public information about the target.
- Identify assets — Organize domains, subdomains, IP addresses, and technologies.
- Validate findings — Check the accuracy and relevance of collected information.
- Document results — Record sources, observations, and potential areas for further assessment.
- Prepare for the next phase — Use validated information to plan authorized scanning and vulnerability assessment.
Passive vs. Active Reconnaissance
| Aspect | Passive Reconnaissance | Active Reconnaissance |
|---|---|---|
| Approach | Uses existing information and third-party sources | Interacts directly with the target |
| Target interaction | Generally none or minimal direct interaction | Direct interaction occurs |
| Examples | Public websites, search engines, public DNS information | Authorized DNS queries, service discovery, target probing |
| Detection risk | Generally lower | Generally higher |
| Permission | Respect data access rules and applicable laws | Explicit authorization and scope are essential |
Common Tools and Resources
- WHOIS — Examine domain registration information where available.
dig— Query DNS records.nslookup— Perform DNS lookups.host— Retrieve DNS information.- Search engines — Discover publicly indexed information.
- Certificate Transparency logs — Research publicly logged TLS certificates.
- theHarvester — Collect publicly available information from supported sources.
Tool availability and output depend on the target, source, configuration, and access permissions.
Practical Activities
- Research a domain you own or have permission to assess.
- Examine its publicly available DNS records using
dig. - Compare the output of
dig,host, andnslookup. - Review publicly available certificate information for an authorized domain.
- Create an asset inventory containing the asset, source, observation, and verification status.
- Document which findings require further investigation.
Practice Questions
- What is reconnaissance in ethical hacking?
- Why is reconnaissance performed before scanning?
- Differentiate between passive and active reconnaissance.
- What is the purpose of WHOIS?
- What information can DNS records provide?
- What is a subdomain?
- How can Certificate Transparency logs support reconnaissance?
- Why should reconnaissance findings be validated?
- What information should be included in an asset inventory?
- Why must reconnaissance remain within authorized boundaries?
Next Steps
After completing reconnaissance, continue to Scanning and Assessment to learn how to identify reachable systems, discover services, and assess potential vulnerabilities within an authorized scope.
Ugenz Academy — Learn • Build • Protect • Grow.