Stealth

T1564.003: Hidden Window

Adversaries may use hidden windows to conceal malicious activity from the plain sight of users. In some cases, windows that would typically be displayed when an application carries out an operation ca...

T1564.003 · Sub-technique ·3 platforms ·18 groups

Description

Adversaries may use hidden windows to conceal malicious activity from the plain sight of users. In some cases, windows that would typically be displayed when an application carries out an operation can be hidden. This may be utilized by system administrators to avoid disrupting user work environments when carrying out administrative tasks.

Adversaries may abuse these functionalities to hide otherwise visible windows from users so as not to alert the user to adversary activity on the system.(Citation: Antiquated Mac Malware)

On macOS, the configurations for how applications run are listed in property list (plist) files. One of the tags in these files can be apple.awt.UIElement, which allows for Java applications to prevent the application's icon from appearing in the Dock. A common use for this is when applications run in the system tray, but don't also want to show up in the Dock.

Similarly, on Windows there are a variety of features in scripting languages, such as PowerShell, Jscript, and Visual Basic to make windows hidden. One example of this is powershell.exe -WindowStyle Hidden.(Citation: PowerShell About 2019)

The Windows Registry can also be edited to hide application windows from the current user. For example, by setting the WindowPosition subkey in the HKEY_CURRENT_USER\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_PowerShell.exe Registry key to a maximum value, PowerShell windows will open off screen and be hidden.(Citation: Cantoris Computing)

In addition, Windows supports the CreateDesktop() API that can create a hidden desktop window with its own corresponding explorer.exe process.(Citation: Hidden VNC)(Citation: Anatomy of an hVNC Attack) All applications running on the hidden desktop window, such as a hidden VNC (hVNC) session,(Citation: Hidden VNC) will be invisible to other desktops windows.

Adversaries may also leverage cmd.exe(Citation: Cybereason - Hidden Malicious Remote Access) as a parent process, and then utilize a LOLBin, such as DeviceCredentialDeployment.exe,(Citation: LOLBAS Project GitHub Device Cred Dep)(Citation: SecureList BlueNoroff Device Cred Dev) to hide windows.

Platforms

LinuxmacOSWindows

Mitigations (2)

Limit Software InstallationM1033

Restrict the installation of software that may be abused to create hidden desktops, such as hVNC, to user groups that require it.

Execution PreventionM1038

Limit or restrict program execution using anti-virus software. On MacOS, allowlist programs that are allowed to have the plist tag. All other programs should be considered suspicious.

Threat Groups (18)

