Imperva - Possible command injection
| Id | 6214f187-5840-4cf7-a174-0cf9a72bfd29 |
| Rulename | Imperva - Possible command injection |
| Description | Detects requests with commands in URI. |
| Severity | High |
| Tactics | InitialAccess |
| Techniques | T1190 T1133 |
| Required data connectors | ImpervaWAFCloudAPI |
| Kind | Scheduled |
| Query frequency | 10m |
| Query period | 10m |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ImpervaCloudWAF/Analytic Rules/ImpervaCommandInUri.yaml |
| Version | 1.0.1 |
| Arm template | 6214f187-5840-4cf7-a174-0cf9a72bfd29.json |
let cmd_lst = dynamic(['%2fetc%2fpasswd', '%2fetc%2fshadow', 'ping', 'whoami', 'phpinfo', '%2fbin%2fbash', 'curl', 'exec(', 'wget', 'python', 'gcc' , 'uname', 'systeminfo', 'rout', 'hostname', 'ifconfig']);
ImpervaWAFCloud
| where QueryString has_any (cmd_lst)
| extend IPCustomEntity = SrcIpAddr
description: |
'Detects requests with commands in URI.'
version: 1.0.1
triggerThreshold: 0
tactics:
- InitialAccess
queryPeriod: 10m
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ImpervaCloudWAF/Analytic Rules/ImpervaCommandInUri.yaml
triggerOperator: gt
status: Available
id: 6214f187-5840-4cf7-a174-0cf9a72bfd29
name: Imperva - Possible command injection
queryFrequency: 10m
severity: High
kind: Scheduled
entityMappings:
- fieldMappings:
- columnName: IPCustomEntity
identifier: Address
entityType: IP
relevantTechniques:
- T1190
- T1133
query: |
let cmd_lst = dynamic(['%2fetc%2fpasswd', '%2fetc%2fshadow', 'ping', 'whoami', 'phpinfo', '%2fbin%2fbash', 'curl', 'exec(', 'wget', 'python', 'gcc' , 'uname', 'systeminfo', 'rout', 'hostname', 'ifconfig']);
ImpervaWAFCloud
| where QueryString has_any (cmd_lst)
| extend IPCustomEntity = SrcIpAddr
requiredDataConnectors:
- dataTypes:
- ImpervaWAFCloud
connectorId: ImpervaWAFCloudAPI