Detectionmediumtest

Access of Sudoers File Content

Detects the execution of a text-based file access or inspection utilities to read the content of /etc/sudoers in order to potentially list all users that have sudo rights.

Open in Detection LabConvert ruleBuild Package
Florian Roth (Nextron Systems)Created 2022-06-20Updated 2025-06-040f79c4d2-4e1f-4683-9c36-b5469a665e06linux
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:
            - '/cat'
            - '/ed'
            - '/egrep'
            - '/emacs'
            - '/fgrep'
            - '/grep'
            - '/head'
            - '/less'
            - '/more'
            - '/nano'
            - '/tail'
        CommandLine|contains: ' /etc/sudoers'
    condition: selection
False Positives

Legitimate administration activities

Rule Metadata
Rule ID
0f79c4d2-4e1f-4683-9c36-b5469a665e06
Status
test
Level
medium
Type
Detection
Created
2022-06-20
Modified
2025-06-04
Path
rules/linux/process_creation/proc_creation_lnx_susp_process_reading_sudoers.yml
Raw Tags
attack.reconnaissanceattack.t1592.004
View on GitHub