Skip to content
Connectors

Scanner deep dive

Elasticsearch

SourceOpen source only · Runs wherever the CLI runs

Scan Elasticsearch

Use cases and coverage

Scanning use cases

  • Check one application’s indexed logs

    Connect the CLI source to your cluster and set an index pattern for the application. Review the message field of matching documents for credentials that the application logged.

  • Review records written after a release

    Limit the scan with the index pattern and the since-timestamp option. Share affected document references with the service owner.

Related incidentTwitter wrote passwords to an internal log · Similar exposure

May 2018 · Similar exposure

Twitter reported that a bug logged passwords before hashing them. It removed the values and said its investigation found no indication of breach or misuse.

How this relates to Elasticsearch

Twitter described an internal log. In your Elasticsearch deployment, the relevant question is whether an application wrote sensitive values into the indexed message field that this CLI source reads.

Review Elasticsearch scan scope

Twitter report · About the Bug, May 3, 2018

Source check

Atlas AI-assisted source check · 2026-11-22. The publisher describes the event or study. The Atlas explains its relevance to this connector. Detection depends on the scan scope and detectors in use.

Limits

See the pinned CLI guide below for documented scope.

What TruffleHog documents

Open-source CLI

The CLI inspects the message field in matching documents. Choose the index pattern, query and time range with the log field you want reviewed in mind.

Read the pinned README passage

Sources checked .

CLI setup

Set it up

The open-source CLI is read from the public TruffleHog code at a pinned commit; it’s a separate product from Enterprise.

Check the options in your installed version with trufflehog elasticsearch --help.

  1. Collect the cluster node addresses or cloud ID and agree on an authentication method, such as an API key or service token.
  2. Set an index pattern for the pilot. The command also offers a document-query filter when a narrower scope is needed.

Suggested contact (Atlas suggestion) · Elasticsearch administrator or index owner

Suggested first check (Atlas suggestion) · Check that the intended index pattern matches only the pilot indices.

Setup reference checked 2026-11-22 · elasticsearch command declaration

$ trufflehog elasticsearch

Scan Elasticsearch pkg/sources/elasticsearch · main.go line 252

Open-source TruffleHog, read from the public code at commit ffdee00 (v3.99.9-6-gffdee00a). Newer releases may differ.

All 10 CLI flagsNone required
trufflehog elasticsearch flags
FlagWhat it doesType
--nodesElasticsearch nodesEnv ELASTICSEARCH_NODES.strings
--usernameElasticsearch usernameEnv ELASTICSEARCH_USERNAME.string
--passwordElasticsearch passwordEnv ELASTICSEARCH_PASSWORD.string
--service-tokenElasticsearch service tokenEnv ELASTICSEARCH_SERVICE_TOKEN.string
--cloud-idElasticsearch cloud ID. Can also be provided with environment variableEnv ELASTICSEARCH_CLOUD_ID.string
--api-keyElasticsearch API key. Can also be provided with environment variableEnv ELASTICSEARCH_API_KEY.string
--index-patternFilters the indices to searchDefault *.Env ELASTICSEARCH_INDEX_PATTERN.string
--query-jsonFilters the documents to searchEnv ELASTICSEARCH_QUERY_JSON.string
--since-timestampFilters the documents to search to those created since this timestamp; overrides any timestamp from --query-jsonEnv ELASTICSEARCH_SINCE_TIMESTAMP.string
--best-effort-scanAttempts to continuously scan a clusterEnv ELASTICSEARCH_BEST_EFFORT_SCAN.bool

Sources and related tools

OSS codeScraped, not reviewedTicketing systems, logging, and incident management (Atlas grouping)

Evidence

Docs scraped 2026-11-17. Each docs page was fetched with Firecrawl twice (an overview pass and a detail pass for capabilities, options, permissions and notes) and read by an extraction prompt. Descriptions are short paraphrases. Open-source CLI facts are parsed from main.go at the pinned TruffleHog commit. Not reviewed by a person. Pinned commit ffdee00. Check the source before quoting a detail, or review this connector so the badge says so. Truffle’s integrations page doesn’t list this connector, so the Atlas picked its category.