Comments (3)
Debugging detection you've tried is disabled in debug mode to prevent false positives.
The easiest way to produce an incident (trigger local check and create a record in security report) is to install a release build on an emulator (i.e., Android Emulator, which comes with Android Studio). Both app and freeRASP must be in release mode. You can also use a rooted Android device/emulator, in which case you create an incident even in debug mode.
from free-rasp-flutter.
- How to make sure that freeRasp is in release mode?
- What's the usecase of
onDebuggerDetected
callback?
from free-rasp-flutter.
First question:
freeRASP copies mode of application:
- application in debug mode = freeRASP in dev mode
- application in release mode = freeRASP in release mode
You can override this behaviour - for example, to run release freeRASP in debug mode.
For Android (Android Studio):
In your Flutter app, navigate to External libraries -> Flutter plugins -> freerasp-1.0.0 -> android -> build.gradle
At the bottom of the file, you should see:
dependencies {
... some other imports ...
// Talsec Release
releaseImplementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:2.6.0-release'
// Talsec Debug
debugImplementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:2.6.0-dev'
}
You can edit this file (Android Studio might need confirmation, that you you are trying to override which does not belong to project) to import dev
and/or release
version as you need.
Keywords used to import libraries in gradle:
- implementation - import for any development stage (debug and release)
- debugImplementation - import for debug stage only
- releaseImplementation - import for release stage only
Be aware that you are overriding package from pubdev cache, so any other application using freerasp is depending on this cache and will be affected as well (if you compile it at the same time).
For iOS (xCode):
You can edit script so that different version is imported - by changing condition or just swapping directories.
Example (chaning condition):
cd "${SRCROOT}/.symlinks/plugins/freerasp/ios"
if [ "${CONFIGURATION}" = "Debug" ]; then
rm -rf ./TalsecRuntime.xcframework
ln -s ./Release/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
else
rm -rf ./TalsecRuntime.xcframework
ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
fi
Example (swapping directories):
cd "${SRCROOT}/.symlinks/plugins/freerasp/ios"
if [ "${CONFIGURATION}" = "Release" ]; then
rm -rf ./TalsecRuntime.xcframework
ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
else
rm -rf ./TalsecRuntime.xcframework
ln -s ./Release/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
fi
Second question:
onDebuggerDetected is called when debugger is detected e.g. debugger is attached to process of application. Attached debugger by someone other than developer cloud mean possible attack.
from free-rasp-flutter.
Related Issues (20)
- [Flutter project] APK file increased by 40% with FreeRASP package HOT 6
- Frida and App Integrity detection not working as expected HOT 8
- Android build fails since March 4th, 14 o'clock HOT 3
- bug: Typecast error (int to String) in debug mode HOT 4
- bug: PlatformException - dlopen failed: library "libsecurity.so" not found HOT 5
- Device Id Issue HOT 5
- Feature: get currentThreatStatus / await freeRasp.checksComplete.future HOT 2
- Freerasp causes error with SharedPreferences at start and application does not run in production HOT 7
- iOS App crash in the release mode after adding Freerasp:3.0.2 HOT 3
- Use of Outdated Vulnerable Component: [email protected] HOT 1
- FAILURE: Build failed with an exception. HOT 2
- Free-RASP-Flutter Security Delay Issue HOT 8
- When the app is minimized and resumed before the checks, they do not occur. HOT 5
- only Xcode 13 required to be able to build the application. HOT 4
- Crash on iOS device with 6.2.0 HOT 6
- onAppIntegrity after releasing playstore HOT 8
- Emulator Detection / Root detection on Android emulator HOT 3
- Which callback? HOT 3
- Android app not compilable with AGP >= 8.0.0 HOT 2
- Android Google Play Automatic integrity protection support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free-rasp-flutter.