tezvyn:

RASP: An Immune System for Your Application

AI-drafted, machine-checkedSource: Wikipedia: Runtime application self-protectionadvanced

Think of RASP as an application's immune system, using runtime instrumentation to block attacks from within. It provides real-time protection against threats that static analysis or network firewalls miss.

WHY IT EXISTS Static Application Security Testing (SAST) and network perimeter controls like firewalls have blind spots. Static analysis can't predict runtime behavior, and firewalls lack the application context to understand if a request is malicious or just unusual. RASP was created to close this gap by providing security from inside the running application itself.

THE MENTAL MODEL Think of RASP as an application's immune system. A firewall is like a guard at the gate checking IDs; it can only stop obvious threats based on surface-level information. RASP works like white blood cells inside the body, identifying and neutralizing threats that have already gotten inside by observing their behavior and how they interact with the application's internal functions.

HOW IT WORKS RASP instruments an application at runtime, hooking into its code as it executes. It monitors data flows, system calls, and library usage from within the process. When it detects a sequence of actions that matches a known attack pattern (like a SQL injection payload about to be sent to the database), it intervenes immediately. Possible actions include blocking the malicious operation, terminating the user's session, shutting down the application, or alerting security personnel.

WHEN TO USE IT Use RASP as a final layer of defense in high-security applications, especially against zero-day exploits that were unknown during development. It's also valuable for protecting legacy systems where the source code is difficult or risky to modify. It acts as a safety net for vulnerabilities that slip through code review and automated testing.

WHEN NOT TO USE IT Do not use RASP as a substitute for writing secure code. It is a last line of defense, not a license to ship vulnerable applications. Because it runs inside the application and inspects operations, it introduces performance overhead, which may be unacceptable for latency-sensitive services. It can also add complexity to debugging and troubleshooting.

ONE CANONICAL EXAMPLE An attacker submits a cleverly disguised SQL injection payload through a web form. A Web Application Firewall (WAF) misses it. The vulnerable application code begins to construct the malicious query. RASP, which has instrumented the database driver calls, sees the dangerous SQL command forming. Before the query is executed against the database, RASP blocks the operation, preventing the attack and logging the attempt.

Read the original → en.wikipedia.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.