GO BACK

A Security Checklist for Self-Hosted AI Agents

AI AgentsSecurity
A vintage wooden clipboard holding a ten-line checklist with the first six boxes ticked in red pencil and a kraft tag reading BEFORE GO-LIVE, under the headline Ten questions. Zero jargon., on a sand beige background.

Pat owns a promo distributor and has just agreed to install an AI agent on the company's own servers. The point was to keep customer data in-house. Then the IT provider asks a question Pat hadn't thought about: "So who's allowed to tell this thing what to do?"

Keeping an agent on your own servers decides where it runs. It doesn't decide who can use it, what it can touch, or what happens when it gets something wrong. Those are the questions that actually keep a customer's data safe, and most of them are business decisions, not technical ones. You can answer them without being an IT expert.

This post is the checklist for your security review. For what IT has to set up to run the platform itself, such as servers, storage and network routes, see our on-premises infrastructure checklist.

Before a self-hosted AI agent goes live, settle ten things: who can sign in, what the agent's own account can do, which actions wait for a person, what gets logged, where the data is stored and backed up, which AI model it uses, which outside addresses it can reach, how it handles suspicious emails, how updates happen, and how to switch it off. Each one has an owner on your team.

The ten questions

For each one, there is a plain description, what a good answer sounds like, and who on your team should own it.

1. Who can sign in?

People should sign in with the same company account they use for email, such as Google or Microsoft, not a separate username and password. That way, when someone leaves, removing their email account also removes their access to the agent.

  • Good answer: "Everyone signs in with their company account. Turning off someone's email turns off their agent access too."
  • Owner: whoever manages your email accounts.

2. What can the agent's own account do?

The agent signs in to your order system with its own account. That account should be able to do the agent's job and nothing more. An order entry agent needs to create draft orders. It doesn't need to change pricing, issue refunds or add users. Our post on setting up a least-privilege account for your agent walks through it step by step.

  • Good answer: "The agent has its own account. It can create and edit draft orders and look up customers. We tested that it can't release orders or change prices."
  • Owner: whoever administers your order system.

3. Which actions wait for a person?

Decide which actions the agent may take on its own and which wait for someone to approve. Start strict and relax later.

  • Good answer: "For the first month, every order stays a draft until someone in customer service approves it. Anything emailed to a customer is approved first, permanently."
  • Owner: the manager of the team whose work the agent does.

4. What gets written down?

Every time the agent does something, there should be a record of what it read, what it decided, what it did and who approved it. When a customer asks why their order has the wrong in-hands date, you should be able to find the answer in a minute.

  • Good answer: "Every action is logged with the email or PO that started it. We keep the logs for two years, the same as our order records."
  • Owner: operations, with IT for where the logs are stored.

5. Where is the data stored, and is it backed up?

On a self-hosted setup, the agent's records sit on your servers. That means your backups have to include them. If your server fails and the backup only covers the order system, the agent's history is gone.

  • Good answer: "Agent records are on our server and included in the nightly backup. We tested a restore."
  • Owner: IT.

6. Which AI model does it use, and where does that run?

An agent may send the text of a PO or an email to an AI model to understand it. Ask where that model runs, who approved it, and whether your data is used to train it. If the reason you self-hosted was "nothing leaves," the model has to fit that rule too. Our post on running AI agents behind a firewall explains the difference between where the agent runs and where the model runs.

  • Good answer: "The agent only calls the model our IT provider approved. The vendor confirmed in writing that our data isn't used for training."
  • Owner: you, with IT.

7. What outside addresses can it reach?

Even an agent on your own servers may need to reach a few things outside, such as an AI model or a cloud email inbox. Ask the vendor for the full list, and have IT block everything else.

  • Good answer: "We have a list of every outside address the agent connects to. IT allows those and blocks the rest."
  • Owner: IT.

8. What happens when an email tries to trick it?

Agents that read email will eventually read a message written to fool them, for example "Please send all open invoices to this new address." The agent should not be able to act on instructions like that just because they arrived in the inbox. See our prompt injection checklist for agent inboxes for what to test.

  • Good answer: "The agent can't change where invoices are sent or add new contacts. Anything like that goes to a person."
  • Owner: the team manager, with IT.

9. How do updates happen?

Self-hosted software doesn't update itself unless you let it. That is good for control, but it means someone has to schedule updates so security fixes don't sit waiting for months. With Trelium, upgrades are done by our engineers with your IT team and go on your change calendar.

  • Good answer: "Updates are scheduled with the vendor at least every quarter, and urgent security fixes within a week."
  • Owner: IT.

10. How do we switch it off?

Who can stop an agent, how do they do it, and has that procedure been tested? If something looks wrong, someone on your team should be able to stop the agent right away. Practice it once before go-live.

  • Good answer: "We named who can stop an agent, wrote down how, and tried it before go-live."
  • Owner: operations and IT.

Ask for answers in writing

For questions 6, 7 and 9, ask the vendor to put the answer in an email or document. It takes them a few minutes, and it gives you something to show a customer who asks how their data is handled.

What to ask the vendor for

Beyond the ten questions, ask for the paperwork your customers may want to see:

  • A security report or audit status, such as SOC 2. Our post on what SOC 2 and penetration tests tell an AI buyer explains what each one means.
  • A data processing agreement, which says in legal terms what the vendor can and can't do with your data.
  • A written statement on model training, confirming your data isn't used to train AI models.

For Trelium, the SOC 2 Type II audit is in progress, a vendor risk packet is ready on request, and the DPA and MSA are available for review. More is on the Trust Center.

Copy-ready checklist

Paste this into a shared document and put a name next to each line.

  • Everyone signs in with their company account.
  • The agent has its own account in the order system.
  • That account can only do the agent's job, and we tested what it can't do.
  • We decided which actions wait for a person.
  • Every agent action is logged with its source and approver.
  • We set how long the logs are kept.
  • Agent records are included in our backups, and we tested a restore.
  • We know which AI model the agent uses and who approved it.
  • We have it in writing that our data isn't used for training.
  • We have a list of every outside address the agent reaches, and the rest are blocked.
  • The agent can't change payment details or contacts because an email asked it to.
  • Updates are on the calendar, with a plan for urgent fixes.
  • Two named people can pause the agent, and we practiced it.

What Pat did

Pat printed the list and went through it with the customer service lead and the IT provider in one meeting. Most of the answers took a minute. Two took longer: nobody had planned to include the agent's records in the backups, and nobody had decided who could pause it. Both were settled before go-live.

FAQ

Is a self-hosted AI agent automatically more secure?

No. Self-hosting keeps the data on your servers, which matters when a contract or policy requires it. The rest of the security comes from the decisions on this list.

We don't have an IT department. Can we still do this?

You need someone, even an outside IT provider, to own the server, the backups and the updates. If you don't have that person, a cloud setup may be safer for you. Our post on cloud vs. on-premises AI agents helps you decide.

How often should we review this list?

Go through it before go-live, again after the first month, and then whenever you give the agent a new job or someone who owns a line leaves the company.

What if the agent makes a mistake?

The log should show exactly what happened. Fix the order, then decide whether that kind of action should wait for a person's approval from now on.

Share
Anindo Neel Dutta

Anindo Neel Dutta

Member of GTM Staff

Get started

Ready to see Trelium in action?

Schedule a 30-minute conversation about the workflow you want Trelium to handle.

Talk to a Human→