{"id":13607,"date":"2026-06-14T10:03:50","date_gmt":"2026-06-14T10:03:50","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/06\/14\/new-agentjacking-attack-hijacks-your-ai-coding-agent-to-run-code-from-a-hackers-server\/"},"modified":"2026-06-14T10:03:50","modified_gmt":"2026-06-14T10:03:50","slug":"new-agentjacking-attack-hijacks-your-ai-coding-agent-to-run-code-from-a-hackers-server","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/06\/14\/new-agentjacking-attack-hijacks-your-ai-coding-agent-to-run-code-from-a-hackers-server\/","title":{"rendered":"New Agentjacking Attack Hijacks Your AI Coding Agent to Run Code From a Hacker\u2019s Server"},"content":{"rendered":"<p>    New Agentjacking Attack Hijacks Your AI Coding Agent to Run Code From a Hacker\u2019s Server<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p class=\"wp-block-paragraph\">New \u201cAgentjacking\u201d attack that <a href=\"https:\/\/cybersecuritynews.com\/agent-session-smuggling\/\" target=\"_blank\" rel=\"noreferrer noopener\">hijacks AI coding agents<\/a> and silently executes attacker-controlled code on developer machines using nothing more than a single injected Sentry error.<\/p>\n<p class=\"wp-block-paragraph\">The technique turns trusted AI assistants like Claude Code and Cursor into an execution layer for malicious commands, without phishing, malware delivery, or any breach of the victim\u2019s infrastructure.<\/p>\n<p class=\"wp-block-paragraph\">In this attack, the entry point is Sentry\u2019s public<a href=\"https:\/\/cybersecuritynews.com\/chatgpt-lockdown-mode\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Data Source Name (DSN)<\/a>. This write-only credential is routinely embedded in frontend JavaScript and indexed across the web.<\/p>\n<p class=\"wp-block-paragraph\">Tenet\u2019s researchers used passive reconnaissance methods, including JavaScript inspection, Censys searches, CDN loader analysis, and code search, to identify 2,388 organizations with injectable DSNs, including 71 in the Tranco top-1M.<\/p>\n<p class=\"wp-block-paragraph\">With only the DSN, an attacker can submit arbitrary error events to Sentry\u2019s ingest API, controlling fields such as messages, tags, context, extra data, breadcrumbs, user information, stack traces, and fingerprints.<\/p>\n<p class=\"wp-block-paragraph\">Sentry accepts these forged events as legitimate application errors, allowing attackers to inject fully controlled content into monitoring workflows.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhJUf53auOGfjRkN2lj-3cn6fPQ4GkXdfLGAi46MYa6Q6YLlP1Co2FyT30bhnQm66b8Ube7rThZocEwVNw2lDkJMw-Bhwpb3-U-f2LTnSfFxKg2GWY_j32jCtxsjEqvZ9OJrl3Hf3utVNc69UNB02YpOYcsNbbxKA0Pf7oBg9ot8PU4WG9s2yZRQG_OnYs\/s1600\/Screenshot%25202026-06-13%2520155110%2520%25281%2529.webp?ssl=1\" alt=\"The Agentjacking chain (source :tenetsecurity)\"><figcaption class=\"wp-element-caption\"><em>The Agentjacking chain<\/em> (source :tenetsecurity)<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">The core architectural flaw sits at the junction of Sentry\u2019s event ingestion pipeline and its <a href=\"https:\/\/cybersecuritynews.com\/kali-linux-integrates-claude-ai\/\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol (MCP) integration<\/a>, which feeds error data back to AI coding agents as trusted system output.<\/p>\n<h2 id=\"h-agentjacking-attack-hijacks-ai-coding-agents\" class=\"wp-block-heading\"><strong>Agentjacking Attack Hijacks AI Coding Agents<\/strong><\/h2>\n<p class=\"wp-block-paragraph\">Attackers can embed carefully crafted Markdown into injected errors, particularly within message and context fields, to influence how content is displayed to AI agents.<\/p>\n<p class=\"wp-block-paragraph\">The content can appear as a legitimate Sentry \u201cResolution\u201d section with headings, code blocks, and tables, making it indistinguishable from genuine remediation guidance.<\/p>\n<p class=\"wp-block-paragraph\">When a developer asks their agent to \u201cfix unresolved Sentry issues,\u201d the AI queries Sentry via MCP, retrieves the crafted event, and interprets the attacker\u2019s command as legitimate diagnostic steps, not as untrusted input.<\/p>\n<p class=\"wp-block-paragraph\">Tenet\u2019s proof-of-concept payload directed agents to execute an npx command that pulled a controlled validation package from the public <a href=\"https:\/\/cybersecuritynews.com\/claude-code-source-code-leaked\/\" target=\"_blank\" rel=\"noreferrer noopener\">npm registry<\/a> and ran it with the developer\u2019s full local privileges.<\/p>\n<p class=\"wp-block-paragraph\">In their controlled campaign, this package confirmed the presence of sensitive material by probing environment variables, checking the sizes of configuration files such as ~\/.aws\/config and ~\/.docker\/config.json, and inspecting network interfaces.<\/p>\n<p class=\"wp-block-paragraph\">Then sending scoped exposure metadata tightly back to a Tenet beacon server under explicit \u201cResponsibleDisclosure [SECURITY SCAN]\u201d headers.<\/p>\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/tenetsecurity.ai\/blog\/agentjacking-coding-agents-with-fake-sentry-errors\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Tenet reports more than 100 confirmed cases<\/a> of real-agent execution across a Fortune 500 cloud enterprise, a multi-billion-dollar hosting provider, scientific software firms, startups, and individual developers.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjMaZIzZdHBY01vpefsXax24T-4fKIaNN1RP1S8zfWg04ZsQbcbQUl44Hh9qZFIwqrp5RZb6eNYhI46aVuMlJe6j43Uih79QRuqwjQJhQs-80Buq5hPrzxUrj5BRk7HGUOigIQsBWBuFAbYiLozBM_QWt46oKynBRNlGXKkLqFuRQwCx_v58N9crkpeyn8\/s1600\/Screenshot%25202026-06-13%2520155219%2520%25281%2529.webp?ssl=1\" alt=\"\"><\/figure>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiqeTilbBKS1T-V88aysPt_PUfFJrD6hiuMNU27IQ7SqN1f3-M3oYEVU-wiy9h15s_giobJaXnLA7Fpt98Mmdi5UEahDLva6LMdGIlB5Xzk-xgSH8CxuOPd7zrie6NBWt3FKY6wlSQ9Vv3zuNTrsUw__i1i2TeNvKIPeb1Gc0T7nap2qQ1mY_ZhzOoKFtg\/s1600\/Screenshot%25202026-06-13%2520155227%2520%25281%2529.webp?ssl=1\" alt=\"The victim saw only benign diagnostics while the agent silently exposed cloud, source-control, and cluster credentials to an attacker (source : tenetsecurity)\"><figcaption class=\"wp-element-caption\">The victim saw only benign diagnostics while the agent silently exposed cloud, source-control, and cluster credentials to an attacker (source : tenetsecurity)<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">The attacks achieved an overall success rate of about 85% across leading AI coding agents. What makes Agentjacking particularly dangerous is that every step in the chain is authorized and looks benign to traditional defenses.<\/p>\n<p class=\"wp-block-paragraph\">Sentry is used as designed, DSNs are public by policy, the npm package is fetched over standard channels, and the AI agent executes commands as part of its normal assistance workflow.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhmCI7zy2ICha84WQ6omSnY6g0o6RyGeTfucRWDoD2Ocxf2oCJ8P7Xv7EZg6nE6ZwPPkNadgpMv8i9iRcxKOwX3aVeBkibfneAXh1IaxuV7qOuuZkpF4IK0qmFnJ2ZAcdsdcZ8RfrSPUHU9l9NuDZ1LddWZZfBHphm5yaFlkutdWjIWL-IXjBAVnKRvOYs\/s1600\/Screenshot%25202026-06-13%2520155207%2520%25281%2529.webp?ssl=1\" alt=\"Confirmed and exposed organizations span six continents (source :tenetsecurity)\"><figcaption class=\"wp-element-caption\"><em>Confirmed and exposed organizations span six continents<\/em> (source :tenetsecurity)<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">Endpoint detection, WAFs, <a href=\"https:\/\/cybersecuritynews.com\/identity-and-access-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">IAM policies<\/a>, and firewalls detect no obvious policy violations because the observable behavior matches a developer-approved tool running approved commands on a trusted observability platform.<\/p>\n<p class=\"wp-block-paragraph\">Tenet describes this as an \u201cAuthorized Intent Chain,\u201d arguing that current security models, which focus on blocking unauthorized actions or malicious binaries, lack effective visibility into attacks that operate solely through trusted context and legitimate tool output.<\/p>\n<p class=\"wp-block-paragraph\">The research also underscores that this is not a single-vendor bug but a systemic AI-agent problem.<\/p>\n<p class=\"wp-block-paragraph\">Any MCP integration that returns externally influenced data to agents carries a similar risk, as the data may contain hidden instructions controlled by attackers.<\/p>\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\">\n<div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title='Tenet uncovers \"Agentjacking\" Attacks Validated across 100+ enterprises' width=\"696\" height=\"522\" src=\"https:\/\/www.youtube.com\/embed\/QSfdEQ0PE4E?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div>\n<\/figure>\n<p class=\"wp-block-paragraph\">Current<a href=\"https:\/\/cybersecuritynews.com\/single-line-of-code-can-jailbreak-11-ai-models\/\" target=\"_blank\" rel=\"noreferrer noopener\"> AI models<\/a> cannot reliably distinguish descriptive data from embedded instructions, especially when those instructions appear in seemingly trusted logs, metrics, or error messages.<\/p>\n<p class=\"wp-block-paragraph\">Tenet disclosed its findings to Sentry on June 3, 2026; Sentry acknowledged the issue and introduced a global content filter for a specific payload string.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiAtPmvLcLJFCgGN-34omor1iI22r1PByaI7ybBSBgvRdJnstRUHTi77qSBGayPNVMITRTeUh3TCvW1ZIzTEMsl5FhYBKO_xM2lI7CMyTbMvynRpYkyLV7qLgHE0icAojPJ-UbNBpS7hqPHXyDd4rheeuIVevrFEqngZcEjdDJapGhosm6H0eijcJxoLuE\/s1600\/Screenshot%25202026-06-13%2520155239%2520%25281%2529.webp?ssl=1\" alt='\nSentry called the issue \"technically not defensible\" and deferred mitigation to model vendors (source :tenetsecurity)'><figcaption class=\"wp-element-caption\">Sentry called the issue \u201ctechnically not defensible\u201d and deferred mitigation to model vendors (source :tenetsecurity)<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">Reportedly characterized the underlying class of attack as \u201cnot technically defensible\u201d at the ingestion layer, instead pointing to model-side middleware as a mitigation.<\/p>\n<p class=\"wp-block-paragraph\">For defenders, the Agentjacking work signals a new era in <a href=\"https:\/\/cybersecuritynews.com\/anthropic-sued-the-u-s-government\/\" target=\"_blank\" rel=\"noreferrer noopener\">AI supply chain risk<\/a>, where the AI agent itself becomes the primary attack surface.<\/p>\n<p class=\"wp-block-paragraph\">Security teams need to reassess which tools their AI agents interact with and whether those tools accept untrusted or anonymous input.<\/p>\n<p class=\"wp-block-paragraph\">What runtime controls are in place to prevent injected content from automatically translating into code execution on developer endpoints.<\/p>\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong>Follow us on\u00a0<a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener\">Google News<\/a>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener\">LinkedIn<\/a>,\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get More Instant Updates.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/agentjacking-attack-hijacks-ai-coding-agent\/\">New Agentjacking Attack Hijacks Your AI Coding Agent to Run Code From a Hacker\u2019s Server<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Abinaya<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/agentjacking-attack-hijacks-ai-coding-agent\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>New Agentjacking Attack Hijacks Your AI Coding Agent to Run Code From a Hacker\u2019s Server New \u201cAgentjacking\u201d attack that hijacks AI coding agents and silently executes attacker-controlled code on developer machines using nothing more than a single injected Sentry error. The technique turns trusted AI assistants like Claude Code and Cursor into an execution layer [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[167,129,63],"tags":[130],"class_list":["post-13607","post","type-post","status-publish","format-standard","hentry","category-ai","category-cyber-security","category-cyber-security-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13607"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=13607"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13607\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=13607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=13607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=13607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}