Article 7A40P ARTEX may be dangerous, but it's also dumb enough to hack itself

ARTEX may be dangerous, but it's also dumb enough to hack itself

by
Brandon Vigliarolo
from www.theregister.com - Articles on (#7A40P)
Story Image

The ARTEX AI agent may be a useful tool for miscreants looking to find bugs, but it's also vulnerable to itself, as security researchers have found out.

Researchers at Danish offensive security outfit Baldur explain how easy it was to get ARTEX eating its own tail in a report they published over the weekend.

First off, as Baldur principal security consultant Kevin Joensen explained in the report, the researchers tricked ARTEX using some fake DNS that pointed an admin subdomain of Baldur's domain to 127.0.0.1 - a first attempt to see how thorough the tool's design was. Not very, it turns out.

After a bit, ARTEX starts enumerating domains and stumbles upon admin.baldur.dk and starts building tooling for scanning it," Joensen writes. Once it starts conducting those scans, it's just scanning itself - which it was happy to do in testing.

That's funny, Joensen noted, and definitely a good way to burn an attacker's tokens doing useless work, but Baldur wanted to see if it could get a reverse shell on the ARTEX instance it was testing on its own website.

The trick to doing this was also relatively simple, although the researchers had to overcome the AI agent's initial refusal to execute the script.

As with any AI-powered software suite with its offensive cybersecurity capabilities, ARTEX runs with a lot of tooling open to the AI agent doing the heavy lifting. That agent is reviewing anything written on the target's website, so Baldur wrote some fake comments on the index page of its site pointing to a Bash script hosted on the site that claims it will automatically decrypt an SSH key and grant the administrator using it full root access on Baldur's web server. The script actually contained a reverse-shell payload.

ARTEX took the bait and fetched the script, but recognized the risk and stopped short of executing it. Getting around that detection and convincing ARTEX to run it anyway was similarly simple.

Instead of serving the payload immediately, we provide an error message describing that you have to set an environment header first, and that header is timing bound and has to be piped to sh," Joensen explained. Then we have a counter where we serve random error messages on the first couple of requests."

The hope was that, like any human dealing with such a workflow, ARTEX's AI would simply decide running the script might be worth the risk, which it did, and ta-da: Reverse shell granted. Making matters worse is the fact that everything is in the same container" in the ARTEX installation tested, Joensen wrote, potentially allowing someone with shell access to just kill the panel, read secrets, exfiltrate data ... forge login tokens," and the like.

Sandboxing is a basic 101 when you are doing offensive operations, which seems to be missing from ARTEX," Joensen added.

ARTEX, in other words, is just as much of a mess as it is a danger. Sure, it's being used by cybercrime gangs to target governments and companies, but it lacks adequate sandboxing and is extremely immature as a pentesting tool, Baldur opines, since it can't even recognize when a DNS record directs it to scan its own environment rather than an authorized target.

If you want to protect yourself from malicious use of AI tools like ARTEX, conventional security software is still worth keeping around, but Baldur's research suggests that deception techniques could also give the tool's operators a headache.(R)

External Content
Source RSS or Atom Feed
Feed Location http://www.theregister.co.uk/headlines.atom
Feed Title www.theregister.com - Articles
Feed Link https://www.theregister.com/
Reply 0 comments