elasticsearch-injection
Detect and exploit Elasticsearch/Lucene query injection — query_string manipulation, field enumeration, data extraction, cross-index access, and access…
от VigilOSS★ 35 звёзд на GitHub
Установить elasticsearch-injection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Elasticsearch / Lucene Injection Testing
When to Activate
- Search backed by Elasticsearch, OpenSearch or Solr:
X-Elastic-Productheader,hits/_source/_score/tookin responses, Lucene orquery_shard_exception/SearchPhaseExecutionExceptionerrors, search acceptingfield:value, wildcards or boolean operators.
--technique ELASTICSEARCH-INJECTION; deliver via vigil assess kali exec --technique ELASTICSEARCH-INJECTION --intent "<purpose>" --probe-kind payload --phase consume-test --timeout 30 -- curl … (--probe-kind exploit for confirmed extraction). Detection, _exists_ and wildcard
field discovery, regex/range extraction, filter negation, cross-index and _source overrides,
direct-API enumeration, JSON-body breakout, aggregation leaks, scripts and WAF evasion:
agent/references/payloads/elasticsearch-injection-payloads.md. Rank blind sweeps with
vigil assess anomaly-score <responses.jsonl>.
Method
- Query type decides the surface.
query_stringprocesses full Lucene syntax;simple_query_stringprocesses+/-/quotes and never errors;match/termtreat everything as literal text (no injection). Probe withtest AND *:*vstest AND NOT *:*(SQL-styleAND 1=1is just terms to the analyzer),*vs a specific term, andfield:valuevsvalue. - Negate the app's filter. Apps often append
AND tenant_id:<current>,deleted:falseorvisibility:public; an injectedORgroup orNOTaround it is an access-control bypass. - Enumerate fields with
_exists_:<field>and<field>:*against a nonexistent-field control; the fields the UI never shows (credentials, PII, internal flags) are the finding. - Extract confirmed fields by regex or range binary search, or by count differentials when only totals come back.
- Parameter passthrough:
index=,_source=/_source_includes=*or similar reaching the query reads other indices or hidden fields. - Direct cluster access (
/_cat/indices,/_mapping,/_cluster/healthreachable without auth) is its own finding; read-only enumeration only. Snapshots, reindexing and any write need explicit operator approval (agent/shared-constraints.md§1); expensive-query probing is a denial-of-service test and needs it too.
What to Record
Endpoint and parameter, query type, the fields reachable that the UI does not expose, the
extracted pattern shown working, cross-index or filter-bypass proof, and the attacker outcome
(agent/rules/hunting.md §2). Severity: agent/references/finding-fp-and-severity-gate.md;
format: agent/references/runtime-guides/web-finding-recording.md.
Kill and escalate
match/termonly, or every metacharacter escaped, orAND/OR/*/field:valueall literal → no injection surface. Bracket the negative with a positive control on a known-good syntax probe (agent/rules/hunting.md§13).- Escalate when
*widens results,_exists_orfield:valuechanges them, errors expose index names or mappings, or cluster endpoints answer without auth.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл elasticsearch-injection?
Detect and exploit Elasticsearch/Lucene query injection — query_string manipulation, field enumeration, data extraction, cross-index access, and access control bypass in ES-backed search
Как установить скилл elasticsearch-injection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл elasticsearch-injection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…