Detection rules › Panther

SIGNAL - Role Assumed by AWS Service

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

Rules detecting the same action

Other rules on this platform that filter on the same API call or operation.

Rule body yaml

AnalysisType: rule
Filename: role_assumed_by_aws_service.py
RuleID: "Role.Assumed.by.AWS.Service"
DisplayName: "SIGNAL - Role Assumed by AWS Service"
Enabled: false
CreateAlert: false
LogTypes:
    - AWS.CloudTrail
Severity: Info
DedupPeriodMinutes: 60
Threshold: 1
Tests:
    - Name: Role Assumed by AWS Service
      ExpectedResult: true
      Log:
        awsRegion: us-west-2
        eventCategory: Management
        eventID: 1f3d7d49-6637-3304-b959-9be15f20215d
        eventName: AssumeRole
        eventSource: sts.amazonaws.com
        eventTime: "2024-06-02 20:27:12"
        eventType: AwsApiCall
        eventVersion: "1.08"
        managementEvent: true
        readOnly: true
        recipientAccountId: "123456789123"
        requestID: a0dda101-6e27-4f88-8250-f3d475f88b56
        requestParameters:
            roleArn: arn:aws:iam::123456789123:role/my_role_arn
            roleSessionName: awslambda_55_20240602202712548
        resources:
            - accountId: "123456789123"
              arn: arn:aws:iam::123456789123:role/my_role_arn
              type: AWS::IAM::Role
        responseElements:
            credentials:
                accessKeyId: REDACTED
                expiration: Jun 2, 2024, 10:37:12 PM
                sessionToken: REDACTED
        sharedEventID: 95e84e79-100a-40a6-985e-3c9c4b41f622
        sourceIPAddress: lambda.amazonaws.com
        userAgent: lambda.amazonaws.com
        userIdentity:
            invokedBy: lambda.amazonaws.com
            type: AWSService

Detection logic

Condition

eventName eq "AssumeRole"
requestParameters.roleArn is_not_null
userIdentity.type eq "AWSService"

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
  • AssumeRole
requestParameters.roleArnis_not_null
  • (no value, null check)
userIdentity.typeeq
  • AWSService