appsec.fyi

Recon — A Practical Guide

A curated AppSec resource library covering XSS, SQLi, SSRF, IDOR, RCE, XXE, OSINT, and more.

Recon: A Practical Guide

Curated and synthesized by . Last updated 2026-08-01. Synthesized from 233 of 233 curated resources. Browse all 233 Recon resources →

Problem Framing

Reconnaissance, the initial phase of any offensive security engagement, is often the most critical. The depth and breadth of information gathered directly influence the success and efficiency of subsequent attack vectors. For experienced application security professionals, effective reconnaissance moves beyond basic port scanning and subdomain enumeration to a nuanced understanding of an organization's digital footprint, including ephemeral assets, misconfigurations, and hidden attack surfaces.

Core Mechanics

At its heart, reconnaissance is about data acquisition and correlation. This involves identifying all discoverable assets associated with a target, understanding their technologies, configurations, and interdependencies. The process can be categorized into passive and active techniques. Passive reconnaissance gathers information without directly interacting with the target systems, relying on publicly available data sources. Active reconnaissance involves direct interaction, such as port scanning or probing web services, which can be detected but provides more granular detail.

Key mechanics include:

Notable Techniques

Experienced practitioners employ a diverse arsenal of techniques to uncover hidden or overlooked aspects of a target's attack surface. These range from leveraging specialized search engines to sophisticated scripting and AI-assisted analysis.

Source Code and Configuration Exposure

Exposed version control repositories are a prime target. An exposed.git directory can allow an attacker to reconstruct the entire repository, revealing source code, sensitive credentials, and internal notes [1]. Similarly, backup files, such as .bak files, can inadvertently contain sensitive configurations or source code snippets [2].

Tools like git-dumper are invaluable for retrieving these exposed repositories [1]. Automation of this process can quickly identify targets with misconfigured Git services.

Credential Harvesting and Enumeration

Hardcoded credentials within source code or configuration files are a persistent vulnerability. Exploiting services like the Instance Metadata Service (IMDS) can reveal credentials, enabling lateral movement within cloud environments [3].

User enumeration is another critical aspect. Techniques like AS-Rep roasting can yield Kerberos hashes, which, when cracked, provide user credentials [4]. RID bruteforcing targets user account SIDs to enumerate valid user accounts within Active Directory environments.

Default credentials remain a significant threat, especially on embedded systems and IoT devices. SSH and Telnet services running with default root:root credentials on devices like EV chargers have been observed [5].

Subdomain Enumeration and Takeovers

Subdomain enumeration is a foundational reconnaissance technique. Modern approaches leverage Certificate Transparency (CT) logs, DNS permutation attacks, and vast public datasets. Tools such as subfinder, amass, and assetfinder are instrumental [6][7].

Subdomain takeovers are a common vulnerability where a DNS record points to a service that is no longer provisioned or maintained by the target organization [8][9]. Attackers can register the dangling DNS record and host malicious content, steal cookies, or intercept traffic. Cloud provider services like AWS S3, GitHub Pages, and Heroku are frequent targets for these misconfigurations [10][11]. Tools like subzy and subjack automate the verification of these takeovers [9].

Exploiting Misconfigurations and Vulnerabilities

Unsecured admin panels, often inadvertently exposed through client-side JavaScript, represent a direct path to unauthorized access [12]. Vulnerabilities in software dependencies, including widely used CMS platforms, can lead to significant compromises. For example, CVE-2019-9053 in CMS Made Simple allowed for unauthenticated time-based blind SQL injection [13].

Kubernetes environments present unique misconfiguration vectors. Exploiting unsecured API access, anonymous authentication to Kubelet APIs, or misconfigured NodePort services can lead to unauthorized access and privilege escalation within clusters [14][15].

Vulnerabilities in specific protocols, such as V2G (Vehicle-to-Grid), have been identified as potential network access points [16].

Reverse Engineering and Code Analysis

Reverse engineering can uncover logic, hidden features, or vulnerabilities within applications. Tools like GHIDRA are powerful for analyzing binaries, while client-side JavaScript analysis using tools like linkfinder or Burp Suite extensions (JSLinkFinder, GAP, JSpector) can reveal hidden API endpoints, parameters, and hardcoded secrets [17].

Exploiting vulnerabilities within AI models themselves is an emerging threat. AI models can be compromised with malicious payloads designed to execute shell commands or perform other adversarial actions within supply chains [18].

AI-Assisted Reconnaissance

Artificial intelligence is increasingly being integrated into reconnaissance pipelines to automate tasks, analyze vast datasets, and identify complex patterns that human analysts might miss [19]. LLM agents are being developed to conduct automated penetration testing, chaining together reconnaissance, exploit development, and lateral movement autonomously [20].

AI can also assist in analyzing network traffic for command and control (C2) channels or identifying subtle behavioral patterns indicative of reconnaissance probes, such as those used for IoT devices [16].

Advanced OSINT and Internet-Wide Scanning

Leveraging search engines like Shodan and Censys for internet-wide reconnaissance provides insight into exposed services and devices globally [19]. Google dorking remains a potent technique for discovering vulnerabilities and sensitive information not directly indexed by typical search crawlers [21].

OSINT tools like GhostTrack can help correlate IP addresses, phone numbers, and usernames, enriching the attack surface map [22].

Detection & Prevention

