1. Protecting at runtime #
Seeing the attack from the inside.
The principle #
Good to know : Dynatrace SaaS, third-generation platform (Grail, AppEngine). The apps mentioned are in the app launcher; some depend on the licence (Dynatrace Platform Subscription).
A web application firewall (WAF) guesses a request's intent from the outside. Dynatrace runtime protection (Runtime Application Protection) observes what the request does inside the application: if user input changes the structure of an SQL query or system command, the attack is confirmed. The Threats & Exploits app presents these detections.
Attacks detected #
| Attack | Example |
|---|---|
| SQL injection | ' OR 1=1 -- changing the executed query |
| Command injection | ; cat /etc/passwd appended to a system command |
| JNDI injection | ${jndi:ldap://…} string (Log4Shell type) |
| SSRF | the application calls an internal address supplied by the attacker |
Good to know : Supported technologies (Java, .NET, Node.js…) and attack types depend on the OneAgent version: check the compatibility matrix.
2. Monitor, then block #
Two modes.
Modes #
| Mode | Effect | When |
|---|---|---|
| Monitor | the attack is recorded, the request continues | start, validating detections |
| Block | the dangerous call is interrupted (exception in the application), the attack is recorded | after a period without false positives |
| Off | no detection | deliberately excluded processes |
- Set the mode per attack type, and possibly per process.
- Add targeted exceptions (source address of an authorized scanner, specific entry point) rather than disabling an attack type.
Watch out : Switching to block without an observation period can interrupt legitimate features (for example an internal tool building dynamic queries): monitor first.
3. Investigating and responding #
Each attack is an event.
Reading an attack #
- The detail shows the incoming request, the malicious parameter, the call stack and the vulnerable line of code: the fix becomes precise.
- Events are stored in Grail: the Security Investigator app and notebooks let you hunt in DQL (same source, other targets, period).
// Hunting: attack attempts in the last 24 h, by type and targeted service
fetch security.events, from: now() - 24h
| filter matchesPhrase(event.type, "attack") or matchesPhrase(event.category, "attack")
| summarize attempts = count(), by: { event.type, dt.entity.service }
| sort attempts descGood to know : Adapt the filter to the event types present in your environment (exploration query in the Vulnerabilities lesson).
Automated response #
- A workflow triggered by an attack notifies the security team, opens an incident and adds context (service, code, source).
- Blocked attacks also reveal a code vulnerability to fix: link the event to the matching vulnerability.
- Forward events to your SIEM if the security team centralizes its analyses there.
4. Best practices #
Defence in depth.
Rules #
- Runtime protection complements the WAF and code fixes, it does not replace them.
- Start with Internet-exposed services, in monitor mode, then switch to block type by type.
- Review exceptions every quarter and measure blocked attacks per service.
Commands to know #
Commands to know
fetch security.events | summarize count(), by: { event.type }: explore security eventsThreats & Exploits › Monitor / Block: choose the mode per attack typeSecurity Investigator: hunt in DQL
Sources #
Based on the official Dynatrace documentation checked in November 2026: platform apps change every month, check labels, permissions and field names in your environment before relying on a detail.
