26Oct

AI Agent Security and Runtime Controls: From Exposed Keys to Dynamic Permissions

OpenCode disclosed that a large-scale AI distillation attack exposed API keys for about 1.4% of its Console users, with some users reporting over $1,700 in unauthorized overnight charges. The project said the earliest possible key exposure was October 17, 2026, 00:30 UTC, and that no user data appears to have been exposed.

That incident is one visible sign of a larger shift: AI agents are now executing code, calling tools, and moving through systems with permissions that often exceed what the task requires. This issue examines the controls, detection methods, funding, and guidance emerging to keep autonomous agents from acting beyond authorization.

WHAT HAPPENED

Several related developments this week show how AI agent risk is moving from model behavior to operational control. OpenCode’s breach involved stored API keys for external providers such as Anthropic, OpenAI, and Google; users reported unauthorized charges and some Google projects were suspended for abusive activity. The project said attackers used AI agents to run a large-scale distillation attack for at least 48 hours.

Microsoft announced runtime controls for enterprise AI agents: Dynamic Permissions starts agents with minimal access and grants task-specific permissions that expire; Dynamic Agent Risk continuously scores agents using identity, data, endpoint, cloud, network, and runtime signals; Dynamic Conditional Access can scale back permissions, restrict writes, require human approval, isolate or halt high-risk agents. Discovery now supports 60 agent types, including Claude Code, OpenAI Codex, and GitHub Copilot.

NIST, NSA, and CISA released practices for incident readiness and response for super intelligence and AI agents, organized into prepare, detect, respond, recover, and report. Anthropic acquired Opaque Systems, a confidential and verifiable AI company whose team is joining Anthropic while Opaque winds down. Asymptote Labs raised $5.5 million for runtime control and visibility infrastructure, and Mave raised $34 million for agentic SecOps.

Researchers also documented new attack and defense techniques: Gen Threat Labs showed an agent can be manipulated through untrusted email content; Forever Security found a malicious AGENTS.md file in a Downloads folder that made an agent attempt to install the rogue npm package function-color; Tracebit developed 'context bombs' that misdirect attacking agents; Norforge found threat actors abusing the open-source AI platform Cairn against over 100 organizations; Microsoft reported that Storm-0940 used the AI pentest framework Artex in ConnectWise-related attacks; Exaforce described machine-speed credential and identity attacks, including vishing patterns associated with Scattered Spider, and the need for autonomous response.

HOW THE STORY DEVELOPED

On October 19, Opaque Systems announced its team was joining Anthropic and that Opaque was winding down operations. The same day, OpenCode disclosed the API-key breach tied to a distillation attack.

On October 20, Microsoft announced dynamic permissions, risk scoring, and conditional access for AI agents. The same day, NIST, NSA, and CISA published their incident-response practices for AI agents, and Norforge reported that threat actors were using Cairn to automate attacks against e-commerce and payment infrastructure.

On October 21, Asymptote Labs announced its $5.5 million seed round for agent runtime security, and Tracebit published research on context bombs that cut AI attack success. On October 22, Exaforce described machine-speed attacks and the need for autonomous response. On October 23, Microsoft reported Storm-0940’s use of Artex in ConnectWise attacks, and Gen Threat Labs published work on prompt injection through untrusted content. On October 25, Mave announced $34 million in funding, and Forever Security reported the AGENTS.md hijack involving the function-color package.

WHY IT MATTERS

The documented facts are clear: AI agents can be manipulated by untrusted content, stored API keys can be exposed, and threat actors can use AI tools to accelerate reconnaissance, password spraying, and OAuth abuse. The broader implication is that organizations can no longer treat deployed agents as trusted software. Microsoft’s framing—agents should be treated as insiders—captures the operational shift: agents are capable tools that can make mistakes, be manipulated, or be compromised.

The significance is not that AI agents are inherently malicious. It is that their autonomy expands the attack surface faster than traditional controls can keep up. Gartner predicts incident costs driven by agentic AI will increase fourfold through 2027, and SonarSource notes that frontier LLMs that generate the most functional code also produce the most severe security vulnerabilities. These developments show a market forming around runtime telemetry, dynamic permissions, risk scoring, incident response, and independent verification of agent behavior.

