/cybersecurity-skills:threat-huntingfrom cybersecurity-skills
Conducts proactive, hypothesis-driven threat hunts using the PEAK framework. Searches SIEM/EDR/logs for adversaries evading existing detections, guided by MITRE ATT&CK.
Ships in cybersecurity-skills. 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 for adversaries who are already inside but haven't tripped an alert. Distinct from incident-triage (reactive, alert is firing) and from siem-detection (engineer rules so future alerts fire). This skill is the proactive layer — assume something has slipped through, look for it.
Hunting is hypothesis-driven, not browse-driven. "Let's look around the SIEM" is not hunting; "let's check for the specific pattern of T1059.001 (PowerShell) being launched by Office processes" is.
Cross-references: siem-detection (queries you write here often graduate to detection rules), incident-triage (what to do if a hunt confirms a finding), breach-patterns (a rich source of hunt hypotheses), disk-forensics (deeper analysis on confirmed hits), agent-supply-chain-audit (hunting for malicious or rug-pulled AI coding-agent extensions on developer machines), secrets-audit (its exfiltration-collector domain list is a ready-made egress hunt: DNS / proxy hits to webhook.site, requestbin, ngrok, or chat webhooks from servers or CI runners), malware-triage (the hashes, imphash and behaviours to hunt for, from a triaged sample).
Hunt only in environments the user owns or is authorized to investigate, with the logs and telemetry they've given you access to. Hunting reads; it doesn't contain. If a hunt finds confirmed malicious activity, stop and hand off to incident-triage instead of acting on hosts or accounts. Hunting in employee activity stays within what HR and legal have authorized.
The PEAK (Prepare, Execute, Act, Knowledge) framework from Splunk SURGe — the most actionable hunting methodology I've seen.
Form the hypothesis. Strong hypotheses share three properties:
Bad hypothesis: "Look for anomalies in the SIEM"
Good hypothesis: "Within the last 30 days, no service account should have run interactive PowerShell with -encodedCommand flag (T1059.001 + T1027). Search Sysmon event 1 for parent process = service-account-launched scheduled task, child = powershell.exe, command line contains -enc or -encodedcommand."
Hunt hypothesis sources, ranked by yield:
| Source | Yield | Effort |
|---|---|---|
| Recent incident (yours or peer's) | High | Low — pattern is concrete |
breach-patterns skill catalog | High | Low — generalizes from public breaches |
| MITRE ATT&CK technique you don't have a detection for | Medium | Medium — read the technique, design the hunt |
| Threat intel report (CrowdStrike, Mandiant, vendor reports) | Medium | Medium — current patterns |
| Anomaly: "this number went up — why" | Low | Low — often FP, occasionally gold |
Run the hunt. Three execution patterns:
Pattern A — Pivot from indicator. Start with a specific IOC (IP, hash, domain) and look for any host or user that touched it.
// Sentinel — pivot from a suspicious IP across all log sources
union *
| where TimeGenerated > ago(90d)
| where contains("198.51.100.42")
| project TimeGenerated, Type, Computer, _ResourceId
Pattern B — Pivot from technique. Start with an ATT&CK technique and look for any host doing that.
// Splunk — T1547.001 Registry Run Keys persistence
index=sysmon EventCode=13
TargetObject="*\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\*"
| stats values(Details) by Computer, User
| where len(values(Details)) > 1
Pattern C — Anomaly hunt. Establish a baseline; look for outliers.
// Sentinel — service accounts authenticating from new geographies
SigninLogs
| where TimeGenerated > ago(30d)
| where UserType == "Service"
| summarize Countries = make_set(Location) by UserPrincipalName
| where array_length(Countries) > 1
For every hit, three possible outcomes:
| Outcome | Action |
|---|---|
| Confirmed malicious | Escalate to incident-triage immediately |
| Confirmed benign | Document and move on |
| Unknown / unable to confirm | Deepen investigation (host artifacts, network traffic, user interview) |
Don't leave hits in the "unknown" state. Either resolve, or hand off with a documented next-step.
The hunt's value isn't the one hit — it's the artifacts.
For each hunt:
siem-detection)Hunts that don't produce artifacts are work without compounding return. The whole point of the methodology is to turn every hunt into either a rule, a documented dead-end, or a coverage improvement.
schtasks.exe /create from Sysmon event 1 + EventCode 4698 from Windows SecurityHKCU\...\Run, HKLM\...\Run, HKCU\...\RunOnce__EventFilter and CommandLineEventConsumer subscriptions/Library/LaunchDaemons/*.plist, ~/Library/LaunchAgents/*.plist/etc/cron.*, /etc/systemd/system/*.timer, user crontabsThe patterns malicious IDE extensions, MCP servers and packages use, so the hunt doesn't depend on one incident's IOCs
(for those, and the response, see incident-triage → dev-tool compromise):
authorized_keys on laptops at all — most dev laptops shouldn't accept inbound SSH. Then keys with service-like comments (svc-*, telemetry, backup) or a recent modification time~/Library/LaunchAgents/com.apple.*, com.google.*, scheduled tasks named SysMon or Microsoft*, @reboot user crontabs~/.config/ssh -R or autossh processes; StrictHostKeyChecking=no with UserKnownHostsFile=/dev/null in any command linesystemsetup -getremotelogin, Windows OpenSSH.Server capabilityextension.js in IDE extension folders whose first bytes aren't the bundler's banneragent-supply-chain-audit IN1–IN2)incident-triage dev-tool compromise)The agent binary is vendor-signed, so a parent of claude, Cursor Helper, codex, or the ChatGPT app looks normal and alerts on its children get closed. Judge the agent by what it launches. Read-only. These IDs are ancestry hunts. They are not the checks for what was loaded into the agent (agent-supply-chain-audit). No CVE: once someone held a session, the agents did what they were built to do. Elastic Security Threat Command (November 2026) and the August 2026 Security Labs note are the sources. Some of this has two readings — a developer exposing their own local dashboard, or an intrusion. Keep the hit and write both readings down.
| ID | Hunt | What to look for | Finding |
|---|---|---|---|
| AP1 | Credential store under an agent | Ancestry includes claude, Cursor Helper, codex, or ChatGPT, and the child runs security dump-keychain, security find-generic-password -w for any item other than the agent's own, or reads browser Login Data / Cookies | High. Allow-list exactly Claude Code's own "Claude Code-credentials" keychain item. That read is documented normal behavior |
| AP2 | Free reverse tunnel under an agent | A child named cloudflared or ngrok, ssh -R toward localhost.run, or a connection to *.trycloudflare.com, *.lhr.life, or *.ngrok-free.app | High together with AP3 or with credentials on the command line. Otherwise needs validation (dual-use) |
| AP3 | Persistence written under an agent | A new or modified file in ~/Library/LaunchAgents/, launchctl bootstrap or load, a PlistBuddy edit, a write to ~/.zshenv or ~/.zshrc, or a new authorized_keys entry, with agent ancestry | High |
| AP4 | Quarantine stripped, then ad-hoc signed | xattr -d com.apple.quarantine, or codesign -s - on a freshly downloaded binary, under agent ancestry | High |
| AP5 | Permission-bypass session | The agent was started with --dangerously-skip-permissions or --allow-dangerously-skip-permissions (Claude Code), or another agent's full-auto mode, on a machine that holds production credentials | Medium alone. Raises a confirmed AP1–AP4 on that same session by one level |
Search process telemetry for those commands. Do not run security dump-keychain to see what it returns.
Without an EDR, on macOS: log show --predicate 'process == "launchd"' --last 7d and ls -lt ~/Library/LaunchAgents, then the agent's transcripts (~/.claude/projects/*/, Codex session logs) for which prompt produced the command. Linux: the same ancestry test against user systemd units, cron, and authorized_keys. Windows: claude.exe parenting PowerShell, or curl.exe --socks5-hostname to port 1080. Response is incident-triage (when a coding agent ran it). A rule that should keep firing belongs in siem-detection.
-EncodedCommand — base64-encoded scripts are evasion 80% of the timecertutil.exe -decode — LOLBin used to decode dropper payloads%TEMP%, %APPDATA%, \Users\Public — non-standard exec paths^, backticks, cmd /c echo y | ...lsass.exe and SourceImage not in [mssense.exe, NisSrv.exe, ...]procdump.exe or comsvcs.dll use — process-dumping LOLBinsGetSessionToken or AssumeRole from new IPs — credential capture pivotiam-auditnet group "Domain Admins" or equivalent enumeration commandswhoami /all, quser, nltest /domain_trusts — situational awareness commands run by service accounts (humans rarely run these)ListBuckets, ListUsers, DescribeInstances from unusual principals. A single odd call is the weak form of this. Hunt the burst in Agent-speed cloud intrusionswmic.exe or Invoke-WmiMethodAssumeRole chains across accounts — pivot detectionCompress-Archive, 7z.exe, tar, zip operating on directories outside user homeGetCredentialReport, GenerateCredentialReport from unusual principals169.254.169.254 that isn't the cloud SDKStopLogging, DeleteTrail, log-bucket access from non-logging principalsHunt the burst as one unit. A valid identity that issues hundreds of List / Get / Describe calls across unrelated services in about half an hour, mostly AccessDenied or UnauthorizedOperation, is the shape Arctic Wolf (AntiFox) and Datadog (ARTEX) published in November 2026. There is no CVE: the calls used stolen credentials, and AWS said its services operated as designed. Do not close the hunt because most requests were denied. List only the successful calls in that window. Those are the findings.
AccessDenied / UnauthorizedOperation results across 5 or more unrelated services in under an hour. Then list only the successes in that window.ListSecrets then GetSecretValue, and DescribeParameters then GetParameter / GetParameters with decryption, from an identity or ASN not seen before for that principal.GetCallerIdentity then ListBuckets then ListObjects / ListObjectVersions then HeadObject / GetObject, then CopyObject / DeleteObject. Object reads need S3 data events on the sensitive buckets. Most small accounts do not have those on. If the trail cannot show object reads, say so; do not report "no storage access."i-*, calling APIs from a non-AWS source IP.FilterLogEvents. Datadog saw a constant limit of 1000 and search terms such as AKIA, password, mongo, s3://, and presigned.userIdentity.accountId is anonymous, including a request for a placeholder object (zzz_nonexistent_abc.txt, Notexist-xyz) immediately before a burst of guesses.SignUp / PreSignUp trigger failures, then CognitoIdentityCredentials sessions trying ListBuckets, ListSecrets, ListFunctions, DescribeLogGroups.Web foothold to cloud. When you find a web shell or an app compromise, pull the app's credentials (config files, env vars, SDK profiles, Secrets Manager references) and hunt each one in CloudTrail from the compromise time forward. Arctic Wolf saw cloud activity begin soon after config discovery.
Dated indicators, and the remediation that already lives in cloud-audit, iam-audit, and incident-triage: references/agent-speed-aws.md. A small team without a SIEM pages a narrower form of the denial burst and the secret read with log-watch (D11).
# Threat Hunt Report
## Hunt name: [descriptive — e.g., "Office process → encoded PowerShell"]
## Hypothesis: [specific, testable, bounded]
## Date range: [from - to]
## Hunter: [name]
### Methodology
- ATT&CK technique(s): [TXXXX.NNN]
- Data sources queried: [list]
- Query / queries:
[the actual SIEM query]
### Findings
| Hit ID | Host / User / Resource | Outcome | Notes |
|--------|------------------------|---------|-------|
### Conclusion
- [Confirmed malicious / All benign / Inconclusive]
- [Confidence level — Low / Medium / High]
### Artifacts produced
- [ ] Detection rule added (link)
- [ ] Coverage gap documented (link)
- [ ] Negative-result documentation filed (link)
### Recommended follow-up
[Anything that needs deeper investigation, escalation, or future hunts]
incident-triage immediately — do not continue hunting and risk tipping the adversaryFilterLogEvents, Cognito, perishable IOCs in references/agent-speed-aws.mdWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub briiirussell/cybersecurity-skills --plugin cybersecurity-skills42 skills in this plugin
/agent-supply-chain-auditAudit the extensions AI coding agents load and trust (skills, plugins, marketplaces, hooks, settings, MCP servers, and instruction files like CLAUDE.md, AGENTS.md and .cursor/rules) across Claude Code, Cursor, Codex, Gemini CLI and GitHub Copilot. Read-only: inventories each item with its source and pin, greps for hidden instructions, exfiltration, credential reads, persistence, curl|bash and over-broad tool grants, reviews hooks and MCP pinning and tool poisoning, and gives each item a SAFE / CAUTION / DO-NOT-INSTALL verdict. Use when the user mentions 'audit my skills,' 'is this skill malicious,' 'is this skill safe,' 'is this MCP server safe,' 'review CLAUDE.md,' 'review AGENTS.md,' 'plugin security,' 'check my hooks,' 'CODEOWNERS for .claude,' 'audit my MCP servers,' 'agent supply chain,' 'SkillSpector,' 'tool poisoning,' 'rug pull,' 'audit my IDE extensions,' 'is this VS Code extension safe,' 'is this repo safe to open,' or is about to install a skill, plugin, MCP server, or IDE extension./ai-risk-managementApply the NIST AI Risk Management Framework (AI RMF 1.0) and adjacent guidance to AI / ML systems — model lifecycle governance, fairness and bias evaluation, robustness, transparency, accountability, third-party model risk, monitoring for drift, and AI incident response. Broader than prompt-injection (which is the security slice). Use when the user mentions 'AI risk,' 'AI governance,' 'NIST AI RMF,' 'AI compliance,' 'ML governance,' 'model risk management,' 'AI fairness,' 'AI bias,' 'algorithmic accountability,' 'AI Bill of Rights,' 'EU AI Act,' 'AI transparency,' 'model card,' 'AI red-team program,' 'AI safety,' 'responsible AI,' 'model drift,' 'concept drift,' 'AI monitoring,' 'AI incident,' or needs to assess or govern an AI / ML system./api-auditAudit REST, GraphQL, and RPC APIs against the OWASP API Security Top 10 (2023). Use when the user mentions 'API security,' 'API audit,' 'BOLA,' 'broken object level authorization,' 'BFLA,' 'function-level authorization,' 'mass assignment,' 'API rate limiting,' 'GraphQL security,' 'REST security,' 'API authentication,' 'API authorization,' 'excessive data exposure,' 'redact the API transcript,' 'structured identities for a BOLA test,' or needs to review API endpoints for security weaknesses./breach-patternsLearn from public breach disclosures — extract the audit question each one implies and turn it into a checklist for your own stack. Capital One IMDS abuse, LastPass vault exfiltration, Okta Lapsus$, Snowflake credential reuse, MOVEit, SolarWinds, Equifax, Target POS, Codecov, Uber, Twilio, Polymarket's compromised DebugBear script, the OPTIMJACK Optimizely snippet injection — what would you check now if your boss said 'could that happen to us?' Use when the user mentions 'breach analysis,' 'lessons learned,' 'security postmortem,' 'breach patterns,' 'breach lessons,' 'has this happened to us,' 'apply breach lessons,' 'preempt breaches,' 'security retrospective,' 'real-world security incidents,' 'Optimizely compromise,' 'tag manager hacked,' or wants to harden against known attacker playbooks./business-logic-testingTest an authorized web application for business-logic flaws and race conditions — the classes scanners cannot find. Model invariants (conservation of value, uniqueness, monotonicity, exclusivity), build an Actor x Action x Resource matrix, abuse state machines (skip/reorder/replay steps, limit-slicing), find numeric bugs (float-vs-decimal rounding, cross-currency refund arbitrage, negative amounts), stale feature gates, and saga gaps; prove concurrency bugs (double-spend, lost update, idempotency-key reuse) with controlled parallel requests. Use when the user mentions 'business logic testing,' 'race condition,' 'double spend,' 'TOCTOU,' 'concurrency bug,' 'idempotency,' 'coupon reuse,' 'workflow bypass,' 'limit bypass,' 'negative amount,' 'refund arbitrage,' 'parallel request attack,' or 'logic flaw.'/cicd-securityAudit CI/CD pipelines (GitHub Actions; GitLab CI and CircleCI briefly) for paths giving an outsider code execution, secrets or a write token: pull_request_target and workflow_run running untrusted code, expression injection, missing or broad permissions, third-party actions not pinned to a SHA or lockfile, OIDC trust with wildcard subjects, self-hosted runners on public repos, secrets reaching forks, cache and artifact trust, and AI agents in CI reading issue or PR text with a write token, sandbox or not. Runs zizmor and actionlint read-only, writes findings.json. Use when the user mentions 'pull_request_target,' 'pwn request,' 'workflow injection,' 'zizmor,' 'actionlint,' 'pin actions to SHA,' 'actions.lock,' 'workflow lockfile,' 'GITHUB_TOKEN permissions,' 'self-hosted runner,' 'ACTIONS_RUNTIME_TOKEN,' 'stolen write token,' 'bot bypasses branch protection,' 'claude-code-action,' 'AI agent in CI,' 'GitLab CI security,' 'CircleCI security,' 'is this workflow safe,' or needs to secure a build pipeline.Other plugins' skills for the same job