From d9dcbd3decf38cab5e755c8d29500e90dbabd7ea Mon Sep 17 00:00:00 2001 From: Brian Thacker Date: Mon, 28 Dec 2020 16:45:17 -0600 Subject: [PATCH] T1070.003 test7 cleanup (#1345) * Update T1070.003.yaml Added cleanup command to test "Clear and Disable Bash History Logging" * Update T1070.003.yaml corrected spacing * Update T1070.003.yaml changed echo set -o to a sed replace command --- atomics/T1070.003/T1070.003.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atomics/T1070.003/T1070.003.yaml b/atomics/T1070.003/T1070.003.yaml index 7b9db85d..d3328571 100644 --- a/atomics/T1070.003/T1070.003.yaml +++ b/atomics/T1070.003/T1070.003.yaml @@ -81,6 +81,10 @@ atomic_tests: echo 'set +o history' >> ~/.bashrc . ~/.bashrc history -c + cleanup_command: | + sed -i 's/set +o history//g' ~/.bashrc + . ~/.bashrc + set -o history name: sh - name: Use Space Before Command to Avoid Logging to History auto_generated_guid: 53b03a54-4529-4992-852d-a00b4b7215a6