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

add android OS where applicable #892

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ rule:
- 7351f8a40c5450557b24622417fc478d:0x405438
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- and:
- match: create or open file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ rule:
- and:
- or:
- match: enumerate files on Windows
- match: enumerate files on Linux
- characteristic: recursive call
4 changes: 3 additions & 1 deletion host-interaction/file-system/read/read-file-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ rule:
- 7351f8a40c5450557b24622417fc478d:0x4059AD
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- optional:
- match: create or open file
- or:
Expand Down
4 changes: 3 additions & 1 deletion host-interaction/file-system/write/write-file-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ rule:
- 7351f8a40c5450557b24622417fc478d:0x401E14
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: fputc
- api: fputs
Expand Down
8 changes: 6 additions & 2 deletions host-interaction/hardware/memory/get-memory-information.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ rule:
features:
- or:
- and:
- os: linux
- or:
- os: linux
- os: android
- match: host-interaction/file-system/read
- string: "/proc/meminfo"
- and:
- os: linux
- or:
- os: linux
- os: android
- api: system
- or:
- substring: "/proc/meminfo"
Expand Down
4 changes: 3 additions & 1 deletion host-interaction/mutex/create-semaphore-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ rule:
- 294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc:0x408de0
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- api: sem_init
4 changes: 3 additions & 1 deletion host-interaction/mutex/lock-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ rule:
- 7351f8a40c5450557b24622417fc478d:0x40858F
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- api: fcntl
- number: 1 = F_WRLCK
- number: 6 = F_SETLK
4 changes: 3 additions & 1 deletion host-interaction/mutex/lock-semaphore-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ rule:
- 294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc:0x408e40
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: sem_wait
- api: sem_timedwait
4 changes: 3 additions & 1 deletion host-interaction/mutex/unlock-semaphore-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ rule:
- 294b8db1f2702b60fb2e42fdc50c2cee6a5046112da9a5703a548a4fa50477bc:0x408e40
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- api: sem_post
4 changes: 3 additions & 1 deletion host-interaction/process/create/create-process-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ rule:
- 7351f8a40c5450557b24622417fc478d:0x40236D
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: execve
- api: execl
Expand Down
4 changes: 3 additions & 1 deletion host-interaction/session/get-current-user-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ rule:
- 7351f8a40c5450557b24622417fc478d:0x405438
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: geteuid
- api: getpwuid
Expand Down
4 changes: 3 additions & 1 deletion host-interaction/thread/create/create-thread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ rule:
- api: ntdll.ZwCreateThread
- api: ntdll.ZwCreateThreadEx
- and:
- os: linux
- or:
- os: linux
- os: android
- api: pthread_create
- and:
- api: System.Threading.Thread::Start
Expand Down
4 changes: 3 additions & 1 deletion lib/delay-execution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ rule:
- api: KeWaitForSingleObject
- api: KeDelayExecutionThread
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: sleep
- api: usleep
4 changes: 3 additions & 1 deletion lib/duplicate-stdin-and-stdout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ rule:
- 7351f8a40c5450557b24622417fc478d:0x40236D
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- api: dup2
- number: 0 = STDIN
- number: 1 = STDOUT
4 changes: 3 additions & 1 deletion linking/runtime-linking/link-many-functions-at-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ rule:
- count(api(kernel32.GetProcAddress)): 5 or more
- count(api(ntdll.LdrGetProcedureAddress)): 5 or more
- and:
- os: linux
- or:
- os: linux
- os: android
- match: link function at runtime on Linux
- or:
- count(api(dlsym)): 5 or more
Expand Down
4 changes: 3 additions & 1 deletion nursery/get-current-pid-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ rule:
dynamic: call
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: getpid
- api: getppid
4 changes: 3 additions & 1 deletion nursery/get-password-database-entry-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ rule:
dynamic: call
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: getpwuid
- api: getpwuid_r
Expand Down
4 changes: 3 additions & 1 deletion nursery/link-function-at-runtime-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ rule:
- Execution::Shared Modules [T1129]
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: dlopen
- api: dlmopen
Expand Down
4 changes: 3 additions & 1 deletion nursery/set-thread-name-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ rule:
dynamic: thread
features:
- and:
- os: linux
- or:
- os: linux
- os: android
- or:
- api: pthread_setname_np
- and:
Expand Down
Loading