Detectionmediumtest

User Added To Root/Sudoers Group Using Usermod

Detects usage of the "usermod" binary to add users add users to the root or suoders groups

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
TuanLe (GTSC)Created Wed Dec 216a50f16c-3b7b-42d1-b081-0fdd3ba70a73linux
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: '/usermod'
        CommandLine|contains:
            - '-aG root'
            - '-aG sudoers'
    condition: selection
False Positives

Legitimate administrator activities

Rule Metadata
Rule ID
6a50f16c-3b7b-42d1-b081-0fdd3ba70a73
Status
test
Level
medium
Type
Detection
Created
Wed Dec 21
Path
rules/linux/process_creation/proc_creation_lnx_usermod_susp_group.yml
Raw Tags
attack.privilege-escalationattack.persistence
View on GitHub