Informa TechTarget
|
Cybersecurity Dive
InformationWeek
Channel Dive
TechTarget: Cybersecurity
探索我们的品牌
Dark Reading 资源库
Black Hat News
Omdia 网络安全
广告合作
通讯订阅
网络安全主题
世界
The Edge
DR Technology
活动
资源
应用安全
云安全
威胁情报
身份与访问管理安全
新闻
野外攻击滥用 AI 代理对 Markdown 的信任
一种新的 AI 代理提示注入技术利用了代码助手如何消费本地指令文件,模糊了文本文档与可执行操作之间的界限。
Alexander Culafi,高级新闻撰稿人,Dark Reading
2026年10月27日
4分钟阅读
来源:IPUWADOL VIA GETTY IMAGES
一种新的间接提示注入攻击依赖于使用终端用户下载文件夹中的 Markdown 文件来安装恶意软件并窃取凭据。
Forever Security 对此表示,该公司最近详细描述了其在野外捕获的一种新型 AI 代理攻击。根据一篇研究博客文章,当攻击者在用户的下载文件夹中植入恶意文件时,用户的代理可能会将该文件视为可信指令,并据此执行操作。
与其他研究报告中发现的提示注入威胁相比,此次攻击的显著之处在于,这并非研究人员作为概念验证而开发的攻击。相反,Forever 的 Gal Weizman 和 Omer Samet 写道,这家 AI 安全公司“在真实客户的机器上捕获了实时恶意软件,试图实施一种行业尚未记录的新型攻击——并在任何代码运行之前彻底阻止了它。”
恶意 Markdown 文件
正如博客文章的作者所解释的那样,Forever Security 在客户的下载文件夹中发现了一个名为 “AGENTS.md” 的恶意纯文本文件,伪装成工程笔记。“.md” 是 Markdown 文件,用于引导代理行为,并被许多 AI 代码助手(如 OpenAI 的 Codex 或 Claude Code)所信任——Forever 对两者都重现了该攻击(原始变体专门针对 Codex)。
相关报道:暴露于 PHP2Shell?网络安全专家提供建议
研究人员无法确定该文件是如何进入用户计算机的,但他们指出,这是一种恶意网站可能会尝试下载到用户计算机上的文件类型。然后,当在该目录中启动代码助手时,它会读取指令文件作为其项目上下文的一部分。
根据 Forever 的说法,恶意指令可以说服代理修改其配置并执行后续操作。如果代理确实处理了其中一个恶意 Markdown 文件,植入的文件会使代理重写自身的配置,从而让攻击者能够指示它安装恶意软件或共享其自己的登录令牌。
在测试中,Forever 表示 Codex 的攻击链成功率超过 90%。对于 Claude Code,研究人员报告的成功率约为 50%,尽管某些变量可能会影响这一成功率。例如,Claude Code 使用与原始攻击目标不同的安装路径。
“无需修补”
该攻击只需要某人授予其代码助手访问其主目录下载文件夹的权限,并且代理能够与 Web 内容交互。Forever 表示,根据其遥测数据,约有一半的客户在其下载文件夹中运行代码助手,四分之一的代理会话会打开真实的浏览器。
相关报道:“PHP2Shell”漏洞向网络安全行业发出红色警报
“这里没有任何东西可以让 OpenAI 或 Anthropic 进行修补。一个遵循其文件夹中 AGENTS.md 的代理正在完全按照其设计目标行事,就像渲染钓鱼页面的浏览器按预期工作一样。”博客文章写道。“问题在于环境:一个网络可以写入、且被信任为用户自行填充的文件夹。因此,攻击向量依然敞开。这是一个更大模式的一个早期示例:当代理取代人类时,围绕人类建立的防御机制就会失效。”
Forever Security 的首席研究员 Weizman 告诉 Dark Reading,像 OpenAI 和 Anthropic 这样的 AI 公司“可能会考虑让代理意识到遵循由网站可投放的文件(例如在下载文件夹内)发出的命令的风险”,但他补充说,研究中描述的问题“主要超出了它们的安全模型范围”。
Weizman 表示,在野外捕获的实例中,该漏洞利用确实成功执行,但随后被 Forever 的实时安全产品阻止了后续活动,从而防止了 NPM 包的安装。Forever 仅设法发现了野外攻击的初始示例,尽管 Weizman 表示公司正在积极寻找更多尝试。
相关:在释放 AI 之前缩小软件开发中的身份差距
对于防御者而言,Forever 建议将用户的家目录下载位置(~/Downloads)视为“代理的敌对区域”,因为默认情况下,这是网络内容接触编码代理的唯一途径。用户还可以检查他们未编写的指令文件,审查代理配置以查找意外更改,并保持审批关卡和沙箱启用状态。如果发现红旗警告,研究人员表示组织应假定登录令牌已泄露并轮换凭据。
关于作者
亚历山大·库拉菲 (Alexander Culafi)
Dark Reading 高级新闻撰稿人
亚历克斯是一位屡获殊荣的作家、记者和播客主持人,常驻波士顿。青少年时期,他通过在独立游戏出版物上写作崭露头角,并于 2016 年从埃默森学院获得新闻学理科学士学位。他曾先后在 VentureFizz、Search Security、Nintendo World Report 等平台发表过作品。
在 Dark Reading,他报道各种网络安全主题,包括网络犯罪生态系统、开源安全以及 AI 与威胁行为者之间的交集。在业余时间,亚历克斯主持每周 Nintendo 播客“Talk Nintendo Podcast”,并从事个人写作项目,包括两本此前自费出版的科幻小说。
他曾获得众多奖项,包括 2022 年 TechTarget 年度作家奖,以及在 2022 年至今期间因其报道获得的 10 多个 Azbee 奖。
希望更多 Dark Reading 的故事出现在您的 Google 搜索结果中?
立即添加我们
更多洞察
行业报告
云安全现状:最新挑战
组织如何管理事件响应
企业如何开发安全应用
深入 RSAC 2026:安全领袖揭示重新定义您防御策略的风险
来自 Black Hat USA 2025 的重要新闻与洞察
获取更多研究
网络研讨会
提示注入入门:它是什么以及如何保持领先
长尾即前线:降低前沿 AI 和第三方应用风险
如何利用您的安全运营数据构建企业防御
构建网络弹性:从预防到恢复
前沿 AI 威胁:在暴露管理战略中缩小移动差距
更多网络研讨会
您可能也喜欢
应用安全
供应链攻击秘密为 Cline 用户安装 OpenClaw
作者 Rob Wright
2026年2月19日
应用安全
中国黑客劫持 Notepad++ 更新长达 6 个月
作者 Jai Vijayan
2026年2月2日
应用安全
特朗普政府撤销拜登时代的软件指导方针
作者 Alexander Culafi
2026年1月29日
应用安全
微软在轻量级补丁星期二修复被利用的零日漏洞
作者 Jai Vijayan
2025年12月9日
精选
查看 Black Hat USA 2026 大会指南,获取来自该展会以及关于该展会的报道和情报!
编辑推荐
应用安全
在释放 AI 之前,先缩小软件开发中的身份漏洞
作者:Arielle Waldman
2026年10月20日
内部威胁
知名勒索软件谈判者面临敲诈勒索指控
作者:Alexander Culafi
2026年10月12日
3分钟阅读时长
漏洞与威胁
OnlyFans 版权下架事件暴露了被入侵的网站
作者:Kristina Beek
2026年10月19日
2026年12月3日 | 虚拟活动
2027年网络安全展望
锁定您的席位
紧跟最新的网络安全威胁、新发现的漏洞、数据泄露信息以及新兴趋势。每日或每周直接发送至您的电子邮箱。
订阅
2026年12月7-10日 | 伦敦
提供为期两天和四天的专业网络安全培训,涵盖所有技能水平的课程。使用优惠码:DARKREADING,即可享受门票9折优惠。
了解更多
希望更多 Dark Reading 的故事出现在您的 Google 搜索结果中?
发现更多
Black Hat
Omdia
与我们合作
关于我们
认识编辑团队
广告合作
reprint(重印)服务
加入我们
新闻通讯订阅
关注我们
版权所有 © 2026 TechTarget, Inc.,以 Informa TechTarget 名义运营。本网站由 Informa TechTarget 拥有并运营,它是全球网络的一部分,旨在告知、影响并连接全球的科技买家和卖家。所有版权均归其所有。Informa PLC 的注册办公室位于伦敦 SW1P 1WG Howick Place 5号,在英格兰和威尔士注册。TechTarget, Inc. 的注册办公室位于美国马萨诸塞州牛顿市 Grove St. 275号,邮编02466。
首页 |
Cookie政策 |
隐私政策 |
使用条款
您的隐私选择
Informa TechTarget
|
Cybersecurity Dive
InformationWeek
Channel Dive
TechTarget: Cybersecurity
Explore our brands
Dark Reading Resource Library
Black Hat News
Omdia Cybersecurity
Advertise
NEWSLETTER SIGN-UP
Cybersecurity Topics
World
The Edge
DR Technology
Events
Resources
APPLICATION SECURITY
СLOUD SECURITY
THREAT INTELLIGENCE
IDENTITY & ACCESS MANAGEMENT SECURITY
NEWS
In-the-Wild Attack Abuses AI Agents' Trust in Markdown
A new AI agent prompt injection technique exploits how coding assistants consume local instruction files, blurring the line between text documents and executable actions.
Alexander Culafi,Senior News Writer,Dark Reading
October 27, 2026
4 Min Read
SOURCE: IPUWADOL VIA GETTY IMAGES
A new indirect prompt injection attack relies on using markdown files in an end user's downloads folder to install malware and steal credentials.
That's according to Forever Security, which recently detailed a novel AI agent attack they captured in the wild. According to a research blog post, when an attacker plants a malicious file in a user's download folder, the user's agent may treat the file as trusted instructions and execute actions based on it.
What is notable about this attack compared to other prompt injection threats found in research reports is that this was not a case where the researchers developed the attack as a proof of concept. Rather, Forever's Gal Weizman and Omer Samet wrote that the AI security firm "caught live malware on a real customer's machine, attempting a new kind of attack the industry had not documented — and stopped it cold, before any code ran."
Malicious Markdowns
As the blog post authors explained, Forever Security found a malicious plaintext file named "AGENTS.md" in a customer's downloads folder, disguised as engineering notes. ".md" is a markdown file, used to guide agent behavior, and is trusted by many AI coding agents like OpenAI's Codex or Claude Code — Forever reproduced the attack with both (the original variant targeted Codex specifically).
Related:Exposed to PHP2Shell? Cyber Experts Weigh in With Advice
Researchers were unable to determine exactly how the file got on the user's computer, though they noted that it's the kind of file that a malicious website could attempt to download onto the user's computer. Then, when the coding agent is launched in that directory, it reads the instruction file as part of its project context.
According to Forever, the malicious instructions can persuade the agent to modify its configuration and perform follow-on actions. If the agent does ingest one of these malicious markdowns, the planted file makes the agent rewrite its own configuration, opening itself up for an attacker to instruct it to install malware or share its own login tokens.
In testing, Forever said the Codex attack chain succeeded more than 90% of the time. For Claude Code, the researchers reported roughly a 50% success rate, though certain variables may have influenced this success rate. For example, Claude Code uses a different installation path from Codex, which the original attack targeted.
'Nothing to Patch'
The attack requires someone only to grant their coding agent access to their home directory downloads folder, and that the agent can interact with web content. Forever says that according to its telemetry, about half of its customers run a coding agent inside their downloads folder, and a quarter of agent sessions open a real browser.
Related:'PHP2Shell' Bugs Signal Red Alert for Security Industry
"There is nothing here for OpenAI or Anthropic to patch. An agent that follows the AGENTS.md in its folder is doing exactly what it was built to do, the same way a browser that renders a phishing page is working as designed," the blog post read. "The problem is the circumstances: a folder the web can write to, trusted as if the user filled it. So the vector stays open. It is one early example of a bigger pattern: defenses built around a human break when an agent takes the human's place."
Weizman, lead researcher at Forever Security, tells Dark Reading that AI firms like OpenAI and Anthropic "may consider making agents aware of the risk of following commands originated by files that can be dropped by websites (such as inside the Downloads folder)," but adds that the issue described by the research is "mostly beyond their security model."
In the instance captured in the wild, Weizman says the exploit worked but was then blocked from follow-on activity by Forever's real-time security product, preventing an NPM package from being installed. Forever only managed to discover the initial example of the attack in the wild, though Weizman says the company is actively searching for more attempts.
Related:Close Identity Gaps in Software Development Before Unleashing AI
For defenders, Forever recommends treating the user's home-directory download location (~/Downloads) as "hostile ground for agents," as by default it's the only way web content can reach a coding agent. Users can also check for instruction files they did not write, examine agent configurations for unexpected changes, and leave approval gates and sandboxes enabled. If a red flag has been found, the researchers said organizations should assume login tokens are compromised and to rotate credentials.
About the Author
Alexander Culafi
Senior News Writer, Dark Reading
Alex is an award-winning writer, journalist, and podcast host based in Boston. After cutting his teeth writing for independent gaming publications as a teenager, he graduated from Emerson College in 2016 with a Bachelor of Science in journalism. He has previously been published on VentureFizz, Search Security, Nintendo World Report, and elsewhere.
At Dark Reading, he covers a variety of cybersecurity topics, including the cybercrime ecosystem, open source security, and the intersection between AI and threat actors. In his spare time, Alex hosts the weekly Nintendo podcast, "Talk Nintendo Podcast," and works on personal writing projects, including two previously self-published science fiction novels.
He has received numerous awards, including TechTarget's Writer of the Year in 2022 as well as more than 10 Azbee awards for his reporting between 2022 and today.
Want more Dark Reading stories in your Google search results?
ADD US NOW
More Insights
Industry Reports
The State of Cloud Security: The Latest Challenges
How Organizations Are Managing Incident Response
How Enterprises Are Developing Secure Applications
Inside RSAC 2026: security leaders reveal the risks redefining your defense strategy
Essential News & Insights from Black Hat USA 2025
Access More Research
Webinars
Prompt Injection 101: What It Is and How to Stay Ahead
The Long Tail Is Now the Front Line: Reducing Frontier-AI & Third-Party App Risk
How to Harness your Security Operations Data for Enterprise Defense
Building Cyber Resilience: Beyond Prevention to Recovery
The Frontier AI Threat: Closing the Mobile Gap in Your Exposure Management Strategy
More Webinars
You May Also Like
APPLICATION SECURITY
Supply Chain Attack Secretly Installs OpenClaw for Cline Users
by Rob Wright
FEB 19, 2026
APPLICATION SECURITY
Chinese Hackers Hijack Notepad++ Updates for 6 Months
by Jai Vijayan
FEB 02, 2026
APPLICATION SECURITY
Trump Administration Rescinds Biden-Era Software Guidance
by Alexander Culafi
JAN 29, 2026
APPLICATION SECURITY
Microsoft Fixes Exploited Zero Day in Light Patch Tuesday
by Jai Vijayan
DEC 09, 2025
Featured
Check out the Black Hat USA 2026 Conference Guide for coverage and intel from — and about — the show!
Editor's Choice
APPLICATION SECURITY
Close Identity Gaps in Software Development Before Unleashing AI
byArielle Waldman
OCT 20, 2026
INSIDER THREATS
Prominent Ransomware Negotiator Faces Extortion Charges
byAlexander Culafi
OCT 12, 2026
3 MIN READ
VULNERABILITIES & THREATS
OnlyFans Copyright Takedowns Expose Compromised Websites
byKristina Beek
OCT 19, 2026
DECEMBER 3, 2026 | VIRTUAL
Cybersecurity Outlook 2027
SECURE YOUR SPOT
Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.
SUBSCRIBE
DEC 7-10, 2026 | LONDON
Offering two-and four-day specialized cybersecurity Trainings, with courses of all skill levels. Use the code: DARKREADING and get 10% off your pass.
LEARN MORE
Want more Dark Reading stories in your Google search results?
Discover More
Black Hat
Omdia
Working With Us
About Us
Meet the Editors
Advertise
Reprints
Join Us
NEWSLETTER SIGN-UP
Follow Us
Copyright © 2026 TechTarget, Inc. d/b/a Informa TechTarget. This website is owned and operated by Informa TechTarget, part of a global network that informs, influences and connects the world’s technology buyers and sellers. All copyright resides with them. Informa PLC’s registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. TechTarget, Inc.’s registered office is 275 Grove St. Newton, MA 02466.
Home|
Cookie Policy|
Privacy|
Terms of Use
Your Privacy Choices
首次收录 · 2026-10-27 · 9.91 分