IIS Native-Code Module Command Line Installation

 Original Source: [Sigma source]
Title: IIS Native-Code Module Command Line Installation
Status: test
Description:Detects suspicious IIS native-code module installations via command line
References:
  -https://researchcenter.paloaltonetworks.com/2018/01/unit42-oilrig-uses-rgdoor-iis-backdoor-targets-middle-east/
  -https://www.microsoft.com/security/blog/2022/07/26/malicious-iis-extensions-quietly-open-persistent-backdoors-into-servers/
Author: Florian Roth (Nextron Systems)
Date: 2019-12-11
modified:2024-03-13
Tags:
  • -'attack.persistence'
  • -'attack.t1505.003'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_img:
Image|endswith:'\appcmd.exe' OriginalFileName:'appcmd.exe'   selection_cli:
    CommandLine|contains|all:
      -'install'
      -'module'

    CommandLine|contains|windash: '-name:'
  filter_iis_setup:
    ParentImage: 'C:\Windows\System32\inetsrv\iissetup.exe'
  condition:all of selection_* and not 1 of filter_*
Falsepositives:
  -Unknown as it may vary from organisation to organisation how admins use to install IIS modules
Level: medium