Webinaire en direct : la chaîne d'attaque ARTEX, étape par étape

Lundi 30 novembre, 15 h CET. Rogier Fischer et Klaas Meinke montrent comment des agents IA offensifs mènent une attaque, et par quoi commencer. 45 minutes, en direct.

Réservez votre place
Aucun article n'a été trouvé.
Pentesting
-
4
min de lecture
-
novembre 12, 2026

Why authentication is the hardest part of autonomous pentesting

-
- -

En bref

Much of a pentest’s value sits behind a sign-in, so autonomous pentesting has to prove it is testing as an authenticated user, across every tool it uses. That means confirming the session works, keeping credentials out of agent context, and coordinating agents that share the same test accounts.

Questions clés

Why is authentication hard for autonomous pentesting?

Every application carries identity differently. A browser may hold a session cookie, while an API expects a token in a header and another endpoint uses a short-lived parameter. A pentest also uses crawlers, fuzzers, and API clients outside the browser, and each one needs the right session material to reach authenticated functions.

How can you tell an automated pentest actually tested logged-in functionality?

The system should compare an authenticated request with the same request sent without a session. A successful response alone proves little, because it could contain a login screen or an error. Before testing access between tenants, for example, the platform has to show its tools are acting as the intended user.

Should AI pentesting agents have direct access to passwords?

No. Passing a username and password into an agent’s context creates unnecessary risk. A safer design keeps secrets in a separate control layer that supplies access for each approved action, while also enforcing scope, removing destructive methods, and recording how access was used.

Why do shared test accounts cause problems in agentic pentesting?

Several agents may use the same identity while testing different parts of an application. Each step can fit its own task, but the combined effect on the shared account can undermine the test. Autonomous testing needs orchestration that protects shared sessions, not just a way to log in.

What should buyers ask about authenticated agentic pentesting?

Ask how the system establishes and confirms authenticated access for every tool, whether credentials ever reach agent context, how it handles session expiry, and how it protects shared accounts when agents run in parallel. Then ask for an action log showing which identity each test used and how actions stayed in scope.

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.

{{related-article}}

Penetration testing as a service vs agentic pentesting

{{quote-1}}

“
”
,

{{quote-2}}

“
”
,
obtenez une démo de 15 min

Commencez votre voyage dès aujourd'hui

La plateforme de sécurité offensive de bout en bout de Hadrian se déploie en quelques minutes, fonctionne de manière autonome et fournit des informations faciles à exploiter.

Ce que vous allez découvrir

  • Surveiller les actifs et les changements de configuration

  • Comprendre le contexte des actifs

  • Identifier les risques, réduire les faux positifs

  • Prioriser les risques à fort impact

  • Simplifier la remédiation

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