Skip to content

Commit

Permalink
use number to support 32 and 64 bit, add support for dynamic analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz committed Nov 8, 2023
1 parent 1df337f commit b05c547
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions collection/screenshot/capture-screenshot-via-keybd-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rule:
- "@_re_fox"
scopes:
static: function
dynamic: unsupported # requires operand[0].number features
dynamic: thread
att&ck:
- Collection::Screen Capture [T1113]
mbc:
Expand All @@ -15,12 +15,22 @@ rule:
- 3f3bbcf8fd90bdcdcdc5494314ed4225:0x402D10
features:
- and:
- basic block:
- and:
- operand[0].number: 0x2C = VK_SNAPSHOT
- count(api(user32.keybd_event)): 2
- or:
- operand[0].number: 0x3 = KEYEVENTF_KEYUP|KEYEVENTF_EXTENDEDKEY
- operand[0].number: 0x2 = KEYEVENTF_KEYUP
- or:
# static
- basic block:
- and:
- number: 0x2C = VK_SNAPSHOT
- count(api(user32.keybd_event)): 2
- or:
- number: 0x3 = KEYEVENTF_KEYUP|KEYEVENTF_EXTENDEDKEY
- number: 0x2 = KEYEVENTF_KEYUP
# dynamic
- call:
- and:
- number: 0x2C = VK_SNAPSHOT
- count(api(user32.keybd_event)): 2
- or:
- number: 0x3 = KEYEVENTF_KEYUP|KEYEVENTF_EXTENDEDKEY
- number: 0x2 = KEYEVENTF_KEYUP
- match: read clipboard data
- match: open clipboard

0 comments on commit b05c547

Please sign in to comment.