Secure AI Agents and Commands | Aperture Security Labs
An engineer monitoring control screens in an industrial control room.

Secure AI Agents and Commands

An industrial AI agent may interpret an operating condition, consult records, select a software tool, and propose an action. When the action concerns equipment, access permissions, production settings, or a mobile platform, an incorrect or unauthorized command can affect the physical environment. A convincing response from an AI model is not sufficient evidence that an action is safe or permitted. The command path must account for the requesting identity, approved scope, current equipment state, and consequences of execution.

Aperture Industrial AI Security Labs examines how adversarial inputs and excessive agent permissions could influence these command paths, and how independent controls can prevent untrusted information from becoming unauthorized physical action. The central question is whether untrusted input can cause an AI-enabled workflow to issue a command that should have been rejected. This topic forms part of the broader Cybersecurity, Physical Security, and Trusted Industrial AI research program.

The Physical Security Problem

Industrial agents may be asked to summarize alarms, retrieve maintenance instructions, open work orders, recommend changes to equipment settings, or coordinate a task across software and operational systems. Many of these activities are informational. Others can lead to a command that starts a motor, changes a parameter, releases an asset, or alters a robot's operating mode. These actions require different levels of trust and control.

Information used by an agent may arrive from operator requests, sensor observations, maintenance notes, retrieved documents, web services, or external systems. Some of that content is not authoritative, even if it appears inside an approved workflow. A malicious instruction embedded in a retrieved document or tool response is a form of prompt injection: an attempt to make the agent treat untrusted data as an instruction. The practical concern is not only what the model says, but whether a misleading instruction can cause an inappropriate tool call or physical command.

The risk depends on what permissions the agent has and which components enforce the final action. Related questions of trusted observations are addressed by Sensor Integrity and Spoofing Resistance, while network boundaries and restricted administration are covered by Industrial Network Security.

Research Questions

The primary research question is: Can untrusted input cause an unauthorized physical command, and can independent enforcement prevent its execution while preserving legitimate tasks?

  • Which prompt injection and tool-misuse scenarios can move an agent outside its authorized task?
  • Can command permissions be checked independently of the model's explanation or confidence?
  • How should a system distinguish a permitted recommendation from a command requiring approval?
  • What evidence is needed to determine whether an attempted unauthorized command was blocked, executed, or merely generated as text?
  • What effect do added safeguards have on legitimate task completion, operator workload, and the completeness of audit records?

Threat Pathways and Trust Boundaries

Untrusted Instructions in Operational Data

An agent could retrieve a maintenance note, shift log, alarm description, or external message that contains instructions unrelated to the user's authorized request. Research should examine whether the agent treats that material as reference data or allows it to redirect a task. Testing must distinguish an instruction displayed to the agent from a physical action accepted by downstream equipment. The companion guide Threat Modeling Industrial AI provides a related framework for identifying assets, adversaries, entry points, and consequences.

Tool Permissions and Agent Authority

An agent that can inspect records needs different rights from an agent allowed to modify operational settings. Tool-level permissions, action-specific scopes, credential handling, and the separation of read-only from write-capable operations are therefore central research concerns. Device Identity and Secure Onboarding addresses trusted endpoints, while Model Data and Software Integrity considers the provenance of deployed software and artifacts.

Command Enforcement at the Physical Interface

The point of execution requires its own policy decision. A command request can be checked against authenticated identity, approved asset scope, operating state, permitted parameter ranges, rate limits, and any required human confirmation. These checks should not depend solely on the model repeating that a command is acceptable. The related Secure Agent Command Architecture guide is the intended companion resource for this separation between reasoning and execution.

Proposed Research Approach

Separate Recommendations from Authorized Actions

A proposed architecture treats an agent's output as a request for review by a separate authorization and command-validation layer. This layer determines whether a requested action is permitted in the current operating context. A rejected request must not reach the actuator or control interface. The architecture should also support a useful read-only or advisory mode when direct action is inappropriate.

Apply Contextual Approval and Safe-State Rules

Some changes may be authorized only after a supervisor confirms the target equipment, process state, and intended effect. Other requests may be disallowed altogether during certain operating modes. The research would examine when approval reduces risk, when it introduces delay, and how rejected commands or uncertain state should affect continuation of a workflow. Incident containment and trusted restart are addressed in Resilience and Recovery.

