diff --git a/atomics/T1036.005/T1036.005.yaml b/atomics/T1036.005/T1036.005.yaml new file mode 100644 index 00000000..4c81dd2d --- /dev/null +++ b/atomics/T1036.005/T1036.005.yaml @@ -0,0 +1,29 @@ +--- +attack_technique: T1036.005 +display_name: 'Masquerading: Match Legitimate Name or Location' + +atomic_tests: +- name: Execute a process from a directory masquerading as the current parent directory. + description: | + Create and execute a process from a directory masquerading as the current parent directory (`...` instead of normal `..`) + + supported_platforms: + - macos + - linux + + input_arguments: + test_message: + description: Test message to echo out to the screen + type: String + default: Hello from the Atomic Red Team test T1036.005#1 + + executor: + name: sh + elevation_required: false + command: | + mkdir $HOME/... + cp $(which sh) $HOME/... + $HOME/.../sh -c "echo #{test_message}" + cleanup_command: | + rm -f $HOME/.../sh + rmdir $HOME/.../