What is RASP? Runtime application self-protection explained
RASP lets an app notice an attack while it runs and react by itself. What it means, what it looks for, and whether your app needs it.

RASP stands for runtime application self-protection. It is security that lives inside your app. While the app runs, it looks for signs of an attack. When it finds one, the app can react by itself. It can close, block a payment, or send you a report.
In this post, you will see:
- What RASP means, word by word.
- What it looks for on a user's phone.
- How it compares with a firewall and with code obfuscation.
- Where it stops, and whether your app needs it.
What does RASP mean?
Take the name apart and it explains itself.
- Runtime: it works while the app is running.
- Application: it lives inside the app, not on a server.
- Self-protection: the app guards itself, with no one watching.
Picture a shop. A lock protects it at night, when it is closed. RASP is more like staff on the floor during opening hours.
Why does an app need protection while it runs?
Your app does not stay on your servers. It runs on phones you have never seen. Some of those phones belong to people who want to change your app.
On their own phone, they control everything around it. They can pause your app or read its memory. They can change what a function sends back. They do this while the app runs, because that is when your code is loaded.
A website has a firewall in front of its server. A mobile app has no such wall. Its protection has to travel inside it.
What does RASP look for?
Each product is a little different. Most mobile RASP watches for the same warning signs.
| Warning sign | What it usually means |
|---|---|
| A debugger is attached | Someone paused the app to look inside |
| Functions are hooked | A tool is changing what the app does |
| The phone is rooted | The phone's safety rules are switched off |
| It runs on an emulator | A fake phone, often one of many |
| The app file was changed | Someone rebuilt it, often to unlock paid features |
One sign alone does not prove an attack. A developer may root their own test phone. So most RASP tools let you choose what happens next.
What happens when RASP finds something?
The usual responses go from gentle to strict:
- Report it. The app keeps working, and you get the details.
- Limit it. Payments and account changes switch off.
- Stop it. The app closes and will not start.
RASP vs a firewall and code obfuscation
RASP vs a firewall (WAF)
A web application firewall sits in front of a server. It blocks harmful traffic before it arrives.
RASP sits inside the app. It sees what happens on the phone itself. A firewall never sees that.
RASP vs code obfuscation
Code obfuscation makes your app file hard to read.
But code has to run to be useful. Running code sits in memory, and memory can be watched. RASP covers that moment.
In short, obfuscation protects the app at rest. RASP protects it while it runs. Each covers a gap the other leaves, so use both. If your app has its own backend, a firewall helps there too.
Can RASP stop every attack?
A skilled attacker with full control of a phone can beat any single check. Given enough time, they will. RASP makes that slower and more expensive. Most attackers then move on to an easier app.
So treat RASP as one layer. Pair it with obfuscation. Keep important checks on your server too. Then read the reports your app sends you.
Do I need RASP for my app?
Ask yourself three questions:
- Does your app handle money, accounts or private data?
- Could someone unlock your paid features for free?
- Would a modified copy hurt your business or your users?
If any answer is yes, runtime protection is worth a look. That includes apps built fast with AI tools. An attacker cares what your app is worth. How you built it does not matter to them.
If all three answers are no, start with the basics. Keep API keys and other secrets out of the app file. Store your signing key somewhere safe.
How do you add RASP to an app?
There are two common ways.
With an SDK, a developer adds a library to your code. Then they connect each check by hand.
With a post-build tool, you upload the finished app file. You get a protected version back. Your code does not change.
The second way suits teams without a security specialist. It also suits anyone who would rather not touch working code.
nultr works the second way. Upload your finished Android build and get the protected one back.
Quick answers
What does RASP stand for?
Runtime application self-protection.
Is RASP only for mobile apps?
No. It started on servers and web apps. On mobile it matters even more. There, your app runs on phones you do not control.
Does RASP slow my app down?
It adds a little work, and good RASP keeps it small. Test the protected build on real phones before each release.
Is RASP the same as antivirus?
No. Antivirus protects a whole phone for its owner. RASP protects one app for the company that made it.
Is RASP the same as app shielding?
App shielding is the wider term. It covers RASP plus file protection like obfuscation and tamper checks. Our app shielding guide has the full picture.
For the technical deep dive, read What is RASP? on our Learn pages.