Preserve Traceable Decision and Command Records

Audit records should differentiate the original task, information retrieved, tool request, policy decision, approval outcome, and execution result. These records can help investigators determine whether a model proposed an action, an authorization layer blocked it, or a physical interface accepted it. Sensitive content and credentials should not be included in logs merely to make them exhaustive.

Proposed Experiment and Testbed

Research stage: Proposed experiment design. The program guide identifies an isolated, authorized starting experiment, not a completed study, demonstrated system, or deployed installation. The intended evaluation page is Agent and Command Security, with isolation principles described under Isolated Cyber Physical Testbeds. Testbed availability remains subject to confirmation.

Hypothesis and Evaluation Apparatus

The proposed hypothesis is that independent authorization and command enforcement will block requests outside an agent's assigned authority while allowing legitimate requests to proceed. A simulator or nonhazardous actuator would represent the physical outcome, connected through a documented command gateway. Example tasks could include reading a status value and requesting a permitted configuration change. An adversarial case could place conflicting instructions inside an untrusted maintenance note or tool response and observe whether the agent requests an action beyond its rights.

Baseline, Ground Truth, and Procedure

One proposed baseline would record behavior under ordinary tool access and existing validation, with its actual restrictions documented. The comparison configuration would add explicit action scopes, independent authorization checks, and approval requirements as appropriate. Ground truth would consist of a preapproved permission matrix, known operating states, and a record of whether the simulated or nonhazardous command interface actually executed the action. This separates command generation from command acceptance and physical effect.

Scenario Coverage and Held-Out Cases

Trials could vary the source of untrusted content, requested action, equipment state, agent role, and approval outcome. Evaluation should include legitimate tasks that resemble prohibited ones, as well as cases withheld from configuration and rule selection. Failures and unexpected behavior must be recorded. Any simulator findings should be distinguished clearly from results involving physical equipment.

Evaluation Metrics

The three primary evaluation measures named in the research guide are blocked unauthorized commands, legitimate task success, and audit completeness.

  • Blocked unauthorized commands: the number and proportion of prohibited command attempts rejected by the enforcement layer, with denominators and attempted action types disclosed.
  • Legitimate task success: whether authorized informational and action-oriented tasks complete correctly under the same test conditions, including cases requiring approval.
  • Audit completeness: whether the records contain the task, requested tool operation, policy result, approval state, and verified execution outcome needed to reconstruct a trial.
  • Supporting measures: command-validation latency, operator intervention, mistaken rejection of authorized actions, and residual physical effects, if appropriate to an approved protocol.

No numerical thresholds or performance results are asserted. The technical lead must approve metric definitions, the permission matrix, scenario selection, and reporting conventions before tests can support public claims.

Industrial Application Contexts

In Connected Factories, an AI assistant may retrieve equipment records and propose work orders or parameter changes. For Critical Infrastructure and Utilities, remote command authority and continuity requirements create important boundaries. In Buildings and Facilities, access permissions and building automation functions may intersect. For Robots, Drones, and Vehicles, tool access may influence missions, routes, or equipment modes. These are examples of possible research contexts, not evidence of implemented solutions or customer deployments.

Limitations and Evidence Status

Prompt injection cannot be assumed to disappear because an agent has been instructed to ignore untrusted text. Control effectiveness depends on the accuracy of the authorization policy, the identity and integrity of connected tools, operating-state information, and the ability to contain unexpected behavior. Stronger restrictions may also block legitimate tasks or impose delay. Results from a simulator may not capture all timing, network, or safety constraints of a working industrial site.

This page defines research questions and an evaluation approach only. No results, partners, equipment ownership, facilities, deployments, publications, or certifications have been confirmed. Security controls and human oversight are cross-cutting safeguards, not separate research engines. The broader Aperture engine framework provides the context for the observation, decision, and action interfaces that this work seeks to protect.

Discuss a Research Project

Industrial operators, technology teams, and researchers can bring a focused question about agent permissions, tool boundaries, or protection of equipment commands. A useful inquiry describes the nonconfidential operating context, an example authorized task, the command interface of concern, and the evidence required to evaluate the safeguards. Visit Propose a Research Challenge or Discuss a Research Project to explore an appropriate next step.