flutter_rasp
7.2.0, released 8 weeks ago by juandpt.dev
Runtime application self-protection for Flutter to detect root, emulators, debuggers, and SSL pinning.
What it does
Detects runtime tampering including root, jailbreak, emulators, debuggers, hooks, and VPNs on Android and iOS. Provides SSL certificate pinning, screen capture protection, and a built-in security reporting client.
AI-written summary of version 7.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to protect a high-security financial or enterprise app from rooted or modified devices.
- You require SSL certificate pinning to prevent man-in-the-middle attacks.
- You need to ship security telemetry and threat events back to your own backend.
Skip it when
- Your application does not handle sensitive user or enterprise data requiring anti-tampering measures.
- You are targeting platforms other than Android and iOS.
Strengths
- Detects 16 different threats across Android and iOS.
- Includes built-in SSL certificate pinning supporting local and remote certificates.
- Offers automatic or manual encrypted local queueing for security reports sent to your backend.
Weaknesses
- Requires platform-specific configuration and Swift Package Manager for iOS.
- Some detection mechanisms might cause false positives on heavily customized or developer devices.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires Android API 24+ and iOS 15.0+ with Swift Package Manager enabled. Configuration requires specifying team IDs, bundle IDs, and signing certificate hashes.
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await FlutterRasp.instance.initialize(
config: const RaspConfig(
policy: ThreatPolicy.high,
monitoringInterval: Duration(seconds: 10),
),
onThreatDetected: (threats) => debugPrint('$threats'),
);
runApp(const MyApp());
}Alternatives
Packages that do the same job and could replace flutter_rasp.
- root_checker_plus
Flutter plugin for Android root detection and iOS jailbreak detection.
67Compare - device_safety_info
Provides root, jailbreak, debugger, screenshot, VPN and other security checks for Flutter apps.
82Compare - flutter_jailbreak_detection_plus
Detect if an Android device is rooted or an iOS device is jailbroken.
78Compare - device_trust
Heuristic device integrity signals for root, jailbreak, emulator, Frida, and debugger detection.
67Compare
Works with
Packages commonly used together with flutter_rasp: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfaceflutter_rasp depends on itReusable base class for platform interfaces of Flutter federated plugins.
- flutter_secure_storageflutter_rasp depends on itSecure key-value storage using platform-specific secure mechanisms
- pointycastleflutter_rasp depends on itA Dart library providing a wide range of cryptographic algorithms and primitives.