By NHI Mgmt Group Editorial TeamDomain: Agentic AI & NHIsSource: StraikeraiPublished January 29, 2026

TL;DR: Straiker’s STAR Labs research found more than 4,500 exposed Clawdbot/Moltbot instances worldwide, with testing showing attackers could exfiltrate API keys, service tokens, and messaging session credentials for surveillance. The issue is not just agent adoption but the assumption that chat-driven assistants can safely run with broad filesystem and command access.


At a glance

What this is: Straiker’s research shows that exposed Clawdbot/Moltbot deployments can leak secrets and session credentials, turning an AI assistant into an access path for system takeover and surveillance.

Why it matters: It matters because agentic AI and NHI programmes now need to govern command execution, secret storage, and channel-linked identity risk together rather than treating them as separate controls.

By the numbers:

👉 Read Straiker's analysis of Clawdbot/Moltbot exposure and AI assistant takeover risk


Context

Clawdbot/Moltbot is a self-hosted AI assistant that can receive chat commands, execute scripts, and connect to multiple messaging platforms. That combination creates an identity problem as much as a software problem, because the assistant acts as a non-human identity with access to secrets, files, and downstream channels.

The governance gap is that teams often treat these assistants as convenience tools rather than privileged actors. Once an AI agent can read local configuration files, reuse session tokens, and act through messaging channels, the control model has to cover NHI lifecycle, command authority, and secret handling at the same time.

In this case, the starting position is atypical in scale but typical in pattern: public exposure, overbroad privileges, and plaintext credential handling are all familiar failure modes in machine identity programmes.


Key questions

Q: How should security teams govern AI coding assistants that can execute commands?

A: Treat them as delegated non-human identities with bounded execution authority. Require human approval for destructive commands, keep command scopes narrow, and log every tool action. The key control question is not whether the assistant is helpful, but whether it can be prevented from acting outside intended scope when prompts, context, or rules are manipulated.

Q: Why do AI assistants with local secret files increase account takeover risk?

A: Because files such as .env and creds.json can function as standing credentials that unlock paid services, messaging sessions, and downstream systems. Once those files are exposed, the attacker inherits trusted access rather than needing to break authentication. The problem is not storage alone, but the reuse of durable secrets across multiple trust domains.

Q: What breaks when a self-hosted AI assistant runs with user-level filesystem access?

A: The assistant can read configuration, session, and token files that were never meant to be part of its operating scope. That creates an identity boundary failure, where the bot’s runtime privileges exceed its intended task scope. In practice, one compromised assistant can become a pivot into the wider user environment and connected services.

Q: Who is accountable when an AI assistant overshares sensitive content?

A: Accountability sits with the team that owns the policy, the attribute feeds, and the enforcement points, because ABAC only works when all three are managed together. If any one of them is missing, the organisation has not built a defensible control path, even if the model itself appears constrained.


Technical breakdown

Public dashboards and exposed agent surfaces

Clawdbot/Moltbot instances were reachable on public IPs, and some dashboards were unauthenticated or weakly protected. In an NHI context, that matters because the administrative plane becomes part of the attack surface, not just the application itself. If the dashboard can reveal logs, settings, or command features, an attacker does not need to break the model to control the workflow. The real issue is that the assistant’s management interface and runtime identity were not separated cleanly enough to prevent direct abuse.

Practical implication: restrict management access to a trusted network segment and treat agent dashboards as privileged control planes.

Command execution through messaging channels

The article describes an exec tool that passes user input into shell execution functions such as os.system() or subprocess.run() without robust authentication or input sanitization. That turns a message into code execution, especially when shell metacharacters are not blocked. For an AI assistant that listens across WhatsApp, Telegram, Slack, and similar platforms, any connected channel can become the entry point. The architectural failure is not merely automation, but unrestricted authority to translate conversational input into host-level actions.

Practical implication: separate message ingestion from execution and enforce strict authorization before any command reaches the host.

Secret sprawl in .env and creds.json files

The research shows that exposed instances can leak .env files and creds.json files, which are effectively portable identity containers. These files may hold API keys, service tokens, and session credentials for connected platforms. Once stolen, the attacker can pivot from one assistant instance into paid AI services, messaging accounts, or surveillance of channel metadata. This is classic NHI weakness: secrets are stored as durable standing credentials instead of short-lived, scoped identities with clear ownership and revocation.

Practical implication: move assistant credentials into managed secrets storage and remove plaintext secrets from local user directories.


Threat narrative

Attacker objective: The attacker wants to steal secrets and session credentials so they can reuse trusted access paths for surveillance, account abuse, and downstream system compromise.

  1. Entry via public dashboards and exposed agent endpoints allowed attackers to discover Clawdbot/Moltbot instances and interact with control surfaces without normal access barriers.
  2. Escalation through command execution and file-read exposure let an attacker pull .env and creds.json data, converting assistant privileges into credential access.
  3. Impact included API key theft, service token theft, and messaging-session surveillance that could enable account abuse and broader system takeover.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Clawdbot/Moltbot is best understood as an AI agent identity problem, not just a deployment problem. The assistant holds secrets, receives commands, and acts across multiple channels, which makes it a non-human identity with real operational power. Once the same runtime can touch shell commands, messaging sessions, and local configuration files, governance has to follow the identity, not the interface. Practitioners should treat chat-driven agents as privileged NHIs from the start.

Public exposure plus plaintext secrets creates identity blast radius. This research shows how one exposed assistant can bridge command execution, API access, and messaging-channel surveillance in a single compromise path. That is a strong example of standing credential persistence in an AI assistant context, where one file can unlock several trust domains. Practitioners should map every secret to its downstream access surface, because the blast radius is larger than the application owner usually assumes.

