Update T1070.002.md (#3070)

This commit is contained in:
mthcht
2025-03-01 19:55:42 -03:00
committed by GitHub
parent 121413dd3d
commit 78923faf9b
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -4,7 +4,7 @@
Adversaries may clear system logs to hide evidence of an intrusion. macOS and Linux both keep track of system or user-initiated actions via system logs. The majority of native system logging is stored under the <code>/var/log/</code> directory. Subfolders in this directory categorize logs by their related functions, such as:(Citation: Linux Logs)
* <code>/var/log/messages:</code>: General and system-related messages
* <code>/var/log/messages</code>: General and system-related messages
* <code>/var/log/secure</code> or <code>/var/log/auth.log</code>: Authentication logs
* <code>/var/log/utmp</code> or <code>/var/log/wtmp</code>: Login records
* <code>/var/log/kern.log</code>: Kernel logs
@@ -304,7 +304,7 @@ The first sub-test truncates the log file to zero bytes via /dev/null and the se
```sh
cat /dev/null > /var/log/messages #truncating the file to zero bytes
cat /dev/zero > /var/lol/messages #log file filled with null bytes(zeros)
cat /dev/zero > /var/log/messages #log file filled with null bytes(zeros)
```
@@ -782,8 +782,13 @@ This test overwrites the Linux mail spool of a specified user. This technique wa
```bash
echo 0> /var/spool/mail/#{username}
```
or
```
: > /var/spool/mail/#{username}
```
(Using : as a no-op to truncate the file)
#### Dependencies: Run with `sh`!
+1 -1
View File
@@ -127,7 +127,7 @@ atomic_tests:
executor:
command: |
cat /dev/null > /var/log/messages #truncating the file to zero bytes
cat /dev/zero > /var/lol/messages #log file filled with null bytes(zeros)
cat /dev/zero > /var/log/messages #log file filled with null bytes(zeros)
name: sh
elevation_required: true