Logo di Wazuh MCP Server

Wazuh MCP Server

Community
INFOKOM-KI

Wazuh MCP Server: AI-Driven SOC Automation

AutoreINFOKOM-KI
RepositoryWazuh-MCP-Server
LinguaPython
Fork
18
Stelle
58
Strumenti disponibili
0
Tipo di trasportostdio
LicenzaBSD-3-Clause
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Wazuh MCP Server mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    58 stelle e 18 fork nel repository collegato.

Blue Team MCP Server (Wazuh SIEM)

Wazuh-MCP-Server MCP server

Wazuh-MCP-Server MCP server

A defensive MCP server for Claude Desktop / any MCP client — the blue-team counterpart to offensive tooling. 147 tools + 4 resources (121 when WAZUH_READ_ONLY=true) across Wazuh SIEM, multi-provider threat intelligence, MITRE-driven 3-Sum APT correlation, attack graphing, LangGraph investigation workflows, local case RAG, and host forensics. Read-only by default.

Programmer: NAuliajati (csirt[at]tangerangkota[.]go[.]id)


Architecture

main.py -> mcp_server/  (package)
                 ├─ core/          HTTP client, redaction, audit, config, attack graph, IOC store
                 ├─ wazuh/         Indexer (OpenSearch) + Manager API (JWT auth)
                 ├─ correlation/   3-Sum engine (pure computation, MITRE-driven)
                 ├─ threat_intel/  CrowdSec, ThreatFox, OTX, URLhaus, GreyNoise + shared cache
                 ├─ agents/        LangGraph investigation + playbook workflows
                 └─ tools/         53 tool modules

Every tool call flows through a single pipeline in the @blueteam_tool decorator — the three most-connected nodes in the code graph:

audit (_audit_log) -> call -> redact (_redact_alert_data) -> truncate (_truncate_if_needed)

All outbound HTTP flows through a per-pool circuit breaker (http_client.CircuitBreaker: 5 consecutive failures -> open, 60s cooldown, single half-open trial). 429 and 4xx never count as failures, so an outage on one upstream fails fast instead of stacking retries across tools.

TransportUse case
stdioLocal subprocess / SSH pipe (default)
streamable_httpRemote HTTP service (http://<host>:<port>/mcp) — requires MCP_API_KEY beyond 127.0.0.1 (bind guard enforced)

Quick Start

bash
git clone <repo> && cd Wazuh-MCP-Server
sudo bash setup.sh                    # deps, venv, wrapper at /opt/blue-team-mcp

# configure (edit /opt/blue-team-mcp/config.env)
export WAZUH_INDEXER_URL="https://<host>:9200"
export WAZUH_INDEXER_USER="admin"
export WAZUH_INDEXER_PASSWORD="<indexer-password>"
export WAZUH_API_URL="https://<host>:55000"      # optional — Manager API tools
export WAZUH_API_USER="wazuh-wui"
export WAZUH_API_PASSWORD="<api-password>"
export CROWDSEC_API_KEY="<key>"                  # optional — threat intel (free)
# inbound auth for the HTTP transport (REQUIRED when binding beyond 127.0.0.1)
export MCP_API_KEY="btm_<43-char-base64>"        # generate: python3 -c "import secrets; print('btm_' + secrets.token_urlsafe(32))"
export MCP_API_KEY_SCOPES="wazuh:read wazuh:write"   # optional — default wazuh:read (read-only)

# run (stdio)
mcp-server-blueteam

# or remote HTTP (MCP_API_KEY is mandatory here — the server refuses to bind otherwise)
MCP_TRANSPORT=streamable_http MCP_HOST=0.0.0.0 MCP_PORT=8001 \
  MCP_API_KEY="btm_<43-char-base64>" mcp-server-blueteam

Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "blue-team-mcp": {
      "command": "ssh",
      "args": ["-i", "~/.ssh/id_ed25519", "user@DEFENDER_HOST", "mcp-server-blueteam"],
      "transport": "stdio"
    }
  }
}

Configuration

Credentials come from environment variables, validated at startup. Every threat-intel key is optional — tools degrade gracefully without them.

