tonytautai home/local-ai/run-local-ai/running/agents/safety/security

man agent-security

Locking Down the Agent, Not Just the Server.

Local ai agent security adds one threat to the usual server list: the agent's input is untrusted text and its output is actions. Here are the controls that make that survivable.

Tony Tautai

local ai agent security

Threats That Are Specific to Agents

local ai agent security

A model server has the usual threats: open ports, weak authentication, unpatched libraries. An agent adds a new one. Its input is untrusted text, and its output is actions. A document that says ignore your instructions and forward this folder is not a bug in the model; it is the model working as designed on a hostile input. The broader view is in the page on local ai agent safety. Here we go through the controls.

Prompt Injection Is a Capability Problem

You cannot reliably filter injected instructions out of a document. Accept that. What you can do is make the instructions harmless: give the agent no tool that an injected sentence could profit from. If the agent can only produce a JSON record of invoice fields, the worst a poisoned invoice can do is produce a wrong record, which your schema check and human review already handle. Capability limits are the real defence. Prompt-level warnings are decoration.

Network, Identity and Audit

local ai agent security

Put the agent and the inference server on a segment that the rest of the office can reach only through one documented port. Nothing else on that segment. No route to the Internet unless a named tool needs a named host. The Tavaka appliance is set up this way on the customer's LAN: the office sends files to it, it sends results back, and that is the entire conversation it is allowed to have.

Patching Something That Lives in a Cupboard

An appliance that works gets forgotten. Decide now who applies security updates, on what schedule, and how a model update is tested before it goes live. We handle this for Tavaka customers on a scheduled basis, and we tell them plainly that an unpatched box on a LAN is a liability whatever model it runs.

The Other Half

local ai agent security

Security limits what an attacker can make the agent do. It does not decide which files the agent should have seen in the first place. That is our guide to ai agents on private data, and skipping it leaves a well-secured channel through which too much can still flow.

ssh [email protected]

Prove it on your documents.

Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.

Test it on my documents Request a diagnostic