Suspicious Invoke-WebRequest Execution With DirectIP (via process_creation)

This rule detects calls to PowerShell with Invoke-WebRequest cmdlet using direct IP access

SigmamediumWindowsv1
sigma
title: Suspicious Invoke-WebRequest Execution With DirectIP (via process_creation)
id: 1dc4e245-96f2-55a5-945d-ee35ead276b5
status: stable
description: This rule detects calls to PowerShell with Invoke-WebRequest cmdlet using direct IP access
references:
    - https://attack.mitre.org/techniques/T1105/
    - https://www.huntress.com/blog/critical-vulnerabilities-in-papercut-print-management-software
author: Huntrule Team
date: 2026-05-21
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell_ise.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'powershell_ise.EXE'
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_commands:
        CommandLine|contains:
            - 'curl '
            - 'Invoke-RestMethod'
            - 'Invoke-WebRequest'
            - ' irm '
            - 'iwr '
            - 'wget '
    selection_ip:
        CommandLine|contains:
            - '://1'
            - '://2'
            - '://3'
            - '://4'
            - '://5'
            - '://6'
            - '://7'
            - '://8'
            - '://9'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.