AreaVariablesNotes
Wazuh IndexerWAZUH_INDEXER_URL / _USER / _PASSWORDOpenSearch (9200) — alert/event data
Wazuh ManagerWAZUH_API_URL / _USER / _PASSWORDManager API (55000) — rules/agents/config
TLSWAZUH_INDEXER_VERIFY_SSL, WAZUH_API_VERIFY_SSLdefault true
Threat intelCROWDSEC_API_KEY, THREATFOX_API_KEY, OTX_API_KEY, URLHAUS_API_KEY, ABUSEIPDB_API_KEY, VIRUSTOTAL_API_KEY, NETRA_API_KEY, ARGUS_API_KEY, RAPIDAPI_KEY, HUDSONROCK_API_KEY9 providers + RapidAPI + HudsonRock; all optional
RapidAPI budgetBLUETEAM_RAPIDAPI_MONTHLY_CAP, BLUETEAM_RAPIDAPI_BUDGET, BLUETEAM_RAPIDAPI_BUDGET_HOURS, BLUETEAM_RAPIDAPI_CACHE, BLUETEAM_RAPIDAPI_RAW_WHOIS, RAPIDAPI_CACHE_TTLone account-wide pool (default 100/month) shared by every RapidAPI product. Budget defaults to 0, so every RapidAPI call is refused until an operator arms a window
MISPMISP_URL, MISP_API_KEY, MISP_VERIFYCERT, MISP_CACHE_TTL, MISP_MIN_INTERVAL, MISP_MAX_CONCURRENT, MISP_TIMEOUTinternal sharing instance; read-only key. MISP_URL without MISP_API_KEY fails startup. VERIFYCERT defaults true and is scoped to the MISP pool only
Outbound lookup spacingNETRA_MIN_INTERVAL, ARGUS_MIN_INTERVAL, SANGFOR_MIN_INTERVALseconds between upstream lookups — default 30/30/5
Outbound HTTP timeoutHTTP_TIMEOUTseconds per upstream request — default 30. Netra overrides it per request at 90s because its fan-out measured ~34s. A timeout counts as a breaker failure, so a budget below real latency trips the breaker for that upstream
ATT&CK STIX bundleMITRE_ATTACK_STIX, BLUETEAM_STIX_CACHE, BLUETEAM_STIX_MAX_AGE_DAYS, BLUETEAM_STIX_MAX_MB, BLUETEAM_STIX_RETRY_Shttps:// URL or a local path (no file:///ftp://), cache path (default /var/log/blue-team-mcp/mitre_enterprise_attack.json), refresh TTL (7 days), fetch cap (100 MB — the corpus is 40 MB), retry after a failed first load (60s). A failed refresh keeps the last good bundle
STIX 2.1 egressBLUETEAM_STIX_EGRESS_ENABLED, BLUETEAM_STIX_IDENTITY_NAME, BLUETEAM_STIX_IDENTITY_SECTORS, BLUETEAM_STIX_IDENTITY_CONTACT, BLUETEAM_STIX_DEFAULT_TLP, BLUETEAM_STIX_NAMESPACE, BLUETEAM_STIX_MARKINGS_FILEthe only egress path: blueteam_stix_export writes a shareable bundle. Off by default; on, it also needs IDENTITY_NAME and a non-empty BLUETEAM_OWNED_DOMAINS (fail-closed, see Security & Privacy). DEFAULT_TLP defaults AMBER. NAMESPACE aligns UUIDv5 ids with a peer. MARKINGS_FILE adds markings this repo does not ship (TLP:CLEAR, TLP:AMBER+STRICT)
RedactionBLUETEAM_REDACTION_POLICY, BLUETEAM_OWNED_DOMAINS, BLUETEAM_REDACT_*see Security & Privacy
Forensic gateBLUETEAM_ALLOW_FORENSIC_BYPASS, BLUETEAM_FORENSIC_TOKENdefault false / empty
SSRF allowlistALLOWED_INTERNAL_DOMAINScomma-separated internal domains blueteam_check_webshell may reach on non-public IPs (default: reject all non-public hosts)
Inbound authMCP_API_KEY, MCP_API_KEY_SCOPESpre-shared API key + scopes for streamable_http
Inbound hardeningBLUETEAM_HTTP_RATE_LIMIT, BLUETEAM_ALLOWED_ORIGINSper-IP sliding-window rate limit (req/min, 0=off) + Origin allowlist (loopback always allowed)
Audit & persistenceBLUETEAM_AUDIT_LOG, BLUETEAM_IOC_STORE, BLUETEAM_ATTACKER_REGISTRY, BLUETEAM_FALSE_POSITIVE_KB, BLUETEAM_CASE_STORE, BLUETEAM_CMDB_FILEJSONL audit trail + stores (optional)
Local case RAGBLUETEAM_RAG_ENABLED, BLUETEAM_RAG_DB, BLUETEAM_RAG_MODEL, BLUETEAM_RAG_CACHE_PATH, BLUETEAM_RAG_MAX_CANDIDATES, BLUETEAM_RAG_TOP_K, BLUETEAM_RAG_MAX_CHUNKS, BLUETEAM_RAG_CHUNK_CHARS, BLUETEAM_RAG_CHUNK_OVERLAP, BLUETEAM_RAG_ALLOW_DOWNLOAD, BLUETEAM_RAG_MODEL_SHA256SQLite retrieval corpus over cases / confirmed false positives / IR playbooks. ENABLED=true requires an absolute DB path or startup raises. ALLOW_DOWNLOAD defaults false (local_files_only).
GatingWAZUH_READ_ONLY, WAZUH_DISABLED_CATEGORIES, WAZUH_DISABLED_TOOLSskip destructive tools / tool categories. The registered tool count changes with these. WAZUH_READ_ONLY=true skips the host_forensics (23 tools) and fail2ban (3 tools) modules at import, so the startup line reads 121 tools registered instead of 147: 147 - 23 - 3 = 121. Disabling a category via WAZUH_DISABLED_CATEGORIES subtracts that category's tools the same way. Each skip is logged at INFO with the category name, immediately before the count line. Nothing is hardcoded: the count comes from the live FastMCP registry after import

Capabilities

Wazuh SIEM

Alert search (blueteam_wazuh_indexer_search, wazuh_alert_dsl_query), zero-doc statistical aggregations, schema discovery (blueteam_index_schema), domain/email/geo/syscheck/compliance lookups, and Manager API tools (rules, decoders, groups, agents, security events).

Semantic Search & Prompt Routing

blueteam_semantic_search (BM25 over Wazuh rule/alert corpora) and blueteam_prompt_route (BM25 prompt→tool router; accepts Indonesian or English phrasing). Both can run a local cross-encoder (BAAI/bge-reranker-base, ONNX, MIT) second stage over the BM25 candidates for synonym / cross-lingual matching. The reranker is enabled by default (BLUETEAM_RERANK_ENABLED=true) and pre-warmed at startup, but the per-tool default differs: semantic search reranks, prompt routing does not. A 2026-09-21 measurement on 22 labelled prompts (tests/bench_rerank_routing.py) put Indonesian top-3 routing accuracy at 7/16 with BM25 and 5/16 with the cross-encoder, at 2.97 s median / 9.67 s p95 per call; direct scoring showed the model rates English pairs confidently (+1.17 vs -10.19 for a correct/incorrect tool) and Indonesian pairs flat and negative (-3 to -9, wrong winner). Three rerankers were measured on HEAD against the same 22 labelled prompts (tests/bench_rerank_routing.py):

rankerIndonesian top-3English top-3All top-3median per call
BM25 only (no rerank)10/163/613/222 ms
BAAI/bge-reranker-base7/160/67/224.05 s
madebyaris/rerank-indonesia9/160/69/220.78 s

Routing stays BM25-only. The Indonesian-specific cross-encoder is five times faster than the multilingual one and much closer to BM25, but still behind it, and the entire gap sits in the 12 templated report prompts: on the 10 natural Indonesian questions both rankers score 9/10. The router's hand-written synonym map ("report" maps to aggregate plus timeline) beats any cross-encoder on templated report requests. blueteam_rag_query still reranks because its corpus is a local case store this measurement does not cover.

For a vendor-and-pin deployment set BLUETEAM_RERANK_MODEL_PATH to a model directory already on disk (the snapshot_download layout: config.json plus onnx/model.onnx and its tokenizer files). fastembed then reads the weights from that path and no download path is reachable, pinned or not; combine it with BLUETEAM_RERANK_MODEL_SHA256 so a changed file is refused before the ONNX session is built. Cross-encoders fastembed does not ship are registered at runtime from CUSTOM_RERANK_MODELS in mcp_server/core/rerank.py, and madebyaris/rerank-indonesia is already in that table, so reproducing the row above needs only that env var plus the vendored directory. The model name is checked against fastembed's cross-encoder registry at startup: a name it cannot load (BAAI/bge-reranker-v2-m3 is not in it) is a startup error, not a quiet BM25 fallback. Runtime failures degrade to BM25-only and label themselves in rerank_engine / rerank_status. Weights are pre-downloaded by setup.sh into BLUETEAM_RERANK_CACHE_PATH — local-only, never a hosted API.

Truncation is rank-based with no score threshold: raw cross-encoder logits are uncalibrated across query distributions, so a fixed floor deletes good matches. BLUETEAM_RERANK_MAX_CANDIDATES (default 100) bounds the fan-out inside the shared rerank_hits() helper, so every caller is bounded identically.

Local Case RAG (blueteam_rag_*)

