Skip to content

Implements basic gRPC RASP protection#1

Merged
JVBotelho merged 3 commits intomasterfrom
develop
Dec 12, 2025
Merged

Implements basic gRPC RASP protection#1
JVBotelho merged 3 commits intomasterfrom
develop

Conversation

@JVBotelho
Copy link
Owner

@JVBotelho JVBotelho commented Dec 12, 2025

Implements a basic RASP (Runtime Application Self-Protection) solution for gRPC services using a regular expression-based detection engine. This initial implementation focuses on detecting and blocking common SQL injection patterns in gRPC requests. It also adds .gitignore entries for .NET, Python and OS specific files.

Key changes:

  • Adds a SecurityInterceptor that intercepts gRPC calls, inspects the request payload using a RegexDetectionEngine, and blocks requests containing suspicious patterns.

  • Includes a basic regular expression to detect SQL injection attempts.

  • Introduces RaspOptions to configure RASP behavior, such as enabling/disabling blocking and metrics.

  • Adds core RASP services and gRPC instrumentation to the DI container.

  • Includes unit tests

  • Adds documentation

  • Implements metrics and monitoring

  • Updates releaseNotes.md

- arch: establish composite solution structure with submodules
- core: add IRaspMetrics telemetry and RegexDetectionEngine
- grpc: implement SecurityInterceptor blocking 'OR 1=1' attacks
- red-team: add python exploit scripts for validation
- build: enforce strict mode via Directory.Build.props"
@JVBotelho JVBotelho merged commit 0d25986 into master Dec 12, 2025
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant