{"id":"1edff897-9146-48d2-9066-52e8d8f80a2f","title":"Suspicious Invoke-WebRequest Execution With DirectIP","description":"Detects calls to PowerShell with Invoke-WebRequest cmdlet using direct IP access","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2023-04-21","modified":"","tags":["attack.command-and-control","attack.t1105"],"technique_ids":["T1105"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://www.huntress.com/blog/critical-vulnerabilities-in-papercut-print-management-software"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_invoke_webrequest_direct_ip.yml","source_sha256":"e5b0e5eb9b046dd6cf20ec1a186d2da54e6129038957c66305ee30ef689d8a57","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_invoke_webrequest_direct_ip.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Invoke-WebRequest Execution With DirectIP\nid: 1edff897-9146-48d2-9066-52e8d8f80a2f\nstatus: test\ndescription: Detects calls to PowerShell with Invoke-WebRequest cmdlet using direct IP access\nreferences:\n    - https://www.huntress.com/blog/critical-vulnerabilities-in-papercut-print-management-software\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-04-21\ntags:\n    - attack.command-and-control\n    - attack.t1105\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith:\n              - '\\powershell_ise.exe'\n              - '\\powershell.exe'\n              - '\\pwsh.exe'\n        - OriginalFileName:\n              - 'powershell_ise.EXE'\n              - 'PowerShell.EXE'\n              - 'pwsh.dll'\n    selection_commands:\n        CommandLine|contains:\n            # These are all aliases of Invoke-WebRequest\n            - 'curl '\n            - 'Invoke-RestMethod'\n            - 'Invoke-WebRequest'\n            - ' irm ' # Space before and after to avoid false positives with 'irm' as a substring\n            - 'iwr '\n            - 'wget '\n    selection_ip:\n        # In case of FP with local IPs add additional filters\n        CommandLine|contains:\n            - '://1'\n            - '://2'\n            - '://3'\n            - '://4'\n            - '://5'\n            - '://6'\n            - '://7'\n            - '://8'\n            - '://9'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1105","id":"T1105","name":"Ingress Tool Transfer","page":"techniques/enterprise/T1105/"}],"data_path":"data/detection-rules/1edff897-9146-48d2-9066-52e8d8f80a2f.json","kind":"sigma"}