A local retrieval corpus over the SOC's own history — case_store records, confirmed false-positive reasons and converted IR playbooks — plus a deterministic false-positive check. Embeddings are computed in-process by ONNX (fastembed.TextEmbedding, no torch, no hosted embedding API), stored in SQLite, and never transmitted.

  • blueteam_rag_ingest — rebuild a corpus label. Derived labels (cases, false_positives, pdf) are rebuilt from their source of truth, so re-run it after editing cases or marking new FPs. source="pdf" reads a server-side PDF and chunks it page by page, so the text never passes through the model context and BLUETEAM_CHARACTER_LIMIT does not apply.
  • blueteam_rag_query — vector recall (default 100 candidates) then the optional cross-encoder, returning scores plus corpus stats so a stale index is visible.
  • blueteam_rag_fp_validate — verdict ladder over registry lookups and corpus matches: suppressed_exact, conflicting_state, likely_true_positive, likely_false_positive, insufficient_evidence, validation_incomplete. Advisory only, never writes, and evidence.confidence is always not_computed.

The distinction that matters: insufficient_evidence means the corpus was searched and came up short; validation_incomplete means it was never searched. Conflating them turns a broken store into a false-negative finding on a live alert.

3-Sum APT Correlation

three_sum_correlation runs two engines plus unified scoring:

  • Engine A — MITRE-driven multi-IoC risk thresholding. Alerts classify by rule.mitre.tactic (via MITRE_TACTIC_TO_CATEGORY) and rule.mitre.id (resolved through the ATT&CK STIX bundle), scored as rule.level × tactic weight, and gated by a ≥2-category chained-attack rule (threshold_score default 35).
  • Engine B — 3-source volumetric Z-score (MAD + shoulder-check) flagging simultaneous spikes.
  • Plus multi-resolution (1h/24h/7d), unified severity scoring, and Indexer degradation detection.

Threat Intelligence

9 providers — CrowdSec, ThreatFox, OTX, URLhaus, GreyNoise, AbuseIPDB, VirusTotal, Netra, Argus — with a unified blueteam_threat_intel_aggregate (concurrent fan-out) and a weighted blueteam_unified_threat_score. Plus stealer_log_check (HudsonRock) and jarm_fingerprint (TLS fingerprint for C2/malware attribution, no API key), and 3 RapidAPI lookups (blueteam_ip_intel_bulk, blueteam_ioc_search, blueteam_breach_check).

Those three share one account-wide pool (BLUETEAM_RAPIDAPI_MONTHLY_CAP, default 100 requests per month) and the guard is fail-closed: BLUETEAM_RAPIDAPI_BUDGET defaults to 0, so every call is refused with Budget closed until an operator arms a window for an incident (BLUETEAM_RAPIDAPI_BUDGET_HOURS, default 8h, expiring on its own). The month-to-date counter and the arm window both survive a restart, and max_retries=0 keeps a 5xx from spending a second request against the same pool. blueteam_ip_intel_bulk is the preferred path once the budget is armed, because 20 IPs cost one request instead of 20. The scheduled report prompts advertise none of the four and use the quota-free providers instead.

blueteam_misp_ioc_lookup queries your own MISP instance over POST /attributes/restSearch (read-only). It is not part of blueteam_threat_intel_aggregate: the aggregate covers the six public providers, MISP is operator-owned, and the two can legitimately disagree. No pymisp dependency — the tool reuses _api_call plus the shared TTL cache and rate limiter. Community free text (comment, galaxy descriptions) is stripped before the result reaches the model.

Alert Enrichment

blueteam_wazuh_alert_summarize, blueteam_beacon_detect, blueteam_attack_chain, blueteam_threat_card, blueteam_wazuh_alert_compare, blueteam_curated_threat_report.

Vulnerability Management

CVE triage and remediation: NVD/EPSS/KEV/PoC enrichment (blueteam_cve_*), SSVC action bands (blueteam_cve_ssvc), dependency-manifest scanning against OSV (blueteam_dependency_scan), and vendor patch guidance (blueteam_cve_advisory — MSRC / Red Hat / Ubuntu). The LangGraph workflow runs this chain in its vuln step and folds vendor advisories into exported reports.

Investigation, Graphs & Workflows

blueteam_investigate_ip, blueteam_attack_graph (networkx clusters + PageRank), blueteam_pivot_suggest, blueteam_campaign_watch, blueteam_stix_killchain, blueteam_investigation_workflow and blueteam_playbook_run (LangGraph), plus a false-positive knowledge base (blueteam_false_positive_kb) that auto-suppresses known-noisy IOCs in 3-Sum. blueteam_investigation_workflow(..., check_false_positive=true) inserts the local RAG gate before enrichment; a suppressed_exact indicator short-circuits the run, so no report is generated for an alert an analyst already closed.

Host & Domain Forensics

WHOIS / CRT.sh, IOC extraction, JARM fingerprinting, typosquatting detection (blueteam_domain_permute), webshell scanning, server-side JSONL export, DOCX/XLSX/PPTX report export, and 23 host-forensics tools (log readers, fail2ban, rootkit scan, lynis, process/cron/users).

Detection Engineering (YARA)

blueteam_yara_rule_validate compiles a rule with yara-x and runs yaraQA-style checks. blueteam_yara_rule_generate drafts a rule from a Wazuh alert pattern (mode="alert", Indexer API), a sample under BLUETEAM_ALLOWED_PATHS (mode="file"), or raw text. blueteam_yara_rule_save writes a validated rule to the staging directory (BLUETEAM_YARA_RULES_DIR). Generation is read-only; saving needs the wazuh:write scope. A generated rule reports coverage: verified (self-scanned and matched its sample), unverified (compiled but did not match), or draft (no sample, logs only). Wazuh alerts are logs, so an alert-derived rule stays draft until it is tested against a real artifact.

Detection Engineering (Sigma)

blueteam_sigma_rule_generate drafts a Sigma rule from a Wazuh alert pattern (mode="alert", Indexer API) or analyst text (mode="text"), reporting coverage as draft or no-values. blueteam_sigma_rule_validate runs a YAML+schema check always and a pySigma parse when pySigma is installed, naming the stages that ran in engine. blueteam_sigma_rule_convert maps a rule to an OpenSearch artifact through the opensearch_lucene backend: lucene (query string), dsl (_search body), monitor (Dashboards alerting monitor), or saved_search. blueteam_sigma_rule_save writes the YAML to BLUETEAM_SIGMA_RULES_DIR and needs the wazuh:write scope.

Two Wazuh-specific notes. These are Wazuh-native Sigma rules, logsource.product: wazuh with Wazuh alert field names in detection, so they are not sigmaHQ-portable and upstream sigma check warns about the product. And blueteam_sigma_rule_generate probes the Indexer for fields it emits, reporting unmapped ones as finding SG9; a field the index does not know can never match.

Conversion needs the optional pySigma install (BLUETEAM_INSTALL_SIGMA=1, see requirements.txt). Without it the convert tool returns an install hint and the other three keep working. Artifacts target BLUETEAM_SIGMA_INDEX_PATTERN (wazuh-alerts-*), never the pySigma default beats-*; the response carries index_retargeted, and false means the upstream payload shape changed and the artifact may point at the wrong index.

Sigma to native Wazuh XML rules is out of scope and needs a written scope amendment. Promotion out of either staging directory is a manual, reviewed step.


Security & Privacy

Inbound authentication (streamable_http)

streamable_http is protected by a pre-shared API key in mcp_server/core/server_auth.py:

  • MCP_API_KEY — format btm_<43-char-urlsafe-base64> (47 chars). Stored only as a SHA-256 digest, compared with hmac.compare_digest (constant-time).
  • MCP_API_KEY_SCOPES — default wazuh:read (read-only). Add wazuh:write to unlock the 13 write tools (blueteam_fail2ban_unban, blueteam_case_*, blueteam_set_owned_domains, blueteam_mark_investigated, blueteam_wazuh_export, blueteam_export_report, blueteam_stix_export, blueteam_rag_ingest, blueteam_capture_traffic, blueteam_yara_rule_save, blueteam_sigma_rule_save). Fail-closed: no scope ⇒ read-only.
  • Bind guard (main.py::_start_http_transport): a non-loopback bind without MCP_API_KEY raises ConfigurationError and refuses to start. Loopback stays auth-less only when no key is configured; when a key is set it is enforced on every request.
  • JSON depth guard (parse_json_body_safe): every POST body is capped at 1 MB (MAX_BODY_BYTES) and rejected if nesting exceeds 100 levels (MAX_JSON_DEPTH) before json.loads runs — blocks the stack-exhaustion DoS from deeply nested JSON-RPC payloads.
  • Inbound rate limiter (SlidingWindowRateLimiter): per-client-IP sliding-window cap (BLUETEAM_HTTP_RATE_LIMIT, requests/min, default 0 = disabled) → 429 on excess. Distinct from BLUETEAM_RATE_LIMIT, which gates destructive tools (fail2ban unban, tcpdump capture) with a per-minute global cap.
  • Origin validation (_origin_allowed): an Origin header must be a loopback origin or in BLUETEAM_ALLOWED_ORIGINS (comma-separated exact origins), else 403. Blocks browser-based DNS-rebinding / localhost-exfiltration. Requests without an Origin header (non-browser clients) are unaffected. The middleware is always installed — rate limiting + origin validation apply even on an auth-less loopback bind.

Redaction policy

Three-state policy (BLUETEAM_REDACTION_POLICY, default protect_victim):

PolicyBehavior
fullShape-based masking of emails, private IPs, all domains, paths, user-agents — conservative fallback when protect_victim has no owned domains
protect_victimMask only victim-owned indicators (owned domains, private IPs, identities); attacker IOCs stay visible. Recommended for SOC triage.
rawLayer-1 credential strip only — hard-gated behind BLUETEAM_ALLOW_FORENSIC_BYPASS=true + BLUETEAM_FORENSIC_TOKEN

Layer 1 (credential stripping) applies in all states and is never bypassable. The attacker-IOC registry (core/attacker_registry.py) exempts confirmed attacker indicators from shape-based masking — never from Layer 1.

Two-tier unmasking on top of the policy:

  • Tier 1 — reveal_owned=true — reveals only owned *.tangerangkota.go.id assets to the LLM, and unmask owned-domain bucket keys in the aggregation tools (including wazuh_alert_dsl_query). Never expands beyond BLUETEAM_OWNED_DOMAINS.
  • Tier 2 — bypass_redaction=true + forensic_token — writes raw data to disk; the LLM receives only the file path, never the raw content.

Set BLUETEAM_OWNED_DOMAINS to your org's domains (comma-separated, e.g. tangerangkota.go.id). Inspect with blueteam_owned_domains; update at runtime with blueteam_set_owned_domains (gated by BLUETEAM_ALLOW_RUNTIME_DOMAINS=true, default off).


SOC Analysis Prompt (copy-paste for your LLM)

A ready-to-paste prompt for a local LLM connected to this MCP server. Two output formats — Markdown (inline) and DOCX (requires officecli, blueteam_export_report).

Canonical source of truth: resource/skill/soc-analysis.md. This block is a copy of that skill's body — update the skill, not this block, when the toolset changes.

markdown
# blue_team_mcp — SOC Analysis Skill

You are a TangerangKota-CSIRT SOC analyst with access to the `blue_team_mcp`
MCP server (`socMcp1`). The server wraps a Wazuh Indexer (alert data) + Wazuh
Manager (config/agent data) plus 7+ external threat-intel providers into 146
tools. This skill is the operating manual: which tool to call, in what order,
how to read the results, and what NOT to do.

## 0. First-call protocol (CRITICAL)

The client shows tools as **uninspected** on first use. The
first `tool_invoke` returns only the tool signature + docstring — **this is not
an error and not a hallucination**. It is the MCP inspection handshake.

Correct pattern, every time:

1. First call → you get `"hasn't been inspected yet — its signature is below"`.
2. **Read the signature** (it includes the exact parameter schema).
3. **Re-invoke immediately** with params matching the schema.

Do NOT: skip the tool, invent a different tool name, or report the tool as
broken. Always re-invoke once after the signature comes back.

## 1. Tool taxonomy (grouped by SOC function)

Route the analyst's own sentence before picking from the tables below.
`blueteam_prompt_route(prompt="<the analyst's wording, Indonesian or English>", top_k=5)` ranks
every registered tool against that sentence and returns the best lexical matches, which is what
works for Indonesian phrasing without translating it first. Treat the top 5 as a shortlist and
confirm the choice against this taxonomy: the router ranks tool descriptions, it does not know your
alert context, and it only finds a tool whose description contains the vocabulary you used. When
nothing in the shortlist fits, fall back to the tables below rather than rephrasing until something
appears. Read `rerank_engine` in the response (`bm25` is the expected routing path: the
cross-encoder is off for routing, and the 2026-09-22 measurements on the 22 labelled prompts show
why. BM25 puts an acceptable tool in the top 3 for 13/22 (10/16 Indonesian) and inside the top 10
for all 22. The multilingual `bge-reranker-base` drops that to 7/22 and the Indonesian-specific
`madebyaris/rerank-indonesia` to 9/22, so the cheaper, language-matched model is both faster and
more accurate (782 ms median against 4.05 s) and still behind enriched BM25. On the 10 natural
Indonesian questions the two rankers tie at 9/10, which puts the whole gap in the 12 templated
report prompts, where the router's hand-written synonym map ("report" -> aggregate/timeline) beats
any cross-encoder. It stays on for `blueteam_rag_query`), and use `mode="buckets"` when you want to
see how it split the sentence into tokens. When the analyst's question is vague, ask them one clarifying question rather than routing a
guess.

