PowerShell ScriptBlock Function Get-VMRemoteFXPhysicalVideoAdapter Module Creation

Flags PowerShell module content that defines Get-VMRemoteFXPhysicalVideoAdapter in a ScriptBlock, consistent with load-order abuse patterns.

FreeReviewedSigma · High · v2
Product
windows
Category
ps_script
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-05-09
Updated
2026-07-31
title: PowerShell ScriptBlock Function Get-VMRemoteFXPhysicalVideoAdapter Module Creation
id: 41e37bdc-a216-4104-a238-7acc4bd1aff8
related:
  - id: a6fc3c46-23b8-4996-9ea2-573f4c4d88c5
    type: similar
  - id: f65e22f9-819e-4f96-9c7b-498364ae7a25
    type: similar
  - id: 38a7625e-b2cb-485d-b83d-aff137d859f4
    type: similar
  - id: cacef8fc-9d3d-41f7-956d-455c6e881bc5
    type: derived
status: test
description: This rule identifies PowerShell activity where a script block begins with the definition of the function Get-VMRemoteFXPhysicalVideoAdapter, typically created as module contents. Such behavior may indicate preparation for abusing a vulnerable binary via module load-order hijacking. The detection relies on PowerShell script block text telemetry that captures the function definition at the start of the script block.
references:
  - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218/T1218.md
  - https://github.com/redcanaryco/AtomicTestHarnesses/blob/7e1e4da116801e3d6fcc6bedb207064577e40572/TestHarnesses/T1218_SignedBinaryProxyExecution/InvokeRemoteFXvGPUDisablementCommand.ps1
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_script/posh_ps_remotefxvgpudisablement_abuse.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2023-05-09
tags:
  - attack.stealth
  - attack.t1218
logsource:
  product: windows
  category: ps_script
  definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
  selection:
    ScriptBlockText|startswith: function Get-VMRemoteFXPhysicalVideoAdapter {
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1