-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init add of Xamarin rules * Update and rename get-system-information-in-dotnet-on-android.yml to get-os-version-in-dotnet-on-android.yml
- Loading branch information
1 parent
533577f
commit 20d2218
Showing
8 changed files
with
78 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
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,10 @@ | ||
rule: | ||
meta: | ||
name: access camera in .NET on Android | ||
namespace: host-interaction/hardware/camera | ||
authors: | ||
- michael.hunhoff@mandiant.com | ||
scope: function | ||
features: | ||
- or: | ||
- api: Android.Hardware.Camera::Open |
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,13 @@ | ||
rule: | ||
meta: | ||
name: capture microphone audio in .NET on Android | ||
namespace: collection/microphone | ||
authors: | ||
- michael.hunhoff@mandiant.com | ||
scope: function | ||
features: | ||
- and: | ||
- api: Android.Media.AudioRecord::StartRecording | ||
- optional: | ||
- api: Android.Media.AudioRecord::Release | ||
- api: Android.Media.AudioRecord::Stop |
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,10 @@ | ||
rule: | ||
meta: | ||
name: capture screenshot in .NET on Android | ||
namespace: collection/screenshot | ||
authors: | ||
- michael.hunhoff@mandiant.com | ||
scope: function | ||
features: | ||
- or: | ||
- api: Android.Media.Projection.MediaProjectionManager::CreateScreenCaptureIntent |
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: check for incoming call in .NET on Android | ||
namespace: host-interaction | ||
authors: | ||
- michael.hunhoff@mandiant.com | ||
scope: function | ||
features: | ||
- and: | ||
- property/read: Android.Content.Intent::Action | ||
- string: "android.intent.action.PHONE_STATE" | ||
- property/read: Android.Telephony.TelephonyManager::ExtraStateRinging |
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,11 @@ | ||
rule: | ||
meta: | ||
name: check for outgoing call in .NET on Android | ||
namespace: host-interaction | ||
authors: | ||
- michael.hunhoff@mandiant.com | ||
scope: function | ||
features: | ||
- and: | ||
- property/read: Android.Content.Intent::Action | ||
- string: "android.intent.action.NEW_OUTGOING_CALL" |
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,10 @@ | ||
rule: | ||
meta: | ||
name: compiled with Xamarin | ||
namespace: compiler/xamarin | ||
authors: | ||
- michael.hunhoff@mandiant.com | ||
scope: file | ||
features: | ||
- or: | ||
- namespace: Xamarin.Essentials |
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,10 @@ | ||
rule: | ||
meta: | ||
name: get OS version in .NET on Android | ||
namespace: host-interaction/os/info | ||
authors: | ||
- michael.hunhoff@mandiant.com | ||
scope: function | ||
features: | ||
- and: | ||
- class: Android.OS.Build |