Skip to content

Commit

Permalink
Merge pull request #905 from jtothej/taskbar
Browse files Browse the repository at this point in the history
Add hide-graphical-window-from-taskbar.yml rule
  • Loading branch information
mr-tz authored Jun 4, 2024
2 parents 4c2dec5 + 4e50e50 commit 6cef518
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
rule:
meta:
name: hide graphical window from taskbar
namespace: host-interaction/gui/window/hide
authors:
- [email protected]
scopes:
static: basic block
dynamic: call
att&ck:
- Defense Evasion::Hide Artifacts::Hidden Window [T1564.003]
references:
- https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowlongptrw
- https://learn.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles
- https://dreamlayers.blogspot.com/2010/12/hiding-window-from-taskbar-using.html
examples:
- 79252f58d486aee8c08a8a7ebd36ae11ab5798b289e7f88e71eacf8637c340cc:0x180004B22
features:
- and:
- api: GetWindowLongPtr
- api: SetWindowLongPtr
- number: 0x0FFFFFFEC = GWL_EXSTYLE (-20)
- or:
- instruction:
- mnemonic: or
- operand[1].number: 0x80 = WS_EX_TOOLWINDOW
- instruction:
- mnemonic: bts
- operand[1].number: 0x7

0 comments on commit 6cef518

Please sign in to comment.