Back to Checks
okta

Okta Admin Console app session idle timeout is 15 minutes or less

application_admin_console_session_idle_timeout_15min
Service: applicationSeverity: medium
OfficialBuilt-inVerified
Categories:identity-access
Resource Type:NotDefined

The integrated Okta Admin Console app must close idle privileged sessions. Maximum app session idle time on the Sign On tab must be 15 minutes or less.

Threshold override: okta_admin_console_idle_timeout_max_minutes.

Risk

An unattended administrator workstation leaves the Okta control plane open for session hijacking.

  • Privileged session takeover by anyone with physical or remote access to the workstation
  • Tenant-wide configuration changes under the absent administrator's identity
  • Bypassed reauthentication for the most sensitive surface of the IdP

Run this check with Prowler

Run in Prowler Cloud
Run
prowler okta --checks application_admin_console_session_idle_timeout_15min

Recommendation

Set the Maximum app session idle time of the Okta Admin Console first-party app to 15 minutes or less so privileged administrator sessions terminate on inactivity.

Remediation

Other

1Sign in to the **Okta Admin Console** as a *Super Admin*.
2Navigate to **Applications** > **Applications** > **Okta Admin Console**.
3Open the **Sign On** tab.
4Under **Okta Admin Console session**, set *Maximum app session idle time* to `15` minutes or less.
5Save the changes.

Check Code

from prowler.lib.check.models import Check, CheckReportOkta
from prowler.providers.okta.services.application.application_client import (
    application_client,
)
from prowler.providers.okta.services.application.application_service import (
    AdminConsoleAppSettings,
)
from prowler.providers.okta.services.application.lib.application_helpers import (
    missing_admin_console_settings_scope_finding,
)

DEFAULT_THRESHOLD_MINUTES = 15


class application_admin_console_session_idle_timeout_15min(Check):
    """STIG V-273187 / OKTA-APP-000025.

    The Okta Admin Console first-party app must set its
    `Maximum app session idle time` to 15 minutes (or less) so privileged
    administrator sessions terminate on inactivity. Threshold override:
    `okta_admin_console_idle_timeout_max_minutes` in the audit config.
    """

    def execute(self) -> list[CheckReportOkta]:
        findings: list[CheckReportOkta] = []
        audit_config = application_client.audit_config or {}
        threshold = audit_config.get(
            "okta_admin_console_idle_timeout_max_minutes",
            DEFAULT_THRESHOLD_MINUTES,
        )
        org_domain = application_client.provider.identity.org_domain

        missing_scope = application_client.missing_scope.get(
            "admin_console_app_settings"
        )
        if missing_scope:
            findings.append(
                missing_admin_console_settings_scope_finding(
                    self.metadata(), org_domain, missing_scope
                )
            )
            return findings

        settings = application_client.admin_console_app_settings
        if settings is None:
            placeholder = AdminConsoleAppSettings()
            report = CheckReportOkta(
                metadata=self.metadata(), resource=placeholder, org_domain=org_domain
            )
            report.status = "MANUAL"
            report.status_extended = (
                "Could not retrieve the Okta Admin Console first-party app "
                "settings. Okta restricts `GET /api/v1/first-party-app-settings/"
                "admin-console` to the Super Administrator role; every other "
                "role — including Read-Only Administrator — receives "
                "`403 E0000006`. Assign Super Administrator to the service "
                f"app to evaluate this check. The `Maximum app session idle "
                f"time` must be set to {threshold} minutes or less."
            )
            findings.append(report)
            return findings

        report = CheckReportOkta(
            metadata=self.metadata(), resource=settings, org_domain=org_domain
        )
        idle = settings.session_idle_timeout_minutes
        if idle is None:
            report.status = "FAIL"
            report.status_extended = (
                "The Okta Admin Console first-party app does not define a "
                "`Maximum app session idle time`. This value must be "
                f"{threshold} minutes or less."
            )
        elif idle <= threshold:
            report.status = "PASS"
            report.status_extended = (
                "The Okta Admin Console first-party app sets the maximum "
                f"app session idle time to {idle} minutes, meeting the "
                f"configured threshold of {threshold} minutes."
            )
        else:
            report.status = "FAIL"
            report.status_extended = (
                "The Okta Admin Console first-party app sets the maximum "
                f"app session idle time to {idle} minutes, exceeding the "
                f"configured threshold of {threshold} minutes."
            )
        findings.append(report)
        return findings