Channel convergence changes the threat model for machine identity governance. When one assistant spans WhatsApp, Slack, Telegram, and similar tools, each channel becomes a possible ingress path into the same identity. The control assumption that each interface can be governed independently breaks down. The implication is that NHI lifecycle, privilege scope, and session control must be designed for multi-channel reuse, not single-app containment.

Plaintext configuration files are a governance failure, not a storage inconvenience. The article’s .env and creds.json findings show that sensitive material is being treated as local convenience data even when it functions as authentication material. That is exactly the kind of secret handling weakness OWASP-NHI and zero-trust models are meant to eliminate. Practitioners should regard any assistant that stores reusable tokens beside executable code as structurally misgoverned.

Named concept: assistant identity spillover. A chat-based AI assistant can spill its authority from one connected system into several others when commands, secrets, and sessions are co-located. That spillover is why simple access reviews miss the real risk, because the identity is not confined to one endpoint. The practical conclusion is that governance must follow every channel, every token, and every file that can extend assistant authority.

From our research:

  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems (39%), inappropriately sharing sensitive data (31%), and revealing access credentials (23%), according to AI Agents: The New Attack Surface report.
  • Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
  • That same report is a useful counterpart to OWASP Agentic AI Top 10 when teams need to translate agent behaviour into control priorities.

What this signals

Assistant identity spillover: once an AI assistant spans multiple channels and stores reusable secrets locally, governance has to follow the identity across every boundary it can cross. With 80% of organisations already reporting agent behaviour beyond intended scope, per AI Agents: The New Attack Surface report, the operational question becomes whether the assistant is still acting inside a definable trust envelope at all.

This kind of exposure is a strong sign that agentic AI programmes need the same discipline applied to other NHIs: scoped privilege, credential lifecycle control, and auditability. Teams that still treat chat assistants as low-risk productivity tools will miss the fact that the assistant itself is now the access path.

Practitioners should also align this work with the OWASP Agentic AI Top 10, because prompt-level safety is not enough when the runtime can reach secrets and execute commands.


For practitioners

  • Separate agent management from runtime execution Place dashboards behind authenticated administrative access and ensure message ingestion cannot directly invoke shell execution. Review any path where chat input reaches os.system() or subprocess.run() and remove implicit execution.
  • Move assistant secrets into managed storage Eliminate plaintext .env and creds.json storage for API keys, service tokens, and session credentials. Use managed secrets systems with scoped access and rotation so the assistant never stores reusable secrets in user home directories.
  • Restrict assistant privileges to a dedicated service account Run the assistant under a low-privilege identity that cannot read user home directories or unrelated configuration paths. Verify that the process cannot access files outside the minimum runtime scope.
  • Review every connected channel as an ingress path Treat WhatsApp, Slack, Telegram, Discord, Teams, and similar integrations as equivalent attack surfaces. Apply the same command approval and logging rules to each channel rather than assuming one is safer than another.

Key takeaways

  • Clawdbot/Moltbot shows how an AI assistant becomes a breach path when command execution, messaging channels, and stored secrets sit inside one identity boundary.
  • The research ties exposure to practical abuse: public dashboards, plaintext credential files, and executable chat input can all lead to API key theft and surveillance.
  • The control failure is governance, not convenience. Teams need to treat AI assistants as privileged NHIs with strict execution, secret, and access boundaries.

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

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A1The article concerns agentic AI command abuse and tool execution risk.
OWASP Non-Human Identity Top 10NHI-03Plaintext secrets and exposed credentials are central to the article.
NIST Zero Trust (SP 800-207)3.4The article exposes overly trusted internal access paths and public dashboards.
NIST CSF 2.0PR.AC-4Least-privilege access and account governance are directly implicated.
NIST AI RMFMANAGEAutonomous chat assistants create AI governance and accountability obligations.

Map assistant tool-use paths to agentic AI risk controls and require explicit authorisation before execution.


Key terms

  • Agent Identity Spillover: Agent identity spillover occurs when a chat-based AI assistant can extend its authority across multiple systems, channels, or stored secrets from one runtime. The risk is not just access to a single app, but uncontrolled reuse of trust across messaging, files, tokens, and execution paths.
  • Standing Credential: A standing credential is any secret that remains usable until it is manually rotated or revoked. In NHI governance, it creates durable access that can be stolen, replayed, or propagated from trusted tooling unless runtime boundaries and expiry are built in.
  • Assistant Runtime Privilege: Assistant runtime privilege is the set of filesystem, command, and network rights available to an AI assistant while it runs. When that privilege is broader than the assistant’s task scope, the system can read sensitive files, execute commands, and pivot into other trust domains without meaningful containment.
  • Command-to-Code Boundary: The command-to-code boundary is the point where user input becomes executable system action. In agentic AI systems, that boundary must be tightly controlled because a chat message, prompt, or platform event can otherwise trigger shell execution, file access, or downstream automation without adequate authorisation.

What's in the full report

Straiker's full blog covers the operational detail this post intentionally leaves for the source:

  • Step-by-step examples of how the .env and creds.json files were exfiltrated during testing
  • Detailed remediation guidance for command execution hardening across connected messaging platforms
  • Specific logging and monitoring recommendations for suspicious assistant commands and access attempts
  • Observed exposure patterns across deployed instances and the geographic distribution of the findings

👉 Straiker's full post covers the attack path, exposed credential types, and remediation guidance in more detail.

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 or NHI governance programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org