IDGroupContext
G0022APT3[APT3](https://attack.mitre.org/groups/G0022) has been known to use <code>-WindowStyle Hidden</code> to conceal [PowerShell](https://attack.mitre.org/...
G0094Kimsuky[Kimsuky](https://attack.mitre.org/groups/G0094) has used an information gathering module that will hide an AV software window from the victim.(Citati...
G0078Gorgon Group[Gorgon Group](https://attack.mitre.org/groups/G0078) has used <code>-W Hidden</code> to conceal [PowerShell](https://attack.mitre.org/techniques/T105...
G0050APT32[APT32](https://attack.mitre.org/groups/G0050) has used the WindowStyle parameter to conceal [PowerShell](https://attack.mitre.org/techniques/T1059/00...
G0047Gamaredon Group[Gamaredon Group](https://attack.mitre.org/groups/G0047) has used <code>hidcon</code> to run batch files in a hidden console window.(Citation: Unit 42...
G0046FIN7[FIN7](https://attack.mitre.org/groups/G0046) has used .txt files to conceal PowerShell commands.(Citation: Gemini_FIN7_Jan2022)
G0126Higaisa[Higaisa](https://attack.mitre.org/groups/G0126) used a payload that creates a hidden window.(Citation: PTSecurity Higaisa 2020)
G0079DarkHydrus[DarkHydrus](https://attack.mitre.org/groups/G0079) has used <code>-WindowStyle Hidden</code> to conceal [PowerShell](https://attack.mitre.org/techniq...
G1051Medusa Group[Medusa Group](https://attack.mitre.org/groups/G1051) has utilized the `ShowWindow` API function to hide the current window.(Citation: Security Scorec...
G0009Deep Panda[Deep Panda](https://attack.mitre.org/groups/G0009) has used <code>-w hidden</code> to conceal [PowerShell](https://attack.mitre.org/techniques/T1059/...
G1022ToddyCat[ToddyCat](https://attack.mitre.org/groups/G1022) has hidden malicious scripts using `powershell.exe -windowstyle hidden`. (Citation: Kaspersky ToddyC...
G0007APT28[APT28](https://attack.mitre.org/groups/G0007) has used the WindowStyle parameter to conceal [PowerShell](https://attack.mitre.org/techniques/T1059/00...
G0099APT-C-36[APT-C-36](https://attack.mitre.org/groups/G0099) has set the ShowWindow property of the Win32_ProcessStartup object to zero to hide PowerShell execut...
G0052CopyKittens[CopyKittens](https://attack.mitre.org/groups/G0052) has used <code>-w hidden</code> and <code>-windowstyle hidden</code> to conceal [PowerShell](http...
G1055VOID MANTICORE[VOID MANTICORE](https://attack.mitre.org/groups/G1055) has utilized PowerShell scripts that run without notifying the user of its execution to includ...
G0059Magic Hound[Magic Hound](https://attack.mitre.org/groups/G0059) malware has a function to determine whether the C2 server wishes to execute the newly dropped fil...
G0073APT19[APT19](https://attack.mitre.org/groups/G0073) used <code>-W Hidden</code> to conceal [PowerShell](https://attack.mitre.org/techniques/T1059/001) wind...
G0133Nomadic Octopus[Nomadic Octopus](https://attack.mitre.org/groups/G0133) executed PowerShell in a hidden window.(Citation: ESET Nomadic Octopus 2018)

Associated Software (43)

IDNameTypeContext
S0266TrickBotMalwareTrickBot has used a hidden VNC (hVNC) window to monitor the victim and collect information stealthily.(Citation: Emotet Deploys TrickBot)
S0686QuietSieveMalware[QuietSieve](https://attack.mitre.org/software/S0686) has the ability to execute payloads in a hidden window.(Citation: Microsoft Actinium February 20...
S1053AvosLockerMalware[AvosLocker](https://attack.mitre.org/software/S1053) has hidden its console window by using the `ShowWindow` API function.(Citation: Malwarebytes Avo...
S0466WindTailMalware[WindTail](https://attack.mitre.org/software/S0466) can instruct the OS to execute an application without a dock icon or menu.(Citation: objective-see...
S0386UrsnifMalware[Ursnif](https://attack.mitre.org/software/S0386) droppers have used COM properties to execute malware in hidden windows.(Citation: Bromium Ursnif Mar...
S9034Tsundere BotnetMalware[Tsundere Botnet](https://attack.mitre.org/software/S9034)’s MSI installer has used `-WindowStyle Hidden` to hide [Tsundere Botnet](https://attack.mit...
S1245InvisibleFerretMalware[InvisibleFerret](https://attack.mitre.org/software/S1245) has executed Python instances of the browser module “.n2/bow” utilizing the `CREATE_NO_WIND...
S1089SharpDiscoMalware[SharpDisco](https://attack.mitre.org/software/S1089) can hide windows using `ProcessWindowStyle.Hidden`.(Citation: MoustachedBouncer ESET August 2023...
S0491StrongPityMalware[StrongPity](https://attack.mitre.org/software/S0491) has the ability to hide the console window for its document search module from the user.(Citatio...
S1244Medusa RansomwareMalware[Medusa Ransomware](https://attack.mitre.org/software/S1244) has utilized the `ShowWindow` function to hide current window.(Citation: Security Scoreca...
S1226BOOKWORMMalware[BOOKWORM](https://attack.mitre.org/software/S1226) has created a hidden window when conducting key logging and clipboard theft through its KBLogger.d...
S0037HAMMERTOSSMalware[HAMMERTOSS](https://attack.mitre.org/software/S0037) has used <code>-WindowStyle hidden</code> to conceal [PowerShell](https://attack.mitre.org/techn...
S1152IMAPLoaderMalware[IMAPLoader](https://attack.mitre.org/software/S1152) hides the Windows Console window created by its execution by directly importing the `kernel32.dl...
S9001SystemBCMalware[SystemBC](https://attack.mitre.org/software/S9001) has utilized the `-WindowStyle Hidden -ep bypass -file `to conceal PowerShell windows.(Citation: S...
S1237CANONSTAGERMalware[CANONSTAGER](https://attack.mitre.org/software/S1237) has created a new window with a height and width of zero to remain hidden on the screen.(Citati...
S1086Snip3Malware[Snip3](https://attack.mitre.org/software/S1086) can execute PowerShell scripts in a hidden window.(Citation: Morphisec Snip3 May 2021)
S0260InvisiMoleMalware[InvisiMole](https://attack.mitre.org/software/S0260) has executed legitimate tools in hidden windows.(Citation: ESET InvisiMole June 2020)
S0441PowerShowerMalware[PowerShower](https://attack.mitre.org/software/S0441) has added a registry key so future powershell.exe instances are spawned with coordinates for a ...
S0387KeyBoyMalware[KeyBoy](https://attack.mitre.org/software/S0387) uses <code>-w Hidden</code> to conceal a [PowerShell](https://attack.mitre.org/techniques/T1059/001)...
S0013PlugXMalware[PlugX](https://attack.mitre.org/software/S0013) has the ability to execute a command on a hidden desktop.(Citation: Eset PlugX Korplug Mustang Panda ...

References

Frequently Asked Questions

What is T1564.003 (Hidden Window)?

T1564.003 is a MITRE ATT&CK technique named 'Hidden Window'. It belongs to the Stealth tactic(s). Adversaries may use hidden windows to conceal malicious activity from the plain sight of users. In some cases, windows that would typically be displayed when an application carries out an operation ca...

How can T1564.003 be detected?

Detection of T1564.003 (Hidden Window) typically involves monitoring system logs, network traffic, and endpoint telemetry. Use SIEM rules, EDR solutions, and behavioral analytics to identify suspicious activity associated with this technique.

What mitigations exist for T1564.003?

There are 2 documented mitigations for T1564.003. Key mitigations include: Limit Software Installation, Execution Prevention.

Which threat groups use T1564.003?

Known threat groups using T1564.003 include: APT3, Kimsuky, Gorgon Group, APT32, Gamaredon Group, FIN7, Higaisa, DarkHydrus.