Dual-use AI offensive MCP framework

HexStrike AI

HexStrike AI is an offensive-security framework built as a Model Context Protocol server: it exposes more than 150 security tools to an LLM agent, which plans and runs an engagement by calling those tools over the MCP interface. It is open-source, written in Python by 0x4m4 on top of FastMCP, and it has drawn a large following, which is part of why its servers now number in the hundreds on the public internet.

It is dual-use, shared as a red-team tool, and tracked here because it has shown up in real intrusions. Hunting it takes a different approach than the console-based frameworks. HexStrike has no web dashboard, no distinctive certificate, and no HTML title to match, because its control plane is a JSON API. What it does have is a default port and a habit of being staged in open directories, and this page shows how to use both.

  • Actively tracked
  • Tied to live intrusions
Quick reference

HexStrike AI quick reference

The facts a defender needs before the hunt:

  • Aliases: HexStrike AI, HexStrike-AI

  • Type: dual-use AI offensive framework, an MCP server that drives offensive tools with an LLM agent, not malware in the classic sense

  • Author and stack: 0x4m4, Python, MIT, built on FastMCP

  • What it is: a Model Context Protocol server exposing 150+ security tools to an LLM agent that plans and runs the operation

  • Common port: 8888, the FastMCP default, where most live servers answer

  • Selector note: no distinctive certificate and no HTML title, since the control plane is a JSON API, so cert and title hunting both fail

  • In the wild: used in agentic intrusions reported by Wiz, and relied on in a FortiGate-focused MCP campaign before the operators moved to custom tooling

  • Not to be confused with: the unrelated Operation HEXSTRIKE npm supply-chain malware, which only shares the name

How it works

An MCP server that runs the tools

HexStrike turns an LLM into an operator. The agent receives a goal, decides which of the 150-plus wired tools to run, calls them through the MCP server, reads the output, and iterates. There is no human typing each command and no graphical console, which is exactly why the usual console fingerprints do not apply here. The server is a programmatic endpoint, so the signal is the endpoint itself and the files operators leave around it.

Hunt.io C2 listing of live HexStrike AI servers, all on port 8888Figure 01. Live HexStrike AI servers in Hunt.io. Every host answers on the FastMCP default port 8888, spread across many countries.

Because there is no certificate or title, the hunt leans on two things: the MCP server on its default port, and the staging directories operators forget to lock down. For background on how frameworks like this are operated, see Hunt.io's primer on C2 frameworks.

Live servers

HexStrike AI IOC feed: live servers

Hunt.io carries HexStrike AI as its own family in the C2 infrastructure feed. As of — the feed holds — unique exposed servers seen over the trailing 30 days. Each one is a detected MCP server running the framework, which makes it a host to look into, not a confirmed attacker.

A footprint this size is a deployment count, not a target list. Most of these are people running an open-source tool, so the dual-use caveat matters more here, not less. The count tells a defender where the exposure sits, and the port and the open directories are how you confirm a given host.

In the wild

HexStrike AI in agentic-attack reporting

HexStrike turns up across the recent agentic-attack coverage. These are distinct write-ups, one per source, newest first:

The indicators from this reporting can be checked against the same data in IOC Hunter.

HuntSQL

Finding HexStrike AI by port and open directory

With no certificate or title to match, the first filter is the MCP server on its default port. Group the live family by port in HuntSQL:

group results
SELECT port, uniq(ip) AS servers
FROM malware
WHERE malware.name = 'HexStrike AI'
  AND is_active = true
GROUP BY port
ORDER BY servers DESC

Output example:

HuntSQL results showing HexStrike AI servers concentrated on port 8888Figure 02. HexStrike AI servers by port. The FastMCP default 8888 carries the large majority, with a thin tail on other ports.

Port 8888 is a starting point, not a verdict, since plenty of unrelated services use it. The stronger signal is the staging. Operators regularly leave the HexStrike kit in an open directory, so a filename search finds servers the port query cannot confirm on its own:

list the active servers, newest first
SELECT file_url, file_name, hostname, timestamp
FROM open_directory_filenames
WHERE file_name LIKE '%hexstrike%'
ORDER BY timestamp DESC

Every hit there carries a hexstrike filename, so the results are framework-specific rather than noisy.

Hunting

Running down a HexStrike AI host

The open directories are where confirmation and context come together. A staged HexStrike host typically exposes the kit itself, the server scripts such as hexstrike_server.py and hexstrike_mcp.py, the MCP configuration, a requirements file, and runtime logs, and sometimes an environment or files directory alongside them. The serious finds are the accidents: an exposed .git directory leaks the full commit history, which often carries configuration and secrets the operator assumed were local, and on at least one past host the server left its own API key file readable.

AttackCapture code search for a HexStrike host, showing the exposed runtime log and the operator shell history with the git clone and setup commandsFigure 03. A HexStrike host in AttackCapture. The runtime log and the operator's shell history are both readable, showing the kit cloned from its public repo and set up on the box.

When you find a host leaking a live secret, treat it as a disclosure to the host owner first, not a published indicator. From a confirmed server you pivot the normal way: enumerate the other open ports, check for a second framework on the same box, and look at co-located tooling, because an agentic operator rarely runs one framework alone.

Questions

HexStrike AI FAQ

Is HexStrike AI malware?

No. It is an open-source offensive-security framework, a dual-use MCP server used for red-team automation. It is tracked here because it has appeared in real intrusions, so an exposed server deserves a look even though the framework itself is a tool.

What port does HexStrike AI use?

The FastMCP server defaults to 8888, and the large majority of live servers answer there, with a small share on other ports. The port is a filter, not a confirmation, because many unrelated services also use 8888.

How do you detect HexStrike AI?

There is no certificate or title to match, since the control plane is a JSON API, so the hunt is the MCP server on 8888 plus open directories where operators stage the kit. A filename search for hexstrike in exposed directories is the framework-specific signal.

Is HexStrike AI the same as Operation HEXSTRIKE?

No. Operation HEXSTRIKE was an unrelated npm supply-chain attack that used a malicious package named HEXSTRIKE against a cryptocurrency exchange. It shares the name with HexStrike AI, the open-source MCP framework, but the two are different things, which is worth keeping straight when reading older reporting.

Does a detected HexStrike AI server mean an attack is under way?

Not on its own. It means the framework is running on that host. A researcher or a red team can run the same server, so the open directory, the co-located tooling, and any leaked artifacts are what separate a lab from an operation.

Who runs HexStrike AI?

No single group. It is an open-source project with a wide user base, and public reporting ties specific deployments to unrelated operators, including a FortiGate-focused campaign. A detected server says the framework is present on that host; who is behind it takes the pivots above.