Detection rules › Sigma

Potential Amazon SSM Agent Hijacking

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Muhammad Faisal
Source
github.com/SigmaHQ/sigma

Detects potential Amazon SSM agent hijack attempts as outlined in the Mitiga research report.

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Potential Amazon SSM Agent Hijacking
id: d20ee2f4-822c-4827-9e15-41500b1fff10
status: test
description: Detects potential Amazon SSM agent hijack attempts as outlined in the Mitiga research report.
references:
    - https://www.mitiga.io/blog/mitiga-security-advisory-abusing-the-ssm-agent-as-a-remote-access-trojan
    - https://www.bleepingcomputer.com/news/security/amazons-aws-ssm-agent-can-be-used-as-post-exploitation-rat-malware/
    - https://www.helpnetsecurity.com/2023/08/02/aws-instances-attackers-access/
author: Muhammad Faisal
date: 2023-08-02
tags:
    - attack.command-and-control
    - attack.persistence
    - attack.t1219.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\amazon-ssm-agent.exe'
        CommandLine|contains|all:
            - '-register '
            - '-code '
            - '-id '
            - '-region '
    condition: selection
falsepositives:
    - Legitimate activity of system administrators
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\amazon-ssm-agent.exe'
    CommandLine|contains|all:
        - '-register '
        - '-code '
        - '-id '
        - '-region '

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
CommandLinematch
  • -code corpus 2 (sigma 2)
  • -id corpus 2 (sigma 2)
  • -region corpus 2 (sigma 2)
  • -register corpus 2 (sigma 2)
Imageends_with
  • \amazon-ssm-agent.exe