Implementing runtime application self protection

From xalgorix/xalgorix · View interactive version

Implementing runtime application self protection is an AI agent skill from the GitHub repository xalgorix/xalgorix. Deploy Runtime Application Self-Protection (RASP) agents to detect and block attacks from within application runtime, covering OpenRASP integration, attack pattern detection, and security policy configuration for Java and Python web applications.

How to use this skill

Skill file

Implementing Runtime Application Self-Protection

Overview

Runtime Application Self-Protection (RASP) instruments application code at runtime to detect and block attacks by examining actual execution context rather than relying solely on network traffic patterns. Unlike WAFs that inspect HTTP requests externally, RASP agents intercept dangerous operations (SQL queries, file operations, command execution, deserialization) at the function level inside the application. Function-level context sharply reduces false positives relative to network-layer WAFs, but it does not eliminate them: blind spots remain for logic-layer attacks, un-instrumented code paths, and exotic parsers. Treat any RASP accuracy claim (including from vendors) as unverified until tested against your own traffic. This skill covers deploying OpenRASP for Java applications, configuring detection policies for OWASP Top 10 attacks, tuning alerting thresholds, and integrating RASP telemetry with SIEM platforms.

When to Use

Common Misconfigurations & Verification

RASP that is installed but left in monitor mode gives a false sense of protection — it logs attacks it never stops.

Verify with live payloads, not config review: in staging, send a real SQLi (' OR 1=1--), an OS command-injection (; id), and a path-traversal (../../etc/passwd) against an instrumented endpoint and confirm the request is blocked (HTTP 403/500) with a matching stack-trace alert in the SIEM. A logged-but-served request means the agent is still monitor-only.

Prerequisites

Steps

Step 1: Deploy RASP Agent

Install the RASP agent into the application server runtime using JVM agent attachment for Java or middleware hooks for Python.

Step 2: Configure Detection Policies

Define detection rules for SQL injection, command injection, SSRF, path traversal, XXE, and deserialization attacks with block or monitor actions.

Step 3: Tune and Baseline

Run the agent in monitor mode during normal operations to establish baseline behavior and tune policies to reduce false positives before switching to block mode.

Step 4: Integrate with SIEM

Forward RASP alerts to the SIEM for correlation with WAF, IDS, and authentication events to build comprehensive attack timelines.

Expected Output

JSON report containing RASP policy audit results, detected attack attempts with stack traces, blocked requests summary, and coverage assessment against OWASP Top 10.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.