rasp library

Runtime protection only: root, jailbreak, hooks (Frida, Xposed), debugger, emulator, tampering and the other freeRASP checks.

import 'package:app_armor/rasp.dart';

ArmorRasp.threats.listen((threat) { /* block, log, … */ });
await ArmorRasp.start(const RaspConfig(
  androidPackageName: 'com.company.app',
  androidSigningCertHashes: ['<SHA-256 of signing key>'],
  iosBundleIds: ['com.company.app'],
  iosTeamId: 'ABCDE12345',
  platforms: {ArmorPlatform.android}, // optional: Android only
));

For the checks together with the blocked screen and the threat policy, use package:app_armor/app_armor.dart and AppArmor.run.

Classes

ArmorRasp
Runtime protection on its own: root, jailbreak, hooks, debugger, emulator, tampering and the other freeRASP checks, without the gate, the policy or the rest of AppArmor.
RaspConfig
Runtime protection (RASP), powered by freeRASP by Talsec.
RaspEngine
The runtime checks behind RaspConfig. Replaceable in tests.

Enums

ArmorPlatform
A platform AppArmor's protection can run on.
ArmorThreat
Every threat AppArmor can report.