Okta¶
Okta is an identity provider for single sign-on and multi-factor authentication; one connector covers one Okta org.
- What DRACO uses: Org policies and apps for posture scans, the System Log, users, groups and apps.
- What for: Compliance and attack paths, detections, UEBA and hunts on sign-ins, user response and network zone blocklists.
Add it in Connectors > Add connector: pick Okta, then choose what DRACO collects and what it may change. Add more later with Add a part on its connector page. See Connectors for how connectors, sign-in and tags work.
Parts¶
| Part | What DRACO uses | Access | Permissions |
|---|---|---|---|
| Posture | Okta | read | Okta API scopes okta.policies.read okta.brands.read okta.apps.read okta.authenticators.read okta.networkZones.read okta.apiTokens.read okta.roles.read okta.groups.read okta.logStreams.read okta.idps.read for the API Services app. The Read-Only Administrator role for the app (Super Administrator only for the first-party app checks). |
| Logs | Okta System Log | read | Provider app: the okta.logs.read scope. Without a provider: an API token of a Read-Only Administrator. |
| Response | Block IP (Okta network zone), Clear sessions (Okta), Enable user (Okta unsuspend), Reset MFA factors (Okta), Suspend user (Okta) | write | Block IP (Okta network zone): provider app: okta.networkZones.manage; API token: a Super or Org Administrator Clear sessions (Okta), Enable user (Okta unsuspend), Reset MFA factors (Okta), Suspend user (Okta): provider app: okta.users.manage; API token: an administrator who may manage the users (Group or Help Desk Administrator) |
| Enforcement | Okta network zone | write | Provider app: okta.networkZones.manage; API token: a Super or Org Administrator |
| Directory | Okta System Log | read | Provider app: the Okta API scopes okta.users.read, okta.groups.read and okta.apps.read (okta.roles.read for the admin flags). Without a provider: the API token of the logs part (a Read-Only Administrator reads all of it). |
Posture¶
DRACO for Okta scans an Okta organization for identity and session-management misconfigurations. The provider authenticates as a service application using OAuth 2.0 with a private-key JWT (Client Credentials grant) — no end-user login, read-only by scope.
Prerequisites¶
Set up authentication for Okta with the Okta Authentication guide before starting:
- An Okta organization. The UI examples below use Identity Engine terminology such as Global Session Policy; Classic Engine exposes the equivalent sign-on policy concepts under older names.
- A Super Administrator account on that organization for the one-time service-app setup.
- An API Services app integration in the Okta Admin Console with the
okta.policies.read,okta.brands.read,okta.apps.read,okta.authenticators.read,okta.networkZones.read,okta.apiTokens.read,okta.roles.read,okta.groups.read,okta.logStreams.read, andokta.idps.readscopes granted and an admin role assigned. Read-Only Administrator covers the Sign-On, Network, API Token, User, System Log, and Identity Provider checks, and runs the per-app application network-zone check against the apps the service app can see (under Read-Only Administrator that is typically only the service app's own row — the rest of the org's app inventory stays invisible). Super Administrator is required additionally to evaluate the five first-party application checks (Okta Admin Console / Okta Dashboard idle timeout, MFA, phishing-resistant authentication) and to widen the application network-zone check to the full app inventory — see Okta Authentication for the full breakdown.
Connect the provider in DRACO¶
Step 1: Add the Provider¶
- Sign in to DRACO
-
Open Connectors, click Add connector and pick Okta: the wizard opens at Link a Provider.
-
Enter the Org Domain of the target Okta organization and an optional alias, then click "Next".
Note
The Org Domain must be the bare hostname of an Okta-managed organization — for example, acme.okta.com, acme.oktapreview.com, acme.okta-emea.com, acme.okta-gov.com, acme.okta.mil, acme.okta-miltest.com, or acme.trex-govcloud.com. Omit the https:// scheme, any path, and any trailing slash.
Step 2: Provide Credentials¶
DRACO authenticates to Okta with the OAuth 2.0 Private Key JWT flow exposed by an Okta API Services app. The service application, keypair, scope grants, and Read-Only Administrator role are set up once in the Okta Admin Console — full instructions are in the Okta Authentication guide.
- Enter the Client ID of the Okta API Services app (for example,
0oa123456789abcdef). - Paste the Private Key whose matching public key (JWK) is registered on the service app. Both PEM-encoded RSA keys and JWK JSON documents are accepted.
- Click "Next".
Note
The private key is transmitted over TLS and stored as an encrypted secret in the backend. Rotate or revoke the matching public key from the Okta Admin Console at any time to invalidate the credential without changes on the DRACO side.
Step 3: Launch the Scan¶
- Review the connection summary. DRACO runs a credential probe against the Okta Management API before saving — a failed probe surfaces the underlying Okta error (
invalid_scope,Forbidden, invalid credentials, etc.) so the configuration can be corrected before the first scan. - Choose the scan schedule: run a single scan or set up daily scans (every 24 hours).
- Click Launch Scan to start auditing the Okta organization.
Supported Services¶
DRACO for Okta includes security checks across the following services:
| Service | Description |
|---|---|
| Sign-On | Global session policy controls (idle timeout, lifetime, rule priority and ordering) |
| Application | Okta Admin Console sign-on settings plus Authentication Policy controls for Okta applications (session idle, MFA, phishing resistance, network zones) |
| Authenticator | Password Policy controls plus Okta Verify FIPS and Smart Card IdP authenticator status |
| Network | Network Zone blocklists for anonymized proxy sources |
| API Token | API token owner-role validation and Network Zone restrictions |
| User | User lifecycle automations (inactivity-based deprovisioning) |
| System Log | Log Stream configuration that off-loads audit records to a central SIEM |
| Identity Provider | Identity Providers, including Smart Card (X509) IdP status and certificate-chain visibility |
Every authentication option, with the exact scopes: Okta authentication.
Logs¶
The Okta System Log data source collects sign-ins and user, MFA, group and privilege changes.
- With the Okta provider: Applications > the DRACO API Services app > Okta API Scopes > Grant
okta.logs.read. - Without a provider: as a Read-only Administrator, Security > API > Tokens > Create token, save it as an
api_keycredential and enter the org domain. Okta tokens expire after 30 days without use.
Directory¶
Pulls the vendor's directory into the ID directory (readable names for alerts, incidents and investigations) and the assets: users (login, status, last sign-in, admin role), groups and apps. It signs in with the sign-in of the logs part, so turn logs on first, then turn on Directory on the connection (or tick Pull the directory in the log source's settings) and run Test: the Directory row reads one page of each part and names a missing permission.
Permissions (read):
- With the Okta provider: grant the API Services app the scopes
okta.users.read,okta.groups.readandokta.apps.read; addokta.roles.readfor the admin flags. - Without a provider: the API token of the log source; a Read-Only Administrator reads all of it.
MFA enrolment (optional, off by default). Okta does not list MFA enrolment with its users: it lists the enrolled factors of one user at a time. Tick Read MFA enrolment with the directory in the log source's settings to fill the MFA flag of Okta users: a user with at least one active factor has MFA (the factor types are shown with the user's Okta facts). This costs one extra API request per user, so DRACO reads at most 200 users a run, every 15 minutes, until the whole org is read (then again once a day). It stops early when the org's Okta rate limit runs low (it leaves a fifth of it to your other tools) and waits as Okta asks when it is reached; on large orgs it still uses part of the rate limit of the Users API. It needs the same permission as the users (okta.users.read, or a Read-Only Administrator token). When Okta refuses it, the connection shows a warning and the rest of the directory is still read.
DRACO reads the directory every hour (only what changed, where the vendor's API allows it) and in full once a day. Names and asset facts the vendor no longer lists are removed after the ID retention period. When the pull fails three times in a row, the connection shows the error and a connector health problem is opened.
Response¶
Runs response actions on the Okta org from incidents and workflows: Block IP (Okta network zone), Clear sessions (Okta), Enable user (Okta unsuspend), Reset MFA factors (Okta) and Suspend user (Okta).
Setup: Response actions.
Enforcement¶
Keeps blocklists of threat intel indicators up to date: Okta network zone.
Setup: Push targets, Setting up the permissions.
If you turn on several parts¶
When you connect Okta once and tick several parts, the wizard shows one guide for all of them: what to check first, the access to create once, one list of permissions that names the part each one is for, the extra steps of each part, and one test that checks every part on its own. Turning a part on later shows only what it adds.
Posture and the System Log use the same API Services app: create it once and add the scope okta.logs.read for the logs. Response actions and the network zone blocklist need manage scopes (okta.users.manage, okta.networkZones.manage) or an administrator's API token; the guide lists them under the write access.
Troubleshooting¶
STIG Rule Ordering¶
The initial check is mapped to DISA STIG V-273186 / OKTA-APP-000020. DRACO implements the STIG procedure as written: the Default Policy must have a Priority 1 rule that is not Default Rule, and that rule must set Maximum Okta global session idle time to 15 minutes or less.
This is stricter than simply finding the same timeout value somewhere else in the policy set. A compliant custom rule in another policy, or a compliant timeout on the built-in Default Rule, does not satisfy this STIG procedure.
Default Scopes¶
DRACO requests a fixed set of OAuth scopes on every token exchange. The defaults cover every bundled check across the Sign-On, Application, Authenticator, Network, API Token, User, System Log, and Identity Provider services:
okta.policies.readokta.brands.readokta.apps.readokta.authenticators.readokta.networkZones.readokta.apiTokens.readokta.roles.readokta.groups.readokta.logStreams.readokta.idps.read
The service app must have these scopes granted in the Okta API Scopes tab. okta.groups.read is required so the API token Super Admin check can resolve admin roles inherited via group membership; without it the check falls back to direct-only role assignments and emits a best-effort caveat. When the granted set is narrower than the requested set, the token request fails with an invalid_scope error and the scan stops at provider initialization.
Attack Paths and the Okta System Log data source ask for more scopes (okta.users.read, okta.logs.read and others); grant them to the same service app when you use those features (see Attack Paths and Data sources).
For the full catalog of OAuth scopes exposed by the Okta Management API, refer to the Okta OAuth 2.0 scopes documentation.
Note
As new services and checks land in the Okta provider, the default scope list grows alongside them. Re-check the granted scopes on the service app after each DRACO upgrade and grant any newly required okta.*.read scopes in the Admin Console.
Common Errors¶
OktaInvalidOrgDomainError— the org domain must be<org>.okta.com(or.oktapreview.com/.okta-emea.com/.okta-gov.com/.okta.mil/.okta-miltest.com/.trex-govcloud.com). Pass the bare hostname only — nohttps://scheme, no path, no trailing slash.OktaPrivateKeyFileError— confirm the pasted private key is a complete, non-empty PEM or JWK body.OktaInsufficientPermissionsError— the credential probe reached Okta but the service app cannot perform the request. The error string carriesinvalid_scope,Forbidden,not authorized, orpermission. Fix by granting the missingokta.*.readscope from Okta API Scopes and confirming the Read-Only Administrator role is assigned to the service app.OktaInvalidCredentialsError— the credential probe reached Okta but Okta rejected the JWT. Typically the private key entered in DRACO does not match the public JWK uploaded to the service app, or the JWT signing parameters are wrong. Regenerate the keypair and re-upload the public JWK.- Token requests failing for an unknown scope — the app was granted fewer scopes than DRACO requests. Grant the missing scopes listed above in the Admin Console.