-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #931 from mandiant/new/20240920
rules: dotnet: adding new .NET rules
- Loading branch information
Showing
6 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
rule: | ||
meta: | ||
name: access unmanaged COM objects in .NET | ||
namespace: host-interaction/com | ||
authors: | ||
- [email protected] | ||
scopes: | ||
static: function | ||
dynamic: unsupported # requires .NET API feature | ||
features: | ||
- or: | ||
- api: System.Runtime.InteropServices.Marshal::GetTypeFromCLSID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rule: | ||
meta: | ||
name: implement UI automation client in .NET | ||
namespace: host-interaction/ui/automation | ||
authors: | ||
- [email protected] | ||
scopes: | ||
static: file | ||
dynamic: unsupported # requires .NET Namespace feature | ||
references: | ||
- https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation?view=windowsdesktop-8.0 | ||
features: | ||
- or: | ||
- namespace: System.Windows.Automation |
14 changes: 14 additions & 0 deletions
14
nursery/interact-with-shortcut-via-iwshshortcut-in-dotnet.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rule: | ||
meta: | ||
name: interact with shortcut via IWshShortcut in .NET | ||
namespace: host-interaction/shortcut | ||
authors: | ||
- [email protected] | ||
scopes: | ||
static: function | ||
dynamic: unsupported # requires .NET Class feature | ||
references: | ||
- https://stackoverflow.com/questions/4897655/create-a-shortcut-on-desktop | ||
features: | ||
- or: | ||
- class: IWshRuntimeLibrary.IWshShortcut |
14 changes: 14 additions & 0 deletions
14
nursery/interact-with-windows-scripting-host-in-dotnet.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rule: | ||
meta: | ||
name: interact with Windows Scripting Host in .NET | ||
namespace: host-interaction/wsh | ||
authors: | ||
- [email protected] | ||
scopes: | ||
static: file | ||
dynamic: unsupported # requires .NET Namespace feature | ||
references: | ||
- https://stackoverflow.com/questions/4897655/create-a-shortcut-on-desktop | ||
features: | ||
- or: | ||
- namespace: IWshRuntimeLibrary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rule: | ||
meta: | ||
name: use .NET library SimpleJSON | ||
namespace: data-manipulation/json | ||
authors: | ||
- [email protected] | ||
scopes: | ||
static: file | ||
dynamic: unsupported # requires .NET Class feature | ||
references: | ||
- https://github.com/mhallin/SimpleJSON.NET | ||
features: | ||
- or: | ||
- class: Json.SimpleJson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rule: | ||
meta: | ||
name: use .NET library websocket-sharp | ||
namespace: communication/websocket | ||
authors: | ||
- [email protected] | ||
scopes: | ||
static: file | ||
dynamic: unsupported # requires .NET Namespace feature | ||
references: | ||
- https://github.com/sta/websocket-sharp | ||
features: | ||
- or: | ||
- namespace: WebSocketSharp |