26/11/2026
Is Local AI Secure by Default? A Pre-Deployment Checklist
A local server is not enough: review API access, networking, RAG permissions, logs, and data flows before deploying an AI system.
Putting an AI model on your own server gives you control over part of the infrastructure, but it does not automatically secure the whole system. APIs, document indexes, user accounts, backups, logs, and integrations need protection too. The appropriate controls depend on the data and risks of the specific project.
Start with service exposure
Ollama is one example: according to its documentation, the server binds to 127.0.0.1:11434 by default. Changing OLLAMA_HOST can make it accessible over the network. Before exposing an API, review authentication, network rules, and which applications may connect. Do not assume that a “local” installation cannot be reached externally.
Containers add port-publishing settings. Docker’s documentation warns that on Linux, published ports may bypass UFW settings. Test the actual exposure after deployment rather than relying solely on the firewall configuration you expected.
RAG permissions must be enforced before the model
A RAG system may search contracts, procedures, and correspondence. If its index does not preserve document permissions, an answer could expose content to someone who should not see it. OWASP’s RAG security guidance recommends enforcing access checks when retrieving passages, isolating client data, and checking answer sources. A prompt instruction is no substitute for these controls.
Logs, queries, and embeddings can also reveal information. Decide what is recorded, who can read it, when it is deleted, and what happens to derived data when a source document is removed. The NIST AI Risk Management Framework helps structure AI risk reviews; it is not a compliance certificate for a particular deployment.
Checklist for your IT and security teams
This is a starting point for review, not a declaration that a system already meets the requirements:
- Are the model API and document index accessible only to authorized users and services?
- Have you tested actual port exposure, including containers and remote connections?
- Are document permissions enforced before retrieval and before text reaches the model?
- Is client data separated in the index, response cache, and logs?
- Do you know where prompts, responses, embeddings, backups, and monitoring data go?
- Have you agreed on encryption, retention, updates, monitoring, and incident response?
- Have you tested incorrect answers, malicious instructions in documents, and permission changes?
Local deployment can reduce dependence on an external API, but it does not eliminate vulnerabilities or data-protection obligations. Security controls and legal review must fit the actual architecture and use case.
This text is informational; it is not a security audit or legal advice.