Detects setting of a new registry value related to BgInfo configuration, which can be abused to execute custom VBScript via “BgInfo.exe”
title: New BgInfo.EXE Custom VBScript Registry Configuration
id: 992dd79f-dde8-4bb0-9085-6350ba97cfb3
related:
- id: cd277474-5c52-4423-a52b-ac2d7969902f
type: similar
status: test
description: Detects setting of a new registry value related to BgInfo configuration, which can be abused to execute custom VBScript via "BgInfo.exe"
references:
- Internal Research
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-16
tags:
- attack.persistence
- attack.defense-impairment
- attack.t1112
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|contains: '\Software\Winternals\BGInfo\UserFields\'
Details|startswith: '4' # WMI
condition: selection
falsepositives:
- Legitimate VBScript
level: medium
imRegistry
| where RegistryKey endswith "\\Software\\Winternals\\BGInfo\\UserFields*" and RegistryValueData startswith "4"
DeviceRegistryEvents
| where RegistryKey endswith "\\Software\\Winternals\\BGInfo\\UserFields*" and RegistryValueData startswith "4"
| Sentinel Table | Notes |
|---|---|
imRegistry | Ensure this data connector is enabled |