Windows IIS connection string decryption via aspnet_regiis -pdf

Flags aspnet_regiis.exe runs that target IIS connectionStrings for decryption using -pdf.

FreeReviewedSigma · High · v2
Product
windows
Category
process_creation
Author
Tim Rauch, Elastic (idea) (SigmaHQ), DRL 1.1
Published
2022-09-28
Updated
2026-07-31
title: Windows IIS connection string decryption via aspnet_regiis -pdf
id: 10ed6362-ac56-4fa2-85ec-100928981b6d
status: test
description: This rule flags execution of aspnet_regiis.exe with arguments indicating connectionStrings decryption and PDF output. Attackers who gain IIS server access can use this functionality to extract or decrypt hardcoded connection strings, potentially including sensitive credentials. It relies on Windows process creation telemetry capturing the process image and command-line arguments.
references:
  - https://www.elastic.co/guide/en/security/current/microsoft-iis-connection-strings-decryption.html
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_iis_connection_strings_decryption.yml
author: Tim Rauch, Elastic (idea), Huntrule Team
date: 2022-09-28
modified: 2022-12-30
tags:
  - attack.credential-access
  - attack.t1003
logsource:
  category: process_creation
  product: windows
detection:
  selection_name:
    - Image|endswith: \aspnet_regiis.exe
    - OriginalFileName: aspnet_regiis.exe
  selection_args:
    CommandLine|contains|all:
      - connectionStrings
      - " -pdf"
  condition: all of selection*
falsepositives:
  - Unknown
level: high
license: DRL-1.1
related:
  - id: 97dbf6e2-e436-44d8-abee-4261b24d3e41
    type: derived