Detection rules › Sigma

Add Potential Suspicious New Download Source To Winget

Severity
medium
Author
Nasreddine Bencherchali (Nextron Systems)
Source
upstream

Detects usage of winget to add new potentially suspicious download sources

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_cli

CommandLine|contains: 'add '
CommandLine|contains: 'source '

Stage 3: all of selection_source_direct_ip

CommandLine|re: '://\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'

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 9 (sigma 9)
  • source corpus 3 (sigma 3)
CommandLineregex_match
  • ://\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} corpus 2 (sigma 2)
Imageends_with
  • \winget.exe corpus 5 (sigma 5)
OriginalFileNameeq
  • winget.exe corpus 4 (sigma 4)