Skip to content

Sink-aware RASP

Sink-aware RASP

Pro Feature - Requires a ContractShield Pro license.

Sink-aware RASP (Runtime Application Self-Protection) monitors dangerous operations like database queries and file system access, blocking attacks that bypass input validation.

What It Detects

SinkExample Attack
SQL queriesSQL injection reaching the database
NoSQL queriesMongoDB operator injection
File systemPath traversal reaching fs.readFile
Command executionShell injection reaching exec
Network requestsSSRF reaching http.request

Configuration

pro:
sinkRasp:
enabled: true
sql: true
nosql: true
filesystem: true
command: true
network: true

How It Works

RASP instruments your application at runtime, monitoring the actual operations performed - not just the input. Even if an attacker crafts input that passes validation, RASP blocks the dangerous operation.

Input Validation (ContractShield) → Your Code → RASP (blocks dangerous ops)