From mas-hunt
Use when interacting with Kibana Security APIs — alert triage, detection rules, case management, timeline creation on live Elastic Security.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mas-hunt:elk-security-huntingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Core skill for the ELK mode of `/hunt`. Provides Python helpers and API patterns
Core skill for the ELK mode of /hunt. Provides Python helpers and API patterns
for hunting directly against a live Elastic Security (SIEM) stack — no evidence
ingestion required.
Read from ~/.claude/.env:
KIBANA_URL=https://your-kibana:5601
KIBANA_API_KEY=your_base64_encoded_api_key # Authorization: ApiKey <key>
KIBANA_SPACE=default # Kibana space ID
HUNT_CYCLE_HOURS=8 # Continuous mode cycle interval
Auth: API Key only (Authorization: ApiKey <base64_key>). No basic auth.
| Domain | Base Path | Purpose |
|---|---|---|
| Detection Rules | /api/detection_engine/rules | CRUD for EQL/KQL/ES|QL/threshold/ML rules |
| Alerts/Signals | /api/detection_engine/signals | Search, triage, tag open alerts |
| Cases | /api/cases | Investigation case lifecycle |
| Timelines | /api/timeline | Attack timeline construction |
kbn-xsrf: true header required on every mutating requestversion field required for all updates (optimistic locking — prevents overwrites)/s/{space}/api/... when KIBANA_SPACE != default.alerts-security.alerts-* (not logs-*)application/json on all requestswindows.security does NOT exist in the Windows integration package. Security event logs are in the system package as system.security. use system integration for Security/Application/System event channels.| Script | Purpose | Run |
|---|---|---|
scripts/kibana_client.py | Base HTTP client: auth, headers, space URLs, retry | uv run |
scripts/alert_triage.py | Search alerts, TP/FP classify, batch status update | uv run |
scripts/rule_manager.py | Rule CRUD, preview, bulk actions, MITRE mapping | uv run |
scripts/case_manager.py | Case CRUD, comments, alert attachment | uv run |
scripts/timeline_manager.py | Create timelines, add notes, pin events | uv run |
All scripts load env from ~/.claude/.env via python-dotenv.
# List open alerts grouped by rule
uv run ${CLAUDE_PLUGIN_ROOT}/skills/elk-security-hunting/scripts/alert_triage.py list
# Triage alerts for a specific rule ID
uv run ${CLAUDE_PLUGIN_ROOT}/skills/elk-security-hunting/scripts/alert_triage.py triage --rule-id <id>
# List detection rules
uv run ${CLAUDE_PLUGIN_ROOT}/skills/elk-security-hunting/scripts/rule_manager.py list
# Create a new EQL rule from file
uv run ${CLAUDE_PLUGIN_ROOT}/skills/elk-security-hunting/scripts/rule_manager.py create --file rule.json
# List open cases
uv run ${CLAUDE_PLUGIN_ROOT}/skills/elk-security-hunting/scripts/case_manager.py list
# Create a timeline
uv run ${CLAUDE_PLUGIN_ROOT}/skills/elk-security-hunting/scripts/timeline_manager.py create --title "Hunt Timeline"
For linked skills, ELK mode details, and full API endpoint reference, see reference.md.
npx claudepluginhub pmatheus/mas-hunt --plugin mas-huntProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.