01 / TRADECRAFT
3 examplesCommand reference
Execute1
EXAMPLE 01T1105
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`
COMMAND
winget.exe install --manifest {PATH:.yml}Download1
EXAMPLE 01T1105
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.
COMMAND
winget.exe install --accept-package-agreements -s msstore {name or ID}AWL Bypass1
EXAMPLE 01T1105
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.
COMMAND
winget.exe install --accept-package-agreements -s msstore {name or ID}02 / ON DISK
Known paths
C:\Users\user\AppData\Local\Microsoft\WindowsApps\winget.exe03 / DEFENSIVE INTELLIGENCE
2 resourcesDetection & indicators
- AnalysisNew Year New LOLBASsaulpanders.github.io
- Sigmaproc_creation_win_winget_local_install_via_manifest.ymlgithub.com
Indicators & detection notes
- IOC
winget.exe spawned with local manifest file
- IOC
Sysmon Event ID 1 - Process Creation
REFERENCE IMPLEMENTATIONS
Code samples
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Paul@saulpanders
Konrad 'unrooted' Klawikowski
Fredrik H. Brathen