Skip to main content
Mallory
← Back to News
ai-platform-securitycredential-access-methodleaked-secret-api-keyidentity-authentication-vulnerability

AI Agents Exposed as Credential Theft and Prompt Injection Risk

Emerging Technology Risk · 9 sources · Updated 4mo ago · First seen Jul 27, 2026

AI Agents Exposed as Credential Theft and Prompt Injection Risk

Security researchers and vendors warned that autonomous AI agents can be manipulated into leaking secrets and misusing privileged access, turning them into a new pathway for credential theft and system compromise. Reporting from SC Media cited Okta Threat Intelligence research showing agents on the OpenClaw platform could be socially engineered or prompt-injected into exposing passwords, API keys, GitHub tokens, and OAuth refresh tokens, while other analysis described a confused deputy problem in which malicious text embedded in files, logs, web pages, or instruction files causes agents to execute higher-trust actions with their legitimate permissions. The risk is amplified when agents can read local files, edit code, run commands, fetch remote content, and access external tools or MCP servers without strong separation between trusted instructions and untrusted data.

Defenders are responding with controls aimed at limiting agent authority and reducing secret exposure. Help Net Security reported on Nono, an open-source sandbox that constrains AI coding agents at the kernel level using mechanisms such as Landlock on Linux and Seatbelt on macOS, while introducing scoped tool permissions and proxy-mediated "phantom credentials" so agents do not directly handle live secrets. The broader guidance aligns with established ATT&CK techniques including T1552 Unsecured Credentials and T1546 Event Triggered Execution, emphasizing least privilege, centralized identity governance, short-lived credentials, secure secret storage, logging, rapid revocation, provenance checks, input isolation, and human approval to prevent agents from becoming a bridge to sensitive systems and cloud resources.

Why it matters

Impact assessment

AI agents with access to enterprise files, tokens, developer tooling, and cloud-connected services create a new credential-theft and privilege-misuse path that affects software engineering teams, security operations, and any business deploying autonomous or semi-autonomous agents. The impact can be severe because successful prompt injection or social engineering can expose passwords, API keys, GitHub tokens, OAuth refresh tokens, session cookies, and local secret files, enabling downstream account takeover, code tampering, cloud abuse, and reputational damage.

The current reporting describes demonstrated research exploitation rather than a named widespread campaign, but the exposure is broad because the weakness is architectural and applies across coding agents, browser agents, email assistants, and desktop agents. Risk is highest where agents can read local files, run commands, fetch remote content, call tools or MCP servers, or inherit a user’s long-lived credentials without isolation or approval gates.

Supporting details

  • Affected populations:
    • Enterprises deploying AI coding agents and autonomous assistants
    • Developer workstations and CI-adjacent workflows
    • Security teams using agents for investigations or automation
    • Regulated industries and large enterprises using privileged agent tooling
  • Severity drivers:
    • Credential disclosure: passwords, API keys, GitHub tokens, OAuth refresh tokens, session cookies
    • Operational disruption: unauthorized code changes, misuse of tools, command execution, persistence or sabotage via file edits
    • Financial and reputational risk: cloud/API abuse, source-code exposure, incident response costs, trust erosion
  • Scope:
    • Broad exposure across agent ecosystems due to shared prompt-injection and confused-deputy design patterns
    • Targeting can be low-effort because malicious content can be embedded in files, logs, web pages, or instruction files the agent already reads
  • Exploitation status:
    • Okta Threat Intelligence demonstrated successful secret exposure on OpenClaw-based agents
    • Research examples showed silent exfiltration workflows and indirect disclosure via screenshots
    • No specific in-the-wild intrusion set or victim list was identified in the provided references
  • Defensive market response:
    • Nono was highlighted as an emerging sandboxing control for reducing blast radius at the OS level
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Oct 13, 2021 – Jul 27, 2026
  1. Jul 27, 20264mo ago

    Okta research reports AI agents can be manipulated into exposing secrets

    SC Media cites Okta Threat Intelligence research showing AI agents on the OpenClaw platform could be socially engineered or prompt-injected into revealing passwords, API keys, GitHub tokens, and OAuth refresh tokens.

    Phishing the agent: Why identity controls are essential to secure and manage AIs | resource | SC Media
  2. Jul 27, 20264mo ago

    Article details prompt-injection hijacking of AI agents

    A July 27, 2026 blog post describes how AI agents can be hijacked through prompt injection and frames the issue as a confused deputy problem caused by mixing trusted instructions with untrusted data.

    Hijacking AI Agents, Part 1: The Trust Bug | Melted in Hex
  3. Jul 27, 20264mo ago

    Nono open-source AI agent sandbox is announced

    Help Net Security reports on Nono, an open-source runtime that confines AI coding agents with kernel-level controls and scoped tool permissions to reduce access to files, credentials, and production systems.

    Nono: Open-source sandbox for AI agents - Help Net Security
  4. Jul 24, 20264mo ago

    Research highlights syscall-trace concerns around Codex behavior

    A July 24, 2026 reference discusses whether observed Codex behavior resembles malware, indicating technical scrutiny of credential access and syscall-trace activity.

    Wait - is this even Codex, or is it malware? | grith
  5. Oct 13, 20215y ago

    Microsoft patch KB2962486 released to stop GPP credential storage

    MITRE ATT&CK notes that applying Microsoft patch KB2962486 prevents credentials from being stored in Group Policy Preferences, reducing exposure of unsecured credentials.

    Unsecured Credentials, Technique T1552 - Enterprise | MITRE ATT&CK®
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
nolabs
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.