Verihubs Logo
HomeBlogRuntime Application Self-Protection for Mobile Apps
11 min read•Device Intelligence•

Runtime Application Self-Protection for Mobile Apps

Runtime Application Self-Protection for Mobile Apps

Runtime application self-protection (RASP) is a set of security checks built into an app that watch the app and its device while it runs, then react when something looks wrong. On mobile, RASP spots rooted phones, debuggers, hooking tools such as Frida, repackaged builds, emulators and intercepted traffic. It then logs, restricts or ends the session. It does not replace server-side controls.

What Runtime Application Self-Protection Does Inside a Mobile App

Unlike a server, a banking app runs on a phone the bank does not own. So the attacker controls the hardware, the operating system and every byte of the installed app. Network defences never see what happens on that device, which is why RASP moves part of the defence into the app itself.

In practice, a RASP layer works as a loop. First, it measures the environment and the app’s own code at launch and at sensitive moments. Then it compares what it finds with what a clean device and an untouched build should look like. Finally, it triggers a response that your security policy defines.

The boundary matters, though. RASP detects tampering with the client; it does not decide whether a customer is who they claim to be, and it does not stop a scammer who talks a real user into sending money. For that reason, RASP sits next to identity checks, fraud scoring and server-side validation, not in place of them.

Threats RASP Detects at Runtime and the Signals It Uses

In general, mobile RASP products cover the same core attack surface. The table maps each threat to what the attacker gains and the kind of runtime signal a check looks for.

ThreatWhat the attacker gainsTypical runtime signal
Root or jailbreakSystem-level access that defeats app sandboxingSu binaries, root managers, modified system partitions, hidden-root traces
Debugger attachedStep through logic and read secrets in memoryDebug flags, tracer process, timing anomalies
Hooking frameworks (Frida, Xposed)Rewrite function results while the app runsInjected libraries, open instrumentation ports, altered method tables
Tampering and repackagingA modified build with checks removedSignature or checksum mismatch, unexpected installer source
EmulatorScripted, scalable fake devicesVirtual hardware properties, missing sensors, emulator files
Overlay or screen captureFake screens on top of the app, or a remote viewerOverlay windows, abused accessibility services, active screen sharing
Man-in-the-middle (MITM)Read and alter traffic between app and serverUntrusted certificates, pinning failures, proxy settings

Each row is also a topic of its own. If you need the attacker’s playbook for any of them, our guides to rooted and jailbroken devices, app tampering and hooking and emulator detection go deeper. For selfie and document capture, the same tools also feed injection attacks against KYC.

How RASP Responds: From Silent Telemetry to Ending the Session

RASP response ladder from silent telemetry to session termination in a banking app

Detection, however, is only half the job. The other half is choosing a response that stops the attack without locking out good customers, and that choice belongs to your risk team rather than the SDK vendor.

  1. Report silently. Send the signal to your backend and change nothing for the user, which works well when you are still learning your baseline.
  2. Restrict features. Let the customer view balances but disable adding a payee, raising limits or exporting keys.
  3. Step up. Ask for a fresh selfie or another factor before a risky action goes through.
  4. End the session. Log the user out and invalidate tokens when the evidence is strong, such as an active hook on the payment screen.
  5. Close the app. Reserve this for clear tampering, because a crash-style exit frustrates users and tells attackers exactly which check fired.

The part teams often miss is where the decision happens. If a hooked app judges its own state, the attacker can simply hook the verdict. So the stronger pattern sends raw signals to the server, lets the server decide, and only then tells the app what to do.

RASP vs WAF vs App Shielding vs MDM

RASP compared with a web application firewall, app shielding and mobile device management

Buyers often hear these four terms in the same meeting, but they protect different things. The quickest way to separate them is to ask where each one runs and whose device it trusts.

ControlWhere it runsMain jobBlind spot
RASPInside the app, on the user’s deviceDetect and react to a hostile device or modified app at runtimeCan itself become a target for bypass
Web application firewall (WAF)In front of your serversFilter malicious HTTP requests such as injection payloadsNever sees the phone, so a clean-looking request from a hooked app passes
App shieldingApplied to the app binary at build timeObfuscate code and encrypt assets so reverse engineering costs moreStatic by nature; it slows analysis but does not report live attacks
Mobile device management (MDM)On devices the organisation enrolsEnforce policy on staff or corporate phonesCustomers will not enrol their personal phones

Because many vendors bundle shielding and RASP together, the overlap in marketing copy is no surprise. Platform attestation, such as Google’s Play Integrity API or Apple’s App Attest, adds a further signal from the operating system. Still, none of these removes the need for the backend to validate every sensitive request on its own terms.

OWASP MASVS-RESILIENCE as the Reference for RASP Controls

The OWASP Mobile Application Security Verification Standard (MASVS) gives security teams a shared vocabulary here. Its resilience category, MASVS-RESILIENCE, covers reverse engineering and tampering, and it names RASP alongside obfuscation, anti-debugging and anti-tampering as defence-in-depth measures.

MASVS-RESILIENCE controlWhat it asks forMatching RASP checks
RESILIENCE-1The app validates the integrity of the platformRoot, jailbreak and emulator detection
RESILIENCE-2The app implements anti-tampering mechanismsSignature and checksum checks, repackaging detection
RESILIENCE-3The app implements anti-static analysis mechanismsObfuscation, usually from app shielding rather than RASP
RESILIENCE-4The app implements anti-dynamic analysis techniquesDebugger, hooking and instrumentation detection