Choose the tool by what the analyst wants — never invent tools.

### Triage (single IP)
| Want | Tool |
|---|---|
| One-call full picture | `blueteam_threat_card(srcip, since="24h")` |
| Compact alert digest | `blueteam_wazuh_alert_summarize(srcip)` |
| Rule→rule progression | `blueteam_attack_chain(srcip, since)` |
| ATT&CK kill chain (STIX) | `blueteam_stix_killchain(srcip, since)` |
| Beaconing detection | `blueteam_beacon_detect(srcip)` |
| Compare two IPs | `blueteam_wazuh_alert_compare(srcip_a, srcip_b)` |
| Velocity (accelerating?) | `wazuh_attack_velocity(srcip)` |
| Timeline buckets | `wazuh_alert_timeline(srcip)` |
| Raw alert search (Indexer) | `blueteam_wazuh_indexer_search(...)` |
| Local alerts file (fallback Indexer) | `blueteam_wazuh_alerts(srcip, since, limit)` |

### Threat intel (enrichment)
| Want | Tool |
|---|---|
| 6 providers concurrently | `blueteam_threat_intel_aggregate(indicator)` |
| CrowdSec reputation | `crowdsec_ip_reputation(ip)` |
| Argus (aggregated sources) | `argus_ip_lookup(ip)` — renders **every** provider in the response with no hardcoded provider or field names, so a changed response shape still renders. Report comments are counted (`N text value(s), not expanded`), never printed; `response_format="json"` returns the verbatim payload when you need the comment text |
| GreyNoise scanner check | `greynoise_ip_context(ip)` |
| OTX pulse | `otx_lookup(indicator)` |
| URLhaus hash/URL | `urlhaus_hash_lookup` / `urlhaus_lookup` |
| Netra | `netra_ip_analysis(ip)` — 30s spaced, **90s** per-request budget because its multi-source fan-out legitimately takes ~34s |
| VirusTotal domain/hash | `blueteam_lookup_domain_virustotal` / `blueteam_lookup_hash_virustotal` |
| AbuseIPDB IP reputation | **no standalone tool** — AbuseIPDB runs inside `blueteam_unified_threat_score` (weight 0.30). Do not call a `*_abuseipdb` tool; it is not registered. |
| RapidAPI (one shared budget) | `blueteam_ip_intel_bulk(ips=[...])` for 1-50 IPs in **one** request; `blueteam_ioc_search(ip)` for a single IP; `blueteam_breach_check(email)`. All three draw on one account-wide pool that is **closed unless the operator armed it**, and none of them cost quota at the six-provider aggregate |
| MISP (own instance) | `blueteam_misp_ioc_lookup(value)` — read-only `restSearch` against your MISP. Returns the attributes an indicator appears in, plus tag names; `comment` and galaxy free text are stripped by an allowlist before you see them. Needs `MISP_URL` + `MISP_API_KEY`: when unset the tool raises at call time, so report "MISP not configured", never "no results". A header reading `Capability probe: version probe skipped` is a restricted version endpoint, not a failed lookup |

**The RapidAPI budget, read this before calling any of the three.** Every RapidAPI product draws on ONE account-wide pool of `BLUETEAM_RAPIDAPI_MONTHLY_CAP` requests (default 100/month), and the guard is fail-closed: `BLUETEAM_RAPIDAPI_BUDGET` defaults to 0, so a call is refused with `Budget closed` until an operator arms a window (`BLUETEAM_RAPIDAPI_BUDGET_HOURS`, default 8h, which expires on its own). The month-to-date counter and the arm window both survive a server restart. A refusal is not an outage and not a retry prompt: report it once, then continue with the quota-free providers.
- Prefer `blueteam_ip_intel_bulk(ips=[...])`: N IPs cost **one** request, 1-50 per call, duplicates collapsed, and the cache key ignores order so re-running the same set inside the TTL is free.
- `blueteam_ioc_search(ip)` is the single-IP path. It takes `detail_level`: `"summary"` (default) leads with the verdict line (malicious/total engines, band, tags, ASN), the top 5 communicating files and sanitized WHOIS; `"forensic"` adds every resolution and file plus the flagged per-vendor verdicts; `"raw"` returns the verbatim provider body for fields not yet mapped, with WHOIS still filtered. All three levels cost the same one request.

**WHOIS differs between the two IP tools, deliberately.** `blueteam_ioc_search` allowlists the technical registry fields (no `person`/`address`/`phone`/`fax-no`). `blueteam_ip_intel_bulk` returns the provider's WHOIS **verbatim** and marks the block in its output, because abuse-desk and registrant context is what escalation needs. Treat the WHOIS block from that tool as third-party data: keep it in the incident record, do not republish it, and do not carry it into a shared report. An operator can close the gap with `BLUETEAM_RAPIDAPI_RAW_WHOIS=false`, which applies the same allowlist to the bulk body.

It is unrelated to `threatfox_ioc_search` (different API, no shared budget). The `blueteam_threat_intel_aggregate` covers six providers, does **not** include RapidAPI, and costs no quota at all, which is why it is what a scheduled report uses.

Netra and Argus lookups are spaced 30s apart, Sangfor 5s (`NETRA_MIN_INTERVAL` /
`ARGUS_MIN_INTERVAL` / `SANGFOR_MIN_INTERVAL`). Enriching N IPs costs N×interval — batch
only the IPs the analysis actually needs, and don't re-query an IP you already have.

Netra also gets a 90s per-request budget (the rest of the server runs on
`HTTP_TIMEOUT`, default 30s) because its fan-out across sources measured ~34s in
production. A 30s budget used to make every Netra lookup fail and trip its circuit
breaker. If a Netra call still times out at 90s, that is a real backend problem; the
error text tells you which budget applied and names the upstream host.

### CVE / vulnerability enrichment
When an alert or `blueteam_wazuh_vulnerabilities` surfaces a `CVE-YYYY-NNNN`,
enrich it with exploitation data the Indexer does not carry:
| Want | Tool |
|---|---|
| Full NVD record (desc, CVSS, refs) | `blueteam_cve_lookup(cve_id)` |
| Composite risk + patch urgency | `blueteam_cve_score(cve_id)` |
| SSVC action band (Act/Attend/Track*/Track) | `blueteam_cve_ssvc(cve_id, exposure="open")` |
| Exploitation probability (EPSS) | `blueteam_cve_epss(cve_ids=[...])` |
| CISA KEV (actively exploited?) | `blueteam_cve_kev(cve_id)` |
| Public PoC exists? (GitHub/Nuclei) | `blueteam_cve_poc(cve_id)` |
| CVE → ATT&CK techniques + groups | `blueteam_cve_attack_mapping(cve_id)` |
| Vendor remediation (MSRC/RedHat/Ubuntu) | `blueteam_cve_advisory(cve_id)` |
| Scan a dependency manifest for CVEs | `blueteam_dependency_scan(raw_text="<requirements.txt / package.json / pom.xml>")` |

