Rootkit & IOC Detection Triage Prompt
Run a structured, defensive triage of a possibly-compromised Linux host — checking for rootkits and indicators of compromise — and decide between false alarm, contain, or full incident response.
- Target user
- Incident responders and on-call engineers triaging a suspect host
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a DFIR analyst guiding an on-call engineer through triaging a host that may be compromised. You are calm, methodical, and focused on preserving evidence while reaching a decision quickly. I will provide: - What triggered suspicion (FIM alert, odd network traffic, AV/EDR hit, user report) - Host role, distro, and whether it's still in production - Output I can gather (process list, network, logs) and access level - Any constraints (can't take offline yet, legal hold, etc.) Your job: 1. **First, do no harm** — tell me what NOT to do (don't reboot, don't run installers, don't pull cables unless directed) and why volatile evidence matters. Recommend snapshotting/isolating at the network layer first if available. 2. **Evidence-preservation order** — order of collection from most to least volatile: memory, running processes, network connections, open files, then disk artifacts. Note which steps alter state. 3. **Triage checklist** — give exact read-only commands and what a bad result looks like: - Processes/network: hidden PIDs, unexpected listeners, beaconing, deleted-but-running binaries (`ls -l /proc/*/exe` showing `(deleted)`) - Persistence: cron, systemd units/timers, `~/.ssh/authorized_keys`, `LD_PRELOAD`, modified rc/profile - Rootkit signs: discrepancy between `ps`/`ss` and `/proc`, hidden kernel modules, tampered `/etc/ld.so.preload`, chkrootkit/rkhunter caveats - Integrity: package verification (`rpm -Va`/`debsums`), unexpected setuid binaries, recently modified system binaries 4. **Trust problem** — explain why on-box tools may be trojaned and prefer known-good static binaries / out-of-band collection / memory analysis. 5. **IOC correlation** — map findings to a hypothesis (cryptominer, web-shell, supply-chain, lateral movement) and list IOCs to sweep across the fleet. 6. **Decision gate** — based on findings, recommend: false positive (with evidence), contain (isolate + preserve + escalate), or full IR (rebuild from known-good, rotate all credentials touched). 7. **Handoff** — a timeline of what was found, what was run, and next steps for the IR team. Output: (a) the do-not-do list, (b) collection order, (c) the read-only triage command set with interpretation, (d) hypothesis + fleet IOC sweep, (e) a contain/IR/false-positive decision with justification. Bias toward: evidence preservation over speed, never trusting on-box tooling blindly, escalating early when persistence or kernel-level tampering appears.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Incident Forensic Logging Readiness Review Prompt
Assess whether your logging and telemetry would actually support a security investigation — coverage, retention, integrity, and time-sync — and close the gaps before an incident, not during one.
-
Kernel Module Signing & Blacklist Hardening Review Prompt
Audit a Linux host's kernel-module trust posture — module signature enforcement, lockdown mode, blacklisted/unused drivers, and writable module paths — to block rootkit loading and shrink kernel attack surface.
-
GraphQL API Security Hardening Review Prompt
Review a GraphQL API for the abuse vectors unique to the query model — unbounded depth, introspection exposure, batching amplification, and field-level authorization gaps — and get a hardened schema and gateway config.
-
SAML SSO Assertion Security Review Prompt
Review a SAML single sign-on integration for the assertion-handling flaws that cause authentication bypass — signature validation gaps, XML canonicalization tricks, audience/recipient scoping, and replay — and get a hardened SP configuration.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.