Skip to content

Commit

Permalink
improve clipboard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz committed May 26, 2023
1 parent 11b9f29 commit aad0799
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
5 changes: 5 additions & 0 deletions host-interaction/clipboard/read-clipboard-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ rule:
scope: function
att&ck:
- Collection::Clipboard Data [T1115]
references:
- https://learn.microsoft.com/en-us/windows/win32/dataxchg/using-the-clipboard
examples:
- C91887D861D9BD4A5872249B641BC9F9:0x40156F
- 93dfc146f60bd796eb28d4e4f348f2e4:0x401050
features:
- and:
- optional:
- match: open clipboard
- api: kernel32.GlobalAlloc
- api: kernel32.GlobalLock
- api: kernel32.GlobalUnlock
- or:
- and:
- api: user32.GetClipboardData
Expand Down
17 changes: 0 additions & 17 deletions host-interaction/clipboard/replace-clipboard-data.yml

This file was deleted.

4 changes: 4 additions & 0 deletions host-interaction/clipboard/write-clipboard-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ rule:
scope: function
mbc:
- Impact::Clipboard Modification [E1510]
references:
- https://learn.microsoft.com/en-us/windows/win32/dataxchg/using-the-clipboard
examples:
- 6F99A2C8944CB02FF28C6F9CED59B161:0x403180
features:
- and:
- optional:
- match: open clipboard
- api: user32.EmptyClipboard
- api: System.Windows.Forms.Clipboard::Clear
- or:
- api: user32.SetClipboardData
- api: System.Windows.Forms.Clipboard::SetAudio
Expand Down

0 comments on commit aad0799

Please sign in to comment.