Detectionmediumtest

Potential Linux Amazon SSM Agent Hijacking

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

Open in Detection LabConvert ruleBuild Package
Muhammad FaisalCreated 2023-08-03f9b3edc5-3322-4fc7-8aa3-245d646cc4b7linux
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        Image|endswith: '/amazon-ssm-agent'
        CommandLine|contains|all:
            - '-register '
            - '-code '
            - '-id '
            - '-region '
    condition: selection
False Positives

Legitimate activity of system administrators

Rule Metadata
Rule ID
f9b3edc5-3322-4fc7-8aa3-245d646cc4b7
Status
test
Level
medium
Type
Detection
Created
2023-08-03
Path
rules/linux/process_creation/proc_creation_lnx_ssm_agent_abuse.yml
Raw Tags
attack.command-and-controlattack.persistenceattack.t1219.002
View on GitHub