Burp Suite plugin that dynamically generates Okta TOTP 2FA code for use in session handling rules.
- Load the extension into Extensions > Installed > Add > Extension Type: Java > Choose the jar file
- Go to Okta TOTP Authenticator UI interface - Either Import QR or manually update sharedsecret value in Shared Secret field, click on 'Update' button and update Regex Pattern
- Go to Settings > Search > Sessions
- Under Session handling rules, go to Add > Rule actions > Add > Invoke a Burp extension,
select 'Okta TOTP Handler' from the dropdown list available and click OK. - Click across to the Scope tab, ensuring that the Tools scope > Scanner, Repeater box is checked.
- Configure the URL scope appropriately. Click OK.
- Now you can perform security testing on Okta enabled authentication sites in Burp Suite Professional.
Regex Pattern: (?<![\w\d])\d{6,8}(?![\w\d])


The Okta TOTP Authenticator extension integrates seamlessly with Burp Suite Pro to:
- Handle TOTP generation for Okta accounts.
- Inject generated TOTP codes dynamically into HTTP requests.
- Simplify workflows by allowing users to upload QR codes or manually configure shared secrets.
- Support regex-based customization to identify where TOTP codes should be injected.
Features of the Extension
- The extension allows users to upload a QR code associated with their Okta account. It decodes the QR code, extracts the shared secret, and securely stores it in Base64 format.
- For scenarios where a QR code is unavailable, the shared secret can be manually entered and updated directly in the extension's user interface (UI).
- The generated TOTP code is prominently displayed in the UI and refreshes every 30 seconds to align with the TOTP protocol.
- Users can specify a regex pattern to identify where TOTP codes need to be injected in HTTP requests. The default regex can be customized via the UI.
- The extension integrates with Burp Suite's session handling rules, enabling automatic TOTP injection into requests without manual intervention.
- Clone the repo.
- Install latest version of Gradle, follow the installation instructions here.
- Once Gradle is installed, run gradle fatJar from the installation directory using the command line.
- Jar file is generated under(../build/libs/OktaAuthenticate-1.0-SNAPSHOT.jar)