Detection rules › Panther

Decoy Systems Manager Parameter Accessed

Severity
high
Entities
actor_ids, aws_account_ids, aws_arns, trace_ids, usernames
Log types
AWS.SecurityFindingFormat
Reference
https://aws.amazon.com/blogs/security/how-to-detect-suspicious-activity-in-your-aws-account-by-using-private-decoy-resources/
Source
github.com/panther-labs/panther-analysis

Actor accessed Decoy Systems Manager parameter

Rule body yaml

AnalysisType: rule
Filename: decoy_systems_manager_parameter_accessed.py
RuleID: "Decoy.Systems.Manager.Parameter.Accessed"
DisplayName: "Decoy Systems Manager Parameter Accessed"
Enabled: false
LogTypes:
    - AWS.SecurityFindingFormat
Severity: High
Description: Actor accessed Decoy Systems Manager parameter
DedupPeriodMinutes: 60
Threshold: 1
Reference: https://aws.amazon.com/blogs/security/how-to-detect-suspicious-activity-in-your-aws-account-by-using-private-decoy-resources/
InlineFilters:
    - All: []
Tests:
    - Name: Systems-Manager-Parameter-Decoy-Accessed
      ExpectedResult: true
      Log:
        Action:
            ActionType: AWS_API_CALL
            AwsApiCallAction:
                Api: Decrypt
                CallerType: remoteIp
                DomainDetails: {}
                ServiceName: kms.amazonaws.com
            DnsRequestAction: {}
            NetworkConnectionAction:
                LocalPortDetails: {}
                RemotePortDetails: {}
            PortProbeAction: {}
        AwsAccountId: "123456789012"
        CompanyName: Custom
        CreatedAt: "2024-05-24 22:34:07.000000000"
        Description: Private decoy Systems Manager parameter arn:aws:ssm:us-east-1:123456789012:parameter/info-parameter was accessed by arn:aws:iam::123456789012:user/tester. This Systems Manager parameter has been provisioned to monitor and generate security events when accessed and can be an indicator of unintended or unauthorized access to your AWS Account.
        FindingProviderFields:
            Severity:
                Label: HIGH
                Normalized: 70
            Types:
                - Unusual Behaviors
        GeneratorId: ssm.amazonaws.com
        Id: 6abc0de0-69ea-4e15-91c6-27eb4a07bd21
        ProcessedAt: "2024-05-24T22:34:15.644Z"
        ProductArn: arn:aws:securityhub:us-east-1:123456789012:product/123456789012/default
        ProductFields:
            Custom/DecoyDetector/apiResult: SUCCESS
            Custom/DecoyDetector/requestID: ab8cd646-1986-4c45-8546-fdb1776e23b0
            Custom/DecoyDetector/userAgent: AWS Internal
            aws/securityhub/CompanyName: Personal
            aws/securityhub/FindingId: arn:aws:service:region:123456789012:resource/12345ab6-436d-4d59-ac58-ed6b3127e440
            aws/securityhub/ProductName: Default
        ProductName: DecoyDetector
        RecordState: ACTIVE
        Region: us-east-1
        Resources:
            - Id: arn:aws:ssm:us-east-1:123456789012:parameter/info-parameter
              Partition: aws
              Region: us-east-1
              ResourceRole: Target
              Type: Other
            - Id: arn:aws:kms:us-east-1:123456789012:key/007ab31c-bf66-2264-a916-49f6d2ebd1db
              Partition: aws
              Region: us-east-1
              ResourceRole: Target
              Type: AwsKmsKey
            - Details:
                AwsIamAccessKey:
                    AccessKeyId: ABC9ONWNS3155VIEJC8U
                    AccountId: "123456789012"
                    PrincipalId: ABCDEFG0TOGJSGNQKI0:john.doe
                    PrincipalType: AssumedRole
                    SessionContext:
                        Attributes:
                            CreationDate: "2024-05-24T22:32:38Z"
                            MfaAuthenticated: false
                        SessionIssuer:
                            AccountId: "123456789012"
                            Arn: arn:aws:iam::123456789012:user/tester
                            PrincipalId: ABCDEFG0TOGJSGNQKI0
                            Type: Role
                            UserName: user_ab21cde50f
              Id: ABC9ONWNS3155VIEJC8U
              Partition: aws
              Region: us-east-1
              ResourceRole: Actor
              Type: AwsIamAccessKey
            - Id: arn:aws:iam::123456789012:user/tester
              Partition: aws
              Region: us-east-1
              ResourceRole: Actor
              Type: AwsIamRole
        SchemaVersion: "2018-10-08"
        Severity:
            Label: HIGH
            Normalized: 70
        Title: Suspicious activity detected accessing private decoy Systems Manager parameter arn:aws:ssm:us-east-1:123456789012:parameter/info-parameter
        Types:
            - Unusual Behaviors
        UpdatedAt: "2024-05-24 22:34:07.000000000"
        Workflow:
            Status: NEW
        WorkflowState: NEW
        p_any_actor_ids: []
        p_any_aws_account_ids: []
        p_any_aws_arns: []
        p_any_trace_ids: []
        p_any_usernames: []
        p_event_time: "2024-05-24 22:34:07.000000000"
        p_log_type: AWS.SecurityFindingFormat
        p_parse_time: "2024-05-24 22:35:04.272574202"
        p_row_id: zjj8nmnw9f90uulxfa3bmen8rv5stlcx
        p_schema_version: 0
        p_source_id: bb4e16c5-43dd-450c-9227-39f0d152659c
        p_source_label: AWS Security Hub
    - Name: Systems-Manager-Parameter-Decoy-Not-Accessed
      ExpectedResult: false
      Log:
        Action:
            ActionType: AWS_API_CALL
            AwsApiCallAction:
                Api: DescribeParameters
                CallerType: remoteIp
                DomainDetails: {}
                ServiceName: kms.amazonaws.com
            DnsRequestAction: {}
            NetworkConnectionAction:
                LocalPortDetails: {}
                RemotePortDetails: {}
            PortProbeAction: {}
        AwsAccountId: "123456789012"
        CompanyName: Custom
        CreatedAt: "2024-05-24 22:34:07.000000000"
        Description: Private decoy Systems Manager parameter arn:aws:ssm:us-east-1:123456789012:parameter/info-parameter was not accessed by arn:aws:iam::123456789012:user/tester. This Systems Manager parameter has been provisioned to monitor and generate security events when accessed and can be an indicator of unintended or unauthorized access to your AWS Account.
        FindingProviderFields:
            Severity:
                Label: HIGH
                Normalized: 70
            Types:
                - Unusual Behaviors
        GeneratorId: ssm.amazonaws.com
        Id: 6abc0de0-69ea-4e15-91c6-27eb4a07bd21
        ProcessedAt: "2024-05-24T22:34:15.644Z"
        ProductArn: arn:aws:securityhub:us-east-1:123456789012:product/123456789012/default
        ProductFields:
            Custom/DecoyDetector/apiResult: SUCCESS
            Custom/DecoyDetector/requestID: ab1cd234-1986-4c45-8546-fdb1776e23b0
            Custom/DecoyDetector/userAgent: AWS Internal
            aws/securityhub/CompanyName: Personal
            aws/securityhub/FindingId: arn:aws:service:region:123456789012:resource/12345ab6-436d-4d59-ac58-ed6b3127e440
            aws/securityhub/ProductName: Default
        ProductName: DecoyDetector
        RecordState: ACTIVE
        Region: us-east-1
        Resources:
            - Id: arn:aws:ssm:us-east-1:123456789012:parameter/info-parameter
              Partition: aws
              Region: us-east-1
              ResourceRole: Target
              Type: Other
            - Id: arn:aws:kms:us-east-1:123456789012:key/007ab31c-bf66-2264-a916-49f6d2ebd1db
              Partition: aws
              Region: us-east-1
              ResourceRole: Target
              Type: AwsKmsKey
            - Details:
                AwsIamAccessKey:
                    AccessKeyId: ABC9ONWNS3155VIEJC8U
                    AccountId: "123456789012"
                    PrincipalId: ABCDEFG0TOGJSGNQKI0:john.doe
                    PrincipalType: AssumedRole
                    SessionContext:
                        Attributes:
                            CreationDate: "2024-05-24T22:32:38Z"
                            MfaAuthenticated: false
                        SessionIssuer:
                            AccountId: "123456789012"
                            Arn: arn:aws:iam::123456789012:user/tester
                            PrincipalId: ABCDEFG0TOGJSGNQKI0
                            Type: Role
                            UserName: user_ab21cde50f
              Id: ABC9ONWNS3155VIEJC8U
              Partition: aws
              Region: us-east-1
              ResourceRole: Actor
              Type: AwsIamAccessKey
            - Id: arn:aws:iam::123456789012:user/tester
              Partition: aws
              Region: us-east-1
              ResourceRole: Actor
              Type: AwsIamRole
        SchemaVersion: "2018-10-08"
        Severity:
            Label: HIGH
            Normalized: 70
        Title: Non-Suspicious activity detected accessing private decoy Systems Manager parameter arn:aws:ssm:us-east-1:123456789012:parameter/info-parameter
        Types:
            - Unusual Behaviors
        UpdatedAt: "2024-05-24 22:34:07.000000000"
        Workflow:
            Status: NEW
        WorkflowState: NEW
        p_any_actor_ids: []
        p_any_aws_account_ids: []
        p_any_aws_arns: []
        p_any_trace_ids: []
        p_any_usernames: []
        p_event_time: "2024-05-24 22:34:07.000000000"
        p_log_type: AWS.SecurityFindingFormat
        p_parse_time: "2024-05-24 22:35:04.272574202"
        p_row_id: zjj8nmnw9f90uulxfa3bmen8rv5stlcx
        p_schema_version: 0
        p_source_id: bb4e16c5-43dd-450c-9227-39f0d152659c
        p_source_label: AWS Security Hub

Detection logic

Condition

GeneratorId eq "ssm.amazonaws.com"
Action.AwsApiCallAction.Api in "Decrypt"

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
Action.AwsApiCallAction.Apiin
  • Decrypt
GeneratorIdeq
  • ssm.amazonaws.com