Independent analysis by NHI Mgmt GroupSource article: Cakewalk, “An Attacker Turned Off the Hermes AI Agent's Approval Prompt” (July 28, 2026)

TL;DR: An attacker used Hermes AI Agent with approval checks switched off to target Thailand's Ministry of Finance, and Hunt.io recovered logs showing vulnerability scans, privilege enumeration, and directory access, according to Cakewalk. The case shows that approval prompts without enforced policy boundaries collapse when operators can disable them at runtime.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Cakewalk's blog post: Attacker running Hermes AI Agent with approval checks switched off showed that dangerous actions still proceeded when the agent was left unattended.

Why it matters: It matters because identity and access teams cannot treat approval prompts as an effective governance boundary for AI agents if runtime settings can nullify them.


Context

Approval prompts are meant to stop a system from executing risky actions without human review, but that assumption fails if the operator can simply disable the prompt at runtime. In this case, the control was not removed by an external attacker alone. It was removed inside the operating model that the organisation had already allowed to exist.

The identity question is not whether an AI agent can ask for approval. It is whether the surrounding governance model can still constrain what the agent may do when unattended, especially when the same session can reach privilege-enumeration, scanning and directory-access tasks. For teams governing autonomous behaviour, the boundary has to be enforceable, not advisory.


Key questions

Q: What breaks when an AI agent can be switched into unattended mode?

A: The approval model breaks because the system is no longer forcing risky commands through human review. In practice, the session becomes operator-governed rather than policy-governed, which means the same agent can scan, enumerate and escalate without a meaningful control boundary. Security teams should treat mode switching as a privileged action, not an ordinary preference.

Q: Why do approval prompts fail to contain risky agent behaviour?

A: They fail when the prompt is advisory rather than enforced. If the operator can disable the review step, the agent can continue executing dangerous actions within the same session, and the organisation has effectively outsourced control to the person running the agent. That creates a fragile boundary around privilege and tool use.

Q: What are the signs that an AI agent session is being used for intrusion work?

A: Look for sequences that include vulnerability scanning, service enumeration, privileged-binary discovery and file-system traversal, especially when they appear together in a single agent session. Those behaviours indicate the agent is being used as an execution layer for reconnaissance and escalation rather than for benign task automation.

Q: How should teams govern agent approval settings in practice?

A: Approval settings should be treated as enforceable policy, not user-toggled convenience. Teams need to control who can change the mode, log every change, and ensure unsafe actions cannot proceed when the agent is in unattended operation. If the setting can be flipped freely, the governance model is too weak to rely on.


Technical breakdown

How YOLO mode changes the control plane for AI agents

YOLO mode in this context means the agent executes without pausing for approval on commands the system would otherwise flag as dangerous. That changes the control plane from human-mediated authorisation to runtime autonomy over execution. Hermes still applies an internal approval model in its default setting, but the article shows that this logic can be bypassed by switching modes. In governance terms, the check becomes a preference rather than a boundary. Once the operator controls that setting, the security model depends on the operator's behaviour, not the agent's risk handling.

Practical implication: approval logic must be enforced outside the agent session, not left as an optional operating mode.

What the agent logs reveal about agentic privilege use

The logs show a sequence consistent with operational reconnaissance and escalation preparation: vulnerability scanning, service enumeration, discovery of SUID and SGID binaries, and file-system traversal. Those actions are significant because they show the agent acting as an execution layer for target-specific intrusion work, not merely drafting text or making suggestions. The operator also supplied a privilege-escalation script tailored to ministry systems, which reinforces that the agent was embedded in a broader intrusion workflow. This is not autonomous identity in the strict sense, but it is still non-human execution with security impact.

Practical implication: audit logs for agent sessions should be treated as security evidence, not as convenience telemetry.

Why exposed agent panels create an identity governance blind spot

The article notes exposed Hermes panels on public infrastructure and describes default smart approvals, where only some commands are escalated to a person. That creates a governance blind spot because the control exists, but the operator can alter the session state or choose an operating mode that removes the review step entirely. For IAM and NHI teams, the risk is not just command abuse. It is that the system's own identity governance assumptions are made conditional on a setting the operator controls. The result is a fragile policy boundary around a privileged non-human executor.

Practical implication: inventory every externally reachable agent panel and treat session-mode control as part of access governance.


Threat narrative

Attacker objective: The attacker aimed to use the Hermes AI Agent to support privilege escalation and access to ministry systems and records.

  1. Entry began with an exposed Hermes panel and attacker-controlled infrastructure that allowed the operator to run the agent without the normal approval step.
  2. Credential and access preparation followed through a custom privilege-escalation script, plus reconnaissance of kernel weaknesses, running services and privileged binaries.
  3. Escalation continued as the agent traversed the file system and a ministry web directory containing personnel records, showing target-specific operational probing.
  4. Impact was the creation of a ready-to-execute intrusion workflow against a government target, with logs and stolen material staged on the attacker's infrastructure.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Approval prompts are not a governance boundary if the operator can disable them. This article shows a control that exists in policy terms but disappears in runtime when the session mode changes. The failure is not that approval was absent in design, but that approval was optional in execution. Practitioners should treat the mode switch itself as part of the security perimeter, not as a user preference.

