{"id":"d7821ff1-4527-4e33-9f84-d0d57fa2fb66","title":"Print History File Contents","description":"Detects events in which someone prints the contents of history files to the commandline or redirects it to a file for reconnaissance","author":"Florian Roth (Nextron Systems)","status":"test","level":"medium","date":"2022-06-20","modified":"2022-09-15","tags":["attack.reconnaissance","attack.t1592.004"],"technique_ids":["T1592.004"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Legitimate administration activities"],"references":["https://github.com/sleventyeleven/linuxprivchecker/","https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1552.003/T1552.003.md"],"source_path":"rules/linux/process_creation/proc_creation_lnx_susp_history_recon.yml","source_sha256":"dff052310ecab7845981bf82c796ca44ae9aa07237b18cfa24091340ca033619","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_susp_history_recon.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Print History File Contents\nid: d7821ff1-4527-4e33-9f84-d0d57fa2fb66\nstatus: test\ndescription: Detects events in which someone prints the contents of history files to the commandline or redirects it to a file for reconnaissance\nreferences:\n    - https://github.com/sleventyeleven/linuxprivchecker/\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1552.003/T1552.003.md\nauthor: Florian Roth (Nextron Systems)\ndate: 2022-06-20\nmodified: 2022-09-15\ntags:\n    - attack.reconnaissance\n    - attack.t1592.004\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection:\n        Image|endswith:\n            - '/cat'\n            - '/head'\n            - '/tail'\n            - '/more'\n    selection_history:\n        - CommandLine|contains:\n              - '/.bash_history'\n              - '/.zsh_history'\n        - CommandLine|endswith:\n              - '_history'\n              - '.history'\n              - 'zhistory'\n    condition: all of selection*\nfalsepositives:\n    - Legitimate administration activities\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1592.004","id":"T1592.004","name":"Client Configurations","page":"techniques/enterprise/T1592.004/"}],"data_path":"data/detection-rules/d7821ff1-4527-4e33-9f84-d0d57fa2fb66.json","kind":"sigma"}
