Detection rules › Panther

AWS SSM Multiple Sessions

Tags
AWS CloudTrail, AWS SSM, AWS EC2
Source
github.com/panther-labs/panther-analysis

Returns StartSession events by users who triggered more than 2 StartSession events over the past hour.

Rules detecting the same action

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

Rule body yaml

AnalysisType: scheduled_query
QueryName: "AWS SSM Multiple Sessions"
Enabled: false
Description: >
  Returns StartSession events by users who triggered more than 2 StartSession events over the past hour.
Tags:
    - AWS CloudTrail
    - AWS SSM
    - AWS EC2
Query: |-
  select * from panther_logs.public.aws_cloudtrail
  where eventName = 'StartSession'
  and p_occurs_since(1h, , p_parse_time)
  qualify count(distinct requestParameters:target) over (partition by userIdentity:arn) > 2
Schedule:
  RateMinutes: 60
  TimeoutMinutes: 2

Detection logic

Stage 1: source

panther_logs.public.aws_cloudtrail

Stage 2: filter

eventName eq "StartSession"

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
  • StartSession

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

Field
*