Skip to content
pubscout

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.

$ flutter pub add flutter_rasp
Source repository

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.

Works with

Packages commonly used together with flutter_rasp: ones it builds on, ones built on it, and its own family.