Skip to content

Commit

Permalink
Improve rule of LdPreload.bc62
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknght committed Oct 5, 2024
1 parent 4d7f980 commit 47a4349
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions rules/rootkit.yar
Original file line number Diff line number Diff line change
Expand Up @@ -711,12 +711,23 @@ rule VnQE6mk_Generic {
rule LDPreload_bc62 {
// meta:
// url = "https://www.hybrid-analysis.com/sample/bc62adb9d444542a2206c4fc88f54f032228c480cd35d0be624923e168987a1c/5f5ac948b7b024659c4d9ca8"
/*
dynsym:
- fake_map
- is_file_hidden
*/
strings:
$ = "LD_PRELOH" fullword ascii
$ = "lib0pus.so" fullword ascii
$ = "is_file_hidden" fullword ascii
condition:
elf_dyn and 2 of them
elf_dyn and (
for 2 f_dyn in elf.dynsym: (
for any f_name in ("is_file_hidden", "fake_map"):
(
f_dyn.name == f_name and f_dyn.type == elf.STT_FUNC
)
) or 2 of them
)
}


Expand Down

0 comments on commit 47a4349

Please sign in to comment.