Files
blue-team-tools/rules/linux/auditd/lnx_auditd_binary_padding.yml
T

35 lines
985 B
YAML
Raw Normal View History

2022-11-27 19:19:27 +01:00
title: Binary Padding - Linux
2020-10-19 16:39:41 +03:00
id: c52a914f-3d8b-4b2a-bb75-b3991e75f8ba
2021-11-27 11:33:14 +01:00
status: test
2022-10-25 08:53:44 +02:00
description: |
2023-01-06 16:35:34 +01:00
Adversaries may use binary padding to add junk data and change the on-disk representation of malware.
This rule detect using dd and truncate to add a junk data to file.
2020-10-19 16:39:41 +03:00
references:
2022-10-25 08:53:44 +02:00
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1027.001/T1027.001.md
2023-05-03 01:09:55 +02:00
author: Igor Fits, oscd.community
date: 2020-10-13
modified: 2023-05-03
2022-10-25 08:53:44 +02:00
tags:
- attack.defense-evasion
2022-10-25 08:53:44 +02:00
- attack.t1027.001
2020-10-19 16:39:41 +03:00
logsource:
2022-10-25 08:53:44 +02:00
product: linux
service: auditd
2020-10-19 16:39:41 +03:00
detection:
2023-01-06 16:35:34 +01:00
selection_execve:
2022-10-25 08:53:44 +02:00
type: 'EXECVE'
2023-01-06 16:35:34 +01:00
keywords_truncate:
'|all':
- 'truncate'
- '-s'
2023-01-06 16:35:34 +01:00
keywords_dd:
'|all':
- 'dd'
- 'if='
2023-01-06 16:35:34 +01:00
keywords_filter:
2022-10-25 08:53:44 +02:00
- 'of='
condition: selection_execve and (keywords_truncate or (keywords_dd and not keywords_filter))
2020-10-19 16:39:41 +03:00
falsepositives:
2023-01-06 16:35:34 +01:00
- Unknown
2020-10-19 16:39:41 +03:00
level: high