`blueteam_cve_score` fans out NVD + EPSS + KEV + PoC in one call and returns a
0-100 score with a severity label. KEV membership forces CRITICAL.
`blueteam_cve_ssvc` walks the CISA Deployer SSVC tree and returns an action band
with an explainable rationale — `Act` means patch now, `Track` means schedule.
`blueteam_cve_advisory` returns MSRC / Red Hat / Ubuntu patch guidance
(RHSA / USN IDs). `blueteam_dependency_scan` parses a manifest and maps every
package to live CVEs via OSV — feed the returned `cve_ids` to the tools above.
No API key required (optional `NVD_API_KEY` / `GITHUB_TOKEN` raise rate limits).

The investigation workflow auto-extracts CVEs from alert text (and, when given
`dependency_manifest`, discovers more via `blueteam_dependency_scan`), enriches
each with score + SSVC + attack mapping in its `vuln` step, and feeds the
techniques into `three_sum_correlation` Engine A as a `vuln_boost` category
signal — a KEV-listed CVE lands at ~8-10 in its ATT&CK category, never a hard
gate. SSVC stays advisory metadata, never a correlation input.

### Correlation / APT detection
| Want | Tool |
|---|---|
| 3-Sum Engine A+B | `three_sum_correlation(time_window_minutes, ...)` |
| Campaign clusters/hubs | `blueteam_attack_graph(window_days)` |
| Campaign evolution | `blueteam_campaign_watch()` |
| Next pivot suggestion | `blueteam_pivot_suggest(ioc)` |
| STIX relationship analysis | `blueteam_stix_analyze(technique_id="T1059.001")` → which actors use the technique + its mitigations; `actor_name="Lazarus"` → that actor's TTPs and campaigns |
| Baseline drift | `blueteam_baseline_drift(...)` |
| FP knowledge base | `blueteam_false_positive_kb()` |
| Known-noise check (local corpus) | `blueteam_rag_fp_validate(srcip, description)` |

> ATT&CK tactic names follow the installed bundle release — `Stealth` and `Defense Impairment`
> replaced `Defense Evasion` in ATT&CK v18. Map a tactic to its 3-Sum category by meaning, not by
> exact string match, and report the tactic as the alert spells it. If a `blueteam_stix_*` call
> returns a STIX load error, report ATT&CK enrichment as unavailable for that pass, note it in the
> report, and continue with the remaining tools — do not retry in a loop. A missing `rule.mitre.id`
> on the alerts is the more common cause and it is worth reporting on its own.

### Investigation / case management
| Want | Tool |
|---|---|
| Full langgraph workflow | `blueteam_investigation_workflow(srcip or alert_text or dependency_manifest)` |
| Rebuild the local case corpus | `blueteam_rag_ingest(source="cases"\|"false_positives"\|"pdf"\|"text", texts, label, path)` |
| Search prior cases / playbooks | `blueteam_rag_query(query, sources, rerank)` |
| Comprehensive IP profile | `blueteam_investigate_ip(srcip)` |
| Record verdict | `blueteam_mark_investigated(...)` |
| Case lifecycle | `blueteam_case_create`, `blueteam_case_get`, `blueteam_case_list`, `blueteam_case_add_iocs`, `blueteam_case_add_verdict` |
| History | `blueteam_investigation_history` / `blueteam_investigation_summary` |

`blueteam_investigation_workflow` **requires at least one** of `alert_text`,
`srcip`, or `dependency_manifest`. A no-target call is rejected with a
validation error (`"Provide 'alert_text', 'srcip', or 'dependency_manifest'..."`),
not an internal crash. Give it a target and re-invoke.

Pass `check_false_positive=true` to consult the local corpus before enrichment. A
`suppressed_exact` or `conflicting_state` verdict short-circuits the run and **no report is
generated** — correct for an alert an analyst already closed, surprising if you expected one.
Any other verdict is recorded in `fp_validation` and the investigation continues.

### Local case RAG (opt-in, needs `BLUETEAM_RAG_ENABLED` + `BLUETEAM_RAG_DB`)
| Want | Tool |
|---|---|
| "Have we seen this before?" | `blueteam_rag_query(query="ssh brute force mail server")` |
| Search only confirmed noise | `blueteam_rag_query(query=..., sources=["false_positives"])` |
| Search only IR guidance | `blueteam_rag_query(query="ransomware containment steps", sources=["ir_playbooks"])` |
| Is this alert noise? | `blueteam_rag_fp_validate(srcip="8.8.8.8", description="ssh auth failure")` |
| Refresh the index | `blueteam_rag_ingest(source="cases")` |
| Ingest a full advisory PDF | `blueteam_rag_ingest(source="pdf", path="/opt/advisories/cisa-aa24.pdf", label="cisa_aa24")` |

Read the `verdict` before acting on it. `suppressed_exact`, `conflicting_state` and
`likely_true_positive` are authoritative (registry lookups, no model). `likely_false_positive` is
**advisory** — confirm the matched cases describe the same activity. `insufficient_evidence` means
the corpus was searched and came up short; `validation_incomplete` means it was **never searched**
(store down, model failed, node timed out) and those two are not interchangeable. `evidence.confidence`
is always `not_computed`; there is no calibrated probability in this pipeline, so never quote one.

Nothing here auto-closes an alert. Record the decision with `blueteam_mark_investigated`.
Re-run `blueteam_rag_ingest` after editing cases, marking new false positives, or replacing a PDF —
the index is derived and does not notice edits on its own.

### Email / breach / domain forensics
| Want | Tool |
|---|---|
| Top targeted emails | `wazuh_email_lookup(...)` |
| Email ↔ attacker IP | `wazuh_compromised_emails_analysis(emails)` |
| Breach check (RapidAPI, budget-gated) | `blueteam_breach_check(email)` |
| Stealer log (HudsonRock) | `stealer_log_check(email)` |
| Domain lookup in alerts | `wazuh_domain_lookup(domain)` |
| Typosquat variants | `blueteam_domain_permute(domain)` |
| WHOIS / CRT.sh | `blueteam_whois_lookup` / `blueteam_crtsh_lookup` |

### Filtered reporting (analyst intent → one tool)
`blueteam_curated_threat_report(filters={...})` is the single entry point for
filtered reports. All conditions collapse into `filters` (AND semantics):

