
When to Use Authenticated Scanning
Use authenticated scanning when:- Critical application functionality appears only after login.
- APIs require bearer tokens, API keys, or tenant headers.
- A staging site is protected with HTTP Basic Authentication.
- You need to assess customer, employee, or admin areas with a dedicated test account.
- Public-only scan results do not represent the real application risk.
Supported Authentication Context
| Method | Use Case | Example |
|---|---|---|
| Session cookie | Browser-based web applications after login. | session=...; tenant=acme |
| Custom header | APIs, bearer tokens, API keys, tenant headers, staging gateways. | Authorization: Bearer ... |
| HTTP Basic Authentication | Staging or protected sites that require Basic Auth. | scanner:password |
Web UI Workflow
- Sign in to the target application with a test account.
- Copy the required cookie or token from browser developer tools.
- Open the asset detail page in VulnScan.
- Choose Start scan.
- Add the cookie, header, or Basic Auth credentials.
- Review scope and start the scan.
- After completion, open the scan detail page to review findings from authenticated areas.
CLI Examples
Cookie-based session:What Authenticated Scans Improve
Authenticated scans improve coverage for:- Authorization and role-based access issues.
- API vulnerabilities behind tokens.
- File upload, form handling, and business workflows after login.
- SQL injection, XSS, SSRF, CSRF, and misconfiguration in private areas.
- Admin pages, debug endpoints, libraries, and plugins not exposed publicly.
Safe Practices
- Use approved environments and test accounts.
- Grant only the permissions required for the assessment.
- Avoid real user accounts.
- Avoid write/delete tokens unless the scan requires them and the test is approved.
- Use test data where possible.
- Rotate or revoke sensitive tokens after the assessment.
Troubleshooting
| Problem | What to Check |
|---|---|
| The scan cannot see logged-in pages | Cookie or token may be expired, scoped to the wrong domain, or missing required headers. |
| The application returns 401/403 | Check account permissions, tenant context, IP allowlist, and automation controls. |
| The scan is slow | Reduce scope, use a smaller test account, or scan outside peak hours. |
| Expected findings are missing | Check whether the application requires multi-step login, dynamic CSRF tokens, or additional headers. |