Runtime Application Self-Protection (RASP)

Security built into an application or its runtime that watches execution from inside and can block an attack as it happens, such as stopping injected input before it reaches a database query.

Runtime Application Self-Protection places security controls inside the running application, usually as an agent in its runtime or a linked library. Gartner introduced the term in 2012. Because it sees how each request is actually handled, RASP can tell when input is about to be used dangerously, such as an injected string reaching a database query, and can then block the call, end the session or raise an alert. Many products also offer a report-only mode.

RASP often uses the same instrumentation technique as IAST, but the two do different jobs: IAST runs during testing and reports flaws for developers to fix, while RASP runs in production and defends while the flaw is still present. Compared with a web application firewall, which inspects traffic before it reaches the application, RASP has the application’s own context, which can reduce false positives, at the cost of performance overhead and a dependency on language support. It does not remove the underlying defect, so it is an added layer, not a substitute for secure coding.

Exam relevance: a scenario describing protection that lives inside the running application and stops attacks in production is likely to point to RASP. Candidates are expected to separate it from IAST, which finds flaws during testing, and from a WAF, which filters traffic at the edge of the application.