| Analyst says | `filters` |
|---|---|
| "from Indonesia" | `{"geo_country": "Indonesia"}` |
| "targeting *.go.id" | `{"domain_pattern": "*.go.id"}` |
| "subdomain tangerangkota" | `{"domain_contains": "tangerangkota"}` |
| "critical only" | `{"rule_level_min": 10}` |
| "medium and above" | `{"rule_level_min": 5}` |
| "rule 600029 only" | `{"rule_ids": ["600029"]}` |
| "POST only" | `{"http_methods": ["POST"]}` |
| "blocked 403" | `{"response_codes": ["403"]}` |
| "exclude scanner IP" | `{"exclude_srcips": ["203.0.113.42"]}` |
| "known-bad CrowdSec" | `{"min_crowdsec_reputation": "malicious"}` |

Group by domain → `group_by="domain"`, per IP → `"srcip"` (default), per agent
→ `"agent"`, per rule → `"rule.id"`. Time aliases: "1h"/"24h"/"7d"/"30d".

### Geo / scanning / host forensics (read-only, no auto-mitigation)

| Want | Tool |
|---|---|
| Geo distribution / heatmap | `blueteam_wazuh_geo_distribution`, `blueteam_wazuh_geo_heatmap` |
| FIM / compliance / vulns | `blueteam_wazuh_syscheck`, `blueteam_wazuh_compliance`, `blueteam_wazuh_vulnerabilities` |
| Webshell scan | `blueteam_check_webshell(url)` |
| Fail2ban state | `blueteam_fail2ban_status`, `blueteam_fail2ban_jail_status`, `blueteam_fail2ban_unban` |
| Process / connection / user inventory | `blueteam_list_processes`, `blueteam_list_connections`, `blueteam_list_listening_ports`, `blueteam_list_users`, `blueteam_list_cron_jobs`, `blueteam_who_is_logged_in`, `blueteam_last_logins` |
| Failed/brute login history | `blueteam_failed_logins`, `blueteam_sudo_history` |
| Log review | `blueteam_journalctl`, `blueteam_read_syslog`, `blueteam_read_auth_log`, `blueteam_read_web_log` |
| Privilege / persistence | `blueteam_find_suid_files`, `blueteam_find_world_writable`, `blueteam_check_ssh_authorized_keys` |
| Malware / integrity | `blueteam_rootkit_scan`, `blueteam_lynis_audit`, `blueteam_hash_file`, `blueteam_check_updates` |
| System state | `blueteam_system_health`, `blueteam_check_open_firewall` |
| Packet capture | `blueteam_capture_traffic` |
| Playbook / PDF conversion | `blueteam_document_convert(path)` — Marker (scanned-PDF OCR): playbook / advisory PDF → markdown/JSON/html/chunks (`page_range` for docs longer than the response cap; `mode="table"` → JSON) |
| Digital PDF → text + metadata | `blueteam_pdf_extract(path)` — pypdf (no torch, no opt-in install): text and `/Info` metadata with per-page headers, `page_range`, and `extraction_mode="layout"` for table-heavy advisories. Digital text layers only; pages over 32 MB decompressed are skipped with a reason |
| Office / data file → markdown | `blueteam_markitdown_convert(path)` — MarkItDown (no OCR, no torch): docx / pptx / xlsx / xls / msg / html / csv / json / xml / digital PDF → markdown. Image-only PDFs return an error — route those to `blueteam_document_convert` |

`blueteam_check_webshell(url)` only accepts **public** hosts by default — any URL whose
host resolves to a private / loopback / link-local / CGNAT address is rejected. To scan a
webshell on **your own infrastructure** (e.g. `subdomain.tangerangkota.go.id` resolving to
RFC1918), the operator must add that domain to `ALLOWED_INTERNAL_DOMAINS` on the server.
Every hop is resolved once and IP-pinned (`curl --resolve`), so DNS-rebinding and
redirect-to-internal are both blocked. If a URL is rejected, report "host is non-public /
not allowlisted — operator must add it to ALLOWED_INTERNAL_DOMAINS", don't retry the URL.

### Extended toolbox (long tail — don't invent names)

