Skip to main content
DigiTransact AI Learning Centre

Module 6 of 6

Local AI security

Why local is not automatically private, and the controls that make self-hosting defensible.

Lesson 1

Local is not private by default

A local model cannot call a vendor, but the application around it can. Telemetry, crash reports, update checks and analytics all leave the machine.

Privacy comes from configuration and evidence, not from the word local on a slide.

  • Disable telemetry you do not need.
  • Check what the front end sends on start-up.
  • Block outbound traffic from model hosts.
  • Document the data flow.

Check yourself. Name three outbound connections a local stack might still make.

Lesson 2

Network isolation and access

Put model servers on a private network segment, allow only the front end to reach them, and require authentication for users.

Administrative interfaces should never be reachable from the public internet.

  • Use a reverse proxy with TLS.
  • Restrict by IP or VPN where possible.
  • Separate admin and user paths.
  • Patch the proxy as carefully as the model.

Check yourself. Which two interfaces should never face the internet?

Lesson 3

Supply chain and model downloads

Weights are binaries. Download from the official repository, check the digest, and record the version you deployed.

Third-party re-uploads and modified quantisations are a supply chain risk.

  • Prefer the publisher's own repository.
  • Verify checksums where published.
  • Scan files before loading on a server.
  • Keep a model bill of materials.

Check yourself. What record proves which model you actually ran?

Lesson 4

Prompt injection, RAG and governance

Any document, email or web page the model reads can carry instructions. Treat retrieved content as untrusted input.

Governance covers purpose, approval, retention, access, evaluation and incident response. It applies whether the model is local or hosted.

  • Separate instructions from data in the prompt design.
  • Limit what tools the model may call.
  • Require approval for consequential actions.
  • Review logs and evaluation results.

Check yourself. Why does a local model still need prompt injection controls?