Works with the AI Agents you already use
Elasticsearch Config Security Audit
by CashonlyTian
You risk exposing your cluster the moment an insecure `elasticsearch.yml` is deployed.
$7
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)
| Check | Score |
|---|---|
| Network Exposure | 0/15 |
| Authentication | 0/15 |
| TLS Encryption | 0/15 |
| Scripting (inline Painless) | 0/10 |
| Destructive Operations | 0/10 |
| CORS Exposure | 5/10 |
| Snapshot Location | 5/10 |
| Audit Logging | 0/5 |
| Hardcoded Credentials | 0/5 |
| Resource Limits | 0/5 |
Security Score-Card
A visual score-card PNG has been generated, featuring the DevOps-Pros brand and accent #FF5733.
Prioritized Fix Report
| Check | Status | Recommendation |
|---|---|---|
| Network Exposure | FAILED | Change network.host from 0.0.0.0 to 127.0.0.1. |
| Authentication | FAILED | Set xpack.security.enabled: true to prevent unauthorized access. |
| TLS Encryption | FAILED | Enable xpack.security.http.ssl.enabled and provide a valid keystore. |
| Scripting (inline Painless) | FAILED | Disable inline Painless scripting. |
| Destructive Operations | FAILED | Set action.destructive_requires_name: true. |
| CORS Exposure | PARTIAL | Restrict http.cors.allow-origin from * to specific domains. |
| Snapshot Location | PARTIAL | Move snapshots out of /tmp to a dedicated, secured repository. |
| Audit Logging | FAILED | Enable audit logging. |
| Hardcoded Credentials | FAILED | Remove credentials baked into the config and use a secure store. |
| Resource Limits | FAILED | Set the required resource limits, including bootstrap.memory_lock. |
Detailed Findings
The full report is available in scan-report.md. Key issues:
- Critical:
network.hostis set to0.0.0.0. This makes your node reachable on all network interfaces. - Critical:
xpack.security.enabledis missing or false. The cluster has no password protection. - Critical: TLS is off, so traffic is unencrypted.
- High:
action.destructive_requires_nameis false. A wildcard delete request could wipe all indices. - High: Credentials are baked into the config.
Next steps
- Review
scan-report.mdfor the exact line numbers requiring changes. - Apply the network and authentication fixes first before exposing the server.
- 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.hostis bound to0.0.0.0or public IPs rather than localhost. - Authentication check verifies if
xpack.securityis 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_nameand 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
- Point the agent to a local project directory containing
elasticsearch.yml. - The agent runs a local-only Python script to evaluate the configuration against 10 security vectors.
- It generates a score (0-100), a letter grade, and a risk level based on point deductions.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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