RousselTMLEARNING

Observability

Threats & Exploits in Dynatrace

Detecting and blocking attacks with the Dynatrace Threats & Exploits app: runtime application protection (SQL injection, command injection, JNDI, SSRF), monitor and block modes, exceptions, attack events, DQL investigation and automated response.

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.

Threats & Exploits

Attacks detected #

AttackExample
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)
SSRFthe 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 #

Detect and block
ModeEffectWhen
Monitorthe attack is recorded, the request continuesstart, validating detections
Blockthe dangerous call is interrupted (exception in the application), the attack is recordedafter a period without false positives
Offno detectiondeliberately 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 desc
Good 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 events
  • Threats & Exploits › Monitor / Block : choose the mode per attack type
  • Security 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.

Related articles

Time-based vs event-based SLO: understanding, computing and choosing (with the Qonto example)

Differences between time-based SLOs (time slices, uptime) and event-based SLOs (good events over total): defi…

The observability trilemma: cost, completeness and performance, and how solutions resolve it

Understanding the observability trilemma (cost, data completeness, query performance), its three trade-offs, …

Accessing the Dynatrace playground and getting started

The Dynatrace playground is a demo environment full of real data: how to access it, what it allows and does n…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!