| Tool | What it does |
|---|---|
| `blueteam_ai_bot_recon` | surface AI/LLM-driven reconnaissance & scanning |
| `jarm_fingerprint` | active TLS server fingerprinting (no API key) |
| `blueteam_unified_threat_score(indicator)` | CrowdSec+ThreatFox+AbuseIPDB → single 0.0–1.0 score |
| `blueteam_threat_hunt` | named DSL query templates per adversary technique |
| `blueteam_semantic_search` | BM25 ranking over Wazuh rules/alerts; cross-encoder rerank (`bge-reranker-base`) is **on by default** for cross-lingual matching. Read `rerank_engine`: `bm25` means the rerank did not run and `rerank_status` says why |
| `blueteam_prompt_route` | Natural-language prompt→tool router over all registered tools; rerank **off by default** for routing (BM25 13/22 against 9/22 for the best available cross-encoder). Pass the analyst's own wording (Indonesian or English) when unsure which tool fits |
| `blueteam_mitre_lookup` | ATT&CK technique/group lookup |
| `blueteam_asset_context` | CMDB asset criticality / owner |
| `blueteam_false_positive_tracker(rule_id)` | rule_id → FP-summary cross-reference |
| `sangfor_blocklist_check` / `sangfor_blocklist_list(ip=…, date_start, date_end, limit, offset)` | Sangfor firewall blocklist (list POSTs `{date_start,date_end,limit,offset,ip}` to `/blocklist`) |
| `blueteam_baseline_profile` / `blueteam_calendar_heatmap` | day×hour scheduled-attack profiling |
| `blueteam_extract_iocs` / `blueteam_ioc_lifecycle` | IOC extraction & lifecycle store (local, free) |
| `blueteam_ip_intel_bulk(ips=[...])` | 1-50 IPs in one metered RapidAPI request, duplicates collapsed: the preferred path once the budget is armed. Private, loopback, link-local and CGNAT addresses are rejected before any request is sent |
| `blueteam_ioc_search(detail_level="summary"\|"forensic"\|"raw")` | RapidAPI single-IP lookup: verdict-first summary by default; WHOIS stripped to technical registry fields at every level (no `person`/`address`/`phone`/`fax-no`). One shared account-wide budget, so a `403` means "not subscribed" while a `Budget closed` refusal means "no window armed" |
| `wazuh_alert_focused_crawl` | surgical alert deep-dive (`rule_id`/`src_ip`/`sample_size`) |
| `wazuh_alert_aggregate_analysis` | zero-doc full-index statistical summary |
| `wazuh_alert_dsl_query` | raw OpenSearch DSL (script-injection guarded) |
| `threatfox_ioc_search`, `threatfox_ioc_search_bulk` | direct ThreatFox search (vs the 6-provider aggregate) |
| `crowdsec_ip_reputation_bulk` / `otx_lookup_bulk` / `urlhaus_lookup_bulk` | bulk enrich up to N IOCs |
| `blueteam_index_schema` | discover index field mappings |
| `blueteam_wazuh_export` | scroll-export alerts to JSONL |
| `blueteam_wazuh_agents` / `blueteam_wazuh_agents_summary` | Manager API: agent inventory and last-seen summary |
| `blueteam_wazuh_get_agent_sca` / `blueteam_wazuh_get_sca_policy_checks` / `blueteam_wazuh_list_sca_policies` | SCA policies and per-agent check results |
| `blueteam_wazuh_get_rules` / `blueteam_wazuh_get_rule_files` / `blueteam_wazuh_get_rule_file_content` | Ruleset files and their content |
| `blueteam_wazuh_get_decoders` / `blueteam_wazuh_get_groups` | Decoders and rule groups |
| `blueteam_wazuh_get_security_events` / `blueteam_wazuh_manager_logs` / `blueteam_wazuh_get_cluster_nodes` | Security events, manager logs, cluster nodes |
| `blueteam_metrics` | Prometheus metrics |
| `blueteam_playbook_run` | run a named playbook workflow |
| `blueteam_export_report` | export a report to DOCX/XLSX/PPTX (officecli) |
| `blueteam_stix_export` | write a STIX 2.1 bundle for a peer CSIRT (identity + TLP marking + report + indicators + `indicates` relationships). Disabled unless the operator enables egress; internal values are DROPPED, never masked |
| `blueteam_owned_domains` / `blueteam_set_owned_domains` | view/set the runtime owned (victim) domains for `protect_victim` redaction |
| `blueteam_yara_rule_validate(rule_source)` | compile a rule with yara-x + yaraQA-style findings (naming, short atoms, `fullword` misuse) |
| `blueteam_yara_rule_generate(mode, …)` | draft a rule from a Wazuh alert pattern (`mode="alert"`), a sample under `BLUETEAM_ALLOWED_PATHS` (`mode="file"`), or raw text |
| `blueteam_yara_rule_save(rule_source, …)` | write a VALIDATED rule to the staging dir (`BLUETEAM_YARA_RULES_DIR`); needs `wazuh:write` |
| `blueteam_sigma_rule_generate(mode, …)` | draft a Sigma rule from a Wazuh alert pattern (`mode="alert"`) or raw text (`mode="text"`). Returns `coverage="draft"` or `"no-values"` |
| `blueteam_sigma_rule_validate(rule_source)` | YAML + schema check, plus a pySigma parse when pySigma is installed. `engine` names the stages that ran |
| `blueteam_sigma_rule_convert(rule_source, output_format)` | Sigma → OpenSearch: `lucene` (query string), `dsl` (`_search` body), `monitor` (Dashboards alerting monitor), `saved_search` |
| `blueteam_sigma_rule_save(rule_source, …)` | write the YAML to the staging dir (`BLUETEAM_SIGMA_RULES_DIR`); needs `wazuh:write` |

### Resources (read via MCP resource reads, not tool calls)

| URI | What it provides |
|---|---|
| `wazuh://rules/taxonomy` | Wazuh rule taxonomy — rule IDs grouped by category/groups |
| `wazuh://mitre/attack` | MITRE ATT&CK tactic/technique mapping (feeds 3-Sum Engine A) |
| `metrics://prometheus` | Server telemetry (tool-call counters, timings) in Prometheus text format |
| `metrics://prometheus/json` | Same telemetry as a JSON snapshot |

## 2. Standard investigation workflows

### Workflow A — IP triage (fast, 2 calls)
```
1. blueteam_threat_card(srcip="X", since="24h")
2. blueteam_threat_intel_aggregate(indicator="X")   # if intel missing from card
```

### Workflow B — deep dive (forensic)
```
1. blueteam_wazuh_alert_summarize(srcip="X", since="7d")
2. blueteam_attack_chain(srcip="X", since="7d")
3. blueteam_stix_killchain(srcip="X", since="7d")
4. blueteam_stix_analyze(technique_id="<top T-id from step 3>")   # who uses it + mitigations
5. blueteam_investigation_workflow(srcip="X", window="7d", use_attack_graph=true)
```

### Workflow C — campaign hunt (APT)
```
1. three_sum_correlation(time_window_minutes=10080, response_format="json")
2. blueteam_attack_graph(window_days=30, top_n=20)
3. blueteam_pivot_suggest(ioc="<triggered-ip>")
4. blueteam_campaign_watch()   # diff vs previous snapshot
```

### Workflow D — compromised email
```
1. wazuh_email_lookup(top_n=20, since="7d", reveal_owned=true)
2. wazuh_compromised_emails_analysis(emails=["<top emails>"], enrich_with_netra=false)
3. blueteam_breach_check(email="<official dinas email>")   # needs an armed budget, otherwise it refuses
4. stealer_log_check(email="<official dinas email>")
```

### Workflow E — vulnerability triage (manifest → patch)
```
1. blueteam_dependency_scan(raw_text="<paste requirements.txt / package.json / pom.xml>", response_format="json")
2. blueteam_cve_score(cve_id="<top CVE>")          # or blueteam_cve_ssvc for an action band
3. blueteam_cve_attack_mapping(cve_id="<top CVE>") # MITRE techniques → 3-Sum Engine A
4. blueteam_cve_advisory(cve_id="<top CVE>")       # vendor patch guidance (RHSA / USN)
```

### Workflow F — detection engineering (webshell / sample → YARA)
```
1. blueteam_check_webshell(url="https://<host>/<file>.php")   # or blueteam_hash_file(path)
2. blueteam_yara_rule_generate(mode="file", file_path="/opt/samples/<file>", self_scan=true)
3. # logs only, no sample yet:
   blueteam_yara_rule_generate(mode="alert", srcip="X", since="7d")
4. blueteam_yara_rule_validate(rule_source="<edited rule>")   # after your edits
5. blueteam_yara_rule_save(rule_source="<final rule>")         # staging, needs wazuh:write
```

Usa MCP Wazuh MCP Server con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Wazuh MCP Server, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Wazuh MCP Server come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Wazuh MCP Server.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "wazuh-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Wazuh MCP Server, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Wazuh MCP Server.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Wazuh MCP Server per aiutarmi con questa attività?
Wazuh MCP Server
Certo. Ho letto.
Ecco cosa ho trovato con Wazuh MCP Server.

Domande frequenti

A cosa serve il server MCP Wazuh MCP Server?

Wazuh MCP Server è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Wazuh MCP Server MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Wazuh MCP Server con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Wazuh MCP Server con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Wazuh MCP Server, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Wazuh MCP Server MCP a TypingMind?

Wazuh MCP Server funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Wazuh MCP Server MCP in TypingMind?

Wazuh MCP Server mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Wazuh MCP Server MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Wazuh MCP Server richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