Skip to content

Android security checks for Frida and ADB detection

Notifications You must be signed in to change notification settings

SecFathy/RASP-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Android Security Check

Kotlin Android

Overview

Android Security Check is a robust Kotlin library designed to enhance the security of Android applications by detecting and mitigating common threats such as Frida injection and ADB (Android Debug Bridge) debugging. By integrating this library into your Android project, you can proactively monitor and protect your app against reverse engineering, debugging, and tampering attempts.

Features

  • ADB Debugging Detection

    • Checks if ADB debugging is enabled (USB or WiFi).
    • Detects if ADB is listening on default ports (e.g., 5555 for WiFi).
  • Frida Injection Detection

    • Scans process memory for Frida-related signatures.
    • Detects open ports commonly used by Frida (27042, 27043).
    • Identifies the presence of Frida binaries in common directories.
    • Checks for Frida-related packages installed on the device.
    • Detects injected Frida libraries within the app’s memory.
  • Comprehensive Monitoring

    • Periodically checks for security threats every 5 seconds.
    • Terminates the application if any suspicious activity is detected.

How to Load the Library

Follow these steps to load the Android Security Check class into your Android application:

1. Add the Class to Your Project

Ensure that the SecurityCheck class is included in your project directory. This class should be located in the appropriate package in your Android app.

2. Initialize the Security Check Class

In your MainActivity (or any other activity where you want to use the security checks), you can instantiate and run the security checks. Here’s how you can initialize it:

import com.example.securitycheck.SecurityCheck // Import the security check class

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        // Initialize the SecurityCheck
        val securityCheck = SecurityCheck(this)

        // Start the security monitoring process
        securityCheck.startMonitoring()
    }
}

About

Android security checks for Frida and ADB detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages