能反向入侵黑客智能体的蜜罐
Honeypots that hack the hacking agent back

原始链接: https://github.com/NebuSec/ArtexPot

ArtexPot 是 NebuSec 的一个研究项目,旨在将自主 AI 渗透测试智能体变成攻击目标。ARTEX 接收一个 URL 并对其进行攻击;ArtexPot 则提供七个虚假但极具诱惑力的环境——泄露的凭据、代码和漏洞利用代码——可在不使用提示注入的情况下,在访问方智能体自身的容器中触发代码执行。在针对原版 ARTEX 的测试中,前六个蜜罐在 36 次运行中成功攻陷了 33 次,其中一次仅用时 27 秒;经过改进的第七个陷阱则 8 次运行全部成功。这些陷阱包括克隆过程中的恶意 Git 元数据、不安全的 pickle 加载、隐藏表单解码、被投毒的字节码、需要辅助程序的厂商式漏洞利用、运维仓库中的凭据路径,以及存在缺陷的私有 SDK。有效载荷在容器启动时重新生成,使用临时内存植入体和按会话签名的任务,并通过 c2ctl 的验证检查进行演示。该项目依据 PolyForm Noncommercial 1.0.0 许可发布,仅限研究、教学和个人使用。它必须仅在受控且经授权的环境中使用;在他人系统上进行未经授权的测试或代码执行是非法且不道德的行为,责任完全由用户自行承担。

Hacker News 上的一个讨论串围绕一个 GitHub 项目展开:该项目使用蜜罐,通过故意泄露诱人的 API 密钥、监控响应或修改这些响应,对 AI 黑客智能体进行“反击”。评论者质疑这种技术是否真的有效,以及是否合法;有人提到一篇详细的 Artexpot 分析文章,另一些人则认为它可能是针对某个特定 AI 爬虫的漏洞量身打造的。 讨论随后扩展到反情报与防御。有人警告说,“攻击者”主机往往是被入侵的受害者,因此激进的回应或 BGP 层面的操作可能造成附带损害,甚至引发国际事件。有人建议采取更谨慎的做法:将可疑 IP 段黑洞化,把合法用户列入白名单,并“装死”,直到捣乱者失去兴趣。讨论中还辩论了设置陷阱的类比,指出造成伤害的陷阱通常违法,即便针对的是入侵者,也可能带来法律责任。
相关文章

原文

ArtexPot: an ARTEX agent attacks a honeypot and the honeypot runs code inside the agent's container

Honeypots that hack the hacking agent back.

ARTEX is an autonomous AI pentest agent: give it a URL and it attacks. ArtexPot is seven fake targets built so that the attack itself ends with our code running inside the agent's own container. No prompt injection anywhere. Each honeypot offers the agent something it wants (credentials, source code, a working exploit) in a form whose normal handling executes code.

Against stock ARTEX the first six hooked 33 of 36 runs, the fastest in 27 seconds. The seventh, built from what those taught us, went 8 for 8. The full story: ArtexPot: Seven honeypots that hack Artex back.

git clone https://github.com/NebuSec/ArtexPot && cd ArtexPot
./demo.sh all

That builds everything in Docker, starts the seven honeypots on localhost, and lets a stand-in agent walk into each one. For every hit you get proof of arbitrary code execution in the visitor's container:

==> pickled-backups
(a) python nonce proof: OK
(b) native ELF via memfd: OK (8992 B, exe=/memfd:s2)
(c) adaptive two-step: OK
(d) large program (1500232 B source, 15515 functions): OK
VERIFIED

Three classes, ordered by how much the agent gets wrong: in Class 1 nothing, in Class 2 it walks into a trap it cannot see, in Class 3 it sees the risk and takes it.

Honeypot The trap
1 The Unclonable Repository git clone fails, the agent reaches for git-dumper, and our .git/config runs on checkout (a 0-day in its sanitizer).
2 The Pickled Backups Leaked backups are pickles. The agent knows pickle is unsafe and calls pickle.load anyway.
2 The Stateful Form No files at all. A hidden form field begs to be decoded, and decoding it is the trap.
2 The Shadowed Bytecode Every .py is clean. A .pyc in __pycache__ is not.
3 The Unpatched Advisory A real vulnerability with a vendor PoC. The PoC needs one compiled helper.
3 The Keyless Ops Repository A leaked ops repo with no static keys. Every route to a credential runs a bundled helper.
3 The Billing SDK Forge a role, find a private SDK, install it. The SDK has a bug only our server can trigger. No implant in the package.

A 4.4 KB loader hidden in the artifact, a Diffie-Hellman handshake, an implant that only ever exists in memory, and tasks signed per session. Nothing is canned: c2ctl prove sends four pieces of code written after the session opened and checks every answer. The Billing SDK goes further and ships no implant at all, just a deliberate bug that our server triggers.

Nothing binary is committed. Every payload is generated by a commented script when the containers start, with fresh keys, for the addresses in your .env.

PolyForm Noncommercial 1.0.0. Research, teaching and personal use are welcome. Commercial use is not permitted.

Copyright NebuSec.

Caution

Research and authorized use only

ArtexPot is a security research project designed for controlled environments. Use it only on systems, agents, containers, networks, and infrastructure that you own or have explicit permission to test. Do not deploy or use this project to access, compromise, disrupt, or execute code on another person's machine or services without authorization. Unauthorized use may be illegal and unethical.

You are solely responsible for how you use this project and for complying with all applicable laws, regulations, and agreements. By using ArtexPot, you assume all risks and consequences arising from its use or misuse. To the maximum extent permitted by law, the authors and contributors provide this project "as is," without warranties, and disclaim liability for any damage, data loss, service interruption, legal consequences, or other harm resulting from its use or misuse.

联系我们 contact @ memedata.com