Potentially Suspicious ASP.NET Compilation Via AspNetCompiler

Detects execution of "aspnet_compiler.exe" with potentially suspicious paths for compilation.

Sigma rule (View on GitHub)

 1title: Potentially Suspicious ASP.NET Compilation Via AspNetCompiler
 2id: 9f50fe98-fe5c-4a2d-86c7-fad7f63ed622 # Susp Paths
 3related:
 4    - id: 9ccba514-7cb6-4c5c-b377-700758f2f120 # SuspChild
 5      type: similar
 6    - id: 4c7f49ee-2638-43bb-b85b-ce676c30b260 # TMP File
 7      type: similar
 8    - id: a01b8329-5953-4f73-ae2d-aa01e1f35f00 # Exec
 9      type: similar
10status: test
11description: Detects execution of "aspnet_compiler.exe" with potentially suspicious paths for compilation.
12references:
13    - https://lolbas-project.github.io/lolbas/Binaries/Aspnet_Compiler/
14    - https://ijustwannared.team/2020/08/01/the-curious-case-of-aspnet_compiler-exe/
15author: Nasreddine Bencherchali (Nextron Systems)
16date: 2023/08/14
17tags:
18    - attack.defense_evasion
19    - attack.t1127
20logsource:
21    category: process_creation
22    product: windows
23detection:
24    selection:
25        Image|contains:
26            - 'C:\Windows\Microsoft.NET\Framework\'
27            - 'C:\Windows\Microsoft.NET\Framework64\'
28        Image|endswith: '\aspnet_compiler.exe'
29        CommandLine|contains:
30            # Note: add other potential suspicious paths
31            - '\Users\Public\'
32            - '\AppData\Local\Temp\'
33            - '\AppData\Local\Roaming\'
34            - ':\Temp\'
35            - ':\Windows\Temp\'
36            - ':\Windows\System32\Tasks\'
37            - ':\Windows\Tasks\'
38    condition: selection
39falsepositives:
40    - Unknown
41level: high

References

Related rules

to-top