flutter_rasp 2.0.0
flutter_rasp: ^2.0.0 copied to clipboard
A comprehensive RASP (Runtime Application Self-Protection) plugin for Flutter. Detect root, jailbreak, emulators, debuggers, hooks, repackaging, untrusted installs, VPN, and more.
2.0.0 #
- Added
secureHardwareNotAvailablethreat — detects devices without hardware-backed keystore (TEE/StrongBox on Android, Secure Enclave on iOS) - Added
obfuscationIssuesthreat — detects unobfuscated app binaries with readable class/symbol names (Android) - Added
timeSpoofingthreat — detects disabled automatic time sync (Android) - Added
locationSpoofingthreat — detects mock location apps and legacy mock location setting (Android) - Added
multiInstancethreat — detects cloned/dual-app environments via user profile and cloner app scanning (Android) - Updated
ThreatPolicy.mediumto includeobfuscationIssues,multiInstance - Updated
ThreatPolicy.highto includeobfuscationIssues,multiInstance,secureHardwareNotAvailable,locationSpoofing
1.1.1 #
- Renamed
isTrustedInstall()→isUntrustedInstall()for semantic clarity - Added
dispose()method for resource cleanup - Added
Threat.activestatic set, eliminating repeated undefined filtering - Fixed
RaspResult.hashCodeto be order-independent - Fixed iOS
RepackagingDetectortreating TestFlight as App Store - Fixed socket timeouts — 200ms on both platforms (was blocking up to 225s on iOS)
- Fixed Android
DevicePasscodeDetectorto fail-closed on exception - Added
_ensureInitialized()guard to screen capture methods - Added thread safety:
NSLock(iOS),@Volatile(Android) on shared state - Extracted
AppEnvironmentsingleton (iOS) to deduplicate dylib/receipt/provision checks - Updated
ThreatPolicypresets to includetrustedInstallanddevicePasscode - Removed dead code: unused
validate()methods, imports, redundant filtering
1.1.0 #
- Breaking: Renamed
tampered→repackaging(isTampered()→isRepackaged(),onTampered→onRepackaging) - Added
trustedInstallthreat — detects untrusted installation sources - Improved iOS repackaging detection (injected dylibs, App Store fallback)
- All detectors now run on iOS simulator
1.0.1 #
- Added device passcode detection (Android & iOS)
- Restructured example app with MVVM architecture
- Added barrel files for cleaner imports
1.0.0 #
- Root/Jailbreak detection (Android & iOS)
- Emulator/Simulator detection (Android & iOS)
- Debugger detection (Android & iOS)
- Hook detection — Frida, Xposed, Cycript (Android & iOS)
- App integrity detection with signing certificate verification (Android & iOS)
- VPN connection detection (Android & iOS)
- Developer mode detection (Android)
- Screen capture protection (Android & iOS)
- Real-time threat monitoring with configurable intervals
- Individual on-demand threat checks
- Full security scan with
RaspResult ThreatPolicysystem with 4 preset levels and custom support- Native enforcement — critical threats terminate the app before Dart code reacts
ThreatCallbackfor per-threat callbacksattachListener()/detachListener()for runtime callback managementHashConverterutility for SHA-256 hex ↔ Base64 conversion