Windows MsiInstaller installs remote MSI from web URLs (EventID 1040/1042)

Flags Windows Installer MsiInstaller events that indicate downloading and installing an MSI from a URL.

FreeReviewedSigma · Medium · v2
Product
windows
Service
application
Author
Stamatis Chatzimangou (SigmaHQ), DRL 1.1
Published
2022-10-23
Updated
2026-07-31
title: Windows MsiInstaller installs remote MSI from web URLs (EventID 1040/1042)
id: 829f2f28-e82a-46d1-b285-76ba5e3d5593
status: test
description: This rule flags Windows Installer activity where the MsiInstaller provider is involved and the event contains a URL-like string ("//"). Remote MSI installations can be used to deliver and execute additional payloads or perform stealthy software deployment. It relies on Windows application logs with EventID 1040 or 1042 and the presence of web-style URI content in the recorded event data.
references:
  - https://twitter.com/_st0pp3r_/status/1583922009842802689
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/application/msiinstaller/win_msi_install_from_web.yml
author: Stamatis Chatzimangou, Huntrule Team
date: 2022-10-23
tags:
  - attack.stealth
  - attack.t1218
  - attack.t1218.007
logsource:
  product: windows
  service: application
detection:
  selection:
    Provider_Name: MsiInstaller
    EventID:
      - 1040
      - 1042
    Data|contains: ://
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: 5594e67a-7f92-4a04-b65d-1a42fd824a60
    type: derived