From c01fece41fcf928bdb3ae3b65aa2c4638e8ce102 Mon Sep 17 00:00:00 2001 From: Leo Verlod <96517806+Leomon5@users.noreply.github.com> Date: Thu, 24 Feb 2022 15:32:16 -0600 Subject: [PATCH] Adding T1090.003 Test 4 - Tor Proxy Usage on MacOS (#1789) This test is designed to launch the Tor proxy service on MacOS. --- atomics/T1090.003/T1090.003.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/atomics/T1090.003/T1090.003.yaml b/atomics/T1090.003/T1090.003.yaml index 32cf8dfb..b30d5d02 100644 --- a/atomics/T1090.003/T1090.003.yaml +++ b/atomics/T1090.003/T1090.003.yaml @@ -85,4 +85,25 @@ atomic_tests: sudo systemctl start tor cleanup_command: | sudo systemctl stop tor - name: sh + name: sh +- name: Tor Proxy Usage - MacOS + description: | + This test is designed to launch the tor proxy service, which is what is utilized in the background by the Tor Browser and other applications with add-ons in order to provide onion routing functionality. + Upon successful execution, the tor proxy service will be launched. + supported_platforms: + - macos + dependency_executor_name: sh + dependencies: + - description: | + Tor must be installed on the machine + prereq_command: | + if [ -x "$(command -v tor --version)" ]; then exit 0; else exit 1; fi + get_prereq_command: | + if [ ! -x "$(command -v brew --version)" ]; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh keystroke return)"; fi + brew install tor + executor: + command: | + osascript -e 'tell application "Terminal" to do script "tor"' + cleanup_command: | + killall tor > /dev/null 2>&1 + name: sh