agentic-threat-hunting-framework 0.2.3__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentic_threat_hunting_framework-0.2.3.dist-info → agentic_threat_hunting_framework-0.3.0.dist-info}/METADATA +38 -40
- agentic_threat_hunting_framework-0.3.0.dist-info/RECORD +51 -0
- athf/__version__.py +1 -1
- athf/cli.py +7 -2
- athf/commands/__init__.py +4 -0
- athf/commands/agent.py +452 -0
- athf/commands/context.py +6 -9
- athf/commands/env.py +2 -2
- athf/commands/hunt.py +3 -3
- athf/commands/init.py +45 -0
- athf/commands/research.py +530 -0
- athf/commands/similar.py +5 -5
- athf/core/research_manager.py +419 -0
- athf/core/web_search.py +340 -0
- athf/data/__init__.py +19 -0
- athf/data/docs/CHANGELOG.md +147 -0
- athf/data/docs/CLI_REFERENCE.md +1797 -0
- athf/data/docs/INSTALL.md +594 -0
- athf/data/docs/README.md +31 -0
- athf/data/docs/environment.md +256 -0
- athf/data/docs/getting-started.md +419 -0
- athf/data/docs/level4-agentic-workflows.md +480 -0
- athf/data/docs/lock-pattern.md +149 -0
- athf/data/docs/maturity-model.md +400 -0
- athf/data/docs/why-athf.md +44 -0
- athf/data/hunts/FORMAT_GUIDELINES.md +507 -0
- athf/data/hunts/H-0001.md +453 -0
- athf/data/hunts/H-0002.md +436 -0
- athf/data/hunts/H-0003.md +546 -0
- athf/data/hunts/README.md +231 -0
- athf/data/integrations/MCP_CATALOG.md +45 -0
- athf/data/integrations/README.md +129 -0
- athf/data/integrations/quickstart/splunk.md +162 -0
- athf/data/knowledge/hunting-knowledge.md +2375 -0
- athf/data/prompts/README.md +172 -0
- athf/data/prompts/ai-workflow.md +581 -0
- athf/data/prompts/basic-prompts.md +316 -0
- athf/data/templates/HUNT_LOCK.md +228 -0
- agentic_threat_hunting_framework-0.2.3.dist-info/RECORD +0 -23
- {agentic_threat_hunting_framework-0.2.3.dist-info → agentic_threat_hunting_framework-0.3.0.dist-info}/WHEEL +0 -0
- {agentic_threat_hunting_framework-0.2.3.dist-info → agentic_threat_hunting_framework-0.3.0.dist-info}/entry_points.txt +0 -0
- {agentic_threat_hunting_framework-0.2.3.dist-info → agentic_threat_hunting_framework-0.3.0.dist-info}/licenses/LICENSE +0 -0
- {agentic_threat_hunting_framework-0.2.3.dist-info → agentic_threat_hunting_framework-0.3.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# AI Prompt Library
|
|
2
|
+
|
|
3
|
+
This folder contains prompts to help you accelerate threat hunting at different maturity levels.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## What's Here
|
|
8
|
+
|
|
9
|
+
### basic-prompts.md
|
|
10
|
+
|
|
11
|
+
**Level:** 0-1 (Manual/Documented)
|
|
12
|
+
**Use for:** Copy-paste prompts for ChatGPT, Claude, or other AI assistants
|
|
13
|
+
|
|
14
|
+
Contains three prompt templates:
|
|
15
|
+
|
|
16
|
+
1. **Generate Hypothesis** - From CTI, alerts, or anomalies
|
|
17
|
+
2. **Build Query** - Safe, bounded queries for Splunk, KQL, or Elastic
|
|
18
|
+
3. **Document Results** - Capture findings in LOCK format
|
|
19
|
+
|
|
20
|
+
**When to use:** You're working outside an AI-enabled IDE and need quick assistance with hypothesis generation, query building, or documentation.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
### ai-workflow.md
|
|
25
|
+
|
|
26
|
+
**Level:** 2 (Searchable) - AI with Memory
|
|
27
|
+
**Use for:** AI tools that can read your repository (Claude Code, GitHub Copilot, Cursor)
|
|
28
|
+
|
|
29
|
+
Contains:
|
|
30
|
+
|
|
31
|
+
- System prompt for AI tools
|
|
32
|
+
- 4 core workflows (threat intel, anomaly investigation, proactive hunting, documentation)
|
|
33
|
+
- Complete example conversation showing AI reasoning
|
|
34
|
+
- Tool-specific tips and troubleshooting
|
|
35
|
+
- Quality checklists
|
|
36
|
+
|
|
37
|
+
**When to use:** You have AI tools with file access to your hunt repository and want them to search past hunts, validate against environment.md, and generate context-aware hypotheses.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## How to Choose
|
|
42
|
+
|
|
43
|
+
**Use basic-prompts.md if:**
|
|
44
|
+
|
|
45
|
+
- You're just getting started with AI-assisted hunting
|
|
46
|
+
- You don't have AI tool subscriptions yet
|
|
47
|
+
- You want simple copy-paste templates
|
|
48
|
+
- You're working in a web interface (ChatGPT, Claude.ai)
|
|
49
|
+
|
|
50
|
+
**Use ai-workflow.md if:**
|
|
51
|
+
|
|
52
|
+
- You have Claude Code, GitHub Copilot, or Cursor
|
|
53
|
+
- Your hunt repository has AGENTS.md, knowledge/hunting-knowledge.md, and documented past hunts
|
|
54
|
+
- You want AI to search memory, apply expert hunting frameworks, and apply lessons learned
|
|
55
|
+
- You're ready for more advanced workflows
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Quick Start
|
|
60
|
+
|
|
61
|
+
### Level 0-1: Basic Prompts
|
|
62
|
+
|
|
63
|
+
1. Open [basic-prompts.md](basic-prompts.md)
|
|
64
|
+
2. Copy the prompt template you need
|
|
65
|
+
3. Fill in your context (hypothesis, data sources, results)
|
|
66
|
+
4. Paste into ChatGPT, Claude, or your AI assistant
|
|
67
|
+
5. Review and refine the output
|
|
68
|
+
|
|
69
|
+
**Example:**
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
# You have threat intel about PowerShell abuse
|
|
73
|
+
→ Use "Generate Hypothesis" prompt from basic-prompts.md
|
|
74
|
+
→ Paste CTI report into context section
|
|
75
|
+
→ AI generates testable hypotheses
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Level 2: AI Workflows
|
|
79
|
+
|
|
80
|
+
1. Open your hunt repository in Claude Code, Copilot, or Cursor
|
|
81
|
+
2. Provide the system prompt from [ai-workflow.md](ai-workflow.md)
|
|
82
|
+
3. Ask AI to search past hunts before generating new ones
|
|
83
|
+
4. Follow the workflow guides for common scenarios
|
|
84
|
+
|
|
85
|
+
**Example:**
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
You: "Check if we've hunted T1003.001 before. Use the system prompt from prompts/ai-workflow.md"
|
|
89
|
+
AI: [Searches hunts/, reads environment.md, generates context-aware hypothesis]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Safety Reminders
|
|
95
|
+
|
|
96
|
+
### AI Assistance ≠ Autopilot
|
|
97
|
+
|
|
98
|
+
- **Always review** AI-generated hypotheses for feasibility
|
|
99
|
+
- **Always test** AI-generated queries on small timeframes first
|
|
100
|
+
- **Always validate** that queries are safe and bounded
|
|
101
|
+
- **Use your judgment** - You know your environment better than AI
|
|
102
|
+
|
|
103
|
+
### Before Running Any AI-Generated Query
|
|
104
|
+
|
|
105
|
+
1. Check for time bounds (`earliest=-Xd`)
|
|
106
|
+
2. Check for result limits (`| head N` or `| take N`)
|
|
107
|
+
3. Test on 1-hour window before expanding to days
|
|
108
|
+
4. Verify it won't impact SIEM performance
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Platform-Specific Tips
|
|
113
|
+
|
|
114
|
+
**Splunk Users:**
|
|
115
|
+
|
|
116
|
+
- Mention "Splunk SPL" in your prompts
|
|
117
|
+
- Specify data models when available
|
|
118
|
+
- AI knows common Splunk patterns (tstats, eval, stats)
|
|
119
|
+
|
|
120
|
+
**KQL Users (Sentinel/Defender):**
|
|
121
|
+
|
|
122
|
+
- Mention "KQL for Sentinel" or "KQL for Defender"
|
|
123
|
+
- Specify table names (SecurityEvent, DeviceProcessEvents, etc.)
|
|
124
|
+
- AI understands Sentinel-specific syntax
|
|
125
|
+
|
|
126
|
+
**Elastic Users:**
|
|
127
|
+
|
|
128
|
+
- Mention "Elastic EQL" or "Lucene query"
|
|
129
|
+
- Specify index patterns
|
|
130
|
+
- Note which Elastic stack version you're using
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Next Steps
|
|
135
|
+
|
|
136
|
+
### After Using Basic Prompts
|
|
137
|
+
|
|
138
|
+
1. Document your hunts using [templates/HUNT_LOCK.md](../templates/HUNT_LOCK.md)
|
|
139
|
+
2. Create AGENTS.md in your repository (see main README)
|
|
140
|
+
3. Ensure knowledge/hunting-knowledge.md is present (included in repo by default)
|
|
141
|
+
4. Progress to Level 2 with ai-workflow.md
|
|
142
|
+
|
|
143
|
+
### After Level 2 Workflows
|
|
144
|
+
|
|
145
|
+
1. See real examples in [hunts/H-0001.md](../hunts/H-0001.md) and [hunts/H-0002.md](../hunts/H-0002.md)
|
|
146
|
+
2. Review format guidelines in [hunts/FORMAT_GUIDELINES.md](../hunts/FORMAT_GUIDELINES.md)
|
|
147
|
+
3. Consider Level 3 (MCP integrations) in [integrations/](../integrations/)
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Customizing for Your Environment
|
|
152
|
+
|
|
153
|
+
Feel free to modify these prompts:
|
|
154
|
+
|
|
155
|
+
- Add your organization's specific data sources
|
|
156
|
+
- Include your ATT&CK coverage gaps
|
|
157
|
+
- Reference your baseline automation
|
|
158
|
+
- Add your threat model priorities
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Contributing
|
|
163
|
+
|
|
164
|
+
Have a better prompt? Found a useful workflow?
|
|
165
|
+
|
|
166
|
+
- Submit a PR with your improvements
|
|
167
|
+
- Share what works in your environment
|
|
168
|
+
- Help others get started faster
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
**Remember: These prompts are training wheels. They help you get started faster, teach you the LOCK pattern, and over time you'll need them less. But they remain useful for complex hunts.**
|