Detectionhightest

Linux Keylogging with Pam.d

Detect attempt to enable auditing of TTY input

Open in Detection LabConvert ruleBuild Package
Pawel MazurCreated 2021-05-24Updated 2022-12-1849aae26c-450e-448b-911d-b3c13d178dfclinux
Log Source
Linuxauditd
ProductLinux← raw: linux
Serviceauditd← raw: auditd
Detection Logic
Detection Logic2 selectors
detection:
    selection_path_events:
        type: PATH
        name:
            - '/etc/pam.d/system-auth'
            - '/etc/pam.d/password-auth'
    selection_tty_events:
        type:
            - 'TTY'
            - 'USER_TTY'
    condition: 1 of selection_*
False Positives

Administrative work

Rule Metadata
Rule ID
49aae26c-450e-448b-911d-b3c13d178dfc
Status
test
Level
high
Type
Detection
Created
2021-05-24
Modified
2022-12-18
Path
rules/linux/auditd/lnx_auditd_keylogging_with_pam_d.yml
Raw Tags
attack.collectionattack.credential-accessattack.t1003attack.t1056.001
View on GitHub