New features
This new version of libddwaf
only introduces one new feature, alongside other fixes and behind-the-scenes changes and improvements.
Exploit prevention: Command injection detection
A new operator cmdi_detector
has been introduced for detecting and blocking command injections. This heuristics builds on the shell injection heuristic in order to detect injections on non-shell APIs, including indirect shell injections. This new operator is part of the exploit prevention feature, so it is meant to be used in combination with targeted instrumentation.
The following example rule takes advantage of the new operator to identify injections originating from request parameters:
- id: rsp-930-005
name: CMDi Exploit detection
tags:
type: cmdi
category: exploit_detection
module: rasp
conditions:
- parameters:
resource:
- address: server.sys.exec.cmd
params:
- address: server.request.query
- address: server.request.body
- address: server.request.path_params
- address: grpc.server.request.message
- address: graphql.server.all_resolvers
- address: graphql.server.resolver
operator: cmdi_detector
Release changelog
Changes
Fixes
- Disable a few patterns that caused false positives (#355)