-
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.
Add patch-antimalware-scan-interface-function.yml and updated patch-e… (
#798) * Add patch-antimalware-scan-interface-function.yml and updated patch-event-tracing-for-windows-function.yml --------- Co-authored-by: Moritz <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
anti-analysis/anti-av/patch-antimalware-scan-interface-function.yml
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
rule: | ||
meta: | ||
name: patch Antimalware Scan Interface function | ||
namespace: anti-analysis/anti-av | ||
authors: | ||
- [email protected] | ||
scope: function | ||
att&ck: | ||
- Defense Evasion::Impair Defenses::Disable or Modify Tools [T1562.001] | ||
mbc: | ||
- Defense Evasion::Disable or Evade Security Tools [F0004] | ||
references: | ||
- https://fluidattacks.com/blog/amsi-bypass/ | ||
examples: | ||
- edb92795c06a2bde47e652639327253a1148ee675ba2f0d1d9ac8690ef1820b1:0x14001126C | ||
features: | ||
- and: | ||
- match: change memory protection | ||
- or: | ||
- string: "AmsiScanBuffer" | ||
- string: "AmsiScanString" | ||
- optional: | ||
- match: write process memory | ||
- string: "amsi.dll" |
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] | ||
scope: function | ||
att&ck: | ||
- Defense Evasion::Impair Defenses::Indicator Blocking [T1562.006] | ||
- Defense Evasion::Impair Defenses::Disable or Modify Tools [T1562.001] | ||
mbc: | ||
- Defense Evasion::Disable or Evade Security Tools [F0004] | ||
references: | ||
|
@@ -16,14 +16,7 @@ rule: | |
- 15835b6dd703e69d22d4ab941ccd5f6e78c3abc22ae123366da5e950eaa62e2b:0x180001D70 | ||
features: | ||
- and: | ||
- match: link function at runtime on Windows | ||
- or: | ||
- api: kernel32.VirtualProtect | ||
- api: ntdll.NtProtectVirtualMemory # exported by only ntdll, not ntoskrnl | ||
- api: ZwProtectVirtualMemory # exported by both ntdll and ntoskrnl | ||
- string: "VirtualProtect" | ||
- string: "NtProtectVirtualMemory" | ||
- string: "ZwProtectVirtualMemory" | ||
- match: change memory protection | ||
- or: | ||
- string: "EventWrite" | ||
- string: "EtwEventWrite" | ||
|