mirror of
https://github.com/vee1e/capa-rules.git
synced 2026-09-01 10:58:40 +00:00
Add .NET AoT & TouchSocket linking detection (#948)
* Add initial two rules Signed-off-by: Still Hsu <dev@stillu.cc> * Swap sample for a smaller custom compiled one Signed-off-by: Still Hsu <dev@stillu.cc> --------- Signed-off-by: Still Hsu <dev@stillu.cc>
This commit is contained in:
parent
f3bb093ab0
commit
16492182a3
2 changed files with 50 additions and 0 deletions
27
linking/static/touchsocket/linked-against-touchsocket.yml
Normal file
27
linking/static/touchsocket/linked-against-touchsocket.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
rule:
|
||||
meta:
|
||||
name: linked against TouchSocket
|
||||
namespace: linking/static/touchsocket
|
||||
authors:
|
||||
- still@teamt5.org
|
||||
description: TouchSocket is a .NET networking library, supporting a wide variety of protocol types such as WebSocket, RPC, DMTP, Modbus, and more.
|
||||
scopes:
|
||||
static: file
|
||||
dynamic: file
|
||||
references:
|
||||
- https://github.com/RRQM/TouchSocket/
|
||||
- https://www.trendmicro.com/en_us/research/24/i/earth-preta-new-malware-and-strategies.html
|
||||
examples:
|
||||
- 684cc28e6a7fbd12f23dbc563f06306555ebb870bd727ad60839d4ff26e7f3b2
|
||||
features:
|
||||
- and:
|
||||
- or:
|
||||
- match: compiled to the .NET platform
|
||||
- match: compiled with .NET AoT
|
||||
- 3 or more:
|
||||
- substring: "TouchSocket"
|
||||
- substring: "TouchSocket.Core"
|
||||
- substring: "TouchSocket.Dmtp"
|
||||
- substring: "TouchSocket.Modbus"
|
||||
- substring: "BinarySerialize"
|
||||
- substring: "BinaryDeserialize"
|
||||
23
runtime/dotnet/compiled-with-dotnet-aot.yml
Normal file
23
runtime/dotnet/compiled-with-dotnet-aot.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
rule:
|
||||
meta:
|
||||
name: compiled with .NET AoT
|
||||
namespace: runtime/dotnet
|
||||
authors:
|
||||
- still@teamt5.org
|
||||
description: compiled using .NET Ahead-of-Time (AoT) compilation
|
||||
scopes:
|
||||
static: file
|
||||
dynamic: file
|
||||
references:
|
||||
- https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/
|
||||
examples:
|
||||
- 684cc28e6a7fbd12f23dbc563f06306555ebb870bd727ad60839d4ff26e7f3b2
|
||||
features:
|
||||
- and:
|
||||
- substring: ".NETCoreApp,Version="
|
||||
- 2 or more:
|
||||
- substring: "AotAnalysis4IL"
|
||||
- substring: "https://aka.ms/nativeaot-compatibilit"
|
||||
- substring: "removed by the AOT compiler"
|
||||
- substring: "\\native\\"
|
||||
description: During compilation, the output by default contains the path "native," which is then in turn included in the PDB path.
|
||||
Loading…
Add table
Add a link
Reference in a new issue