Skip to main content
Mallory
← Back to News
ai-platform-securityadversary-emulation-tradecraftextension-plugin-hijack

Security Risks and Controls for AI-Powered Coding Assistants and Agents

Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Dec 1, 2025

Security Risks and Controls for AI-Powered Coding Assistants and Agents

The rapid adoption of AI-powered agents and coding assistants has introduced new security challenges, particularly as these systems gain deeper access to sensitive enterprise environments and proprietary codebases. Recent research and technical reviews highlight the need for robust information flow control mechanisms to prevent unauthorized data exposure and ensure that AI agents act within defined security boundaries. As AI agents evolve from passive tools to autonomous actors capable of executing workflows, approving access, and interacting with APIs, understanding and modeling their execution and decision-making processes becomes critical for effective risk management.

A focused security assessment of the Cursor AI coding assistant revealed three key vulnerabilities related to its deep integration with development workflows and privileged access to code repositories. The review emphasized the importance of ethical hacking and red teaming to uncover risks in third-party AI tools, especially those embedded in widely used platforms like Visual Studio Code. Security practitioners are encouraged to adopt formal models and reusable frameworks for auditing AI agents, ensuring that both the underlying technology and its operational context are thoroughly evaluated for potential threats.

Why it matters

Impact assessment

AI-powered coding assistants and autonomous agents create material exposure for enterprises that allow these tools to access source code, documentation, inboxes, APIs, workflows, and identity-linked developer environments. The immediate risk is unauthorized disclosure of proprietary code, embedded secrets, internal communications, and agent conversation history, with secondary risk of account takeover and misuse of delegated enterprise actions.

The scope is broader than a single product because the underlying issue affects agent architectures that ingest attacker-controlled content and can invoke tools without strong policy enforcement. For Cursor specifically, the reported issues appear to enable insider or collaborator abuse, cross-user data exposure, and token replay-based account compromise; the story does not cite confirmed in-the-wild exploitation, but the attack paths are practical in shared development environments.

Affected organizations and users

  • Enterprises using AI coding assistants or autonomous agents with access to:
    • source code repositories
    • internal documentation
    • email and messaging content
    • APIs and workflow tools
    • cloud-hosted agent sessions
  • Development teams using Cursor integrated with GitHub repositories
  • Users who store credentials or sensitive URIs in assistant-linked documentation libraries
  • Organizations relying on AI agents for operational actions such as approvals, workflow execution, or data retrieval

Severity and business impact

  • Sensitive data exposure:
    • proprietary code
    • internal documentation
    • mailbox contents
    • agent prompts and conversation history
    • embedded credentials in documentation URLs
  • Operational risk:
    • unauthorized agent actions through prompt injection
    • misuse of delegated tool/API access
    • account takeover via authentication token replay
  • Reputational and compliance risk:
    • leakage of regulated or confidential data from developer and enterprise systems
    • weak vendor defaults or undocumented sharing behavior undermining governance controls

Scope and exploitation status

  • Broad architectural exposure across AI agents due to insecure-by-default tool invocation and shared datastore patterns
  • Product-specific exposure in Cursor tied to repository-sharing and authentication design
  • No CVEs or vendor-confirmed security fixes are cited
  • No confirmed exploitation in the wild is reported in the story

Structured facts extracted

  • Entities:
    • Cursor
    • StackAware
    • Microsoft Research
    • Visual Studio Code ecosystem
    • GitHub
  • Key risks:
    • indirect prompt injection
    • cross-user access to documentation definitions
    • undocumented cloud-agent sharing via repository permissions
    • token replay leading to account takeover
  • User populations:
    • developers
    • DevOps teams
    • enterprise users of autonomous AI agents
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.

4 events · Dec 1, 2025
  1. Dec 1, 20251y ago

    StackAware publicly discloses Cursor security findings

    StackAware published its findings on three security risks in Cursor and advised organizations to review repository permissions, raise employee awareness, and independently verify vendor security claims. The disclosure highlighted the risks of deeply integrated AI development tools handling sensitive code and credentials.

  2. Dec 1, 20251y ago

    Cursor says reported behaviors are working as intended

    According to StackAware, Cursor responded to the disclosures by treating the reported issues as intended product behavior rather than vulnerabilities. StackAware said no substantive product changes were made following the disclosure process.

  3. Dec 1, 20251y ago

    StackAware reports three security issues to Cursor

    StackAware responsibly disclosed three findings to Cursor: cross-user access to custom documentation definitions, default sharing of cloud agents via GitHub repository permissions, and a chained authentication abuse that could enable token replay and account takeover. The report noted the potential for sensitive data exposure and social engineering attacks.

  4. Dec 1, 20251y ago

    StackAware begins ethical hacking assessment of Cursor

    StackAware conducted a security review of Cursor, an AI-powered code editor and assistant, to evaluate risks created by its access to codebases and remote AI services. The assessment identified multiple issues involving data exposure, shared cloud agent visibility, and authentication flow abuse.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

2 linked
CursorCursor

Organizations

1 linked
Cursor

Observables

4 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

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.