/headless-cloud-security:sysdig-runtime-investigatefrom headless-cloud-security
Investigates runtime threats detected by Sysdig: surfaces top threats, scores vulnerability-runtime correlations, deep-dives into network blast radius or VirusTotal lookups, reconstructs activity audit timelines, and hands off to Jira or PagerDuty.
Ships in headless-cloud-security. 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.
Before doing any other work for this skill, follow references/first-run-notice.md exactly.
This skill describes steps by capability, not by tool name: ask a structured question, get explicit confirmation, write a file, run a command. Follow references/agent-capabilities.md for how to do each one with your agent's tools, and what to do when a capability is missing — including when nobody can answer a question.
This skill's case-report HTML is styled from the shared Sysdig brand file (see the reporting templates) — never hand-craft styling. For anything else it renders itself, it carries the brand kit (get_brand_kit / get_design_tokens) — Path B of the shared methodology in references/on-brand-output.md.
It does not carry the governed author → validate → render tools, so don't call them here: if the user wants a shareable branded PDF instead of the HTML case report, hand off to the sysdig-report skill if it's installed, and otherwise say the PDF path isn't available in this skill.
Two invocation forms:
/sysdig-runtime-investigate — interactive. The skill surfaces the top-priority threats and asks you to pick one./sysdig-runtime-investigate <event_id> — directed. The skill investigates the given event/threat directly.Glossary. This skill uses these terms with specific meanings — keep them straight in user-facing text and in the case body:
/tmp.These are the rules of the game. Phases are a floor, not a ceiling. The chosen threat is a starting point — the goal is the full attack chain, which often spans multiple Threats Engine threats, multiple resources, and events that don't appear correlated at first.
/tmp. The user sees a 2-paragraph summary in chat plus the file path.
sysdig-runtime-remediate (for live response actions on the running threat) or sysdig-remediate (for image-level CVE fixes).
sysdig-runtime-remediate when the user wants to act on the live threat (kill, isolate, pause), or to sysdig-remediate when the fix is a vulnerable image.kubectl delete, terraform apply, or any destructive operation directly.case.tactic_secondary.event.id. Surface it in the file footer and any handoff payload — it's the audit trail.
/tmp report file is the only persistent artifact.
State is read and written via the Sysdig MCP server tools.
| Operation | Tool | Arguments |
|---|---|---|
| Read state | get_skill_state | { "skill_state": "runtime-investigate" } |
| Write state | save_skill_state | { "skill_state": "runtime-investigate", "version": <n>, "data": { ... } } |
| Delete state | delete_skill_state | { "skill_state": "runtime-investigate" } |
A null response from get_skill_state means no state exists yet — start with { "version": 0 }.
{
"version": 1,
"last_run": "2026-05-04T18:30:00Z",
"preferred_jira_project": "RUNTIME",
"preferred_handoff": "jira",
"recent_cases": [
{
"event_id": "abc123",
"cluster": "prod-eu-1",
"tactic": "c2",
"case_file": "/tmp/sysdig-runtime-investigate-abc123-20260504-1830.md",
"started": "2026-05-04T18:30:00Z",
"completed": "2026-05-04T18:42:00Z",
"handoff": { "destination": "jira", "ticket_key": "RUNTIME-1234", "ticket_url": "https://example.atlassian.net/browse/RUNTIME-1234" }
}
]
}
get_skill_state with { "skill_state": "runtime-investigate" }. A null response means no state — start with { "version": 0 }.save_skill_state with { "skill_state": "runtime-investigate", "version": <n>, "data": { ... } }. Read the current contents first, merge new data, then pass the full merged object as data.version for optimistic concurrency. Pass it as a separate argument (do not include it inside data):
get_skill_state returned null) → call with version: 0.version value the previous get_skill_state returned.get_skill_state again, merge your changes into the freshly-read state, retry once with the new version.recent_cases: match on event_id. Cap the list at the 10 most recent entries; drop the oldest when over.case_file path is informational only — files in /tmp may be cleaned up by the OS.preferred_handoff is "jira" | "pagerduty" | "both" | "skip" | null. null means the user hasn't expressed a preference.You run a 4-phase pipeline directly — no subagents.
Phase 0 ──→ Phase 1 ──→ Phase 2 ────→ Phase 3
Preflight Surface Investigate Synthesise + report
(free-form) (file + summary + handoff)
references/trust-preamble.md for the full text. After presenting the preamble, proceed directly to Step 0a — do NOT ask for confirmation. The preamble is informational.0a. MCP authentication preflight. Before any other step — including the state read below — run the preflight in references/auth-preflight.md and follow its instructions exactly. This skill requires the Sysdig MCP: it is the only source for Threats Engine, runtime events, process trees, SysQL, vulnerability scans, and the threat-intel feed. If the preflight returns State 2 (registered but not authenticated) or State 3 (not reachable), emit its verbatim message and stop — no data calls, no state read, no file writes. Do NOT call authenticate autonomously. Only continue past this step on State 1 (catalog reachable).
0b. Read shared state. Call get_skill_state with { "skill_state": "runtime-investigate" }. A null response means no prior state — start with { "version": 0 }. If state exists, hydrate preferred_jira_project, preferred_handoff, and recent_cases onto the working session so Phase 3 can default to the user's prior choices instead of re-asking.
Reporting / CTI (cyber threat intelligence) probe (no-block). Detect available destinations and CTI tools dynamically. Do not require any specific env-var name — match by pattern.
mcp__atlassian__*, mcp__*jira*, mcp__*linear*. Mark the first match.*JIRA_PROJECT* (e.g. SYSDIG_RUNTIME_JIRA_PROJECT). If matched, surface the value as the default project for Phase 3 handoff.*PAGERDUTY*, *PD_TOKEN*, *PD_ROUTING_KEY*.*VIRUSTOTAL*, *VT_API*, *VT_KEY*.Record what was found. Do not prompt yet if nothing was detected — defer that to Phase 3 handoff.
Announce connectivity. Before moving on, surface a single user-facing line summarising what's wired up. Mark each integration ✓ (detected), — (missing), or ✗ (probe failed). The Sysdig MCP is always ✓ here — Step 0a already guaranteed it. Example:
Connectivity: Sysdig MCP ✓ · Jira ✓ · PagerDuty — · VirusTotal —. Will skip binary VT enrichment and PagerDuty handoff.Data-egress notice. Immediately after the connectivity line, when any third-party enrichment is reachable, disclose in one line what indicators will leave the environment and to which service — so the user can veto before any external call:
Enrichment will send: binary SHA256 hashes → VirusTotal · public (non-private) IPs → ipinfo.io (fallback ip-api.com) · CVE IDs → NVD/CISA KEV/Exploit-DB/GHSA. Private/internal IPs (RFC1918, link-local, loopback, CGNAT) are never sent. No Sysdig event contents, hostnames, or Sysdig credentials leave the environment — the VirusTotal call carries only the hash plus your VirusTotal API key.Only list the destinations that are actually reachable (✓). If the user declines, skip the corresponding enrichment and record it as skipped: user declined egress. This is the only narration during Phase 0 — the per-step results above are recorded silently on the case object. Don't prompt beyond the egress veto; just inform.
Entry-point detection. Parse the invocation argument:
interactive mode.directed mode, store the value as the event ID.Resume check (directed mode only). If recent_cases (from step 0b) has an entry whose event_id matches the current trigger, surface a one-line resume summary and ask the user a structured question on how to proceed:
"You investigated
<event_id>hours ago — case file<case_file>, handoff<destination>:<key>if any. Continue with the saved case, refresh (re-run Phase 2), or start fresh (clear the prior entry)?"
refresh).recent_cases and re-run.Staleness default. If the prior completed timestamp is more than 4 hours ago, runtime data has likely shifted — pre-select Refresh as the default. Below 4 hours, default to Continue.
Interactive mode does not pause here — Phase 1 will surface fresh threats and any prior case will only show up in the picker as (seen <N>h ago).
Interactive flow:
List the top open threats — Threats Engine is exposed via MCP. Call list_threats_engine_threats with pageSize=5, sort=["lastSignal,desc"], status=["open"]. A Threats Engine threat aggregates related occurrences sharing the same key (e.g. cluster + namespace + rule) and carries the AI-generated name/description.
If Threats Engine returns empty (unavailable or quiet in this tenant), fall back to runtime events for the same window: list_runtime_events with last 24h, limit 10.
Present the result as a markdown table:
| # | Severity | Rule / aiGeneratedName | Resource | Last seen |
|---|
Ask a structured question: "Which one do you want to investigate?"
Incident-scope detection at surface time. Before diving into the chosen threat, scan the other surfaced threats. Multi-stage attacks frequently span more than one Threats Engine threat. Treat all threats sharing cluster + ±2h, OR aws.accountId + ±2h, OR same image as the same incident — one investigation, one case body, one narrative. Record them on case.incident_threat_groups.
If these conditions hold, the chosen threat is one facet of a larger incident — fold all matching threats into the same case object. Tag them on case.incident_threat_groups (id, name, resource, last_seen, why_related). Phase 2's cluster-wide sweep then has a head start — these threats' occurrences should also appear in the sweep, but flagging them upfront lets the report's "Incident scope" section name them by their AI-generated title rather than as anonymous events.
Directed flow:
get_threats_engine_threat (threat detail, including occurrence and rule counts); on 404 fall back to get_event_info with the event ID. Once the threat is resolved, list its occurrences with list_threats_engine_occurrences_by_threat and the rules that fired with list_threats_engine_rules_by_threat; a single occurrence's detail is get_threats_engine_occurrence, which needs both the threat ID and the occurrence ID.Classification — MITRE ATT&CK tactic. From the rule name, rule source, and event labels, assign one MITRE tactic to the threat. Store it on the case as case.tactic. Phase 2 watchlist mapping reads this value. See references/mitre-tactics.md for the keyword-to-tactic table and the secondary-tactic rule.
Process tree (Sysdig MCP). If the threat has an event_id (the Threats Engine returns securityEvent references with IDs), call get_event_process_tree with the event ID to retrieve the structured process tree. Store the parsed result (parent → child chain, command lines, sha256 if present) on case.process_tree.
Process evidence from aiGeneratedDescription (always runs — useful even alongside the structured tree). The description carries natural-language context the structured tree doesn't ("locale repeatedly", "curl --upload to external IP"). Parse it for process names (e.g. systemd, sshd, bash, curl, wget, nc, nslookup) and chain hints ("spawned by", "child of"). Store as case.process_evidence (list of strings).
The two are complementary: case.process_tree is structured ground truth, case.process_evidence is the AI's narrative read of the same chain. The report renders both in "What happened" — the tree as a tree, the evidence as a one-liner.
Store the threat, classification, secondary tactic (if any), process tree (if available), and process evidence on the working case object.
Goal: reconstruct the full attack chain starting from the user's pick. Span multiple threats, multiple resources, multiple event sources if the signals lead there. The chain is the deliverable — phase boundaries from earlier versions of this skill (e.g. separate enrichment / classifier / synthesis stages) are explicitly not prescribed steps anymore.
Tell the user what you're doing as you go. Examples of good status updates:
These are the ingredients. The order is yours.
Time scoping — read before any event query. list_runtime_events, count_runtime_events, and discover_runtime_event_field_values accept only scope_hours — a window counted back from now. There is no absolute start/end, and filter_expr has no timestamp field. So a "±2h around the trigger" or "last 7 days" window is not something scope_hours gives you when the trigger isn't recent: set scope_hours wide enough to reach past the trigger (scope_hours ≈ hours_since_trigger + 2), then post-filter the returned events by their timestamp down to the band you actually want. Treat every "±2h" / "7-day" phrasing below as the target band after client-side filtering, not a parameter you can pass directly.
Tenant-wide critical sweep (sanity check) — once early in Phase 2, call list_runtime_events with filter_expr = "severity in (0,1,2,3)" and no scope filter across the ±2h window around the trigger. Catches cross-domain signals the cluster/account-filtered queries miss (GitHub cloudProvider.account.id, Okta cloudProvider.tenantId, anything without K8s labels). Fold in any hit whose image-org, repo name, or actor matches the trigger.
Process tree of the trigger event — get_event_process_tree. Almost always the highest-yield single artifact. Falls back to aiGeneratedDescription parsing if the MCP returns empty.
Activity audit trail of the affected workload — the agent-captured record of every command, network connection, and file access around the trigger, independent of whether each tripped a rule. This is what a human analyst pulls in the Secure UI to answer "what else did this workload do around the detection?" — dwell time, lateral-movement setup, dropped files, C2 callbacks. Use the MCP tool list_activity_audit_events scoped to the container / pod / workload (never the bare host) and centred on the trigger time. Unlike list_runtime_events, the activity audit tools take a real absolute window (from/to as ISO-8601, epoch, or a relative offset like 2h/7d, max 2 weeks) — so a "±2h around the trigger" band is a direct parameter, not the scope_hours post-filter workaround. For a suspicious command (dropper, reverse shell, miner), pass its entry id to trace_activity_audit_command to reconstruct the child processes, connections, and files it spawned in the same session — the audit-trail counterpart to the process tree. See references/activity-audit.md for tools, filter fields, scoping, and the timeline output shape. The trail feeds the "Activity audit timeline" report section and cross-references into the network/binary IOC enrichment.
Prior events on the affected resource — last 7 days, via list_runtime_events with a filter_expr matching the workload (kubernetes.cluster.name + namespace + workload) or host (host.hostName). For K8s workloads, also pull host-level events on the same node — escapes hide there.
Cluster-wide activity in a ±2h window around the trigger. Same MCP tool, three filters in parallel. The source values are tenant/region/backend-specific — confirm the real ones with discover_runtime_event_field_values on the source field before filtering, rather than assuming a literal. Known values at the time of writing: syscall, k8s_audit, awscloudtrail + awscloudtrail_stateful (AWS — note there is no bare cloudtrail value), azure_platformlogs + azure_entra (Azure), gcp_auditlog (GCP). If a source filter comes back empty, re-run discover (its suggested bucket lists what's actually firing, other lists what the tenant knows) and widen to the values it reports.
kubernetes.cluster.name = "<cluster>" and source = "syscall" (other resources in the cluster)kubernetes.cluster.name = "<cluster>" and source = "k8s_audit" (Attach/Exec Pod, Deployment Created, etc.)kubernetes.cluster.name = "<cluster>" and source in ("awscloudtrail", "awscloudtrail_stateful") (cluster-tagged cloud events, if any — swap in the Azure/GCP source values from discover when the cluster runs there)Cloud-account-wide activity when the resource has aws.accountId / azure.subscriptionId / gcp.projectId. Cloud audit-log and agentless-ML events live under the account dimension, not the cluster. This is the difference between catching multi-stage cross-cloud attacks (IMDS credential theft → IAM access-key creation → audit-log tampering → storage exfiltration) and missing them. Filter by the matching dimension and that cloud's source values (verify with discover first):
aws.accountId = "<account>" and source in ("awscloudtrail", "awscloudtrail_stateful", "agentless-aws-ml")azure.subscriptionId = "<subscription>" and source in ("azure_platformlogs", "azure_entra")gcp.projectId = "<project>" and source in ("gcp_auditlog")Other threats in this incident — fold them into the same case — do not investigate separately. Other threats already tagged in Phase 1 as part of this incident — pull their occurrences via list_threats_engine_occurrences_by_threat and their affected resources via list_threats_engine_resources_by_threat (both keyed by the threat ID) to merge into the chain. If new threats appear in the cluster window during Phase 2 investigation, fold them in too. Cross-type is allowed: a CLOUD threat may be the same incident as a K8S_WORKLOAD threat.
Sibling resources / posture / RBAC (role-based access control) via run_sysql. SysQL schema differs between tenants — adjust query shape if rejected. Example queries: MATCH KubeWorkload AS wl WHERE wl.cluster = '<c>' RETURN wl.namespace, wl.name, MATCH Resource VIOLATES Control, MATCH KubeServiceAccount HAS KubeRoleBinding HAS KubeClusterRole.
Vulnerability surface — start with query_vulnerability_findings scoped to the running image, filtered to the notable CVEs:
{
"group_by": "cve",
"filters": [
{ "field": "imageId", "op": "eq", "value": "<running image's config digest>" },
{ "field": "severity", "op": "in", "value": ["critical", "high"] },
{ "field": "hasFix", "op": "eq", "value": true },
{ "field": "hasExploit", "op": "eq", "value": true }
]
}
Scope by the right identifier. imageId expects the image config digest — the sha256:… that runtime detection resolves the running container to (the threat detail's image id; equivalently metadata.imageId from get_scan_result in the scan-result step below). This is a different sha256 from the registry manifest digest (findingsapi field imageDigest, metadata.digest) — cross them and the query returns zero rows with no error. If you only have the pullstring, use imageReference (e.g. …/app:1.0.0) instead, accepting that a mutable tag may span builds.
Filtering. The tool applies no default filters, so set the triage filters explicitly: severity critical/high, hasFix true, hasExploit true. That narrows to the actionable, weaponized CVEs the MITRE-tactic gate and CTI step below consume. If the result comes back empty, widen by dropping hasExploit, then hasFix, before concluding the image is clean.
group_by: "cve" returns one deduplicated row per CVE, ranked by the grouping's default risk order. Read rows from the response's data array; meta.hasMore + the cursor token page further, and severity comes back capitalized (Critical) in responses even though the filter value is lowercase. For running/in-use package detail — which vulnerable packages are actually loaded on the workload or host — use list_runtime_scan_results (filter by kubernetes.cluster.name/namespace/workload or host.hostName, sort runningVulnTotalBySeverity) and pass the returned resultId to get_scan_result for the full packages + vulnerabilities breakdown.
External CTI for the top 5 critical/high CVEs that pass the MITRE-tactic gate (see references/correlation-guide.md): NVD, CISA KEV (Known Exploited Vulnerabilities), Exploit-DB, GHSA (GitHub Security Advisory), fetched with your agent's web-fetch capability. Don't fetch CTI for tactic-mismatched CVEs.
Sysdig threat-intel feed via fetch_threat_intelligence_feed — Sysdig-curated CVEs / zero-days / active-attack notes. Cross-reference any IOCs you collect.
VirusTotal (VT) for binary IOCs when a SHA256 surfaces on event fields and a VT key is present (Phase 0 records the env var). When the threat lacks proc.sha256, look across other events on the same container — drift detection events typically carry the hash.
GeoIP for network IOCs via curl https://ipinfo.io/<ip>/json (fallback ip-api.com).
When any of these rule names fire in the data you've pulled, that's the signal to expand. The action column is what direction to look, not a fixed query. See references/watchlist-patterns.md for the full hit-to-pivot table covering IMDS theft, persistent cloud creds, defense evasion, S3 exfil, privesc, lateral movement, runtime compromise, recon, and prompt-injection.
Read references/correlation-guide.md for the MITRE-tactic gate and 1–5 scoring heuristics. Render only pairs ≥ 4 in the case body. Boosts (cap at 5): KEV +1, VT malicious_count≥5 +1.
You're done when:
If you find yourself making more than ~4 follow-on calls per signal, stop and synthesise. Diminishing returns.
Four steps, in this order:
Ask the user for the report format as a structured question: "How do you want the report rendered? Markdown (default — plays nice with Jira/PagerDuty handoff) / HTML (renders Mermaid diagrams in browser, self-contained) / Both."
Markdown is the default when nobody can answer; mention HTML as a follow-up option in the summary.
Write the file(s) to disk. Base path: /tmp/sysdig-runtime-investigate-<event_id_short>-<UTC-yyyymmdd-hhmm>.
Markdown → write <base>.md with Block 1 of references/reporting-templates.md verbatim. Always written when chosen — also the body of Jira/PagerDuty handoff downstream.HTML → write <base>.html using Block 4 wrapper from the same file. The Block 1 markdown content is pasted into the wrapper's <script id="md"> block. Marked + mermaid CDN scripts render the page in the browser.Both → write both files, same base name.Print a 2-paragraph summary to the user. Use Block 0 of reporting-templates.md — short, no tables. Cite the file path(s) so they can read it if they want. Then ask a structured question: "Where do you want to report this case?" with options derived from what Phase 0 detected (Jira, PagerDuty, Both, Just show it).
Handoff:
Jira → Build the Block 2 payload from the templates (body = file content). If the project key is unknown, call mcp__atlassian__getVisibleJiraProjects and ask the user. Preview before submitting. Render a short block — Project · Issue type · Summary · Severity · Labels · Body length (chars) — then ask a structured question: "Submit, edit, or cancel?". Only on Submit call mcp__atlassian__createJiraIssue; if no explicit Submit comes back, do not create the ticket. Capture key + URL and surface them with an undo line: "Undo: open the ticket and click Close."
PagerDuty → Build the Block 3 payload (custom_details.case = file content, truncate to ~30 KB if larger). Preview before submitting. Render Routing key (last 4) · Severity · Dedup key · Summary · Source · custom_details size (KB) and ask a structured question: "Submit, edit, or cancel?". Only on Submit (never on silence) send via:
printf '%s' "$PAYLOAD_JSON" | curl -sS -X POST \
-H "Content-Type: application/json" \
--data-binary @- \
https://events.pagerduty.com/v2/enqueue
Capture the dedup_key and incident URL from the response. Surface them with an undo line: "Undo: resolve the incident with event_action: resolve and the same dedup key."
Both → run the Jira preview-and-submit first, then the PagerDuty preview-and-submit. Confirm each separately; declining one does not cancel the other.
Just show → no extra action; the file path was already cited in the summary.
If the user picks Edit at the preview step, ask which fields to change, apply the edits to the payload, and re-show the preview. Loop until the user picks Submit or Cancel.
After handoff, surface the link/key (if any) to the user — one short line.
Offer to act on the threat (optional handoff to remediation). After the reporting handoff is complete (or skipped), ask a structured question: "Want me to act on this threat now? sysdig-runtime-remediate will propose response actions (kill, isolate, pause, etc.), explain the consequences on the live workload, and execute only what you approve." Options: Yes — invoke sysdig-runtime-remediate / No.
sysdig-runtime-remediate with <event_id>. The case file you just generated will be its starting context."), then invoke sysdig-runtime-remediate <event_id>./sysdig-runtime-remediate <event_id> — the case file and shared state will still be there.Skip this step if sysdig-runtime-remediate is not registered in the current plugin (back-compat for environments running an older plugin version).
Persist shared state. Before exiting, call save_skill_state with { "skill_state": "runtime-investigate", "version": <version-from-phase-0>, "data": { ... } }. Merge the freshly-read state from Phase 0 with the new entries: append this case to recent_cases (upsert by event_id, cap at 10), update last_run, and update preferred_jira_project / preferred_handoff if the user picked a destination. Skip silently if the Sysdig MCP isn't loaded.
Status vocabulary. Every section of the case object uses the house status set: done, pending, in_progress, failed, skipped. The reason goes in a separate reason field so the report and the summary can render either status alone or status + reason.
{ "vulnerabilities": { "status": "skipped", "reason": "no scan data" } }
{ "cloudtrail": { "status": "skipped", "reason": "no integration in tenant" } }
{ "vt": { "status": "skipped", "reason": "no API key" } }
{ "cti.nvd": { "status": "failed", "reason": "rate-limited" } }
User-facing error template. Every error message the user sees follows three lines: what failed, why, and the fix (a copy-pasteable command or concrete next step). Keep the whole thing under four lines. Examples:
Can't reach Sysdig — the MCP server isn't registered or authenticated. Register it with
claude mcp add --transport http secure-mcp-server https://<region>/mcp/secure, then run/mcp→ Sysdig → Authenticate. Per-region URLs are in references/mcp-setup.md. Then re-run.
No threats matched the last 24h. Either the tenant is quiet or the time window is too tight. Widen the time window (e.g. 7 days) or pick a specific event ID.
Couldn't open the Jira ticket — Atlassian MCP returned 403. Your token doesn't have
write:jira-workfor projectRUNTIME. Refresh the token in the Atlassian admin console and retry, or pick another destination.
Truncation, skipped enrichments, and other partial-success cases must be flagged in the 2-paragraph chat summary too — never let the user discover them only by reading the case file.
| Situation | Behavior |
|---|---|
| Sysdig MCP preflight returns State 2 or State 3 | Abort in Phase 0a per auth-preflight.md — emit its verbatim message and stop. No data calls, no state read, no file writes. |
| An MCP tool call comes back denied (the agent refuses the call rather than the server erroring) | Not an auth or reachability failure — the agent's permission settings don't pre-approve that tool (e.g. the Sysdig server is registered under a name the skill's allowed-tools doesn't anticipate). Tell the user to approve the tool name shown in the denied call in their agent's permission settings (in Claude Code, mcp__<actual-server-name>__*), then re-run — see the "Tool calls come back denied" section in mcp-setup.md. Do not loop retrying the denied call. |
Trigger ID resolves to neither a threat nor an event (get_threats_engine_threat and get_event_info both 404) | Tell the user the ID wasn't found and offer interactive mode. |
| No qualifying threats / events found in Phase 1 | Tell the user, offer to widen the time window. |
| Vulnerability lookup empty | When query_vulnerability_findings returns an empty data array, widen by relaxing filters (drop hasExploit, then hasFix, then severity) before concluding the image is clean. If still empty, try list_runtime_scan_results (filter by workload/host) then get_scan_result. If still nothing, record { "vulnerabilities": { "status": "skipped", "reason": "no scan data" } } and continue. |
| A web fetch to a public CTI source fails or rate-limits | Mark that source { "status": "failed", "reason": "<rate-limited | network | 4xx>" } and continue. Don't retry in a loop. |
| VirusTotal API key not detected | Record { "vt": { "status": "skipped", "reason": "no API key" } }. |
| No Jira and no PagerDuty detected | Ask whether the user wants to configure one or just show the file path. |
| Atlassian MCP / PagerDuty curl errors during handoff | Record { "handoff": { "status": "failed", "reason": "<error>" } }, surface the error, print the file path, offer to retry or switch destination. |
| Activity audit trail empty or capture not enabled | list_activity_audit_events returns no entries for the scoped container/pod/workload. Not a failure — the agent's command/connection/file capture may be off, or the workload was genuinely quiet. Record { "activity_audit": { "status": "skipped", "reason": "no activity audit data for this scope" } } and flag in the summary that audit context was unavailable. |
| Activity audit window exceeds 2 weeks | from/to span is capped at 2 weeks server-side. Narrow the window (centre tighter on the trigger) and re-issue. |
list_runtime_events cursor pagination drops filter_expr | Known MCP quirk — paginating with cursor returns events from the wrong scope. Don't paginate; widen scope_hours and re-issue with the original filter. |
| A list_runtime_events call returns >100 events | Tighten the time window or split the filter. Never silently drop the section — record { "status": "done", "truncated": true, "shown": <n>, "total": <m> }. |
| Cloud audit-log integration (CloudTrail / GCP Audit / Azure Activity) not present in tenant | Cloud-account sweep returns empty (no source values for that provider — confirm with discover). Record { "cloudtrail": { "status": "skipped", "reason": "no integration in tenant" } } on the case; flag in the summary that cloud-API signals (storage / IAM / IMDS) were unavailable. |
| SysQL schema rejects a query | Try the alternate relation shapes (HAS vs BINDS_TO, etc.). If all fail, record { "status": "failed", "reason": "schema mismatch" } and continue. The skill should not block on schema mismatches. |
agents/openai.yaml (opens in a new tab)references/activity-audit.md (opens in a new tab)references/agent-capabilities.md (opens in a new tab)references/auth-preflight.md (opens in a new tab)references/correlation-guide.md (opens in a new tab)references/enrichment-binary.md (opens in a new tab)references/enrichment-network.md (opens in a new tab)references/first-run-notice.md (opens in a new tab)references/mcp-setup.md (opens in a new tab)references/mitre-tactics.md (opens in a new tab)references/on-brand-output.md (opens in a new tab)references/reporting-templates.md (opens in a new tab)references/sysdig-brand.md (opens in a new tab)references/trust-preamble.md (opens in a new tab)references/watchlist-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sysdig/skills --plugin headless-cloud-security8 skills in this plugin
/sysdig-account-setupBaseline account setup for Sysdig Secure after a tenant is connected. Guided, interactive, modular setup via the Sysdig MCP server: (1) access baseline — teams, users, and roles; (2) vulnerability management policy baseline — Pipeline vs runtime, one policy or split; (3) compliance standards — assign posture policies (CIS, PCI, NIST, …) to zones; (4) runtime threat-detection — enable/disable the recommended managed detection policies. Reviews current state, proposes a structure, and applies changes idempotently with explicit confirmation before anything that mutates the tenant. Use right after onboarding to leave an account usable out of the box. Fine-grained policy tuning is out of scope.
/sysdig-investigateInvestigate and prioritize vulnerable images in a Sysdig-monitored environment via two flows, routed from the user's goal. Plans flow — plan-driven prioritization: pick an admin-configured Plan (or explore ranked jobs under an ad-hoc scope and measure) and walk the prioritized remediation jobs one at a time. Findings flow — ad-hoc findings analysis: filter, regroup, sort, and page vulnerability findings the way the Vulnerability Management UI table does. Hands any chosen image off to /sysdig-remediate, which owns tickets, PRs, job tracking, and job closing. Triggers on: "investigate", "what should I fix", "what should I fix first", "show me my vulnerable images", "prioritize vulnerabilities", "which images are affected by CVE-...", "show me all Critical CVEs in production", "/sysdig-investigate". Not for opening PRs, applying fixes, or creating/updating tickets — use /sysdig-remediate for all of those.
Other plugins' skills for the same job