Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Elasticsearch Config Security Audit

    by CashonlyTian

    1

    You risk exposing your cluster the moment an insecure `elasticsearch.yml` is deployed.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Elasticsearch Config Security Audit

    Elasticsearch Config Security Audit

    Example session with this skill installed

    Audit the Elasticsearch config in the /deploy/prod-cluster directory for project 'SearchAPI'. Use brand 'DevOps-Pros' and accent #FF5733.

    • Read your context and instructions
    • Compiled the elasticsearch config security

    I have completed the security audit for project

    SearchAPI. The scan analyzed the elasticsearch.yml file in /deploy/prod-cluster.

    Audit Summary — Unsafe demo config

    • Score: 10/100
    • Grade: F
    • Risk Level: CRITICAL
    • Findings: 29 findings

    Per-check scores — Unsafe demo config (total 10/100)

    CheckScore
    Network Exposure0/15
    Authentication0/15
    TLS Encryption0/15
    Scripting (inline Painless)0/10
    Destructive Operations0/10
    CORS Exposure5/10
    Snapshot Location5/10
    Audit Logging0/5
    Hardcoded Credentials0/5
    Resource Limits0/5

    Security Score-Card

    A visual score-card PNG has been generated, featuring the DevOps-Pros brand and accent #FF5733.

    Prioritized Fix Report

    CheckStatusRecommendation
    Network ExposureFAILEDChange network.host from 0.0.0.0 to 127.0.0.1.
    AuthenticationFAILEDSet xpack.security.enabled: true to prevent unauthorized access.
    TLS EncryptionFAILEDEnable xpack.security.http.ssl.enabled and provide a valid keystore.
    Scripting (inline Painless)FAILEDDisable inline Painless scripting.
    Destructive OperationsFAILEDSet action.destructive_requires_name: true.
    CORS ExposurePARTIALRestrict http.cors.allow-origin from * to specific domains.
    Snapshot LocationPARTIALMove snapshots out of /tmp to a dedicated, secured repository.
    Audit LoggingFAILEDEnable audit logging.
    Hardcoded CredentialsFAILEDRemove credentials baked into the config and use a secure store.
    Resource LimitsFAILEDSet the required resource limits, including bootstrap.memory_lock.

    Detailed Findings

    The full report is available in scan-report.md. Key issues:

    1. Critical: network.host is set to 0.0.0.0. This makes your node reachable on all network interfaces.
    2. Critical: xpack.security.enabled is missing or false. The cluster has no password protection.
    3. Critical: TLS is off, so traffic is unencrypted.
    4. High: action.destructive_requires_name is false. A wildcard delete request could wipe all indices.
    5. High: Credentials are baked into the config.

    Next steps

    1. Review scan-report.md for the exact line numbers requiring changes.
    2. Apply the network and authentication fixes first before exposing the server.
    3. Re-run this audit after updates to verify the new security grade.

    Clean demo config — verified

    • Score: 100/100
    • Grade: A
    • Risk Level: LOW
    • Findings: 0 findings
    • Per-check scores: 15/15, 15/15, 15/15, 10/10, 10/10, 10/10, 10/10, 5/5, 5/5, 5/5 — all checks full.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    You risk exposing your cluster the moment an insecure elasticsearch.yml is deployed. This skill audits your Elasticsearch configuration files for critical vulnerabilities before they reach production.

    What it does

    • Network audit detects if network.host is bound to 0.0.0.0 or public IPs rather than localhost.
    • Authentication check verifies if xpack.security is enabled and anonymous access is strictly disabled.
    • Traffic encryption scans for missing HTTP/Transport TLS settings and identifies insecure SSL verification modes.
    • RCE prevention analyzes scripting settings like Painless regex and compilation rates to block arbitrary code execution.
    • Data protection checks for destructive_requires_name and open CORS headers that could lead to data loss or hijacking.
    • Secrets detection finds hardcoded passwords, S3 credentials, or sensitive paths located in /tmp.

    How it works

    1. Point the agent to a local project directory containing elasticsearch.yml.
    2. The agent runs a local-only Python script to evaluate the configuration against 10 security vectors.
    3. It generates a score (0-100), a letter grade, and a risk level based on point deductions.
    4. Review the generated PNG score-card and the Markdown report containing prioritized fixes.

    Frameworks & tools

    This tool audits Elasticsearch configuration files (YAML) using a local Python-based scanner.

    Why this beats prompting it yourself

    Generic prompts often miss specific Elasticsearch version defaults, like security being disabled by default in 7.x. This skill uses a weighted 10-point scoring system that prioritizes network exposure over minor resource limits, providing a structured audit rather than a vague opinion.

    Use cases

    • Audit a new Elasticsearch config before deploying it to the cloud.
    • Review community-sourced tutorials or blog post configurations for hidden risks.
    • Generate a shareable security score-card for client reports or PR reviews.
    • Identify specific lines in large YAML files that violate security best practices.

    Known limitations

    The skill scans local config files only and does not connect to live clusters. It does not audit Dockerfiles, Terraform, or environment variables.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Scans local YAML files only. Does not audit live clusters, Dockerfiles, or CI/CD configs. Skips files over 2 MB and ignores .git or node_modules directories.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    No, this skill is a local-only auditor. It scans your `elasticsearch.yml` files directly on your machine to ensure your data never leaves your environment and you aren't exposing credentials to a live network.

    The skill provides a detailed Markdown report with prioritized fixes and a visual 0-100 score-card (PNG). The score is calculated based on 10 specific security vectors, weighing critical risks like network exposure more heavily than minor configuration tweaks.

    This skill is designed to audit standard YAML configuration files for Elasticsearch. While it is optimized for recent versions (7.x and 8.x), it can identify legacy risks in older configurations where security settings were often disabled by default.

    The skill specifically audits the `elasticsearch.yml` configuration file. It does not currently scan Docker Compose files, Terraform manifests, or environment variables, focusing instead on the core engine settings that govern network and data access.

    By using a weighted 10-point scoring system, this skill eliminates the 'hallucinations' or vague advice common with generic prompts. It understands specific Elasticsearch version defaults and provides a structured, repeatable audit rather than a subjective opinion.

    New in LLM Ops