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