9605e1f0dc
EDR: Wraith (SentinelOne), Talon (CrowdStrike), Nyx (HarfangLab), Bastion (Defender), Synapse (Cortex XDR), Kestrel (Sophos). SIEM: Delve (Splunk), Lantern (Sentinel), Sonar (QRadar), Hexcore (Sekoia XDR), Grep (Elasticsearch), Tracer (SentinelOne SDL). Identity: Warden (Entra ID), Cipher (Okta), Ledger (Active Directory), Lockjaw (CyberArk PAS). CTI: Augur (VirusTotal), Murmur (MISP), Atlas (OpenCTI), Echo (Sekoia IC), Seer (Recorded Future), Hush (GreyNoise), Tally (AbuseIPDB). Sandbox: Scalpel (Joe), Gauntlet (ANY.RUN), Prism (VMRay). Email: Hook (Proofpoint TAP), Drift (Mimecast), Riptide (Vade). Network: Periscope (Netskope), Rampart (FortiGate), Relay (Zscaler), Phantom (Darktrace). Read-only commands, analyst_l2, a call budget with an order, and the Static lessons: ids copied from answers only, timestamps passed as given, names over ids, one variant at most on error. Each sheet passes Riposte's validator; none is field-tested yet. Each integration gets a patch bump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015RhL2gy6Sx6Y3FEsyBE3mZ
97 lines
3.9 KiB
YAML
97 lines
3.9 KiB
YAML
id: elasticsearch
|
|
name: Elasticsearch
|
|
version: 1.1.1
|
|
description: "Elasticsearch (REST API) — log search and enrichment for security data: run queries, count and read documents, list indices, index a document, and delete by query. API-key authentication; stdlib-only, no extra Python dependencies. Works with Elastic Security indices."
|
|
changelog: "1.1.0 — Declare the risk tier on the 2 commands that carried none: 1 safe_write, 1 destructive. An unset risk is read as destructive by the agent approval gate, so the 1 that only annotate sat behind the same prompt as the ones that change the estate. | 1.0.0 — Initial release: search, count, get document, index document, list indices, delete by query."
|
|
category: siem
|
|
|
|
# Per-instance configuration. Auth header 'Authorization: ApiKey <api_key>'.
|
|
config_schema:
|
|
properties:
|
|
url:
|
|
type: string
|
|
description: "Elasticsearch base URL (e.g. https://es.example.com:9200)"
|
|
api_key:
|
|
type: string
|
|
description: "Elasticsearch API key (base64 id:key)"
|
|
x-soar-sensitive: true
|
|
insecure:
|
|
type: boolean
|
|
description: "Trust any TLS certificate (not secure)"
|
|
default: false
|
|
required:
|
|
- url
|
|
- api_key
|
|
|
|
commands:
|
|
- id: search
|
|
name: elasticsearch-search
|
|
description: "Search an index. Provide a raw query DSL (query_json) or a simple query string."
|
|
risk: read
|
|
inputs_schema:
|
|
properties:
|
|
index: { type: string, description: "Index or index pattern (e.g. logs-*)" }
|
|
query_json: { type: string, description: "Raw Elasticsearch query DSL as a JSON object (advanced)" }
|
|
query_string: { type: string, description: "Simple query_string query (used if query_json is empty)" }
|
|
size: { type: number, description: "Max hits (default 50)" }
|
|
required: [index]
|
|
outputs_schema: { properties: {} }
|
|
- id: count
|
|
name: elasticsearch-count
|
|
description: "Count documents matching a query."
|
|
risk: read
|
|
inputs_schema:
|
|
properties:
|
|
index: { type: string, description: "Index or index pattern" }
|
|
query_string: { type: string, description: "Optional simple query_string (default all)" }
|
|
required: [index]
|
|
outputs_schema: { properties: {} }
|
|
- id: get_document
|
|
name: elasticsearch-get-document
|
|
description: "Get a single document by ID."
|
|
risk: read
|
|
inputs_schema:
|
|
properties:
|
|
index: { type: string, description: "Index name" }
|
|
doc_id: { type: string, description: "Document ID" }
|
|
required: [index, doc_id]
|
|
outputs_schema: { properties: {} }
|
|
- id: index_document
|
|
name: elasticsearch-index-document
|
|
description: "Index (create) a document."
|
|
risk: safe_write
|
|
inputs_schema:
|
|
properties:
|
|
index: { type: string, description: "Index name" }
|
|
document_json: { type: string, description: "Document body as a JSON object" }
|
|
doc_id: { type: string, description: "Optional document ID (auto-generated if omitted)" }
|
|
required: [index, document_json]
|
|
outputs_schema: { properties: {} }
|
|
- id: list_indices
|
|
name: elasticsearch-list-indices
|
|
description: "List indices."
|
|
risk: read
|
|
inputs_schema:
|
|
properties: {}
|
|
required: []
|
|
outputs_schema: { properties: {} }
|
|
- id: delete_by_query
|
|
name: elasticsearch-delete-by-query
|
|
description: "Delete documents matching a query."
|
|
risk: destructive
|
|
inputs_schema:
|
|
properties:
|
|
index: { type: string, description: "Index name" }
|
|
query_json: { type: string, description: "Raw query DSL (JSON object) selecting documents to delete" }
|
|
required: [index, query_json]
|
|
outputs_schema: { properties: {} }
|
|
|
|
- id: test_connection
|
|
name: elasticsearch-test-connection
|
|
description: "Verify connectivity and the API key (used by the Test button)."
|
|
risk: read
|
|
inputs_schema:
|
|
properties: {}
|
|
required: []
|
|
outputs_schema: { properties: {} }
|