Why Authentication Matters
Unauthenticated scans only test the public attack surface. Authenticated testing discovers:- Privilege escalation vulnerabilities
- IDOR (Insecure Direct Object References)
- Session management flaws
- Post-login business logic bugs
Setting Up Credentials
1
Create Test Accounts
Create dedicated accounts for security testing:
| Role | Purpose |
|---|---|
| Standard User | Test normal user functionality |
| Admin User | Test admin-only features |
| Low-Privilege User | Test privilege escalation |
2
Navigate to Target Settings
Go to Targets → Select your target → Authentication tab.
3
Add Credentials
Enter username and password for each test account:
4
Write Login Instructions
Describe the login flow for the AI agent:
Login Instruction Best Practices
Be Specific About Selectors
Be Specific About Selectors
❌ “Enter email and password”✅ “Enter email in the field labeled ‘Email Address’ and password in the field labeled ‘Password’”
Include Wait Conditions
Include Wait Conditions
❌ “Click login”✅ “Click the ‘Sign In’ button and wait for the URL to change to /dashboard”
Handle MFA When Present
Handle MFA When Present
If your app uses MFA, describe how to handle it:
Describe Error Recovery
Describe Error Recovery
Authentication Methods
- Form-Based
- OAuth/SSO
- API Key/Token
Standard username/password forms:
Multi-Factor Authentication
TOTP (Authenticator Apps)
TOTP (Authenticator Apps)
Provide the TOTP secret for automated MFA handling:
SMS/Email OTP
SMS/Email OTP
For SMS or email OTP, we recommend:
- Using a test account with MFA disabled
- Or using our webhook integration to receive OTPs
Hardware Keys
Hardware Keys
Hardware keys (YubiKey, etc.) cannot be automated. Options:
- Use accounts without hardware MFA for testing
- Capture authenticated session manually via Burp Extension
Session Management
The AI agent automatically:- Detects session expiration
- Re-authenticates when needed
- Handles CSRF tokens
- Manages concurrent sessions
Verification
After configuring authentication, verify it works:- Go to Targets → Your Target → Authentication
- Click Test Authentication
- Review the authentication trace
- Confirm successful login indicator
Green checkmark indicates authentication is working correctly.