Community detections
winget.exe
4 community detection rules look for suspicious winget.exe command lines, most often for Command and Scripting Interpreter (T1059). WETNav has no switch-by-switch reference for it yet, so the explainer reads its arguments generically and checks them against these rules.
What defenders look for
- HighAdd Insecure Download Source To Winget
Detects usage of winget to add a new insecure (http) download source. Winget will not allow the addition of insecure sources, hence this could indicate potential suspicious activity (or typos)
T1059by Nasreddine Bencherchali (Nextron Systems)
- MediumAdd New Download Source To Winget
Detects usage of winget to add new additional download sources
T1059by Nasreddine Bencherchali (Nextron Systems)
- MediumAdd Potential Suspicious New Download Source To Winget
Detects usage of winget to add new potentially suspicious download sources
T1059by Nasreddine Bencherchali (Nextron Systems)
- MediumInstall New Package Via Winget Local Manifest
Detects usage of winget to install applications via manifest file. Adversaries can abuse winget to download payloads remotely and execute them. The manifest option enables you to install an application by passing in a YAML file directly to the client. Winget can be used to download and install exe, msi or msix files later.
T1059by Sreeman, Florian Roth (Nextron Systems), frack113
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.
Questions
- Is winget.exe malicious?
- Not by itself. These rules flag specific ways of running it: 4 rules, 1 rated high or critical. Add Insecure Download Source To Winget; Add New Download Source To Winget; Add Potential Suspicious New Download Source To Winget. Judge a run by its command line, its parent process, the account and the host.
- What does winget.exe have to do with ATT&CK?
- The rules for it map to Command and Scripting Interpreter (T1059).
- How do I check a winget.exe command line?
- Paste it into the WETNav command explainer. It reads every argument, pulls out indicators and evaluates all 1,192 Sigma process creation rules in your browser, including these.