Detection rules › Sigma

Install New Package Via Winget Local Manifest

Severity
medium
Author
Sreeman, Florian Roth (Nextron Systems), frack113
Source
upstream

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.

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1059 Command and Scripting Interpreter

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_img

or:
Image|endswith: '\winget.exe'
OriginalFileName: winget.exe

Stage 2: all of selection_install_flag

or:
CommandLine|contains: ' add '
CommandLine|contains: install

Stage 3: all of selection_manifest_flag

or:
CommandLine|contains: --manifest
CommandLine|contains: '-m '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • add corpus 11 (sigma 11)
  • --manifest
  • -m corpus 2 (sigma 2)
  • install corpus 4 (sigma 4)
Imageends_with
  • \winget.exe corpus 5 (sigma 5)
OriginalFileNameeq
  • winget.exe corpus 4 (sigma 4)