Windows Package Manager tool Located at: C:\Users\user\AppData\Local\Microsoft\WindowsApps\winget.exe.
winget winget Sandbox: execFile · Timeout: 30s
security.execution.command network.transfer.download security.defense-evasion.bypass Outputs
process.output Command execution output
network_trafficprocess_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | medium |
| Disk I/O | low |
Downloads a file from the web address specified in .yml file and executes it on the system. Local manifest setting must be enabled in winget for it to work: `winget settings --enable LocalManifestFiles` (Download and execute an arbitrary file from the internet)
winget.exe install --manifest {PATH:.yml} Download and install any software from the Microsoft Store using its name or Store ID, even if the Microsoft Store App itself is blocked on the machine. For example, use "Sysinternals Suite" or `9p7knl5rwt25` for obtaining ProcDump, PsExec via the Sysinternals Suite. Note: a Microsoft account is required for this. (Download and install software from Microsoft Store, even if Microsoft Store App is blocked)
winget.exe install --accept-package-agreements -s msstore {name or ID} Download and install any software from the Microsoft Store using its name or Store ID, even if the Microsoft Store App itself is blocked on the machine, and even if AppLocker is active on the machine. For example, use "Sysinternals Suite" or `9p7knl5rwt25` for obtaining ProcDump, PsExec via the Sysinternals Suite. Note: a Microsoft account is required for this. (Download and install software from Microsoft Store, even if Microsoft Store App is blocked, and AppLocker is activated on the machine)
winget.exe install --accept-package-agreements -s msstore {name or ID} | Type | Rule / Indicator |
|---|---|
| ioc | winget.exe spawned with local manifest file |
| ioc | Sysmon Event ID 1 - Process Creation |
| other | https://saulpanders.github.io/2022/01/02/New-Year-New-LOLBAS.html |
| sigma | https://github.com/SigmaHQ/sigma/blob/683b63f8184b93c9564c4310d10c571cbe367e1e/rules/windows/process_creation/proc_creation_win_winget_local_install_via_manifest.yml |
winget is a Windows LOLBin. Windows Package Manager tool Located at: C:\Users\user\AppData\Local\Microsoft\WindowsApps\winget.exe.