Skip to content

Commit 3c0d9f8

Browse files
committed
add .NET Environment.TickCount timing anti-debug rule
1 parent 763a96f commit 3c0d9f8

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
rule:
2+
meta:
3+
name: check for time delay via Environment.TickCount in .NET
4+
namespace: anti-analysis/anti-debugging/debugger-detection
5+
authors:
6+
- Aryan Khandhadiya
7+
description: detects potential debugger checks by comparing Environment.TickCount values around Thread.Sleep calls.
8+
scopes:
9+
static: function
10+
dynamic: unsupported
11+
att&ck:
12+
- Defense Evasion::Virtualization/Sandbox Evasion [T1497]
13+
mbc:
14+
- Anti-Behavioral Analysis::Debugger Detection::Timing/Delay Check GetTickCount [B0001.032]
15+
references:
16+
- https://github.com/Outbuilt/.NET-Anti-Debug
17+
- https://github.com/mandiant/capa-rules/issues/596
18+
examples:
19+
- e842958188274d5ffee7fbeffb803b2e:0x6000001
20+
21+
features:
22+
- and:
23+
- format: dotnet
24+
- api: System.Threading.Thread::Sleep
25+
- count(property(System.Environment::TickCount)): 2 or more

0 commit comments

Comments
 (0)