Detectionhightest
Linux Keylogging with Pam.d
Detect attempt to enable auditing of TTY input
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
MITRE ATT&CK
Techniques
Sub-techniques
Rule Metadata
Rule ID
49aae26c-450e-448b-911d-b3c13d178dfc
Status
test
Level
high
Type
Detection
Created
2021-05-24
Modified
2022-12-18
Author
Path
rules/linux/auditd/lnx_auditd_keylogging_with_pam_d.yml
Raw Tags
attack.collectionattack.credential-accessattack.t1003attack.t1056.001