/dynatrace:dt-sec-ioc-huntingfrom dynatrace
Hunts threat-intelligence indicators of compromise (IoCs) across Dynatrace logs and spans. Extracts IPs, domains, URLs, emails, CVEs, file hashes, and MITRE TTPs from reports or pasted text, then produces a 0-100 threat-exposure score.
Ships in dynatrace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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). This includes the CVE id itself as a
matchesPhrase/contains string and any search term derived from the CVE (exploit payloads such as
${jndi:, product or package names, aliases such as "log4shell"): an unindexed phrase scan over all logs
returns noise, bills for the bytes scanned, and a zero proves nothing about exposure. For supplied CVE IoCs the
hunt is exactly the two queries of hunt-security-events.md § Vulnerability hunt rollup (RVA + third-party
scanner findings) and no log/span query; the report-driven join form is a separate route (see the routing table).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.hunt-logs-secondary.md returns IPs from matched log lines and
spans; those are query results and are re-hunted automatically, this rule does not restrict them. Never derive indicators from
your own knowledge of a CVE, malware family or actor (exploit strings, payloads, "known" C2 domains or IPs,
filenames, hashes) and never run keyword or free-text searches of logs or spans (the canonical matchesPhrase templates over IoC values are not that). If the hunt needs an
indicator nobody supplied, ask for it or name the gap; do not invent it. If a template cannot be loaded, the
leg is INCONCLUSIVE; do not hand-write the query.| 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. Wider windows
(7d, or a window tied to the hunt such as the report date or an event anchor) are fine for
detections without approval; state the window used (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). The step has
two sources and queries both every time: Dynatrace RVA, and third-party scanner findings
(§ External scanner findings). Vendors other than Dynatrace can report runtime vulnerabilities that RVA
never sees, so RVA alone cannot support "not exposed". Report the sources separately, never merge their counts,
and treat a CVE clean zero as valid only when both completed.
Rules:
exposure-scoring.md until all three legs
(and the CVE step, if CVE IoCs were retained) are done.matches only when its rollup
returned at least one row naming a hunted IoC; otherwise it is zero (or INCONCLUSIVE). Set the
status once, after the last window (including an automatic detections widening), and reuse that
same value in every rendering: the Section 5 legs line, any JSON or structured output, and the
prose. Before answering, check that no rendering says matched while another says nothing
matched; a count of 0, or a row that matched no IoC, is zero.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 and § External scanner findings (always both) |
| 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 / what is my runtime exposure to what recent reports describe? (no pasted IoCs; report CVEs/IPs/techniques → vulnerabilities/detections in one join query). Start here, not in dt-sec-insights | 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. |
references/detection-investigation.md (opens in a new tab)references/exposure-scoring.md (opens in a new tab)references/hunt-logs-large-sets.md (opens in a new tab)references/hunt-logs-secondary.md (opens in a new tab)references/hunt-logs.md (opens in a new tab)references/hunt-security-events.md (opens in a new tab)references/hunt-spans.md (opens in a new tab)references/ioc-intake.md (opens in a new tab)references/secondary-observable-extraction.md (opens in a new tab)references/timeframe-gating.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
38 skills in this plugin
/dt-alertingEnd-to-end Dynatrace alerting lifecycle — anomaly detector setup and model selection (static threshold, adaptive baseline, seasonal baseline), alert event storage in Grail, problem grouping and denoising by root cause analysis, and workflow-based notification routing (email, Slack, ServiceNow, webhook). Use when configuring alerting, choosing between detector types, querying alert event history, understanding why alerts merged into a problem, or setting up problem-triggered notifications./dt-app-dashboardsWork with Dynatrace dashboards - create, modify, query, and analyze dashboard JSON including tiles, layouts, DQL queries, variables, and visualizations./dt-app-notebooksWork with Dynatrace notebooks - create, modify, query, and analyze notebook JSON including sections, DQL queries, and visualizations./dt-dql-essentialsCore DQL syntax, pitfalls, query patterns, and query optimization. Load to write, build, fix, or OPTIMIZE a DQL query — prevents syntax errors and makes queries faster, more efficient, and cheaper (less data scanned = lower query consumption/cost per run). Covers fetch commands, data models, field namespaces, time alignment, entity/smartscape patterns, metric discovery, and performance/cost optimization (filter early, bucket filters, short time ranges, field selection, sampling, cardinality). Trigger: "write/build/fix a DQL query", "DQL syntax", "query logs/spans/metrics", "create a timeseries", "optimize my DQL", "make my query faster/cheaper", "reduce DQL cost/consumption/scanned data", "keep DQL cost under control". Do NOT use to explain an existing query or answer product questions. For MONITORING a tenant's ACTUAL query consumption/billing (how much queries cost, who scanned most, cost trends) use dt-platform-costs — this tunes the query text, not billing data./dt-js-runtimeDynatrace server-side JS runtime — function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and the @dynatrace-sdk/* catalog./dt-migrationMigrate Dynatrace classic and Gen2 entity-based DQL to Smartscape equivalents. Covers three scenarios. (1) mass data queries filtered by classic entity conditions — migrate to direct dimension filters first, Smartscape only as fallback; (2) mass data queries using entity subqueries for filtering — same dimension-first strategy; (3) pure entity list queries — migrate fetch dt.entity.* to smartscapeNodes. Also handles entityName, entityAttr, classicEntitySelector, and classic relationship patterns.npx claudepluginhub dynatrace/dynatrace-for-ai --plugin dynatraceOther plugins' skills for the same job