Knowledge guide
AI Agent Security Checklist for Self-Hosted Systems

A practical AI agent security checklist for self-hosted tools, covering permissions, MCP, prompt injection, approvals, monitoring, and recovery.
Data accurate as of July 2026 based on market research
Contents
Introduction
What self-hosted AI agent security must control
Map the trust boundaries before deployment
AI agent security checklist
Secure MCP tools and untrusted content
Approvals, monitoring, and recovery
Compare deployment options
Industry and search context
Common misconceptions
FAQ
Conclusion
Truth Box
| Key Point | Insight |
|---|---|
| Self-hosted is not automatically secure | Local control helps, but broad credentials, unsafe plugins, and weak operations still create risk |
| Permissions matter more than confidence | A fluent answer never authorizes an action |
| External content is untrusted | Web pages, documents, email, and tool output can carry indirect prompt injection |
| High-impact actions need a separate gate | Payments, deletion, publishing, account changes, and external messages should pause for review |
| Recovery is part of security | Logs, revocation, backups, and a tested stop procedure reduce the impact of failure |
Introduction
An AI agent security checklist controls what an agent can read, change, and do when its reasoning is wrong or manipulated. In self-hosted systems, the action path may include MCP, browser tools, shell access, files, APIs, memory, and schedules.
Self-hosting improves deployment control, but does not remove injection, excessive permissions, credential theft, unsafe packages, or mistakes. Aim for a small, reviewable blast radius.
That is the operator approach behind my self-hosted AI systems service: start with a narrow job and make shutdown and recovery possible.
What self-hosted AI agent security must control
The OWASP AI Agent Security Cheat Sheet covers prompt injection, tool abuse, data exposure, memory poisoning, excessive autonomy, supply-chain compromise, and runaway resource use. A self-hosted checklist should turn those risks into controls.
| Control area | Question to answer |
|---|---|
| Identity | Which agent, user, or service initiated the action? |
| Tools | Which exact operations are allowed? |
| Data | Which files, records, and memory scopes are reachable? |
| Network | Which internal and external destinations are reachable? |
| Approval | Which actions require a human decision? |
| Operations | How are changes logged, stopped, restored, and tested? |
Do not give one general agent every connector. Separate research, drafting, publishing, administration, and finance when their risks differ.
Map the trust boundaries before deployment
Before enabling automation, list the owner, entry points, model provider, tools, credentials, data, network routes, memory, logs, schedules, and destinations.
The SANS Zero Trust for AI Agents checklist starts with inventory, least privilege, behavior baselines, and incident response. The NCSC secure AI development guidelines cover the full system lifecycle.
Give each boundary an owner and stop method. Test credential revocation, plugin review, and schedule shutdown.
AI agent security checklist
| Check | Safe default | Evidence to keep |
|---|---|---|
| Agent identity | Unique identity and owner | Role, environment, and owner record |
| Tool access | Deny by default | Tool allowlist and read or write scopes |
| Credentials | Scoped and revocable | Purpose, owner, and revocation path |
| Data access | Limit folders, tables, and retention | Data map and access test |
| Code execution | Isolated runtime with path limits | Sandbox policy and abuse tests |
| External input | Treat retrieved text as data | Injection tests and validation rules |
| High-impact action | Preview and approve | Approver, parameters, target, and expiry |
| Memory | Isolate and validate before saving | Scope, retention, and deletion test |
| Monitoring | Log safe action metadata | Actor, tool, target, result, and incident link |
| Resource use | Bound loops, retries, time, and cost | Limits and circuit-breaker test |
| Recovery | Revoke, stop, restore, and verify | Runbook and recovery test |
The Microsoft least-privilege guidance for AI agents connects identity governance with task-scoped access, tool allowlists, audit logs, and fast revocation. Model confidence should never grant permission.
Secure MCP tools and untrusted content
Review every MCP connection. The official MCP security best practices warn against token passthrough and also cover consent, sessions, SSRF, and confused-deputy risks.
Use reviewed servers and pinned versions. Inspect tool descriptions, parameters, outbound requests, paths, and credentials. Prefer read_customer_status over a general database or shell command. The OWASP MCP Security Cheat Sheet treats tool metadata and returned content as part of the attack surface.
A stronger system prompt does not solve prompt injection. The OWASP prompt injection guidance covers indirect attacks hidden in pages, documents, email, code comments, and tool output. Extract only needed fields, validate structured output, and never let untrusted content authorize a tool call. OpenAI's agent safety guidance likewise combines structure, isolation, guardrails, and confirmations.
Approvals, monitoring, and recovery
Classify actions by consequence, not by how routine they look.
| Action class | Example | Default handling |
|---|---|---|
| Read-only | Search approved documents | Run within data and network limits |
| Reversible write | Create a draft task | Log, verify, and keep rollback |
| External action | Send email or publish | Show destination and content before approval |
| Privileged action | Change access or server settings | Require named approval and stronger authentication |
| Irreversible action | Delete data or release payment | Separate preparation from execution and verify independently |
Log identity, tool, target, decision, safe parameters, result, and recovery status. Exclude passwords, tokens, private documents, and unnecessary personal data.
Before launch, test how to disable schedules, revoke credentials, block tools, restore data, and verify the destination. The NIST Generative AI Profile is a voluntary risk reference. For OAuth integrations, use RFC 9700, not an informal token recipe.
A private knowledge system needs the same boundaries around memory, connectors, and write tools.
Compare deployment options
| Option | Best fit | Main limitation |
|---|---|---|
| Chat-only local model | Drafting with no tools | Cannot complete external work |
| Read-only agent | Research and retrieval | Still needs input and data controls |
| Approval-gated agent | Consequential business workflows | Requires a responsive owner |
| Narrow autonomous agent | Low-impact repeatable work | Needs limits, monitoring, and recovery |
| Broad general agent | Controlled experiments | Large production blast radius |
More autonomy is not automatically better. The safest useful design is the least authority that can complete the real job.
Industry and search context
Current Google results repeat least privilege, agent identities, sandboxing, prompt-injection defenses, approvals, audit logs, and incident response.
The missing layer is often self-hosted operations: which service can reach each file, API, or network, how scheduled agents stop, and how uncertain actions are recovered. This checklist addresses that gap without claiming perfect security.
Common Misconceptions
| Myth | Correction |
|---|---|
| Self-hosted means private by default | Privacy depends on configuration, providers, connectors, logs, and network exposure |
| Read-only tools are risk-free | They can expose confidential data or feed poisoned content into later decisions |
| Human approval fixes every risk | Approval works only when the person sees the action, target, and consequences |
FAQ
What is the first step in an AI agent security checklist?
Inventory the owner, tools, credentials, data, network, memory, schedules, and stop procedure.
Should a self-hosted AI agent have shell access?
Only when required. Use narrow commands, isolation, path limits, and approval for consequential changes.
How do I secure an MCP server?
Authenticate, scope permissions, validate requests, avoid token passthrough, review tools, restrict networking, and log safe metadata.
Can prompt injection be prevented completely?
No reliable source promises complete prevention. Reduce risk with separation, structure, least privilege, confirmations, isolation, and testing.
Which AI agent actions need human approval?
External, privileged, financial, destructive, irreversible, legally sensitive, or uncertain actions should pause.
Conclusion
A secure self-hosted agent has identity, narrow tools, scoped credentials, isolated data, approvals, safe logs, and a tested recovery path.
Start read-only. Add one tool at a time. Test injection and permission failures. Keep high-impact execution separate from model reasoning. For help mapping or operating a self-hosted workflow, contact [email protected] or review my self-hosted AI systems service.
Image SEO Package
| Placement | Alt Text | Title | Caption | Description |
|---|---|---|---|---|
| Feature image | AI agent security checklist for a self-hosted system | Self-Hosted AI Agent Security Checklist | Map tools, approvals, monitoring, and recovery. | Agent inside narrow trust boundaries. |
| Trust boundaries | AI agent linked to controlled MCP tools, files, APIs, memory, and logs | AI Trust Boundaries | Every connector expands reach. | Allowed and denied paths. |
| Approvals | Human review of a high-impact AI agent tool call | Human Approval Gate | Review the target and consequence. | Approval interface. |
| Recovery | AI agent incident response flow from stop to verify | AI Agent Recovery Runbook | Stop, recover, and verify. | Recovery flow. |
Need help applying this?
See the related service page: Self-hosted AI system deployment or email [email protected].