{"id":"c52a914f-3d8b-4b2a-bb75-b3991e75f8ba","title":"Binary Padding - Linux","description":"Adversaries may use binary padding to add junk data and change the on-disk representation of malware.\nThis rule detect using dd and truncate to add a junk data to file.\n","author":"Igor Fits, oscd.community","status":"test","level":"high","date":"2020-10-13","modified":"2023-05-03","tags":["attack.stealth","attack.t1027.001"],"technique_ids":["T1027.001"],"logsource":{"product":"linux","service":"auditd"},"falsepositives":["Unknown"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1027.001/T1027.001.md"],"source_path":"rules/linux/auditd/execve/lnx_auditd_binary_padding.yml","source_sha256":"b4bc9e39c6f8a27d59c7c7ceabd5cc404ef40db20badd32bfd7c78980c390674","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/auditd/execve/lnx_auditd_binary_padding.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Binary Padding - Linux\nid: c52a914f-3d8b-4b2a-bb75-b3991e75f8ba\nstatus: test\ndescription: |\n    Adversaries may use binary padding to add junk data and change the on-disk representation of malware.\n    This rule detect using dd and truncate to add a junk data to file.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1027.001/T1027.001.md\nauthor: Igor Fits, oscd.community\ndate: 2020-10-13\nmodified: 2023-05-03\ntags:\n    - attack.stealth\n    - attack.t1027.001\nlogsource:\n    product: linux\n    service: auditd\ndetection:\n    selection_execve:\n        type: 'EXECVE'\n    keywords_truncate:\n        '|all':\n            - 'truncate'\n            - '-s'\n    keywords_dd:\n        '|all':\n            - 'dd'\n            - 'if='\n    keywords_filter:\n        - 'of='\n    condition: selection_execve and (keywords_truncate or (keywords_dd and not keywords_filter))\nfalsepositives:\n    - Unknown\nlevel: high\nsimulation:\n    - type: atomic-red-team\n      name: Pad Binary to Change Hash - Linux/macOS dd\n      technique: T1027.001\n      atomic_guid: ffe2346c-abd5-4b45-a713-bf5f1ebd573a\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1027.001","id":"T1027.001","name":"Binary Padding","page":"techniques/enterprise/T1027.001/"}],"data_path":"data/detection-rules/c52a914f-3d8b-4b2a-bb75-b3991e75f8ba.json","kind":"sigma"}
