Hunt threat-intelligence indicators of compromise (IoCs) across Dynatrace logs and spans and produce a 0-100 threat-exposure score. Extracts and normalizes IoCs — IPs, Domains (hostnames included), URLs, Emails, CVEs, File hashes (md5/sha1/sha256), MITRE TTPs — from unstructured reports, advisories, advisory URLs, pasted text, or STIX, then hunts them in fetch logs and fetch spans. Trigger: hunt these IoCs, am I exposed to this threat or ingested reports, check these indicators in my logs and traces, threat exposure report, extract IoCs from this advisory URL, search these hashes/domains/IPs in my environment. Also investigates repeated detections: same source IP across many targets, same rule re-firing on one object. Do NOT use for: generic security.events retrieval (vulnerabilities, detections, compliance, THREAT_REPORT — use dt-sec-insights); general log queries not tied to an IoC hunt (use dt-obs-logs); general span/trace analysis (use dt-obs-tracing); explaining DQL syntax (use dt-dql-essentials).
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Hunt indicators of compromise (IoCs) across Dynatrace logs and spans,
and optionally correlate CVEs and attacker-IPs/MITRE techniques through
security.events (hunt-security-events.md).
Produces matched-observable
evidence sets and an AI threat-exposure score (0–100%).
dt-dql-essentials only when you write or adapt DQL beyond a canonical template — run a routed reference's template as written (placeholders substituted) without it; load it before changing the query shape (new commands, joins, functions) and on the first query error. DQL syntax and function names differ from SQL.matchesPhrase(content, "<ioc>") clauses before using contains to populate
matched-observable columns. Do not start unscoped log hunts with raw
iAny(contains(content, allObservables[])). IP filters are content-only: typed
client.ip / actor.ips clauses force a full scan (measured 2026-10-16, uan dev tenant, 30m, 5 IPs: 10–27× the bytes of the content
pass, 46× on demo.live, 49× over 3d; scales with log volume) and live in the separate
Dedicated-field IP pass in hunt-logs-large-sets.md (conditions in that section).matchesPhrase clauses. Split large IoC lists into chunks sized by clause budget
(≤ 60 or clauses per chunk: IPs 1 clause → 60 per chunk, domains 3 → 20, URLs 2 → 30,
hashes/emails 1 → 60; table in hunt-logs-large-sets.md, loaded when the retained count of a
class exceeds its budget; halve and retry once after a query-length failure), run each chunk with the same timeframe/scope, and aggregate results outside
DQL. A no-match conclusion is valid only if every chunk completes cleanly.from:now()-30m for unanchored
hunts. Use event-anchored windows (±30m) for IoCs derived from timestamped
detections/logs/events. On FETCH_EXEC_TIME_LIMIT, automatically retry at
15m then 5m (no approval needed); mark INCONCLUSIVE only if 5m also times
out. Widen on zero-match only on approval (see timeframe-gating.md).dt-sec-insights (threat-intelligence.md).hunt-logs.md).threat.observables.hosts field.
FQDN IoCs belong in the Domains array. A dotless non-hex token that fits no IoC type is
unclassifiable: filter it (ioc-intake.md § IoC Hygiene), never hunt it as a Domain.exposure-scoring.md).security.events analytics (VULNERABILITY,
DETECTION_FINDING, THREAT_REPORT) are owned by dt-sec-insights; never re-author
those here. Narrow carve-out: the hunt's own IoC-scoped, summarize-first
detection/vulnerability rollups live in hunt-security-events.md (leg 3). That
file owns the IoC-list filters (IP, domain/URL) and the IoC-scoped drill-down
listings, and links to dt-sec-insights for field/data-model semantics and the
generic summarization recipe — it does not duplicate them. Behavior-based detection
investigation (repeat / fan-out, no IoC list) lives in detection-investigation.md.
The join-form report → environment correlation over ingested THREAT_REPORT events is also
owned there (§ Report-driven correlation); reading and grouping the reports themselves
stays in dt-sec-insights.FETCH_EXEC_TIME_LIMIT on an unscoped hunt is INCONCLUSIVE,
not no-match. Offer scoped follow-up only if entity context exists or the user explicitly
provides one.X-Forwarded-For, Forwarded, X-Real-IP,
True-Client-IP, CF-Connecting-IP, Akamai-True-Client-IP, etc.) and structured fields
(clientIP, src_ip, source.ip, remote_addr) of every matched log line and span. For
logs, run the separate aggregating Secondary-IP extraction rollup in
hunt-logs-secondary.md (load it automatically whenever the logs leg returned matches) —
it parses all matched lines server-side and returns only distinct derived IPs; do not
fetch raw log lines or sample them with a limit. Re-hunt the derived IPs (already
deduplicated against hunted IPs) across logs, spans, and detection actor.ips using the
same window and scope; for logs use the Secondary re-hunt (logs) with next-level IPs
template, whose next_level_ips column feeds the recursion guard (no second extraction
scan). Do this automatically — never wait for user prompting. See
secondary-observable-extraction.md.content,
individual spans, per-finding rows) by default — they bloat context without adding
analytic value. Fetch full records only via each reference's documented drill-down
query, and only when the user asks for them or a disputed record's raw context is
material — never for secondary-observable extraction (that is the aggregating
rollup in hunt-logs-secondary.md). Summarize-first ≠ truncation: the rollup preserves every
affected entity and matched observable, so the exposure report stays complete. Bound every
collect* with maxLength:. See hunt-logs.md, hunt-spans.md, hunt-security-events.md.dt.entity.* is deprecated — do not use it — collect dt.smartscape.*,
dt.smartscape_source.*, k8s.*, and aws.resource.id instead. Cast IP fields with toIp()
before comparing: a typed comparison against a string field returns zero rows without error.| IoC type | Logs | Spans (inbound + outbound) | security.events (leg 3) |
|---|---|---|---|
| IP | hunt-logs.md | hunt-spans.md | hunt-security-events.md § Detection hunt rollup |
| Domain (incl. hostname) | hunt-logs.md | hunt-spans.md | hunt-security-events.md § Detection hunt rollup |
| URL | hunt-logs.md | hunt-spans.md | hunt-security-events.md § Detection hunt rollup |
hunt-logs.md | ❌ no span field | — | |
| File hash (md5/sha1/sha256) | hunt-logs.md | ❌ no span field | — |
| CVE | — | — | hunt-security-events.md § Vulnerability hunt rollup |
| MITRE TTP | — | — | hunt-security-events.md § MITRE technique variant (parent + all sub-techniques → dt-sec-insights detections.md) |
hunt-security-events.md owns the hunt's IoC-scoped, summarize-first rollups and
links to dt-sec-insights for field semantics and full-record drill-down.
Pull IoCs FROM a THREAT_REPORT event — route to dt-sec-insights
threat-intelligence.md§ Indicators of Compromise. THREAT_REPORT is asecurity.eventsdataset; this skill does not query it.
For any IP, Domain, or URL IoC, the hunt is INCOMPLETE until all three legs
have returned a result or an explicit no-match. Before leg 1, apply ioc-intake.md
§ IoC Hygiene (filter invalid and noise IoCs such as IP ranges in CIDR notation and popular
domains; list them at the end of the report; hunt them only if the user explicitly asks) so that
no query is ever built for a filtered value. If IoC Hygiene filters out every IoC of every
type, run no hunt, give no score, and report only the Filtered IoCs section
(exposure-scoring.md § Section 8). If it filters out every IP, Domain, and URL IoC but other
types remain (CVEs, hashes, emails, MITRE TTPs), the three legs below do not apply: skip them and
run the legs that apply to the retained IoCs (for example the vulnerability hunt for a CVE).
Otherwise, execute the legs in order:
Logs — load hunt-logs.md, run the canonical matchesPhrase template (summarize-first).
Then load the conditional siblings by trigger, never by default:
hunt-logs-secondary.md — automatically whenever this leg returned at least one matched
row. The Secondary-IP extraction rollup it holds is mandatory and automatic after a match
(BP #12); skip it only when the leg returned zero rows.hunt-logs-large-sets.md — when the retained IoC count of a class exceeds its chunk
budget (BP #4), or when the Dedicated-field IP pass applies (conditions in that file's § Dedicated-field
IP pass: requested, tenant known to populate the typed fields, or scoped-hunt timeout fallback).
A small hunt that meets none of them does not load it.Spans — load hunt-spans.md, run the combined inbound+outbound template (summarize-first).
Detections — load hunt-security-events.md § Detection hunt rollup:
in(iCollectArray(ip(actor.ips[])), array(...)) filterhunt-security-events.md (case-insensitive contains(…, caseSensitive:false) on url.* / server.address; clause owned by hunt-security-events.md)Default window: from:now()-2h. On zero rows, re-run automatically at from:now()-24h
(detections are low-volume, so no approval is needed) and report both windows; going beyond
24h needs approval (timeframe-gating.md).
CVE IoCs — run hunt-security-events.md § Vulnerability hunt rollup as its own step,
whether or not the three legs above apply (a CVE-only hunt runs just this step).
Rules:
exposure-scoring.md until all three legs
(and the CVE step, if CVE IoCs were retained) are done.FETCH_EXEC_TIME_LIMIT on a leg = INCONCLUSIVE; record it and continue — do not skip.actor.ips undetected, as detections are the only surface
where RAP and external security tools record attacker IPs.| User says | Load this reference |
|---|---|
| Extract IoCs from an advisory URL / web page | ioc-intake.md (agent fetches the page; see intake note) |
| Extract IoCs from a pasted advisory / report / STIX text | ioc-intake.md |
| Hunt these IPs/domains/URLs/emails/hashes in logs | hunt-logs.md |
| Log hunt returned matches — find secondary IPs (rollup, re-hunt) | hunt-logs-secondary.md (automatic) |
| Hundreds of IoCs to chunk, or the dedicated-field IP pass applies | hunt-logs-large-sets.md |
| Hunt these IPs/domains/URLs in spans/traces | hunt-spans.md |
| Hunt these IPs/domains/URLs/CVEs in detections/vulnerabilities | hunt-security-events.md |
| Score how exposed my environment is / threat exposure report | exposure-scoring.md |
| Cross-evidence correlation — do detection and CVE relate? | dt-sec-contextualization → correlation.md |
| Pod→node topology (detection on pod, CVE on node) | dt-sec-contextualization → correlation.md § Pod→Node Topology |
| Compliance enrichment on matched entities | dt-sec-insights → compliance.md § Entity Security-Tab View |
| A matched IoC — which threat reports mention it (actor/malware/campaign)? | dt-sec-contextualization → ioc-enrichment.md |
| Timeframe too short / should I widen the search window? | timeframe-gating.md |
| Secondary IPs in evidence (X-Forwarded-For, proxy headers, structured fields) | secondary-observable-extraction.md |
| CVEs from this report — am I vulnerable? | hunt-security-events.md § Vulnerability hunt rollup |
| IPs from this report — any detections? | hunt-security-events.md § Detection hunt rollup |
| Domains/URLs from this report — any detections? | hunt-security-events.md § Detection hunt rollup |
| MITRE techniques from this report — any detections? | hunt-security-events.md § MITRE technique variant (parent + all sub-techniques → dt-sec-insights detections.md technique filter) |
| Am I exposed to the recent ingested threat reports? (no pasted IoCs; report CVEs/IPs/techniques → vulnerabilities/detections in one join query) | hunt-security-events.md § Report-driven correlation (join form) |
| Full detection records for matched IoCs (drill-down) | hunt-security-events.md § Drill-down |
| Same source IP hitting many targets / repeated attacks / rule re-firing on one object | detection-investigation.md |
| Skill | Role |
|---|---|
dt-dql-essentials | Load when writing or adapting DQL (best practice #1). Core DQL syntax, functions, query patterns. |
dt-sec-insights | security.events access — vulnerabilities, detections, reading and grouping THREAT_REPORT events (top observables across reports). |
dt-sec-contextualization | Cross-evidence correlation, pod→node topology, per-entity enrichment, compliance enrichment on matched entities, and IoC→threat-report attribution (ioc-enrichment.md). Load after hunt legs complete. |
dt-obs-logs | Generic log exploration not tied to IoC hunting. |
dt-obs-tracing | Generic span/trace analysis not tied to IoC hunting; span field semantics. |
Dynatrace/dynatrace-for-ai
5dbfd57
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.