How-to Guides
Define Authentication
How to provide credentials so CodeWall can test authenticated areas of your application.
Many vulnerabilities exist behind login walls. When creating an Authenticated (Gray Box) test, you provide credentials so CodeWall can access protected areas.
Supported credential types
Bearer token
Use for APIs that authenticate via a static token or JWT.
- In step 3 (Authentication) of the new pentest wizard, select Bearer Token
- Enter the token value
- CodeWall sends it as
Authorization: Bearer <token>with every request
Basic auth
Use for applications or APIs that use username/password authentication.
- Select Basic Auth
- Enter the username and password
- CodeWall encodes and sends it as a standard
Authorization: Basicheader
Custom headers
Use for non-standard authentication mechanisms (API keys, tenant IDs, etc.).
- Select Custom Headers
- Add one or more key-value pairs (e.g.,
X-API-Key: your-key) - CodeWall includes all custom headers with every request
Multiple credentials
You can add multiple credentials to a single test. This is useful for:
- Testing multiple accounts at different privilege levels
- Providing both authentication and tenant identification headers
- Combining API keys with other custom headers
Testing for privilege escalation
To test whether a lower-privilege account can access higher-privilege resources:
- Add a low-privilege credential (regular user token)
- Add a high-privilege credential (admin token)
- CodeWall will test whether resources accessible with admin credentials can also be reached with the regular user token
Credential security
- Credentials are encrypted at rest and in transit
- They are used only during the active test
- Access to credentials is restricted to organization admins

