Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions nursery/check-for-time-delay-in-dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
rule:
meta:
name: check for time delay in .NET
namespace: anti-analysis/anti-debugging
authors:
- "@aryanyk"
description: detects potential debugger checks by comparing Environment.TickCount values around Thread.Sleep calls.
scopes:
static: function
dynamic: unsupported # relies on static analysis of IL property access and timing patterns
att&ck:
- Defense Evasion::Virtualization/Sandbox Evasion [T1497]
mbc:
- Anti-Behavioral Analysis::Debugger Detection::Timing/Delay Check GetTickCount [B0001.032]
references:
- https://github.com/Outbuilt/.NET-Anti-Debug
examples:
- e842958188274d5ffee7fbeffb803b2e:0x6000001
features:
- and:
- format: dotnet
- api: System.Threading.Thread::Sleep
- count(property(System.Environment::TickCount)): 2 or more
Loading