No items found.
No items found.
Pentesting
-
4
min di lettura
-
November 12, 2026

Why authentication is the hardest part of autonomous pentesting

-
- -
Why authentication is the hardest part of autonomous pentesting

Much of the value in penetration testing comes from assessing what an authenticated user can actually do. Access controls, tenant boundaries, administrative functions, payment flows, and the business logic around them often sit behind a sign-in. An autonomous system needs more than a browser that reaches a dashboard. Its testing tools need a reliable, controlled way to act as the intended user across the full application.

That is where a polished agent demo meets the reality of production applications. Each application handles identity differently, while automated testing uses a range of tools that operate outside the browser. Building a system that can establish, carry, confirm, refresh, and govern authenticated access is often harder than the individual security tests that follow.

A browser login is only the starting point

When a person signs in, the browser quietly follows redirects, retains cookies, submits tokens, carries headers, and manages the state of the session. A modern pentest also uses API clients, crawlers, fuzzers, callback services, and specialist agents. Each one needs an authenticated context that works for the specific request it is making.

Consider an application where the browser holds a session cookie, while the invoice API expects a token in a header and an internal endpoint uses a short-lived parameter. Reaching the dashboard only proves that the browser login worked. It says nothing about whether the test tools can access the application as the intended user.

This matters because a test running without a working session can look plausible. It may crawl public paths, return successful response codes, and collect material for an agent to analyze, while missing the application behavior that actually matters. A system needs to establish its authenticated state before it asks an agent to reason about the result.

Authentication has to be proven

Reliable agentic pentesting begins by observing the login flow, learning how the application carries the session, and applying the relevant session material to each approved tool. It then compares an authenticated request with the equivalent bare request to show that the tool reached the intended part of the application.

The comparison gives the system a useful control point. A successful HTTP response could contain a login screen, an error object, or a generic response that exposes no useful behavior. If the authenticated request produces the same result as the bare request, the system can establish a fresh session and pause the related test until it has the access it requires.

A billing portal makes the implications clear. Before testing whether tenant A can retrieve tenant B’s synthetic invoice, the system has to demonstrate that its tools are acting as tenant A. With that proof in place, a later result can establish whether the tenant boundary held. Without it, the system cannot tell an access-control failure from a test that never entered the authenticated application.

Credentials need their own control plane

The system that gives agents authenticated access also handles some of the most sensitive information in the engagement. Passing a username and password directly into an agent’s context creates unnecessary risk. The credential can appear in an action trace, be passed to another agent, or be submitted to an unsafe destination when the agent tries to complete a broader task.

The safer pattern keeps the secret outside the agent’s working context. An agent requests a login or calls an authenticated tool, while a separate control layer supplies the capability needed for the approved action. This allows the system to preserve an important boundary: the agent can use authenticated access without seeing or redistributing the underlying credential.

That control layer can also enforce scope and remove destructive methods. It can limit an authenticated session to the targets, actions, and rate budget agreed for the test, while preserving a record of how access was used.

Shared access creates a coordination problem

A shared test account illustrates why authenticated testing needs orchestration as well as a login mechanism. Several agents may rely on the same identity while examining separate areas of an application. If one agent exercises a password-reset flow, the new credentials could go to an inaccessible mailbox and invalidate every other agent’s session.

Each individual step might fit the assigned task. The problem emerges from the combined effect on a shared resource. A mature system needs to track which agents use the account, identify actions that could change access, and provide a safe way to restore a session when one expires or becomes invalid.

This is a design requirement for testing that can run repeatedly. Without it, autonomous pentesting can produce a convincing sequence of individual actions without sustaining the authenticated coverage that gives those actions value.

What buyers should ask

Buyers evaluating agentic pentesting should ask how the system establishes and confirms authenticated access across every tool it uses. They should ask whether credentials reach agent context, how the system handles session expiry, and how it protects shared accounts when agents work in parallel.

They should also ask to see an action log. A credible system can explain which identity a test used, how it confirmed the session, what the agent attempted, and how the platform kept the action within scope. Continuous attack surface management can show what is exposed to the internet. Authenticated testing shows whether those exposed services protect the users and workflows behind the login.

For a broader buyer framework, read What to look for in AI-powered pentesting. You can also watch the on-demand session, “From frontier model to autonomous pentester,” with Ivona Milanova and Geert Custers. Webinar URL to be added.

ottieni una demo di 15 minuti

Inizia il tuo viaggio oggi

La piattaforma di sicurezza offensiva end-to-end di Hadrian si configura in pochi minuti, funziona in modo autonomo e fornisce informazioni facili da mettere in pratica.

Cosa scoprirai

  • Monitorare asset e modifiche di configurazione

  • Comprendere il contesto degli asset

  • Identificare i rischi e ridurre i falsi positivi

  • Dare priorità ai rischi ad alto impatto

  • Semplificare la remediation

The Hadrian platform displayed on a tablet.
No items found.