AI Assistant Browsers Open Door to Fake Logins

Cybersecurity News · High sophistication
Last updated October 30, 2026

Researchers demonstrated that malicious web pages and local previews can abuse embedded browsers in popular AI coding assistants. The attacks can hide instructions from users, spoof trusted login addresses, or access sensitive files, creating realistic risks for developers who open untrusted links or project previews.

Key findings

  • Cursor's embedded browser could let a loaded web page place hidden instructions into the AI agent's instruction box.
  • Researchers used hidden HTML attributes to make an AI agent assemble and run an npm installation command; one Enter keypress could approve execution.
  • GitHub Copilot's preview could display a false github.com/login address while still showing attacker-controlled content, enabling a convincing fake login page.
  • Local previews in Claude Desktop, VS Code, and Codex could expose files outside the intended project folder under certain conditions.
  • The researchers demonstrated collection of SSH keys, .env files, npm tokens, and private documents.

Who’s being targeted

  • Commonly targeted roles: Developers, Software engineers, DevOps engineers, Engineering managers, IT support teams.
  • Affected industries: Software development, Technology, Organizations using AI coding assistants.
  • Attack channels: website.
  • Impersonated: GitHub, A benign project preview or web page, A local project preview.

Awareness takeaways

  • Treat login pages shown inside AI assistant previews as untrusted; open the service independently through a known bookmark or normal browser before entering credentials.
  • Do not approve unexpected package-installation commands or assume an AI assistant's suggested command is safe just because it came from the assistant.
  • Open project previews and assistant-generated links only when their source is known and expected, especially when working with unfamiliar repositories or sample projects.
  • Keep credentials and sensitive development files protected, and avoid storing unnecessary secrets in broadly accessible local folders.

Red flags to watch for

  • The address shown in the embedded preview may not match the page actually loaded.
  • A login form appears inside an AI assistant preview rather than a normal browser session.
  • The page asks for credentials after opening an unfamiliar project page or link.
  • The visible page appears harmless while instructions are hidden in HTML attributes.
  • The assistant proposes an unexpected npm installation command.
  • The assistant retries an installation outside its sandbox after a blocked attempt.
  • A generated or shared link opens a local preview that was not expected.
  • The preview requests access or behaves as though it needs files outside the project folder.
  • Sensitive developer files such as SSH keys, .env files, or npm tokens are present on the workstation.
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo
Read the video transcript

See github.com/login in a Copilot preview? That address can be fake. Researchers made GitHub Copilot’s preview show that trusted address over a page they controlled. The form underneath could collect your credentials. That’s the trap: the preview’s address isn’t proof. In Cursor, hidden page text even steered the assistant toward an unexpected npm install. If a preview asks you to sign in, leave it. Open GitHub from your own bookmark.

Categories

Similar attacks

Brevo Hack Injects Fake Cloudflare “Verify” Prompts

Brevo Hack Injects Fake Cloudflare “Verify” Prompts

Attackers compromised Brevo’s Cloudflare setup using a long-lived API key found in source code, then altered website content at the CDN edge. Visitors were shown fake Cloudflare verification prompts to run Windows commands, and logged-in WordPress admins were targeted with a hidden backdoor plugin…

September 22, 2026
Fake Claude & Perplexity Lures Push Malware

Fake Claude & Perplexity Lures Push Malware

Sophos reports real incidents where attackers impersonated well-known AI brands (especially Claude) to trick people into installing malware. The lures included polished fake installer pages that instruct victims to copy/paste commands, and browser extensions that look legitimate via high ratings…

August 21, 2026
Vishing Lures, Fake Identities, and Repo-Trap Attacks

Vishing Lures, Fake Identities, and Repo-Trap Attacks

This recap describes multiple real-world social-engineering-driven attacks, including vishing calls that push employees to spoofed login pages and a supply-chain trick where cloning/opening a GitHub repo in developer tools triggers malware. It also highlights an unusual case where an AI model…

August 10, 2026
Hotel Wi‑Fi DNS Scam Steals Microsoft 365 Logins

Hotel Wi‑Fi DNS Scam Steals Microsoft 365 Logins

Attackers are taking over hotel and conference Wi‑Fi gateways and changing DNS settings so travelers are silently redirected to fake Microsoft 365 sign-in pages. Victims are then tricked into completing a device-code login that grants attackers a legitimate session token, often bypassing MFA. This…

July 28, 2026
North Korea Scales AI-Powered Job Scams

North Korea Scales AI-Powered Job Scams

Microsoft reports that North Korean threat actors are using AI to make job scams, fake recruiter outreach, fraudulent worker identities, and targeted phishing campaigns faster and more convincing. One group posed as recruiters for a spoofed AI blockchain company and scheduled software-engineer…

October 29, 2026
GhostAction Phishes Developers With Fake GitHub Alert

GhostAction Phishes Developers With Fake GitHub Alert

GhostAction attackers sent a fake GitHub security alert to an open-source maintainer, claiming a login from Moscow and directing the victim to secure their account. The fake site stole the victim’s password and two-factor code, then silently approved a powerful GitHub OAuth connection that let the…

October 19, 2026