-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathExtract_MachineKey_SharePoint.yar
More file actions
51 lines (46 loc) · 2.04 KB
/
Extract_MachineKey_SharePoint.yar
File metadata and controls
51 lines (46 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import "dotnet"
rule Extract_MachineKey_SharePoint
{
meta:
id = "5rgC2cpznLmamBSQ9etlFh"
fingerprint = "v1_sha256_267976231782f0458c369172e8d922508daf670089ef3c91ad2570fe3600d6c4"
version = "1.0"
date = "2025-07-25"
modified = "2025-07-25"
status = "RELEASED"
sharing = "TLP:WHITE"
source = "BARTBLAZE"
author = "@bartblaze"
description = "Identifies webshell that extracts SharePoint's MachineKey configuration."
category = "TOOL"
tool = "WEBSHELL"
reference = "https://x.com/Gi7w0rm/status/1948027800591466773"
hash = "3461da3a2ddcced4a00f87dcd7650af48f97998a3ac9ca649d7ef3b7332bd997"
strings:
$xml = "<?xml" nocase
$httpcontext = "HttpContext" fullword
$validation = "MachineKeyValidation"
$mks_a = "MachineKeySection"
$mks_b = "System.Web.Configuration.MachineKeySection"
$str_a = "-------------------- .NET Properties --------------------"
$str_b = "Number of Logical Drives:"
$str_c = "List of Logical Drives:"
$str_d = "Computer Name:"
$str_e = "Full path of the system directory:"
$str_f = "Current Directory:"
$str_g = "Number of processors on this machine:"
$str_h = "Number of milliseconds since system start:"
$str_i = "Username of the user currently logged onto the operating system:"
$str_j = "Operating System Version:"
$str_k = ".NET Version:"
$str_l = "-------------------- Environment Variables --------------------"
condition:
not $xml at 0 and (
($httpcontext and $validation and any of ($mks_*)) or (any of ($mks_*, $validation) and 8 of ($str_*)) or
dotnet.guids[0]=="64c708ee-5f26-4eef-b474-651321a0e469" or
dotnet.guids[0]=="a253a3d9-f7e6-484e-b392-685b0b7a9c5d" or
dotnet.guids[0]=="ab423cff-901e-4882-9939-bf1b54eddffb" or
dotnet.guids[0]=="63e8005d-08a3-423d-ab6b-53cc05629d457" or
dotnet.guids[0]=="de37ec6b-4312-4073-81ea-903f0a340a11"
)
}