
Secure Agent Command Architecture
When an AI agent can request actions on industrial equipment, the path from the agent to the machine becomes the most important security design decision. This guide explains how that path can be built so that only authenticated, authorized, limited and traceable commands arrive, what the main components are, which alternatives exist and where the design stops helping.
Status: Proposed method guide. It describes practice and reports no results from completed experiments, pilots or deployments.
Terms Used in This Guide
- Agent: software that proposes actions based on data, instructions and a model.
- Command gateway: a component that sits between the agent and the equipment and decides whether a request is forwarded.
- Bounded action vocabulary: a fixed list of actions the agent may request, each with defined parameters and a named target.
- Authorization: the decision that a specific requester may perform a specific action on a specific target at a specific time.
- Precondition: a condition about the state of the equipment or process that must be true before an action is sent. Preconditions are covered in a separate guide on the AI Decision and Control Labs site.
The Problem
An agent reads data and text from many sources, and some of those sources can be influenced by outsiders. If the agent can reach controllers directly, a mistake in its reasoning, a stolen credential or a manipulated input can turn into a physical action with nothing in between. The design goal is to keep the agent's output as a request, and to put independent checks between each request and the equipment.
Main Components
| Component | Role |
|---|---|
| Agent | Proposes actions from the bounded vocabulary. It has no direct network path to controllers. |
| Command gateway | Receives requests, checks identity, action, parameters, authorization and preconditions, and forwards only those that pass. It returns the reason when it rejects a request. |
| Identity and credentials | Gives each person, agent and service its own identity, with credentials that are short-lived and limited to what that identity needs. |
| Approval service | Records approvals from a separate person or role for actions that need one, with an expiry time. |
| Audit log | Records each request, decision, approver and outcome in a form that is hard to alter. |
| Controller interlocks | Enforce local conditions at the equipment, whether or not upstream software works. |
| Independent protection layer | Protects against hazardous conditions through safety functions designed under functional safety standards. |
| Monitoring | Watches for unusual request patterns, failed checks and changes in configuration. |
Design Principles
- Least privilege: give each identity only the actions and targets it needs.
- No direct path: use network zones and controlled conduits so that the agent can reach the gateway and the gateway can reach the controller, and nothing else.
- Treat free text and external data as untrusted. They inform the agent but never act as commands.
- Validate every request against a fixed schema, including allowed ranges for each parameter.
- Separate duties: the party that proposes an action should not be the only party that approves a high-impact one.
- Fail closed: if the gateway cannot verify a request, it rejects it.
- Log every decision and review the log, not only store it.
- Verify the outcome after the action with an independent measurement. An acknowledgment shows only that a command was received.
Alternatives and Trade-offs
| Option | What it relies on | Strength | Weakness |
|---|---|---|---|
| Checks inside the agent only | The agent's own instructions and reasoning | Simple to add | The agent is the component that may be wrong or manipulated |
| Gateway with policy enforcement | An independent component with its own rules | A single auditable enforcement point | It becomes critical infrastructure and adds delay |
| Checks in the controller only | Existing interlocks and permissives | Closest to the equipment | Limited view of identity and approvals. Changes need controls engineering |
| Layered design | Gateway, controller and protection layer together | No single point of failure in the checks | More components to configure and keep consistent |
Zero trust architecture, as described by the National Institute of Standards and Technology, supports the same direction: no component is trusted because of where it sits on the network, and each request is evaluated on its own.
Illustrative Example
Hypothetical scenario for explanation only. It does not describe an Aperture installation or result.
An agent proposes restarting a packaging conveyor after a jam alarm. The request travels as follows:
- The agent sends a restart request that names the conveyor and carries its own identity.
- The gateway confirms that the identity is allowed to request restarts on that conveyor and that the request matches the fixed schema.
- The gateway checks the preconditions, such as a stopped conveyor and a clear jam sensor.
- Because restarts are a higher-impact action, the gateway waits for a line supervisor's approval, which carries an expiry time.
- The gateway forwards the request to the controller, whose interlocks apply their own checks.
- The gateway records the request, the decision and the approver, and the system confirms from an independent sensor that the belt is moving.
Limits
- The gateway is itself an attractive target and needs the same protection as the equipment it guards.
- Many older industrial protocols have no built-in authentication, so protection may need to be added around them.
- A misconfigured policy can allow too much or block valid work. Policies need review and testing.
- Approvals can become routine. A person who approves everything adds little protection.
- This design addresses security. It does not replace safety functions for the protection of people.
- Citing a standard in this guide does not establish that any Aperture system is certified or conforms to it.
Related Resources
- Guide: Threat Modeling Industrial AI
- Overview: Knowledge Center
- Control guide: Designing Action Preconditions
- Control guide: Command Acknowledgment vs Physical Outcome
Sources
- National Institute of Standards and Technology. NIST Special Publication 800-207, Zero Trust Architecture. 2020.
- National Institute of Standards and Technology. NIST Special Publication 800-82 Revision 3, Guide to Operational Technology (OT) Security. 2023.
- International Electrotechnical Commission. IEC 62443-3-3, Industrial communication networks, IT security for networks and systems, System security requirements and security levels.
- National Institute of Standards and Technology. NIST Special Publication 800-53 Revision 5, Security and Privacy Controls for Information Systems and Organizations. 2020.
Discuss a Command Path
If you are designing how an AI agent will reach equipment, describe the equipment, the actions the agent would request and the checks you use today. We can discuss whether the question fits this program.
