-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ rule: | |
- [email protected] | ||
scopes: | ||
static: function | ||
dynamic: unspecified # TODO upgrade manually, contains subscope | ||
dynamic: thread | ||
mbc: | ||
- Anti-Behavioral Analysis::Debugger Detection::SetHandleInformation [B0001.024] | ||
references: | ||
|
@@ -15,8 +15,13 @@ rule: | |
- al-khaser_x86.exe_:0x430D20 | ||
features: | ||
- and: | ||
- basic block: | ||
- and: | ||
- count(number(2)): 2 or more | ||
- api: SetHandleInformation | ||
- or: | ||
- basic block: | ||
- and: | ||
- count(number(2)): 2 or more | ||
- api: SetHandleInformation | ||
- call: | ||
- and: | ||
- count(number(2)): 2 or more | ||
- api: SetHandleInformation | ||
- api: CloseHandle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,33 @@ rule: | |
- [email protected] | ||
scopes: | ||
static: function | ||
dynamic: unspecified # TODO upgrade manually, contains subscope | ||
dynamic: thread | ||
mbc: | ||
- Anti-Behavioral Analysis::Debugger Detection [B0001] | ||
references: | ||
- https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/AntiDebug/ProcessJob.cpp | ||
examples: | ||
- al-khaser_x86.exe_:0x426730 | ||
features: | ||
- and: | ||
- match: contain loop | ||
- basic block: | ||
- and: | ||
- api: kernel32.QueryInformationJobObject | ||
- number: 0x3 = JobObjectBasicProcessIdList | ||
- basic block: | ||
- and: | ||
- api: kernel32.OpenProcess | ||
- number: 0x400 = PROCESS_QUERY_INFORMATION | ||
- or: | ||
# static | ||
- and: | ||
- match: contain loop | ||
- basic block: | ||
- and: | ||
- api: kernel32.QueryInformationJobObject | ||
- number: 0x3 = JobObjectBasicProcessIdList | ||
- basic block: | ||
- and: | ||
- api: kernel32.OpenProcess | ||
- number: 0x400 = PROCESS_QUERY_INFORMATION | ||
# dynamic | ||
- and: | ||
- call: | ||
- and: | ||
- api: kernel32.QueryInformationJobObject | ||
- number: 0x3 = JobObjectBasicProcessIdList | ||
- call: | ||
- and: | ||
- api: kernel32.OpenProcess | ||
- number: 0x400 = PROCESS_QUERY_INFORMATION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ rule: | |
- [email protected] | ||
scopes: | ||
static: function | ||
dynamic: unspecified # TODO upgrade manually, contains subscope | ||
dynamic: thread | ||
att&ck: | ||
- Defense Evasion::Debugger Evasion [T1622] | ||
mbc: | ||
|
@@ -26,6 +26,12 @@ rule: | |
- api: NtSetInformationThread | ||
- api: ZwSetInformationThread | ||
- number: 0x11 = ThreadHideFromDebugger | ||
- call: | ||
- and: | ||
- or: | ||
- api: NtSetInformationThread | ||
- api: ZwSetInformationThread | ||
- number: 0x11 = ThreadHideFromDebugger | ||
- and: | ||
- or: | ||
- string: "NtSetInformationThread" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ rule: | |
- [email protected] | ||
scopes: | ||
static: function | ||
dynamic: unspecified # TODO upgrade manually, contains subscope | ||
dynamic: thread | ||
att&ck: | ||
- Defense Evasion::Indicator Removal::Clear Windows Event Logs [T1070.001] | ||
examples: | ||
|
@@ -26,3 +26,6 @@ rule: | |
- basic block: | ||
- and: | ||
- string: /wevtutil(\.exe)?\s+(clear-log|cl)/i | ||
- call: | ||
- and: | ||
- string: /wevtutil(\.exe)?\s+(clear-log|cl)/i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ rule: | |
- [email protected] | ||
scopes: | ||
static: function | ||
dynamic: unspecified # TODO upgrade manually, contains subscope | ||
dynamic: thread | ||
att&ck: | ||
- Collection::Screen Capture [T1113] | ||
mbc: | ||
|
@@ -39,4 +39,7 @@ rule: | |
- and: | ||
- api: BitBlt | ||
- characteristic: tight loop | ||
- call: | ||
- and: | ||
- api: BitBlt | ||
- api: System.Drawing.Graphics::CopyFromScreen |