Credentials
Give Hackian authenticated access to your applications, APIs and internal domains for grey-box testing
Credentials let Hackian test your assets as an authenticated user or client, rather than only from the outside. This is called grey-box testing. Many of the most impactful vulnerabilities, such as broken access control, insecure direct object references or privilege escalation, only become reachable once a tester is signed in, so adding credentials significantly increases how much of an application can be covered.
This page explains which credential types are supported, when to use each one, how to fill them in and what to watch out for.
Which tests support credentials
| Test type | Credentials | Active Directory |
|---|---|---|
| Continuous Adversarial Exposure Validation | Yes | Yes |
| Depth Agentic Pentest | Yes | No |
| Expert Pentest | Yes | No |
| Swift Agentic Pentest | No, Swift always runs in black-box mode | No |
Where to add credentials
- When launching a test: credentials are added in the scope step, under Enter Grey Box Credentials. For Depth pentests, select Grey Box as the testing mode first.
- On an existing test: open the test from the Tests page, go to the Assets section, open the In scope tab and click Grey-box testing. This option is available until the test finishes.
Agentic Pentests
Credentials for an Agentic Pentest must be finalised before you launch it. Once launched, its scope, policy and credentials can no longer be edited.
Each saved credential appears as a row showing its type and a short description: the login URL (plus the username for Web Login), or the domain and username for Active Directory. From there you can view, edit or remove it. Secret values such as passwords, client secrets and keys are hidden by default, and can be revealed with the eye icon next to each field.
Who can manage credentials
Only organization Owners and Admins can add, view, edit and remove credentials. Other members see the message No credentials available to your account. in place of the credentials list.
Choosing a credential type
| Credential type | Use it when | Hackian authenticates as |
|---|---|---|
| Web Login | The application has a sign-in page, including Google or Microsoft SSO and TOTP-based MFA | A user |
| Custom Headers / Cookies | You already have an API key, bearer token or session cookie | Whoever the token or session belongs to |
| Microsoft Entra | An API is protected by Microsoft Entra ID (Azure AD) access tokens | An application (client credentials) |
| Okta | An API is protected by an Okta authorization server | An application (client credentials) |
| Google Service Account | An API accepts Google OAuth access tokens | A service account, optionally impersonating a Workspace user |
| Active Directory | You want to test an internal Windows domain (continuous tests only) | A domain user |
Microsoft Entra, Okta and Google Service Account are grouped under OAuth 2.0 / SSO in the portal: choose that option first, then pick the provider.
Some credential types are being rolled out gradually. If a type described on this page is not offered when you add a credential, contact support to have it enabled for your organization.
Rules that apply to every credential type
Every credential type except Active Directory includes a Login URL. It identifies the application under test and is used to link the credential to one of the test's assets.
- Enter a full URL, including
https://. A value such asapp.example.com/loginis rejected because no host can be read from it. - The URL's host must exactly match an asset on the test. If the login page is
https://app.example.com/login, thenapp.example.commust be one of the test's assets: having onlyexample.comis not enough. The port, path and query string are ignored when matching. - The asset may be in scope or out of scope. This is useful when the sign-in page lives on a host you do not want tested.
- Credentials belong to the asset. If you remove that asset from the test, its credentials are deleted with it.
- Add a credential for each application. If several applications need authenticated testing, each one needs its own credential. You can also add several Web Login credentials for the same application, for example one per role, as long as each uses a different username.
When choosing which account to provide:
- Use a dedicated test account, never a real person's account. Hackian will use it to interact with the application, so any data it can reach or change may be affected, within the limits of your testing policy.
- Pick a representative role. Testing as a standard user shows what a typical user could abuse. To have access control between roles tested, add an account for each role and mention it in the policy.
- Keep the credential valid for the whole test. Expired passwords, revoked tokens or locked accounts reduce authenticated coverage. Update the credential if anything changes.
- Rotate or revoke the credential once testing is complete.
Web Login
Use Web Login when the application has a sign-in page. Hackian opens the login URL and signs in with the account you provide, just like a user would, including through Google or Microsoft single sign-on, and through TOTP-based multi-factor authentication on a direct sign-in form.
| Field | Required | Description |
|---|---|---|
| Login URL | Yes | The page where the sign-in form appears, for example https://app.example.com/login |
| Username / Email | Yes | The account's username or email address (up to 128 characters) |
| Password | Yes | The account's password (up to 256 characters) |
| SSO provider | No | Google or Microsoft when sign-in goes through that provider; None otherwise |
| TOTP secret | No | The secret key of the account's authenticator app, for a direct sign-in (SSO provider = None) that has TOTP MFA enabled |
How to fill it in
- Plain sign-in form: enter the login URL, username and password, and leave SSO provider set to None.
- Sign in with Google or Microsoft: set SSO provider to the provider your application redirects to, and enter that Google or Microsoft account's email and password.
- TOTP multi-factor authentication: enter the account's TOTP secret, the base32 key that authenticator apps such as Google Authenticator or Microsoft Authenticator are set up with. It is usually displayed next to the QR code (often behind a Can't scan the code? link), or found as the
secret=value in theotpauth://link. Spaces are removed automatically, so you can paste the key as displayed. Hackian generates the one-time codes itself.
Caveats
- A second factor is only completed on a direct sign-in form, never on an SSO screen. With SSO provider set to None, Hackian generates the one-time code from the TOTP secret and enters it if a 2FA screen appears after the password. With SSO provider set to Google or Microsoft, Hackian signs in with the email and password but does not enter a one-time code on the provider's screen: any second factor there (including TOTP) will stop the sign-in. An account used for SSO must have MFA disabled or be excluded from it.
- Only TOTP-based MFA is supported, and only on a direct sign-in. Codes sent by SMS or email, push approvals, hardware security keys and passkeys cannot be completed by Hackian. Disable those factors on the test account, or enrol it with an authenticator app instead.
- Save the TOTP secret during enrolment. Most applications only show it once. If you no longer have it, reset MFA on the test account and enrol it again.
- The TOTP secret must be base32, containing only the letters A to Z and the digits 2 to 7. A secret shown in hexadecimal must be converted to base32 first.
- CAPTCHAs and bot protection on the sign-in page will block automated logins. Disable them for the test account, or allowlist Ethiack's IP addresses and User-Agents, which are listed under Settings → Security.
- A Google SSO account must be allowed to use the application. If the application's Google sign-in is still in Testing publishing status, add the test account to the OAuth app's list of test users: otherwise Google rejects it at the email step. A sign-in that Google flags as automated is rejected the same way.
- Identity provider risk checks can interrupt SSO. Microsoft Entra Conditional Access policies and Google's Verify it's you challenges may block sign-ins from a new location, and Hackian cannot answer them. Exclude the test account from these policies for the duration of the test.
- Lockout and password expiry policies apply. If the password changes or the account is locked, update the credential.
Custom Headers / Cookies
Use Custom Headers / Cookies when you already have something that proves who you are, such as an API key, a bearer token or a session cookie, or when your application uses an authentication method not covered by the other types. Hackian adds the header or cookie to every request it makes to the application.
Each credential holds one header or one cookie.
| Field | Required | Description |
|---|---|---|
| Login URL | Yes | The URL of the application under test. Its host links the credential to an asset |
| Type | Yes | Header to send an HTTP header, or Cookie to send a cookie |
| Header name / Cookie name | Yes | The name of the header or cookie, for example Authorization, X-API-Key or session |
| Header value / Cookie value | Yes | The value to send. It is hidden by default and can be revealed with the eye icon |
How to fill it in
- Select Header or Cookie in the Type drop-down.
- Enter the name and the value in their own fields. The portal builds the full header line for you, so leave out the colon, the equals sign and the
Cookie:prefix.
| To send | Type | Name | Value |
|---|---|---|---|
Authorization: Bearer eyJhbGciOi... | Header | Authorization | Bearer eyJhbGciOi... |
X-API-Key: 3f9c2b7e41d8a6 | Header | X-API-Key | 3f9c2b7e41d8a6 |
Cookie: session=8c1f2e9d | Cookie | session | 8c1f2e9d |
For bearer tokens, include the Bearer prefix in the value, as in the first example.
To send several headers or cookies, for example a session cookie and a CSRF token, add a separate Custom Headers / Cookies credential for each one, using the same login URL.
Caveats
- One header or cookie per credential. A single credential can't hold both a header and a cookie, or more than one of either.
- Names can't contain spaces or separators. Header and cookie names may only use letters, digits and a few symbols such as
-and_. Enter only the name:Authorization, notAuthorization:. - Values must be a single line. Cookie values also can't contain semicolons, so several cookies can't be pasted into one value.
- Use persistent credentials. Hackian cannot refresh tokens or sessions. Short-lived JWTs and session cookies expire, often within minutes or hours, and authenticated coverage stops when they do. Prefer long-lived API keys or tokens that stay valid for the whole test, or use Web Login so Hackian can sign in by itself.
- Signing out invalidates copied cookies. If you copy a cookie from your browser, do not sign out of that session afterwards: in most applications, signing out ends the session the cookie belongs to.
OAuth 2.0
The three OAuth providers are designed for machine-to-machine access. Hackian uses the details you provide to request an access token from the identity provider, then uses that token to authenticate its requests to the application at the login URL. They are the right choice for APIs and back-end services that accept OAuth access tokens.
Every OAuth credential includes:
| Field | Description |
|---|---|
| Login URL | The URL of the application or API under test. Its host links the credential to an asset |
| OAuth API / Scope | The scope or API identifier the access token is requested for. The format depends on the provider, as described below |
Tokens obtained this way represent an application or service account, not a person. To test a user-facing application where people click Sign in with Microsoft or Sign in with Google, use Web Login with the matching SSO provider instead.
Microsoft Entra
Use Microsoft Entra for APIs protected by Microsoft Entra ID (formerly Azure Active Directory). Hackian obtains a token through the OAuth 2.0 client credentials flow, using an app registration in your tenant.
| Field | Required | Description |
|---|---|---|
| Tenant ID | Yes | Your Directory (tenant) ID |
| Client ID | Yes | The Application (client) ID of the app registration Hackian will use |
| Client secret | Yes | A client secret created for that app registration |
| OAuth API / Scope | Yes | The API's Application ID URI followed by /.default, for example api://3f2c9a71-0000-0000-0000-000000000000/.default |
How to fill it in: in the Microsoft Entra admin center, go to App registrations and open (or create) the app registration Hackian will use. The Overview page shows the Directory (tenant) ID and Application (client) ID. Under Certificates & secrets, create a new client secret and copy its Value. For the scope, open the app registration of the API you want tested and use its Application ID URI with /.default appended.
Caveats:
- Copy the secret's Value, not its Secret ID. The value is only shown once, right after the secret is created.
- Client secrets expire. Make sure the secret stays valid for the whole test, and update the credential when you rotate it.
- The app registration needs permissions on the API. Grant it the API's application permissions (app roles) and give admin consent. Without them, the token carries no roles and the API will typically reject Hackian's requests.
Okta
Use Okta for APIs protected by an Okta authorization server. Hackian obtains a token through the OAuth 2.0 client credentials flow.
| Field | Required | Description |
|---|---|---|
| Token URL | Yes | The token endpoint of your authorization server, for example https://example.okta.com/oauth2/default/v1/token |
| Client ID | Yes | The client ID of the Okta app integration Hackian will use |
| Client secret | Yes | That app integration's client secret |
| OAuth API / Scope | Yes | A scope defined on the authorization server, for example api.read |
How to fill it in: in the Okta Admin Console, create an API Services app integration (or reuse an existing one that has the client credentials grant enabled), and copy its client ID and client secret. The token URL is https://<your-okta-domain>/oauth2/<authorization-server-id>/v1/token. For the built-in custom authorization server, the ID is default. Use a scope that is defined on that authorization server.
Caveats:
- Use a custom authorization server, such as
default. Okta's org authorization server (https://<your-okta-domain>/oauth2/v1/token) does not issue client credentials tokens for your own APIs. - The app must authenticate with a client secret. App integrations configured for Public key / Private key client authentication are not supported.
- The authorization server's access policy must allow it. Make sure a policy rule permits the client credentials grant for this client and the scope you entered.
Google Service Account
Use Google Service Account for APIs that accept Google OAuth access tokens. Hackian signs in as the service account using its JSON key, and can optionally impersonate a Google Workspace user.
| Field | Required | Description |
|---|---|---|
| OAuth API / Scope | Yes | The Google OAuth scope the token is requested for, for example https://www.googleapis.com/auth/cloud-platform. Separate several scopes with spaces |
| Subject | No | The email address of a Google Workspace user to impersonate through domain-wide delegation |
| Service account JSON | Yes | The service account's JSON key. Paste its contents, or upload the .json file |
How to fill it in: in the Google Cloud console, go to IAM & Admin → Service accounts, open the service account Hackian will use and, under Keys, choose Add key → Create new key → JSON. Upload the downloaded file with Upload JSON key, or paste its full contents. Leave Subject empty unless the API needs to be accessed as a specific Workspace user.
Caveats:
- Only JSON keys are supported. The key must have
"type": "service_account"and includeprivate_key,client_emailandtoken_uri. Other fields in the file are ignored. P12 keys are not supported. - The private key must be the original, unencrypted RSA key that Google generates. Do not edit it or re-encode it.
- Key creation may be blocked by your organization. Many Google Cloud organizations enforce the Disable service account key creation policy. An administrator may need to grant an exception for the project.
- Impersonation requires domain-wide delegation. If you set Subject, a Google Workspace administrator must authorize the service account's client ID for the same scope in the Google Admin console, under Security → Access and data control → API controls → Domain-wide delegation. Otherwise, the token request fails.
- The key grants everything the service account can do. Give the service account only the roles needed for testing, and delete the key once the test is complete.
Active Directory
Use Active Directory to test an internal Windows domain environment as an authenticated domain user. This type is only available for Continuous Adversarial Exposure Validation tests, and is linked to an in-scope wildcard asset that covers the domain. Internal assets are reached through a Beacon.
| Field | Required | Description |
|---|---|---|
| Domain | Yes | The Active Directory domain name, for example corp.local |
| In-scope wildcard asset | Yes | The in-scope wildcard asset that covers the domain |
| Username | Yes | The domain account's username |
| Password | Yes | The domain account's password |
How to fill it in
- Domain: the fully qualified domain name, such as
corp.localorad.example.com. - In-scope wildcard asset: choose from the list, which only shows the test's wildcard assets that are currently in scope. If the list is empty, add a wildcard asset covering the domain to the test's scope first, then click Refresh assets.
- Username: the account name on its own, such as
svc-ethiack. The domain goes in the Domain field, so do not enterCORP\svc-ethiackor[email protected]. - Password: the account's password.
Caveats
- Continuous tests only. Active Directory credentials are not available for Depth or Expert pentests.
- The asset must remain an in-scope wildcard. If it is moved out of scope or is no longer a wildcard, the credential can no longer be saved until you select another asset. If the asset is removed from the test, the credential is deleted.
- One password per account. Adding a credential for a username and domain that already have one (ignoring upper and lower case) replaces the existing password.
- Use a standard domain account. A regular, non-privileged user created for testing shows what an attacker with a foothold could achieve. Avoid Domain Admin or other highly privileged accounts.
- Lockout and password expiry policies apply. Make sure the account is not disabled, locked or forced to change its password during the test.
Recovered NTLM hashes
During continuous testing, Hackian may recover the NTLM hash of a domain or local account. When this happens, the hash is added to the test's credentials as an Active Directory credential that you can open, but not edit. Opening it shows a read-only Recovered AD hash view with the domain, asset ID, username and NTLM hash, which stays hidden until you reveal it.
A recovered hash means Hackian obtained that account's credential material, so treat it as a compromised credential: once you have reviewed the test's results, reset the account's password. You can remove the row from the credentials list at any time.
Troubleshooting
| Message | Likely cause | What to do |
|---|---|---|
| Unable to save credential. Check the fields, in-scope asset and your permissions, then try again. | The login URL is missing https://, its host does not match any asset on the test, a Web Login with the same username already exists for that asset, or you are not an Owner or Admin | Check the login URL against the test's assets and the existing credentials, and ask an Owner or Admin to add the credential if needed |
| Enter a valid name without spaces or separators. | The header or cookie name includes a space, a colon, an equals sign or another separator | Enter only the name, such as Authorization or session, and put everything else in the value |
| Enter a value. or Add one header or cookie. | The value, or both the name and the value, of a Custom Headers / Cookies credential are empty | Fill in both the name and the value |
| Values cannot contain line breaks. | The pasted header or cookie value spans several lines | Paste the value as a single line |
| Cookie values cannot contain semicolons or control characters. | Several cookies were pasted into one value | Add a separate credential for each cookie |
| Use a base32 secret (A-Z and 2-7). | The TOTP secret contains characters outside the base32 alphabet | Copy the setup key exactly as your authenticator app displays it |
| Provide a valid service_account JSON key. | The JSON is incomplete, is not a service account key or contains an edited private key | Upload the original JSON key file downloaded from Google Cloud |
| No in-scope wildcard assets available. | The test has no in-scope wildcard assets | Add a wildcard asset covering the domain to the test's scope |
| This asset is no longer an in-scope wildcard. Select another asset. | The asset selected for an Active Directory credential changed since the list was loaded | Select another asset, or bring the asset back into scope as a wildcard |
| Active Directory credentials are only available for continuous tests. | Active Directory was selected on a pentest | Use Active Directory credentials on a continuous test |
| This credential type is not currently enabled. | The credential type is not yet enabled for your organization | Contact support |
| No credentials available to your account. | Your role is not Owner or Admin | Ask an Owner or Admin to manage credentials |