Sigma rule: Linux Keylogging with Pam.d

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-162048b9dc96, updated 2022-12-18T00:00:00.000Z.

Rule

Title
Linux Keylogging with Pam.d
Status
test
Level
high
Author
Pawel Mazur
Date
2021-05-24
Modified
2022-12-18
File
rules/linux/auditd/lnx_auditd_keylogging_with_pam_d.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detect attempt to enable auditing of TTY input

Log source

product
linux
service
auditd

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 (as the rule lists them)

  • Administrative work

Tags

  • attack.collection
  • attack.credential-access
  • attack.t1003
  • attack.t1056.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/auditd/lnx_auditd_keylogging_with_pam_d.yml

Sources and licences

  • SigmaHQ

    "Linux Keylogging with Pam.d" by Pawel Mazur (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/auditd/lnx_auditd_keylogging_with_pam_d.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Linux Keylogging with Pam.d",
entity page, dataset version ref-162048b9dc96, updated 2022-12-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/49aae26c-450e-448b-911d-b3c13d178dfc (accessed 2026-11-03).
Underlying source: SigmaHQ rule 49aae26c-450e-448b-911d-b3c13d178dfc, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.