Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rules
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
rules
Commits
309f0c62
Unverified
Commit
309f0c62
authored
May 31, 2018
by
unixfreaxjp
Committed by
GitHub
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create TOOLKIT_Mandibule.yar
version 1.0
parent
37b8ad95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
TOOLKIT_Mandibule.yar
TOOLKIT_Mandibule.yar
+57
-0
No files found.
TOOLKIT_Mandibule.yar
0 → 100644
View file @
309f0c62
/* Yara rule to detect ELF Linux process injector toolkit "mandibule" generic.
name: TOOLKIT_Mandibule.yar analyzed by unixfreaxjp.
This Yara ruleset is under the GNU-GPLv2 license (http://www.gnu.org/licenses/gpl-2.0.html)
and open to any user or organization, as long as you use it under this license.
*/
private rule is__str_mandibule_gen1 {
meta:
author = "unixfreaxjp"
date = "2018-05-31"
strings:
$str01 = "shared arguments too big" fullword nocase wide ascii
$str02 = "self inject pid: %" fullword nocase wide ascii
$str03 = "injected shellcode at 0x%lx" fullword nocase wide ascii
$str04 = "target pid: %d" fullword nocase wide ascii
$str05 = "mapping '%s' into memory at 0x%lx" fullword nocase wide ascii
$str06 = "shellcode injection addr: 0x%lx" fullword nocase wide ascii
$str07 = "loading elf at: 0x%llx" fullword nocase wide ascii
condition:
4 of them
}
private rule is__hex_top_mandibule {
meta:
author = "unixfreaxjp"
date = "2018-05-31"
strings:
$hex01 = { 48 8D 05 43 01 00 00 48 89 E7 FF D0 } // st
$hex02 = { 53 48 83 EC 50 48 89 7C 24 08 48 8B 44 24 08 } // mn
$hex03 = { 48 81 EC 18 02 00 00 89 7C 24 1C 48 89 74 } // pt
$hex04 = { 53 48 81 EC 70 01 01 00 48 89 7C 24 08 48 8D 44 24 20 48 05 00 00 } // ld
condition:
3 of them
}
private rule is__elf {
meta:
author = "@mmorenog,@yararules"
strings:
$header = { 7F 45 4C 46 }
condition:
$header at 0
}
rule TOOLKIT_Mandibule {
meta:
description = "Generic detection for ELF Linux process injector mandibule generic"
reference = "https://imgur.com/a/MuHSZtC"
author = "unixfreaxjp"
org = "MalwareMustDie"
date = "2018-05-31"
condition:
((is__str_mandibule_gen1) and (is__hex_top_mandibule))
and is__elf
and filesize < 30KB
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment