diff --git a/atomics/T1551.003/T1551.003.yaml b/atomics/T1551.003/T1551.003.yaml index 75a8bc8d..1c2be696 100644 --- a/atomics/T1551.003/T1551.003.yaml +++ b/atomics/T1551.003/T1551.003.yaml @@ -67,4 +67,17 @@ atomic_tests: unset HISTFILE export HISTFILESIZE=0 history -c + name: sh +- name: Clear and Disable Bash History Logging + description: | + Clears the history and disable bash history logging of the current shell and future shell sessions + supported_platforms: + - linux + - macos + executor: + command: | + set +o history + echo 'set +o history' >> ~/.bashrc + . ~/.bashrc + history -c name: sh \ No newline at end of file