WHAT IT MEANS FOR YOU

1. If you use AI coding agents such as Claude Code, Codex, or Cursor, avoid using your Downloads folder as the agent’s working directory. Review unfamiliar AGENTS.md or CLAUDE.md files before letting an agent follow them, and keep approval prompts and sandbox protections enabled.

2. If you store API keys for AI providers, rotate any keys that may have been exposed, review provider billing for unauthorized charges, and check whether provider accounts show suspicious sign-ins or suspended projects.

3. If you use AI assistants that read email or manage files, remember that untrusted email content can act as instructions. Use runtime guardrails that intercept shell commands, file operations, and web requests before execution.

4. If you manage credentials, review long-lived OAuth tokens, MFA methods, and service principal sign-ins. Low-friction actions such as revoking sessions or deleting attacker-registered MFA methods can be automated, while password resets and account disablement should require human approval.

5. If you install AI skills, plugins, or MCP servers, scan and verify them before use. Malicious extensions can contain hidden instructions, excessive permissions, or malicious code.

WHAT ORGANIZATIONS SHOULD CONSIDER

1. Treat AI agents as insiders: start with least privilege, grant task-specific permissions that expire, and continuously score agent risk using identity, data, endpoint, cloud, network, and runtime signals.

2. Build runtime visibility: standardize telemetry across agent harnesses and enforce policy guardrails at prompt and tool execution levels so risky actions can be blocked before they occur.

3. Prepare incident response: maintain asset and risk inventories, credential management, zero-trust controls, and continuous monitoring. Define low-friction automated responses for session revocation and MFA method deletion, and reserve high-friction actions for human approval.

4. Monitor AI-assisted attack patterns: watch service principal sign-ins, OAuth application abuse, password spraying, and AI pentest tools such as Artex. Correlate suspicious events with authorized administrative activity.

5. Govern AI adoption by stage: identify whether you are in AI-assisted, AI-native, or agentic development, and match controls, observability, and developer upskilling to that stage.

6. Evaluate agent extensions: scan skills, plugins, and MCP servers, use curated marketplaces, and test untrusted code in isolated environments before production use.

WHAT TO WATCH NEXT

Several threads remain open. Opaque Systems has not explained what its wind-down means for existing customers, so the impact on confidential and verifiable AI deployments is worth monitoring. OpenCode is working with Google, OpenAI, and Anthropic to address the API-key breach, and users should watch for reimbursement decisions and provider-side mitigations.

Microsoft’s dynamic permissions, risk scoring, and conditional access will need real-world validation as organizations deploy more agent types. The NIST/NSA/CISA practices will be most useful if security teams turn them into checklists and test recovery procedures in advance. Funding for Asymptote Labs and Mave suggests continued investment in agent runtime security and agentic SecOps. Researchers’ context bombs, AGENTS.md hijacks, and AI-assisted APT campaigns indicate that both offensive and defensive AI techniques will keep evolving.

About the Author

Related

PHP2Shell Exploitation: Active Attacks, Vendor Patches, and Chained Kernel Flaws

In late October 2026, a critical pair of remote code execution flaws in the PHP engine—dubbed "...

Read More >

Critical Vendor Security Patches: Urgent Fixes Across Network, Web, and Enterprise Software

In October 2026, a massive wave of critical security updates was released across major enterprise so...

Read More >

Atlassian CVE-2026-21589: Active Exploitation Attempts Hit Self-Hosted Data Center Products

In early October 2026, Atlassian disclosed CVE-2026-21589, a critical (CVSS 9.3) unauthenticated fil...

Read More >

AI Governance, Industry Surveys, and Zero Trust Shape 2026 Cybersecurity Policy

In late September and early October 2026, U.S. cybersecurity policy underwent a major shift toward s...

Read More >

Zero-Permission Monitoring: How Built-In File Notifications Leak User Activity

Security researchers at Graz University of Technology have discovered that standard file-change noti...

Read More >

Actively Exploited Vulnerabilities in Enterprise Software and Development Platforms

CISA is tracking a surge in actively exploited vulnerabilities across enterprise software, developme...

Read More >
Cookie settings