Human-paced approval models do not map cleanly to agentic execution. The logs show the agent performing reconnaissance tasks that security teams would normally expect to be constrained by review. That matters because the security model assumed a human would interrupt dangerous actions, but the operator inverted that assumption. The implication is that agent governance must be anchored in enforceable issuance and execution policy, not in prompts alone.

Hermes YOLO mode is a named example of a broader runtime governance gap. The gap is not just unsafe automation. It is the absence of a durable policy layer that survives operator choice, exposed panels, and attacker preparation. When a non-human executor can proceed without a hard approval gate, the identity programme is managing etiquette, not authority. Practitioners should rethink where decision rights actually live.

Agent session observability becomes security control only when paired with denial of unsafe execution paths. Hunt.io recovered logs showing scanning, enumeration and directory access, which means the evidence was available after the fact. That is useful for detection, but not sufficient for prevention. The lesson is that auditability without enforcement still leaves the identity boundary porous.

For agentic AI, the named concept is approval-mode drift. The system can appear governed in default documentation, yet the effective risk posture changes when an operator moves from smart approvals to unattended mode. That drift is a control problem, not a tooling problem. Practitioners need to govern mode state with the same seriousness they apply to privilege state.

From our research library:

What this signals

Approval-mode drift: the effective risk posture changes when a session can move from reviewed execution to unattended execution without a compensating control. That is the governance problem this article exposes, and it is especially relevant for any programme that treats agent prompts as sufficient policy.

Agent panels that are publicly reachable convert a private execution issue into an exposure issue. For practitioners, that means the control discussion has to include network reachability, mode governance and log retention together, not as separate workstreams.


For practitioners

  • Lock approval mode at the platform boundary Prevent operators from switching privileged agent sessions into unattended or YOLO mode without separate administrative authorization and logging.
  • Inventory exposed agent panels Find externally reachable agent consoles, close public exposure and verify whether any panel can be reached without network restriction or strong authentication.
  • Treat agent logs as security evidence Preserve command logs, mode changes and tool invocations from agent sessions so investigators can reconstruct how privilege was used.
  • Bind escalation scripts to controlled execution Require explicit policy checks before any privilege-escalation script can be attached to an agent session, especially when the target environment is known.
  • Review approval paths for runtime bypass Test whether smart approvals can be bypassed by session settings, and remove any control path that lets the operator nullify the review step.

Key takeaways

  • The article shows that approval prompts can be neutralised at runtime when the operator controls session mode.
  • The evidence included reconnaissance-style agent logs, exposed directories and a target-specific escalation workflow.
  • The control that matters is enforced execution policy, not optional review prompts that can be bypassed.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article centres on an AI agent session whose privilege path can be weakened or bypassed at runtime.
ASI02 — Tool MisuseThe agent is used for scanning, enumeration and scripted escalation in a target-specific workflow.
Recommendation — Apply ASI03 controls to prevent agent sessions from bypassing approval and privilege boundaries. Constrain tool use so agent sessions cannot execute reconnaissance or escalation tools without policy enforcement.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationApproval mode and exposed panels show that trust in the session boundary is being weakened at execution time.
NHI-05 — Overprivileged NHIThe session includes elevated operations and escalation scripting beyond ordinary low-risk agent use.
Recommendation — Enforce strong authentication and session protection around agent control planes so operators cannot bypass governance. Limit agent privileges to the minimum required and separate escalation functions from general execution.
NIST AI RMFGOVERN — AI Governance and AccountabilityThe article is fundamentally about who can change agent behaviour and how that change is governed.
Recommendation — Define governance ownership for agent mode changes and require auditable approval before unsafe execution paths are enabled.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe issue is whether agent permissions remain effective when runtime settings are altered.
Recommendation — Review agent entitlements so approval settings cannot override the intended permission boundary.

Key terms

  • Approval-mode drift: A change in effective security posture when an AI agent session can move from reviewed execution to unattended execution. In agentic environments, the governing question is not whether approvals exist in documentation, but whether session state can weaken or remove them at runtime.
  • Agent Control Plane: An agent control plane is the policy layer that decides what an AI agent may do before execution. It connects discovery, identity, and authorization so the organisation can enforce task-scoped limits instead of relying on static registration or after-the-fact review.
  • Unattended Execution: Unattended execution is runtime behaviour that proceeds without a human watching, approving, or interrupting the action chain. For scheduled agents, that means the control model must shift from interactive oversight to pre-run scoping, because the useful human checkpoint no longer exists during execution.
  • Runtime Governance: Runtime governance is the set of controls that verify what a system or agent is actually doing after deployment. It combines monitoring, authorization checks, and access validation so teams can detect drift, misuse, or excessive privilege in motion rather than assuming build-time policy still holds.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 26, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org