-
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.
- Loading branch information
Mike Hunhoff
committed
Sep 4, 2023
1 parent
a20c17d
commit 0f6fd76
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ rule: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
scope: basic block | ||
mbc: | ||
- Communication::Socket Communication::Create TCP Socket [C0001.011] | ||
|
@@ -21,4 +22,5 @@ rule: | |
- api: ws2_32.socket | ||
- api: ws2_32.WSASocket | ||
- api: socket | ||
- api: System.Net.Sockets.Socket::ctor | ||
- property/read: System.Net.Sockets.TcpClient::Client |
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: | ||
- [email protected] | ||
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: | ||
- [email protected] | ||
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: | ||
- [email protected] | ||
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: | ||
- [email protected] | ||
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: | ||
- [email protected] | ||
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: | ||
- [email protected] | ||
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 system information in .NET on Android | ||
namespace: host-interaction/os/info | ||
authors: | ||
- [email protected] | ||
scope: function | ||
features: | ||
- and: | ||
- class: Android.OS.Build |