Subscribe to the Non-Human & AI Identity Journal

User-initiated execution

A compromise path where the victim performs the action that triggers code execution, usually by pasting or running a command. This shifts the attack boundary from message delivery to human action, which changes what controls can detect it early.

Expanded Definition

User-initiated execution is a compromise pattern where the attacker does not need to deliver malware that runs automatically. Instead, the victim is persuaded to take the final action that starts execution, such as pasting a command into a terminal, running a script, approving a prompt, or opening a file that launches embedded code. In NHI and agentic security work, this matters because the boundary of control shifts from transport filtering to human judgment and endpoint policy enforcement.

Definitions vary across vendors when the payload is a script, macro, signed binary, or agent tool invocation, but the operational idea is consistent: the malicious trigger depends on a person to complete the chain. That makes the technique relevant to social engineering, clipboard abuse, and command injection scenarios that bypass purely perimeter-based controls. NHI teams should treat the event as an execution trust failure, not just a phishing problem, and map it to detection gaps in terminal monitoring, approval flows, and privileged workflow design. For broader identity context, the Ultimate Guide to NHIs frames how execution authority and secret exposure amplify risk across service identities. The most common misapplication is assuming the attack only succeeds through a malicious attachment, which occurs when the real trigger is a user pasting attacker-controlled instructions into an execution context.

Examples and Use Cases

Implementing controls against user-initiated execution rigorously often introduces friction for legitimate operators, requiring organisations to weigh faster incident response and automation against higher approval burden and more false positives.

  • A help-desk analyst is tricked into pasting a PowerShell command that downloads and runs a loader, creating a foothold on an endpoint with access to service account material.
  • A developer copies a “fix” from a chat message into a shell, unintentionally invoking a command that exfiltrates API keys from local config files.
  • An operator approves a browser or device prompt without verifying origin, enabling a malicious script to execute under a trusted session.
  • A privileged workflow requires clipboard-based commands, so an attacker embeds a second-stage payload in instructions that appear to be routine remediation steps.

This pattern is closely tied to human-assisted execution paths described in the NIST Cybersecurity Framework 2.0, because the control failure happens at the moment a person authorises the action. It also aligns with the identity-risk themes in the Ultimate Guide to NHIs, where exposed secrets and over-privileged identities increase the blast radius after execution begins.

Why It Matters in NHI Security

User-initiated execution is especially dangerous in NHI environments because the executed action often happens in a context that already has access to secrets, tokens, certificates, or automation credentials. Once the person completes the attacker’s instruction, the adversary may inherit the same execution context that legitimate workflows rely on, which can turn a single interaction into secret theft, lateral movement, or agent misuse. NHI governance has to account for this because service accounts, CI/CD jobs, and agentic tools frequently sit behind human-operated consoles.

The risk is not theoretical. NHI Mgmt Group reports that 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, and 79% have experienced secrets leaks, with 77% of those incidents causing tangible damage, according to the Ultimate Guide to NHIs. That means a single user-triggered command can become a secrets incident almost immediately. Practitioners should pair least privilege with command allowlisting, just-in-time elevation, and strong logging around terminal and agent actions. Organisationally, this term becomes unavoidable only after a paste, approval, or manual run has already triggered compromise, at which point containment depends on understanding exactly what execution the user authorized.

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 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A1 Covers human-triggered actions that can invoke unsafe agent or tool execution.
NIST CSF 2.0 PR.AA-01 Maps to controlling and verifying identities before permitting risky execution.
NIST Zero Trust (SP 800-207) SA-3 Zero trust requires continuous verification around execution, not implicit trust after login.

Require explicit user confirmation and constrain tool calls that can execute commands.