Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How should security teams run vulnerability scans on…
Cyber Security

How should security teams run vulnerability scans on applications protected by two-factor authentication without breaking access controls?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated November 5, 2026 Domain: Cyber Security

Security teams should configure the scanner with a valid authenticated session and the second factor required by the target application, then run scans through that approved path. The goal is to preserve the protection of two-factor authentication while allowing automated exploration of URLs. If the scanner cannot complete authentication, teams need a supported setup for the possession factor before scanning begins.

How scanners can authenticate without weakening the control

The safest pattern is to let the scanner enter the application through the same access path a legitimate user would use, rather than bypassing the control. That means the scanner should hold a valid authenticated session and complete the second factor in a supported way before the scan starts. Once authenticated, the scanner can explore the application while still respecting the access control boundary.

This matters because two-factor authentication is protecting the session entry point, not the scan itself. If the tool cannot satisfy the second factor, the answer is not to disable or weaken authentication, but to provide a supported possession factor for the scanner account. For applications that rely on session cookies, tokens, or short-lived logins, the scan profile needs to match that behaviour so the tool can reach protected URLs without forcing an exception in the application.

For teams that want a deeper comparison of methods and failure modes, MFA Guide is useful background on phishing-resistant factors, enrolment, and common bypass paths that security teams need to keep in mind when designing scanner access.

What to verify before the scan runs

Before running the scan, confirm that the scanner account is authorised for the target application, that the second factor is enrolled and functional, and that the session will survive long enough for the crawler to do useful work. The practical test is simple: can the scanner log in through the approved process, maintain access, and reach the protected parts of the application without triggering lockouts, step-up loops, or deny-by-default responses?

Teams should also verify that the scan scope matches the access profile. A scanner that is authenticated too broadly can overstate exposure by entering areas it should not touch, while a scanner that is authenticated too narrowly may miss important authenticated content entirely. The goal is not just to “make the login work”, but to make the scan representative of real authorised access.

For teams building a repeatable process around this, Authenticated vs Unauthenticated Scanning Guide is the most direct internal reference for credentialed setup, scanner account security, and the difference between credentialed and non-credentialed coverage.

When access control design is part of the problem, IAM and IGA Basics helps teams separate authentication from authorisation so the scanner is granted only the access it actually needs.

How to keep the scan useful without creating a bypass

The main operational risk is turning a test account into a standing exception. If the scanner account is exempted from MFA, reused across too many targets, or given extra privilege to avoid authentication friction, the scan may become easier to run but less trustworthy as a security control. A safer pattern is to keep the scanner identity narrow, time-bounded, and auditable, then use a supported possession factor rather than a permanent exemption.

Where the application uses role-based access, scope the scanner to the minimum role that still exposes the protected content you need to test. Where sessions are short-lived, plan for re-authentication during the scan rather than trying to remove the timeout. Where the product supports it, use the vendor’s supported testing workflow or service authentication method so the scanner can operate inside the intended control model instead of around it.

Teams that want a policy anchor for that approach can use Access Control Policy Template to align scanner accounts, least privilege, and access review expectations.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack surface, OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
OWASP ASVSV6 — AuthenticationScanner setup depends on completing app authentication before protected content can be tested.
Recommendation — Require authenticated test access and verify the login flow before running scans.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementThe scanner needs managed credentials or second-factor material to enter protected sessions safely.
IA-2 — Identification and Authentication (Organizational Users)Authenticated scanning relies on a valid user identity reaching the application through approved controls.
Recommendation — Manage scanner authenticators with the same lifecycle discipline as any privileged login. Use a real authenticated identity path instead of weakening the application’s login control.
CIS Controls v8CIS-6 — Access Control ManagementThe issue is preserving access control while allowing authorised scanning through it.
Recommendation — Scope scanner access narrowly and review it as a managed account.
ISO/IEC 27001:2022A.5.15 — Access controlThe question is about allowing authorised access for testing without bypassing controls.
Recommendation — Keep scanner access subject to the same access-control policy as other privileged access.
OWASP API Security Top 10API2 — Broken AuthenticationIf scanning cannot authenticate properly, the test path may fail or tempt teams into bypassing auth controls.
Recommendation — Validate authentication flows so authenticated scanning does not become an auth bypass.

Practitioner Guidance

What to prioritise: Treat scanner access as an access-design problem, not a vulnerability-testing shortcut. If the scanner cannot authenticate cleanly, fix the test harness and enrolment path before you change the application’s security settings.

What to verify: Confirm that the scanner account, second factor, session duration, and target scope all match the application’s real authorisation model. If any one of those is broader than the user population you are emulating, the scan result becomes less reliable.

Common mistake: Teams often create a permanent MFA bypass for scanning because it is faster in the short term. That speeds up testing but weakens the very control the test is supposed to validate.

Practitioner takeaway: The right balance is to authenticate the scanner the same way a legitimate user would, then constrain the account and session so the test remains faithful to production access control.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 5, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org