Works with the AI Agents you already use
Ollama Config Security Audit
by CashonlyTian
Use when a user wants to know whether an Ollama deployment is safe to expose or run.
$7
Ollama Config Security Audit
Example session with this skill installed
Audit the Ollama deployment configuration in the ./deploy/prod-server directory. The project name is 'Internal-LLM-Gate'.
- Read your context and instructions
- Compiled the ollama config security
- Generated the document
I have completed the security audit for the
Internal-LLM-Gate project. The scan analyzed your environment variables, systemd service units, and Docker configurations located in ./deploy/prod-server.
Audit Summary:
- Score: 65/100
- Grade: D
- Risk Level: High
- Findings: 4 issues (2 critical, 1 medium, 1 low)
Security Scorecard
The following report details the configuration risks found:
| Check | Score | Finding |
|---|---|---|
| Bind Address | 0/15 | OLLAMA_HOST is set to 0.0.0.0, exposing the API on all interfaces. |
| Authentication | 0/15 | No Basic Auth or VPN layer detected for a non-loopback bind. |
| Docker Exposure | 10/10 | Port 11434 is correctly mapped to 127.0.0.1 in docker-compose.yml. |
| CORS Origins | 5/10 | OLLAMA_ORIGINS contains *, allowing cross-origin requests from any site. |
| Version Patching | 5/5 | Version 0.4.2 detected; CVE-2024-37032 is patched. |
| Resource Limits | 10/10 | Sane values found for OLLAMA_MAX_LOADED_MODELS. |
Top Priority Fixes:
1.
Restrict Bind Address: Change OLLAMA_HOST to 127.0.0.1 in your .env file to prevent direct external access.
2.
Implement Proxy Auth: Configure Nginx or Caddy with auth_basic to protect the API since Ollama lacks built-in authentication.
3. Hardened CORS: Replace the wildcard * in OLLAMA_ORIGINS with specific trusted domains.
Files Generated:
- Visual Scorecard:
scan-2024-05-20.png - Full Report:
scan-report.md
Next steps
- Apply the
OLLAMA_HOSTfix and re-run the scan to verify the updated score. - Review
scan-report.mdfor the full breakdown of service hardening recommendations.
scan-2024-05-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Audit an Ollama deployment's config (ollama.env / .env with OLLAMA_* vars, ollama.service + override.conf, docker-compose.yml, Modelfile(s), nginx / Caddy reverse-proxy config, models.txt, version.txt — all parsed as TEXT, never executed, no Ollama command is ever run) before it is exposed — OLLAMA_HOST on every interface, a non-loopback bind with no authenticating proxy or VPN in front of an API that has no built-in auth, OLLAMA_ORIGINS of '*' or a broad wildcard, Docker publishing 11434 on every interface past the host firewall, a Modelfile FROM a remote registry namespace or URL, pulled models carrying stranger markers or no sha256 digest pin, resource limits missing while the bind is non-loopback or OLLAMA_KEEP_ALIVE=-1, OLLAMA_DEBUG on, a systemd unit running as root without hardening or a world-writable models directory, and an Ollama version below 0.1.34 (CVE-2024-37032 'Probllama'). Scores 10 checks 0-100 with a grade and risk level, and produces a shareable score-card image plus a prioritised fix report. Use when a user wants to know whether an Ollama deployment is safe to expose or run.
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.
Only audits local text files. Does not connect to live hosts or audit active network traffic. Skips files over 2MB and common directories like node_modules or .git.
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 2 days ago
- Software
Python 3Pillow