# Hackthebox

> Hackthebox is an open-source agent skill for security. Guides an agent through HackTheBox challenges, machines and CTF flag capture. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/hackthebox
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** hackthebox
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill points an agent at the HackTheBox platform so it can work through challenges, machines and capture-the-flag competitions. It reads a workflow reference that covers credentials, VPN checks, machine startup, network checks and the sequence of steps for each target, and it can use an API token when one is available or fall back to logging in through a browser automation tool.

The work is split across subagents. The main session creates a working folder per challenge with subfolders for recon, findings, logs, artifacts, tools and reports, then hands each target to a coordinator subagent that runs the attack workflow in the background with a limit on concurrent agents. Once a coordinator returns, the parent session handles completion reporting and notifications. The skill also references guides on platform navigation, anti-bot handling and VPN pool routing.

It expects a HackTheBox account with credentials supplied through environment variables, a Python 3 environment for the credential reader, and, for machine-type competitions, an active VPN connection. The skill ships no scripts of its own in its folder.

## When your agent uses it

> HackTheBox platform operations and automations to solve challenges, machines and capture the flags hacking competitions

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/hackthebox)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/hackthebox)

## Features

- **Credential retrieval:** Reads HackTheBox login and token values from the environment before any platform action.
- **VPN and machine checks:** Verifies VPN connectivity and checks network reachability before machines are started or attacked.
- **Per-challenge output folders:** Creates a structured directory for recon, findings, logs, artifacts, tools and reports for each challenge.
- **Coordinator subagent spawning:** Launches background coordinator agents per target with queue-based concurrency limits.
- **Completion reporting:** Produces a challenge completion report and a Slack notification after each coordinator finishes.
- **Platform navigation guide:** Includes reference notes for moving around the HackTheBox site and handling login forms.

## Good for

- Solve a HackTheBox machine from start to finish
- Start a HackTheBox machine and check it is reachable over VPN
- Work through a set of CTF challenges and capture the flags
- Write a completion report for a solved HackTheBox challenge

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/hackthebox` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/hackthebox &&
cp -R "$tmp/skills/hackthebox" ~/.claude/skills/hackthebox &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/hackthebox` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/hackthebox` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/hackthebox &&
cp -R "$tmp/skills/hackthebox" ~/.agents/skills/hackthebox &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/hackthebox` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/hackthebox` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/hackthebox &&
cp -R "$tmp/skills/hackthebox" ~/.cursor/skills/hackthebox &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/hackthebox` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/hackthebox
```

Or copy the folder to `~/.gemini/skills/hackthebox` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/hackthebox`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/hackthebox &&
cp -R "$tmp/skills/hackthebox" ~/.copilot/skills/hackthebox &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/hackthebox` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/hackthebox` into your agent's skills folder as `hackthebox`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What credentials does Hackthebox need?

It reads HTB_USER, HTB_PASS and HTB_TOKEN, plus ANTHROPIC_API_KEY, SLACK_BOT_TOKEN and HTB_SLACK_CHANNEL_ID, through an environment reader script.

### Does Hackthebox need a VPN?

Only for machine-type competitions. It checks whether the VPN is running and otherwise downloads the VPN file and explains how to enable it.

### Does Hackthebox change anything on my machine?

It creates challenge output folders in the working directory and uses subagents to run the attack workflow.

### How do I install Hackthebox in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/hackthebox to use it in all your projects, or to .claude/skills/hackthebox in one project.

### Does Hackthebox run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Hackthebox?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Hackthebox?

The closest alternatives to Hackthebox are Coordination, Awesome hacking resources, Hackerone, System and Authentication.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Coordination](https://ai-powered.com/skills/coordination): Coordination is an open-source agent skill for security.
- [Awesome hacking resources](https://ai-powered.com/skills/awesome-hacking-resources): Awesome hacking resources is an open-source agent skill for security.
- [Hackerone](https://ai-powered.com/skills/hackerone): Hackerone is an open-source agent skill for security.
- [System](https://ai-powered.com/skills/system): System is an open-source agent skill for security.
- [Authentication](https://ai-powered.com/skills/authentication): Authentication is an open-source agent skill for security.
- [Server side](https://ai-powered.com/skills/server-side): Server side is an open-source agent skill for security.
- [Infrastructure](https://ai-powered.com/skills/infrastructure): Infrastructure is an open-source agent skill for security.
- [Reconnaissance](https://ai-powered.com/skills/reconnaissance): Reconnaissance is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/hackthebox
