Skip to content

Commit

Permalink
update linux/android rules and reduce fps for intel-specific rules (#927
Browse files Browse the repository at this point in the history
)

* android: add / update rules

* intel: match intel archs to avoid fps on others
  • Loading branch information
mike-hunhoff authored Aug 16, 2024
1 parent 10ca24c commit 5b8c8a6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ rule:
- or:
- api: DbgPrint
- api: kernel32.OutputDebugString
- and:
- os: android
- api: __android_log_print
3 changes: 3 additions & 0 deletions lib/calculate-modulo-256-via-x86-assembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ rule:
# and ecx, 800000FFh
# and ecx, 0FFh
- and:
- or:
- arch: i386
- arch: amd64
- mnemonic: and
- or:
- number: 0x800000FF
Expand Down
19 changes: 19 additions & 0 deletions nursery/delete-file-on-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
rule:
meta:
name: delete file on Linux
namespace: host-interaction/file-system/delete
authors:
- mehunhoff@google.com
scopes:
static: basic block
dynamic: call
mbc:
- File System::Delete File [C0047]
features:
- and:
- or:
- os: linux
- os: android
- or:
- api: unlink
- api: unlinkat

0 comments on commit 5b8c8a6

Please sign in to comment.