Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Ollama Config Security Audit

    by CashonlyTian

    1

    Use when a user wants to know whether an Ollama deployment is safe to expose or run.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Ollama Config Security Audit

    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:

    CheckScoreFinding
    Bind Address0/15OLLAMA_HOST is set to 0.0.0.0, exposing the API on all interfaces.
    Authentication0/15No Basic Auth or VPN layer detected for a non-loopback bind.
    Docker Exposure10/10Port 11434 is correctly mapped to 127.0.0.1 in docker-compose.yml.
    CORS Origins5/10OLLAMA_ORIGINS contains *, allowing cross-origin requests from any site.
    Version Patching5/5Version 0.4.2 detected; CVE-2024-37032 is patched.
    Resource Limits10/10Sane 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_HOST fix and re-run the scan to verify the updated score.
    • Review scan-report.md for the full breakdown of service hardening recommendations.

    scan-2024-05-20.png

    PDF · document

    Generated

    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. 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 2 days ago

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed2 days ago

    What's inside

    Frequently Asked Questions

    This skill performs a static analysis of your configuration files (like .env and docker-compose.yml) to identify high-risk settings like public bind addresses, missing authentication, and unpatched vulnerabilities such as 'Probllama.' It prevents your local LLM server from being hijacked or used in a DDoS attack.

    No, the skill operates locally by parsing your configuration files as text and does not require an active Ollama process to be running. This allows you to audit and secure your environment before you even launch the service for the first time.

    The skill identifies if you are running older, vulnerable versions of Ollama and checks if your configuration is susceptible to known exploits like CVE-2024-37032. It provides specific instructions on how to patch these vulnerabilities to keep your host system secure.

    You receive the full security audit agent skill, a standardized 10-point scoring framework, and a template for generating Markdown-based security compliance reports. It includes all necessary logic to parse environment files, systemd units, and Docker configurations.

    This skill focuses on the local configuration layer, such as systemd units and environment variables, rather than external network infrastructure. It cannot detect misconfigured hardware firewalls or security groups managed by cloud providers like AWS or DigitalOcean.

    Yes, the skill is designed to audit Nginx and Caddy configuration files to ensure that any non-loopback Ollama bind is properly shielded by a reverse proxy with active authentication layers.

    New in LLM Ops