d4709021fb
* updating atomics count in README.md [ci skip] * wip * handle spaces in path * update readme * fix typo --------- Co-authored-by: publish bot <opensource@redcanary.com>
45 lines
2.4 KiB
YAML
45 lines
2.4 KiB
YAML
attack_technique: T1133
|
|
display_name: External Remote Services
|
|
|
|
atomic_tests:
|
|
- name: Running Chrome VPN Extensions via the Registry 2 vpn extension
|
|
auto_generated_guid: 4c8db261-a58b-42a6-a866-0a294deedde4
|
|
description: |
|
|
Running Chrome VPN Extensions via the Registry install 2 vpn extension, please see "T1133\src\list of vpn extension.txt" to view complete list
|
|
supported_platforms:
|
|
- windows
|
|
input_arguments:
|
|
chrome_url:
|
|
description: chrome installer download URL
|
|
type: url
|
|
default: https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BFD62DDBC-14C6-20BD-706F-C7744738E422%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup64.exe
|
|
extension_id:
|
|
description: chrome extension id
|
|
type: string
|
|
default: |
|
|
"fcfhplploccackoneaefokcmbjfbkenj", "fdcgdnkidjaadafnichfpabhfomcebme"
|
|
dependency_executor_name: powershell
|
|
dependencies:
|
|
- description: |
|
|
Chrome must be installed
|
|
prereq_command: 'if ((Test-Path "C:\Program Files\Google\Chrome\Application\chrome.exe") -Or (Test-Path "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")) {exit 0} else {exit 1}'
|
|
get_prereq_command: |
|
|
New-Item -Type Directory "PathToAtomicsFolder\..\ExternalPayloads\" -ErrorAction Ignore -Force | Out-Null
|
|
Invoke-WebRequest -OutFile "PathToAtomicsFolder\..\ExternalPayloads\ChromeStandaloneSetup64.exe" #{chrome_url}
|
|
Start-Process "PathToAtomicsFolder\..\ExternalPayloads\ChromeStandaloneSetup64.exe" /S
|
|
executor:
|
|
name: powershell
|
|
elevation_required: true
|
|
command: |
|
|
$extList = #{extension_id}
|
|
foreach ($extension in $extList) {
|
|
New-Item -Path HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension -Force
|
|
New-ItemProperty -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension" -Name "update_url" -Value "https://clients2.google.com/service/update2/crx" -PropertyType "String" -Force}
|
|
Start chrome
|
|
Start-Sleep -Seconds 30
|
|
Stop-Process -Name "chrome"
|
|
cleanup_command: |
|
|
$extList = #{extension_id}
|
|
foreach ($extension in $extList) {
|
|
Remove-Item -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension" -ErrorAction Ignore}
|