Instead of using the page, you can enable AI-assisted auth in a JSON configuration file that you upload to the Polaris Web UI (see examples below). This must contain a single authentication profile (in the
authProfiles object) with a loginType of ai and an array of required settings. Note: For more details, see Configure JSON scan settings and authentication profiles. fAST Dynamic does not support multiple authentication profiles at this time. The DAST scanner will default to the first authentication profile in the
authProfiles array if multiple profiles are defined.Example JSON
Simple authentication JSON configuration{
"version": "0.25",
"authProfiles": [
{
"name": "AIAssistedSimpleExample",
"authenticators": [
{
"loginType": "ai",
"settings": {
"loginURL": "https://myapp.blackduck.com/login",
"username": "example_user@blackduck.com",
"password": "ABCDEFGH"
}
}
]
}
]
}
name: The name of the authentication profile. Must be unique.authenticators: An array of authentication settings to use with theauthProfile.loginType: Set toaito enable AI-assisted auth.loginURL: The URL of the login page of the target web application to scan. This must be accessible by the DAST scanner.username: The username used by the scanner.password: The password used by the scanner.
{
"version": "0.25",
"authProfiles": [
{
"name": "AIAssistedMFAExample",
"authenticators": [
{
"loginType": "ai",
"settings": {
"loginURL": "https://myapp.blackduck.com/login",
"username": "example_user@blackduck.com",
"password": "ABCDEFGH",
"otpEmail": "<DAST_PROJECT_ID>@mfa.dast.blackduck.com",
"otpTimeSecret": "<OTP_SECRET_ID>"
}
}
]
}
]
}
otpEmail: The Black Duck MFA email address associated with the DAST project, in the format<DAST_PROJECT_ID>@mfa.dast.blackduck.com. To find the project ID, open the project and copy the alphanumeric string displayed after/projects/in your browser address bar. Your web application must be configured to send MFA emails to this email address.otpTimeSecret: The TOTP Secret Key that is configured in your MFA provider, e.g.WCUXRQCOKQJJWMPZ.
Upload JSON for AI-assisted auth to the Polaris Web UI
To enable AI-assisted auth through a JSON configuration file, follow these steps:
- Create a JSON file containing an authentication profile for AI-assisted auth. You can modify one of the preceding examples.
- Save the JSON file.
- Navigate to the page.
- To upload the JSON file, select Load Scan Settings File and browse for the JSON file on your local machine.
- Complete the other required fields.
- Click Save.