Research
Recon with LLMs: what changed
Reconnaissance used to be the most mechanical part of a pentest. Language models made it the most interesting. They read what tools only collected, and they also invent things that are not there.
Recon before language models
Classic web recon has two halves. The first finds hosts: certificate transparency logs, passive DNS datasets, brute-forcing likely subdomain names, and checking which of them resolve and answer. The second finds content: crawling links, brute-forcing paths from wordlists, and fingerprinting frameworks and versions. Both halves are well served by mature, deterministic tools. They are fast, and they produce long lists.
The bottleneck was never collection. It was reading. A single modern web app ships megabytes of minified JavaScript. A large company's certificate logs list hundreds of names. A human tester skims, makes judgement calls, and moves on with a partial picture.
From collecting to reading
Language models change that bottleneck. An agent can read a JavaScript bundle the way a developer reads source code and pull out what matters for an attacker:
- the client-side route table, including admin and internal routes that are never linked for a normal user;
- every API call the frontend can make, with its method, path, parameters and the shape of the expected response;
- feature flags, environment names and references to staging or internal hosts;
- role checks implemented only in the frontend, which are a strong hint that the backend may not repeat them.
None of this was impossible before. Tools existed for extracting URLs from JavaScript. The difference is understanding: a model can tell that /api/v2/org/{id}/export is a sensitive, tenant-scoped operation worth testing across tenants, while /static/i18n/en.json is not. Open-source agent tools now build this in. Strix, for example, combines attack-surface mapping with a browser, an intercepting proxy and static and dynamic analysis.
Source: Strix on GitHub
Rebuilding API schemas
APIs are where recon has changed the most. If an OpenAPI document or GraphQL introspection is exposed, the attacker gets a complete, machine-readable map, and a model can turn that map into a test plan in minutes. Improper inventory of exactly this kind, such as forgotten API versions and undocumented hosts, is its own entry in the OWASP API Security Top 10 2023, API9:2023.
Source: OWASP API Security Top 10 2023
When the schema is not exposed, models are good at reconstructing most of it from indirect evidence: queries embedded in the client, field suggestions in GraphQL error messages, naming conventions across endpoints, and the structure of responses. Turning "introspection is disabled" into "most of the schema is known anyway" used to take a skilled tester hours. Now it is a normal part of the first phase.
Secrets and forgotten things
Recon also finds things that should not be public at all. Secrets leak on a large scale: GitGuardian counted about 23.8 million secrets leaked on public GitHub in 2024 alone.
Source: GitGuardian, "The State of Secrets Sprawl 2025"
Web apps built quickly with AI coding platforms add a new source. Escape's passive scan of over 5,600 such apps found more than 400 exposed secrets and 175 instances of exposed personal data.
Source: Escape, 29 Oct 2025
Pattern-matching finds strings that look like keys. A model adds context: is this a publishable key that is designed to be public, or a service-role key that bypasses every access rule? That distinction decides whether a finding is noise or a critical issue, and it is one of the places where we see language models remove the most false positives from recon.
Deciding what to test first
The quiet change is prioritisation. A recon phase that produces a thousand endpoints is only useful if the next phase spends its effort on the right fifty. Models are good at ranking: anything with an object identifier and a tenant, anything that changes money or roles, anything that fetches a URL, anything that looks like an old version. In our approach, recon ends with a ranked plan rather than a list, and the ranking decides where the expensive, multi-role testing goes first.
What LLMs get wrong
Language models also fail in recon in characteristic ways, and a service that does not guard against them produces confident fiction.
- Hallucinated endpoints. A model that has seen many APIs will "infer" routes that follow the pattern but do not exist. Every endpoint must be confirmed by an actual request before it enters the map.
- Over-reading versions. A version string in a header or a file name is not proof that a vulnerable code path is reachable. A CVE match is a hypothesis to test, never a finding.
- Scope drift. Recon naturally discovers neighbouring hosts, third-party services and old infrastructure. A model will happily want to look at all of it. Scope has to be enforced outside the model.
- Missing what is not in the text. Behaviour that only appears with a particular role, header or state is invisible to reading alone. That is why recon runs as each test account, not once.
Our rule for recon mirrors the rule for findings: nothing enters the map on a model's word. A route exists when it answers. A secret matters when its scope is understood. A host is tested only when it is in the signed scope.
What stays deterministic
Much of recon did not change, and should not. Certificate transparency queries, DNS resolution, port checks and TLS inspection are best done by plain code that is fast, cheap and predictable. Language models sit on top of these tools, deciding what to look at and reading what comes back, rather than replacing them. This split also keeps cost down: tokens go to reading and judgement, not to work that a resolver does better.
What this means for defenders
The practical consequence is that "nobody will find that" is no longer a safe assumption. Hidden routes in your JavaScript, a staging host in your certificate logs, and an API version you forgot to retire are now cheap for anyone to find and understand. The defence is to look first: know your own attack surface as well as an attacker with a capable model would. Our attack surface discovery and the recon phase of every detailed report are built to do exactly that.