Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve clipboard rules #763

Merged
merged 2 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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