Secure Agent Command Architecture for Industrial AI
Worker in hard hat touches a control screen showing identity, permission and limit checks passed
A command passes identity, permission and limit checks before it reaches the equipment.
HomeKnowledge CenterSecure Agent Command Architecture

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

ComponentRole
AgentProposes actions from the bounded vocabulary. It has no direct network path to controllers.
Command gatewayReceives 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 credentialsGives each person, agent and service its own identity, with credentials that are short-lived and limited to what that identity needs.
Approval serviceRecords approvals from a separate person or role for actions that need one, with an expiry time.
Audit logRecords each request, decision, approver and outcome in a form that is hard to alter.
Controller interlocksEnforce local conditions at the equipment, whether or not upstream software works.
Independent protection layerProtects against hazardous conditions through safety functions designed under functional safety standards.
MonitoringWatches for unusual request patterns, failed checks and changes in configuration.

Design Principles

  1. Least privilege: give each identity only the actions and targets it needs.
  2. 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.
  3. Treat free text and external data as untrusted. They inform the agent but never act as commands.
  4. Validate every request against a fixed schema, including allowed ranges for each parameter.
  5. Separate duties: the party that proposes an action should not be the only party that approves a high-impact one.
  6. Fail closed: if the gateway cannot verify a request, it rejects it.
  7. Log every decision and review the log, not only store it.
  8. Verify the outcome after the action with an independent measurement. An acknowledgment shows only that a command was received.

Alternatives and Trade-offs

OptionWhat it relies onStrengthWeakness
Checks inside the agent onlyThe agent's own instructions and reasoningSimple to addThe agent is the component that may be wrong or manipulated
Gateway with policy enforcementAn independent component with its own rulesA single auditable enforcement pointIt becomes critical infrastructure and adds delay
Checks in the controller onlyExisting interlocks and permissivesClosest to the equipmentLimited view of identity and approvals. Changes need controls engineering
Layered designGateway, controller and protection layer togetherNo single point of failure in the checksMore 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:

  1. The agent sends a restart request that names the conveyor and carries its own identity.
  2. The gateway confirms that the identity is allowed to request restarts on that conveyor and that the request matches the fixed schema.
  3. The gateway checks the preconditions, such as a stopped conveyor and a clear jam sensor.
  4. Because restarts are a higher-impact action, the gateway waits for a line supervisor's approval, which carries an expiry time.
  5. The gateway forwards the request to the controller, whose interlocks apply their own checks.
  6. 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.

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.