OWASP is careful about scope, however. According to the MASVS source text, “the absence of these measures does not in itself constitute a vulnerability”, and every app must still meet the rest of the standard. The same section warns that platform-specific checks can exclude legitimate users on less common Android builds, so treat it as a design input, not a checkbox.

Regulatory Drivers for RASP in Banking and Payments

In fact, few regulators write the word “RASP” into a rule. Instead, they describe outcomes that a runtime layer delivers, and Singapore offers the clearest example.

According to the Monetary Authority of Singapore’s Technology Risk Management Guidelines issued in January 2021, rooted or jailbroken phones should not perform financial transactions in a bank’s app unless the app runs in a protected sandbox or container. The same guidelines expect institutions to detect and block such devices when they provision soft tokens. Their mobile application security annex also lists anti-hooking or anti-tampering mechanisms, integrity checks with obfuscation, and certificate pinning.

Payments also add a second driver. The PCI MPoC standard covers PIN and contactless acceptance on ordinary phones and tablets, and independent PCI-recognised labs evaluate each solution. PCI notes that MPoC solutions rely on attestation and monitoring systems to detect attacks, which makes them runtime protection in all but name.

If your regulator sits elsewhere, map its mobile banking expectations to MASVS-RESILIENCE first. After that, audit conversations usually get shorter.

How to Evaluate a RASP SDK Before You Buy

At first, feature lists look alike across vendors. The differences show up when you test them on your own app, your own users’ devices and your own fraud data.

Question for the vendorWhy it mattersRed flag
How much does the SDK add to cold start, app size and battery?Slow launches hurt conversion, especially in onboardingNo figures measured on mid-range Android phones
What is the false-positive rate on custom ROMs and older OS versions?Otherwise you block good customers on unusual devicesOnly lab results, no field data
Can we see raw signals, or only a pass/fail verdict?Your fraud engine needs detail to weigh evidenceA single boolean with no reason codes
How do detection rules update?Hooking and root-hiding tools change often, so static rules age fastUpdates only ship with a new app release
Who decides the response, the app or our server?A hooked app can fake its own verdictDecisions made only on the client
How do you test bypass resistance?Attackers eventually target every checkNo red-team results or bypass disclosure process

Telemetry Into the Fraud Engine

The most useful RASP signal is one your fraud detection system can combine with account age, transaction value and identity results. For example, a rooted phone on a five-year-old account paying a known biller is a different case from a rooted phone on a new account adding its first payee. Ask how signals arrive (webhook, API or log stream) and whether they link to a stable device ID.

Pilot on Real Traffic First

Run the SDK in report-only mode for two to four weeks before any blocking. Then compare flagged sessions with confirmed fraud cases, tune the thresholds and only switch on restrictions where the signal actually predicts loss.

Where Verihubs Fits in a Runtime Protection Stack

Verihubs covers two runtime moments that matter most to banks and fintechs: identity capture and the wider app session. Neither replaces code obfuscation from a shielding tool, so plan to run them alongside one.

For onboarding and high-risk confirmations, VeriSecure runs liveness and deepfake checks in one SDK and adds SDK-level emulator, root, Frida, injection and MITM detection. That protects the selfie step, which attackers target with virtual cameras and hooked capture code.

For the rest of the journey, device risk scoring at app launch checks root and jailbreak, emulators, hooking frameworks, debug mode, repackaged builds, payload tampering, intercepted SDK connections, screen sharing and active calls. It returns a risk score to your backend, so your rules can block high-risk devices, route medium risk to review and let trusted users through.

Frequently Asked Questions

What is runtime application self-protection?

Runtime application self-protection, or RASP, is security code inside an app that monitors the app and its device while it runs. It detects threats such as root, hooking, tampering, emulators and MITM, then reports, restricts or ends the session.

Is RASP the same as app shielding?

No. App shielding hardens the binary at build time with obfuscation and encryption, while RASP detects and reacts to attacks during execution. Many vendors sell both together because each covers the other’s gap.

Does RASP replace a web application firewall?

No. A WAF filters requests at your servers and never sees the phone, while RASP sees the phone but not your server traffic as a whole. Banks usually run both, plus server-side validation.

Can attackers bypass RASP?

Yes, given enough time, because the attacker controls the device. Server-side decisions, frequent rule updates, obfuscated checks and layered signals raise the cost of a bypass so most attacks stop being worth it.

Does OWASP MASVS require RASP?

Not strictly. MASVS-RESILIENCE lists RASP among defence-in-depth measures and says their absence alone is not a vulnerability. Apps that handle money or sensitive data usually adopt these controls based on their threat model.

Runtime Application Self-Protection Works Best as a Risk Signal

Teams that treat RASP as a kill switch tend to swing between two failures: blocking loyal customers on odd devices, or trusting a verdict that an attacker has already hooked. The teams that get value from it treat each detection as evidence. They send it to the server, weigh it against identity and transaction context, and respond in proportion. That approach also satisfies regulators, who care about outcomes on compromised devices rather than the brand of the SDK.

Planning runtime protection for onboarding or payments? Map your runtime and capture risks with Verihubs.

facebooktwitterlinkedinwhatsapp
View Blog