{"id":"c15a46a0-07d4-4c87-b4b6-89207835a83b","title":"Add Potential Suspicious New Download Source To Winget","description":"Detects usage of winget to add new potentially suspicious download sources","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2023-04-17","modified":"2023-12-04","tags":["attack.execution","attack.t1059"],"technique_ids":["T1059"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://learn.microsoft.com/en-us/windows/package-manager/winget/source","https://github.com/nasbench/Misc-Research/tree/b9596e8109dcdb16ec353f316678927e507a5b8d/LOLBINs/Winget"],"source_path":"rules/windows/process_creation/proc_creation_win_winget_add_susp_custom_source.yml","source_sha256":"9f07f7851b4ac73d6b9a956cea7a9673bb31a438790c073d54fdd759bb2f0e68","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_winget_add_susp_custom_source.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Add Potential Suspicious New Download Source To Winget\nid: c15a46a0-07d4-4c87-b4b6-89207835a83b\nrelated:\n    - id: 05ebafc8-7aa2-4bcd-a269-2aec93f9e842\n      type: similar\n    - id: 81a0ecb5-0a41-4ba1-b2ba-c944eb92bfa2\n      type: similar\nstatus: test\ndescription: Detects usage of winget to add new potentially suspicious download sources\nreferences:\n    - https://learn.microsoft.com/en-us/windows/package-manager/winget/source\n    - https://github.com/nasbench/Misc-Research/tree/b9596e8109dcdb16ec353f316678927e507a5b8d/LOLBINs/Winget\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-04-17\nmodified: 2023-12-04\ntags:\n    - attack.execution\n    - attack.t1059\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\winget.exe'\n        - OriginalFileName: 'winget.exe'\n    selection_cli:\n        CommandLine|contains|all:\n            - 'source '\n            - 'add '\n    selection_source_direct_ip:\n        # This is a best effort. A better way to handle this is to limit it via whitelist. Check Group Policy for more details\n        CommandLine|re: '://\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059","id":"T1059","name":"Command and Scripting Interpreter","page":"techniques/enterprise/T1059/"}],"data_path":"data/detection-rules/c15a46a0-07d4-4c87-b4b6-89207835a83b.json","kind":"sigma"}