Effective detection and prevention of reconnaissance activities rely on robust monitoring, asset management, and security hygiene.

Tooling

A comprehensive toolkit is essential for effective reconnaissance. Experienced practitioners often integrate multiple specialized tools into automated workflows.

Recent Developments

The field of reconnaissance is constantly evolving, driven by advancements in technology and the increasing sophistication of both attackers and defenders.

Where to Go Deeper

For practitioners seeking to deepen their reconnaissance expertise, the following resources offer invaluable knowledge and practical guidance:

Sources cited in this guide

  1. TryHackMe: Room 404 Walkthrough (Hacker’s Holiday Challenge) — infosecwriteups.com
  2. Lab 3 : Source code disclosure via backup files — infosecwriteups.com
  3. IMDS Abused: Hunting Rare Behaviors to Uncover Exploits — wiz.io
  4. VulnNet: Roasted Tryhackme ctf walkthrough — infosecwriteups.com
  5. The Hidden CCS2 Attack Surface on EV Chargers — saiflow.com
  6. Reconnaissance 102: Subdomain Enumeration | ProjectDiscovery — projectdiscovery.io
  7. Subdomain enumeration: expand attack surface with active, passive methods — yeswehack.com
  8. OWASP Test for Subdomain Takeover — owasp.org
  9. Subdomain Takeover in 2025: New Methods and Tools — thehackerslog.substack.com
  10. Subdomain Takeover: Proof Creation for Bug Bounties — 0xpatrik.com
  11. Hunting down subdomain takeover vulnerabilities — intigriti.com
  12. Unprotected admin functionality with unpredictable URL — PortSwigger Access Control Lab 2 — infosecwriteups.com
  13. TryHackMe — Simple CTF: The Note That Gave Everything Away — infosecwriteups.com
  14. Making Sense of Kubernetes Initial Access Vectors Part 1 – Control Plane — wiz.io
  15. Making Sense of Kubernetes Initial Access Vectors Part 2 - Data Plane — wiz.io
  16. CVE-2026-5667: Unauthenticated Remote Control of Mitsubishi MAC-577IF-2E WiFi Adapters via Probe Request Reconnaissance — innerfirez.github.io
  17. MantisSTS/JSReconduit: Passive JavaScript reconnaissance for penetration testers — bridging Burp Suite traffic into structured, AST-based analysis in VSCode. — github.com
  18. TryHackMe: Payload Walkthrough — infosecwriteups.com
  19. AI Foundations and Reconnaissance (Hacking with AI) — oreilly.com
  20. samugit83/redamon: An AI-powered agentic red team framework that automates offensive security operations, from reconnaissance to exploitation to post-exploitation, with zero human intervention. — github.com
  21. Mr Robot CTF Walkthrough -TryHackMe Detailed — infosecwriteups.com
  22. Mastering OSINT for Bug Bounty: Advanced Deep Recon — dev.to
  23. Complete Guide to Amass Tool (2025 Edition) — cyberxsociety.com
  24. How to Use Amass for Subdomain Enumeration and Recon Like a Pro — iha089.org
  25. Subfinder Complete Guide 2025: Subdomain Enumeration Mastery — blackworld.vip
  26. The Ultimate Guide to Port Scanning using Nmap | Nmap Notes — hacklido.com
  27. Naabu Zero to Hero Guide (Cyber Aryan) — thecyberaryan.github.io
  28. Naabu Cheat Sheet: Commands & Examples (HighOn.Coffee) — highon.coffee
  29. naabu: Fast Go port scanner (ProjectDiscovery) — github.com
  30. Recon series #4: Port scanning methods (YesWeHack) — yeswehack.com
  31. ffuf - Fuzz Faster U Fool — github.com
  32. A Deep Dive on Katana Field Extraction — projectdiscovery.io
  33. Install Nuclei — github.com
  34. GitHub dorking for beginners: find more vulnerabilities (Intigriti) — intigriti.com
  35. Bug Bounty Recon Methodology 2025 - GitHub — github.com
  36. vxcontrol/pentagi: ✨ Fully autonomous AI Agents system capable of performing complex penetration testing tasks — github.com
  37. Masriyan/Aegis: Windows Attack Surface Discovery Tool — github.com
  38. xpfarm: Automated bug bounty & recon framework (GitHub) — github.com
  39. Why Security Researchers and Red Teams Are Turning to Workflow Automation — hackread.com
  40. The 2026 State of Attack Surface Management — ProjectDiscovery — projectdiscovery.io
  41. External Attack Surface Management (EASM) — cycognito.com
  42. GitHub - blacklanternsecurity/bbot: The recursive internet scanner for hackers. 🧡 — github.com
  43. OWASP Amass - An Extensive Tutorial — github.com
  44. OWASP Amass - Users' Guide — github.com
  45. OWASP/Amass — github.com
  46. How to Use OWASP Amass: An Extensive Tutorial — dionach.com
  47. Building a Fast One-Shot Recon Script for Bug Bounty — blog.projectdiscovery.io
  48. Maniesh-Neupane/BugBounty-Recon-Methodology — github.com
  49. TryHackMe — Bounty Hacker: The FTP Server Was Talking. I Just Listened. — infosecwriteups.com
  50. How to build custom scanners for web security research automation — portswigger.net
📚 This guide is synthesized from the full text of resources curated in the Recon library, and refreshed as new material is added.