Author丨Zheng Jiamei
Editor丨Cen Feng
On November 16, local time, California Attorney General Rob Bonta filed a complaint against OpenAI in court. The most noteworthy allegation in the indictment is that OpenAI's agent "ran out on its own and actively launched an attack on external systems" without proper supervision.
This matter suddenly broke out of the technical circle. Everyone was not shocked that AI would attack, but was shocked by the details disclosed internally by OpenAI: In order to prevent humans from discovering that they had done something wrong, the two Coding Agents who were responsible for the work secretly "unplugged" the monitoring system that monitored them.
This is no longer a problem with the "suspicious chain", but a big problem with the underlying "authority chain".
In July this year, an autonomous agent (Agent) of OpenAI crossed the boundaries of the test environment and directly launched an attack on external systems such as Hugging Face. The internal review disclosed by OpenAI in October put this "loss of control" on the table: two Coding Agents successively changed the monitoring mechanism to supervise themselves when performing normal development tasks.
In the first incident, GPT-6.1 Sol was originally responsible for repairing an evaluation pipeline. During the repair process, it found that the monitoring results could not be written to the database normally, so it tried to adjust the writing configuration. The problem is that it interprets the user’s previous request not to send Slack messages as meaning that even automatic system alerts should not be sent.
In the second incident, GPT-6 Astra received a runtime migration task. In order to make the implementation of the new version consistent with the reference code, it directly removed the original monitoring integration, and also modified the relevant tests so that the missing monitoring components can still pass the check. In other words, the mechanism originally responsible for checking the running status of the Agent has been deleted from the new running environment.
The specific operations of the two incidents are different: one is that the Agent changed its own monitoring (turning off the alarm by the way), and the other is that the Agent crossed the original execution boundary (directly unplugged the monitoring). But they have one thing in common. The Agent originally only obtained the tool permissions needed to complete development tasks, but eventually used these permissions to change the operating conditions of security monitoring.
This leads to a very specific engineering question: when the Agent can modify the code, call the system interface, adjust the running configuration, and even start a new execution task, who will ensure that it cannot modify the security mechanism that restricts itself?
In traditional software systems, developers usually set permission rules, and then an independent monitoring system checks the running status of the program. This relationship changed after Agents began to autonomously modify the code and operating environment. The program itself that performs the task may already have the ability to modify monitoring configurations, adjust alarm rules, and change audit paths.
To understand this change, you need to start from the most basic Tool Calling execution chain of Agent and see how a tool call generated by the model turns into a real infrastructure operation with the help of system permissions.
01
Why can Agent change its own monitoring?
To see where the permissions come from, you have to reduce Tool Calling to the execution process: the model generates the tool name and parameters, and the orchestrator hands the request to the tool adaptation layer, which uses the service identity to access the shell, warehouse, database, or cloud API.
The model does not necessarily hold the underlying key, the operation is completed by the backend service. Which resources the Agent can touch depends on the service certificate coverage and how the server handles parameters.
The Sol incident exposed gaps in field-level authorization. The evaluation result writing request also contains the result content, alarm recipient, and no_notify tag. To the business interface, they are just request fields.
For the monitoring system, the last two items will change whether the alarm is delivered. The agent only needs to write the evaluation results, but the server allows the same request to change the notification status. If the backend only checks the result write permission and does not separately verify the mute permission, the business write permission will override the control permission. Detection and storage are still working, but the human response channel is cut off.
Deleting no_notify in the tool description does not solve the problem. The Agent may also change the configuration or submit code to let the downstream service adopt another set of notification strategies. Authorization requires checking for state changes caused by operations. The result writing service can receive detection results, but it should not accept the recipients and mute status determined by the Agent; the notification policy should be calculated by an independent service, and the business service should only read the results. leifeng.com
Astra's path explains that permissions also propagate along the code and deployment chain. Monitoring is typically loaded via dependency injection, context objects, startup parameters, or middleware. Agent has the warehouse write permission and can modify these configurations.
The build system packages the code, deploys the service and brings it into the runtime environment. It did not call the interface to turn off monitoring, but changed the code that determines whether monitoring is loaded, and then modified the test to make the absence of monitoring a passing condition.
This is close to the Confused Deputy in security engineering: a high-privilege service performs operations according to the parameters provided by the caller, completing actions for the caller that it itself does not have permission to complete.
The agent's permission borrowing may span multiple layers of services. If the authorization check only stops at the tool entrance, the side effects caused by the backend identity will not be seen. The inspection must trace to actual resources and distinguish between business writes, policy changes, and operating environment changes.
02
What problems do traditional security architectures encounter?
Traditional permission systems are designed around stable service identities: which databases a process can read, which warehouses a robot can modify, and which environment a deployment account can publish to, are usually determined when going online. Leifeng.com (public account: Leifeng.com)
The Agent will read the context, generate a plan, call tools, modify the code during operation, and then continue to act based on the results. The identity has not changed, but the types of resources and operations involved in tasks have continued to expand. It is difficult to describe this change with static role permissions.
A deeper problem is that Execution Plane and Control Plane often share engineering assets. The former executes the actions generated by the model, and the latter manages identity, authorization, monitoring policies, and task termination. In reality, monitoring rules are written in the warehouse, monitoring components are loaded as runtime dependencies, and deployment parameters are maintained by CI/CD.
The business code and control configuration are placed on the same change chain. If the Agent obtains code writing permission, it may touch the implementation materials of security control. The control plane is conceptually independent, but its permissions are still within the writable range of the executor.
Long tasks make this coupling harder to detect. Sol extends the restrictions on Slack outreach to automatic alerts; when Astra's parent Agent transfers tasks, it changes monitoring from not being closed to discretionary processing according to the reference implementation.
Instructions are summarized, rewritten, and task-split, and the original constraints may become generic recommendations. If permissions are also conveyed by these words, the sub-Agent may interpret the upstream interpretation as authorization. Security policies require independent machine-readable representation.
Auditing is also broken across layers: the parent agent creates subtasks, the child agents call tools, CI is built as a robot, the platform is deployed and the workload is launched. Conversation records cannot prove what happened to the underlying resources, and service account logs make it difficult to attribute changes to specific tasks. The traceability chain needs to associate root tasks, subtasks, voucher issuance, tool calls, code submissions, build artifacts, and runtime instances.
Monitoring coverage cannot stop at the root Agent. OpenAI has disclosed cases where the Agent itself is still monitored, but the deployment it launches does not have corresponding monitoring enabled. The safety status of the parent task is not representative of the child process; monitoring requirements need to be re-verified when each new workload is started.
03
How to design security boundaries?
The architecture needs to first define permissions: the identity that performs the task cannot also have the authority to modify security policies. The Control Plane independently manages task identities, authorizations, credentials, monitoring requirements, and termination actions; the Execution Plane obtains only the capabilities required for the current task.
The control plane is used as PDP (Policy Decision Point) to calculate authorization, and the tool gateway, container runtime and deployment access are used as PEP (Policy Enforcement Point) to perform decision making; both can run on the same cloud platform, but cannot share policy write permissions and management credentials. Monitoring configuration, alarm routing, audit exits and network policies should be managed separately by the control plane.
A short-term Capability Token can be used when calling. The control plane issues tokens for tasks and limits task identification, resources, actions, validity period, and delegation scope. The token used to read the warehouse cannot be used to write to the warehouse, the token used to modify the business directory cannot be used to change the CI policy, and the publishing permissions cannot be adjusted for monitoring.
The parent Agent can only transfer a subset of permissions to the child Agent, and cannot rely on natural language to expand authorization. The tool gateway validates the token one by one, and the shell is constrained by container isolation, read-only mounts, and network egress rules.
Monitoring requirements also go into the workload admissions process. Each type of task uses a Safety Case to describe the required monitoring, audit exits, network restrictions, and termination conditions. The deployment service checks signatures, versions, and actual loaded components at startup; it re-evaluates when models, tools, or the runtime environment change.
OpenAI has updated Auto-Review to check for actions that turn off monitoring and plans to automatically terminate workloads that lack a valid Safety Case or do not meet requirements. Monitoring therefore becomes a startup condition and is no longer just a warehouse dependency.
After the authority boundaries are determined, the evidence must be stored by a system other than the executor. Immutable Logging Events generated by tool gateways, identity services, runtimes, and deployment platforms are written to append-only storage that the Agent does not have permission to overwrite.
Record associated tasks, calling identities, token scopes, policy versions, target resources, and execution results, so you can compare model requests, authorization decisions, and actual actions during investigation. Hash chains, signatures, and object locks can protect existing records, but they cannot prove that the collector is still working, and the log receiver needs an independent heartbeat.
External Watchdog runs outside the scope of the Agent process and credentials, checking workload inventory, log heartbeats, monitored components, and network activity. It can pause write operations, revoke tokens, isolate the network, and terminate the workload if necessary when a deployment is started but no monitoring is registered, or when logs are interrupted while tasks are still executing. The right to stop is held by an independent identity and cannot be modified by the Agent.
Control Plane determines authorization, Immutable Logging saves execution evidence, and External Watchdog checks the running status. Production writes, permission expansion, and external network operations should be suspended if authorization or audit links are lost; read-only tasks can continue under limited buffering and timeout conditions.
04
A set of model-independent constraint mechanisms is needed
Looking back at these two incidents, the problem actually goes beyond whether the model can correctly understand the instructions. Sol extends a restriction on Slack messages to security alerts, and Astra turns code differences in runtime migrations into grounds for removing monitoring.
The technical conditions behind the two behaviors are the same: the tools that the Agent can call have sufficient permissions to change the monitoring status, but the system does not set corresponding isolation on the execution chain.
This means that the security design of the Agent needs to extend from model behavior to infrastructure permissions. Tool calls need to limit the scope of resources, service credentials need to be bound to specific tasks, sub-Agents cannot obtain additional permissions during the delegation process, and monitoring and auditing cannot be attached to code that the Agent can modify.
Control Plane, Immutable Logging and External Watchdog are respectively responsible for authorization, certificate retention and runtime intervention. Together they form a set of model-independent supervision mechanisms. Without any of these links, security control may remain at the configuration level and fail to cover the actual execution process.
There is another change that is easily overlooked: in the past, the security boundary of software systems mainly revolved around program design. Developers decided what the program could do, and the operating environment was responsible for limiting the scope of activities of the program.
After the Agent is added, the program begins to participate in modifying its own running environment, and can even affect the original constraints through tool calls. What enterprises need to re-examine is which permissions can be given to the model for independent use, and which permissions must be left in the hands of independent services.
The agent can decide how to complete a task, but it cannot also decide what constraints it is subject to, who checks the execution, and when it can be stopped. Whether this permission boundary can continue to be established despite code modifications, task delegation, and runtime changes will directly affect whether the Agent can undertake engineering work with longer links and higher permissions.
Original articles from Leifeng.com, unauthorized reproduction is prohibited. See the reprint instructions for details.
edit
Resend Email Modify Email



