Authentication

Before following the instructions below, ensure that your application and authenticated resources are accessible to the Bright engine, either directly from the Internet or via a Repeater.

The Bright authentication capabilities allow you to scan all the login-protected resources within your target application or API. You configure Bright once with a way to log in, and it uses that login whenever you select the authentication object in a Discovery or a scan.

Why Authenticate to the Target Application

Most applications keep their most valuable pages, data and API endpoints behind a login. Bright can test only what it can reach. Without a valid session, Bright reaches the public part of the application. The protected entrypoints are not discovered, so they are not tested, and the scan results say nothing about them.

When Bright can log in, it scans the application the way an authenticated user would, and you get complete scan coverage of the target.

Authentication must also keep working for the whole run. Sessions expire, and a scan can last a long time. Bright checks that the session is still valid and logs in again when it is not.

The Main Parts of an Authentication Object

An authentication object holds everything Bright needs to log in to your target and to confirm that the login still works. You create it once, and then select it when you define a Discovery or a scan.

An authentication object has three main parts. All three must be configured correctly, or the authentication does not work.

  1. Auth flow is the login procedure that Bright performs, for example filling in a login form or requesting a token from an API. You set it up in the Auth Flow Setup tab.
  2. Protected resource is a page or an API endpoint that only a logged-in user can open. Bright requests it to check whether the session is valid. You set it up in the Authentication Validation tab.
  3. Re-authentication triggers are the rules that describe what a response looks like when the session has expired, for example a 401 status. When a response matches a trigger, Bright checks the session with the protected resource and logs in again if needed. You set them up in the Authentication Validation tab.

The Advanced Settings tab adds optional parts: one-time passwords, headers that Bright adds to the requests of the login flow, and headers and body that Bright adds to the requests it sends after it logs in.

Before you use an authentication object in a scan, you can test it and fix configuration failures. See Testing Authentication. For the full setup, see Add an Authentication Object.

Authentication Flows

Bright supports several authentication methods. They fall into three categories, based on how Bright reaches the target.

Browser-based — Bright opens the application in a browser and logs in the way a user would, by filling in or replaying a login form. See Browser-Based Authentication.

API-based — Bright sends HTTP requests directly, with static headers or a custom login flow, without opening a browser. See API-Based Authentication.

Protocol-based — Bright follows a standard external authentication protocol. See Protocol-Based Authentication.

  • OpenID Connect (OAuth) configures the standard OAuth 2.0 flow, which requires the use of client or user secrets. It relies on the authentication performed by an OpenID Connect Provider to verify a user's identity.
  • NTLM authentication establishes a connection between a user's workstation and a network that uses the NTLM protocol.
📘

Note

If your target requires signed requests (HMAC), an authentication method alone is not enough. Use a Repeater script to sign each request. See Using Repeater Scripts.


Did this page help you?