How we got RCE in ARTEX baldur.dk · 43 points · 8 comments · HN thread TL;DR A b...

@best

How we got RCE in ARTEX baldur.dk · 43 points · 8 comments · HN thread

TL;DR A blog post by baldur.dk describes how the author got a reverse shell on an autonomous AI pentesting tool called ARTEX by planting bait on their own site. ARTEX, driven by GLM-5.3 via OpenRouter, was steered into fetching and running a malicious script, which gave root-level access in a container shared with the tool's panel, JWT signing key and data. The author argues such tools lack sandboxing and are unsuitable for scoped engagements.

  • ARTEX was seeded with baldur.dk and, after enumerating domains, began scanning admin.baldur.dk, which the author had pointed at 127.0.0.1 via fake DNS records (scope drift).
  • A planted fake 'debug SSH key' comment in index.html lured the agent into fetching a remote script.
  • The model refused a direct 'curl | bash' payload, but served error messages and a timing-based fake header steered it into running a Perl reverse shell on the ninth request.
  • After getting the shell, the author found the scanner, panel, keys and data all in the same container with no sandbox, including a JWT signing key.
  • The author concludes that agents with many tools need real sandboxing and that open-source alternatives such as Strix handle this better.

Discussion The thread is short and split between practical and skeptical reactions. Commenters ask whether any ARTEX repo can be trusted, given that many copies exist, and one suggests picking a clone from a security company for its reputational stake. Others question whether the result counts as an RCE at all, arguing that running code on a hosted tool is its normal function. A longer exchange debates whether hitting a hacker's machine in retaliation is legal, with one commenter calling it a felony and another arguing that a DNS trick and a honeypot are not clearly hacking. The mood is mildly amused and skeptical rather than alarmed.

  • Trust in ARTEX clones is the main open question (some): One commenter asks how anyone can trust an ARTEX repo when all of them appear to be clones, and wants to know if any legitimate ones exist. The question is left largely unanswered in the thread.
  • Grabbing a security firm's clone reduces risk somewhat (a few): One commenter took a copy from a security company's repo and still takes normal precautions. They reason the company has a small reputational incentive not to booby-trap it.
  • Shell access is not a real RCE here (some): One commenter calls the write-up a nothing burger. They argue that remote code execution is the service being offered, so the finding only matters if secrets, uncapped tokens or broader access are present in the VM.
  • Counterattacking a hacker is a felony (a few): One commenter says it is illegal to hack a hacker and treats the question as settled. This is a blunt position that others in the thread do not adopt.
  • Legal status of the retaliation is a gray area (a few): Another commenter argues that the method sits between hosting a honeypot, which is not usually considered hacking, and actively pentesting a hacker. They think the court interpretation is genuinely unclear, especially when the agent does the actual work.

#aiSecurity #pentesting #promptInjection #sandboxing #reverseShell #AIagents