hunt-apt
Skill127 starsChanged 4 months agoApache-2.0View on GitHub
Hunt for a specific APT/threat actor in your environment. Use when you have a threat actor name or GTI collection ID and want to search for their TTPs and IOCs. Gathers intelligence from GTI, searches SIEM for IOCs and TTP-based indicators, and documents findings.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-content-gapsSkill
- audit-contentSkill
- check-duplicatesSkill
- close-case-artifactSkill
- cluster-documentsSkill
- confirm-actionSkill
- correlate-iocSkill
- deep-dive-iocSkill
- design-metadata-schemaSkill
- document-in-caseSkill
- enrich-iocSkill
- find-relevant-caseSkill
- generate-reportSkill
- generate-sitemapSkill
- generate-taxonomySkill
- generate-thesaurusSkill
- hunt-credential-accessSkill
- hunt-iocSkill
- hunt-lateral-movementSkill
- hunt-threatSkill
- inventory-contentSkill
- pivot-on-iocSkill
- respond-compromised-accountSkill
- respond-malwareSkill
- respond-phishingSkill
- respond-ransomwareSkill
- triage-alertSkill
- triage-malwareSkill
- triage-suspicious-loginSkill
- full-alert-triageSkill
- full-investigationSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
If starting with a name:
- Very specific: line 70
Document both positive and negative results → IOC_SEARCH_FINDINGS.
- Very specific: line 75
Use gti-mcp.get_threat_intel(query="MITRE technique details") for detection ideas
- Very specific: line 84
If hits found (IOC_SEARCH_FINDINGS or TTP_SEARCH_FINDINGS):
- Very specific: line 94
Use /find-relevant-case with found IOCs and entities.
- Very specific: line 98
Use /document-in-case (if HUNT_CASE_ID provided).
- Very specific: line 100
Use /generate-report with REPORT_TYPE="apt_hunt":
- Distinctive: line 143
Document ALL queries used (for reproducibility)
- Distinctive: line 145
Don't report false positives as confirmed threats
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
APT Threat Hunt Skill
Proactively hunt for TTPs and IOCs associated with a specific Advanced Persistent Threat (APT) group based on threat intelligence.
Inputs
THREAT_ACTOR_ID- GTI Collection ID or name of the target APT groupHUNT_TIMEFRAME_HOURS- Lookback period (default: 168 = 7 days)- (Optional)
TARGET_SCOPE_QUERY- UDM query to narrow scope - (Optional)
HUNT_HYPOTHESIS- Specific hypothesis guiding the hunt - (Optional)
HUNT_CASE_ID- SOAR case for tracking
Workflow
Step 1: Identify Actor & Gather Intelligence
If starting with a name:
gti-mcp.search_threat_actors(query="APT_NAME")Then gather comprehensive intelligence:
gti-mcp.get_collection_report(id=THREAT_ACTOR_ID)
gti-mcp.get_collection_mitre_tree(id=THREAT_ACTOR_ID)
gti-mcp.get_collection_timeline_events(id=THREAT_ACTOR_ID)Extract associated IOCs:
gti-mcp.get_entities_related_to_a_collection(id=THREAT_ACTOR_ID, relationship_name="files")
gti-mcp.get_entities_related_to_a_collection(id=THREAT_ACTOR_ID, relationship_name="domains")
gti-mcp.get_entities_related_to_a_collection(id=THREAT_ACTOR_ID, relationship_name="urls")Store as GTI_IOC_LIST.
Step 2: Check SIEM IOC Matches
secops-mcp.get_ioc_matches(hours_back=HUNT_TIMEFRAME_HOURS)Correlate results with GTI_IOC_LIST.
Step 3: IOC-Based SIEM Search
For each IOC type in GTI_IOC_LIST, construct and execute UDM queries:
secops-mcp.search_security_events(
text="UDM query for IOC",
hours_back=HUNT_TIMEFRAME_HOURS
)Document both positive and negative results → IOC_SEARCH_FINDINGS.
Step 4: TTP-Based SIEM Search
Based on MITRE techniques from Step 1:
- Use
gti-mcp.get_threat_intel(query="MITRE technique details")for detection ideas - Formulate TTP-specific UDM queries
- Execute searches over the timeframe
- Combine with
TARGET_SCOPE_QUERYif provided
Document results → TTP_SEARCH_FINDINGS.
Step 5: Enrich Findings
If hits found (IOC_SEARCH_FINDINGS or TTP_SEARCH_FINDINGS):
For each found IOC or entity:
secops-mcp.lookup_entity(entity_value=FOUND_ITEM)
gti-mcp.get_..._report(identifier=FOUND_ITEM)Step 6: Check Related Cases
Use /find-relevant-case with found IOCs and entities.
Step 7: Document & Report
Use /document-in-case (if HUNT_CASE_ID provided).
Use /generate-report with REPORT_TYPE="apt_hunt":
- Hunt objective and hypothesis
- Threat actor summary
- TTPs investigated
- IOCs searched
- SIEM queries used
- Findings (positive AND negative)
- Recommendations
Step 8: Escalate or Conclude
Confirmed threat found: → Escalate to Incident Response → Create incident case
No threat found: → Document negative findings → Conclude hunt
Required Outputs
After completing this skill, you MUST report these outputs:
| Output | Description |
ACTOR_IOCS | IOCs associated with threat actor from GTI |
ACTOR_TTPS | TTPs from threat actor profile (MITRE techniques) |
HUNT_RESULTS | SIEM search results for actor indicators |
DISCOVERED_INDICATORS | IOCs found in environment matching actor profile |
CONFIRMED_IOCS | IOCs confirmed malicious via GTI enrichment |
Key Intelligence Sources
| Source | Tool |
| Actor Profile | get_collection_report |
| TTPs | get_collection_mitre_tree |
| Timeline | get_collection_timeline_events |
| Related IOCs | get_entities_related_to_a_collection |
| Technique Details | get_threat_intel |
Critical Requirements
- Document ALL queries used (for reproducibility)
- Report negative findings (no hits is valuable intel)
- Don't report false positives as confirmed threats
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

