Detection rules › Panther

SIGNAL - Retrieve SSO access token

Severity
informational
Log types
AWS.CloudTrail
Source
github.com/panther-labs/panther-analysis

Rule body yaml

AnalysisType: rule
Filename: retrieve_sso_access_token.py
RuleID: "Retrieve.SSO.access.token"
DisplayName: "SIGNAL - Retrieve SSO access token"
Enabled: true
CreateAlert: false
LogTypes:
    - AWS.CloudTrail
Severity: Info
DedupPeriodMinutes: 60
Threshold: 1
Tests:
    - Name: Retrieve SSO access token
      ExpectedResult: true
      Log:
        eventName: CreateToken
        eventSource: sso.amazonaws.com
        eventVersion: "1.08"
        recipientAccountId: <organization master account ID>
        requestParameters:
            clientId: '...'
            clientSecret: HIDDEN_DUE_TO_SECURITY_REASONS
            deviceCode: '...'
            grantType: urn:ietf:params:oauth:grant-type:device_code
        responseElements:
            accessToken: HIDDEN_DUE_TO_SECURITY_REASONS
            expiresIn: 28800
            idToken: HIDDEN_DUE_TO_SECURITY_REASONS
            refreshToken: HIDDEN_DUE_TO_SECURITY_REASONS
            tokenType: Bearer
        sourceIPAddress: <Attacker source IP>
        userAgent: '<Attacker user agent (here: Boto3/1.17.80 Python/3.9.5 Darwin/20.3.0 Botocore/1.20.80)>'
        userIdentity:
            accountId: <organization master account ID>
            principalId: <internal victim user id>
            type: Unknown
            userName: <victim display name>

Detection logic

Condition

eventSource eq "sso.amazonaws.com"
eventName eq "CreateToken"

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
eventNameeq
  • CreateToken
eventSourceeq
  • sso.amazonaws.com