Detectionmediumtest

Suspicious History File Operations - Linux

Detects commandline operations on shell history files

Open in Detection LabConvert ruleBuild Package
Mikhail Larin, oscd.communityCreated 2020-10-17Updated 2022-11-28eae8ce9f-bde9-47a6-8e79-f20d18419910linux
Log Source
Linuxauditd
ProductLinux← raw: linux
Serviceauditd← raw: auditd
Detection Logic
Detection Logic2 selectors
detection:
    execve:
        type: EXECVE
    history:
        - '.bash_history'
        - '.zsh_history'
        - '.zhistory'
        - '.history'
        - '.sh_history'
        - 'fish_history'
    condition: execve and history
False Positives

Legitimate administrative activity

Legitimate software, cleaning hist file

Rule Metadata
Rule ID
eae8ce9f-bde9-47a6-8e79-f20d18419910
Status
test
Level
medium
Type
Detection
Created
2020-10-17
Modified
2022-11-28
Path
rules/linux/auditd/execve/lnx_auditd_susp_histfile_operations.yml
Raw Tags
attack.credential-accessattack.t1552.003
View on GitHub