Skip to main content
rule CX Codex

tool_profile · jdarmy, stowaway — Claude Code rule: Stowaway profile for agents

tool_profile — a Claude rule that profiles Stowaway: what the Go multi-hop proxy is built from, how it compiles, and which traces it leaves on a host.

MIT ★ 336 updated 2026-04-09

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/tool_profile.md
Open on GitHub

What tool_profile does

The rule tool_profile.md hands a Claude agent a written profile of Stowaway, a Go multi-hop proxy that chains traffic through several nodes into an internal network. It separates the tool into admin, the operator console, and agent, the node planted on a target host, then goes through what the pair can do: multi-level SOCKS5, a remote shell, port forwarding, SSH tunnels, node reconnection.

What a defender gets is the detection block: process names stowaway_admin and stowaway_agent, flags such as --socks5-proxy and --tls-enable, protocol markers like IAMADMINXD and IAMNEWHERE, plus the startup log lines. Traffic runs under AES-256-GCM or TLS, so a review leans on those names and strings. Compiling from source uses the project Makefile with -trimpath -ldflags "-w -s", and Go 1.13+ is required.

What it helps with

  • map the admin and agent halves of Stowaway before you touch a host
  • spot the binary names and log lines that give a running agent away
  • build per-platform binaries with the project Makefile
  • explain which CLI flags a multi-hop proxy leaves in the process list

Example prompts for the agent

  • Using the tool_profile notes, tell me which protocol strings leak Stowaway on the wire.
  • Build Stowaway for Linux and macOS with the flags from the profile.
  • What separates the admin console from an agent node?

How to install tool_profile

Manually: put the files in place

.claude/rules/tool_profile.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about tool_profile

How do I install tool_profile in Claude Code?

Copy the rule file into your project at .claude/rules/tool_profile.md, and Claude picks it up as a project rule.

What does tool_profile do?

It describes Stowaway to the agent: the admin and agent components, their feature set, network markers and build steps. The agent answers questions about the tool from that description.

What is needed to build Stowaway?

Go 1.13+ and the project Makefile. The build runs with -trimpath -ldflags "-w -s" and writes binaries into release/.

Source text

tool_profile.md · MIT
# Tool Profile: Stowaway

## Basic Information

| Attribute | Value |
|-----------|-------|
| Name | Stowaway |
| Original Name | Stowaway |
| Language | Go (Golang) |
| Version | go 1.13+ |
| Type | Multi-hop Proxy / Pivoting Tool |
| Open Source | Yes |
| Source URL | https://github.com/ph4ntonn/Stowaway |
| Author | ph4ntonn |
| License | MIT |

## Description

Stowaway is a multi-hop proxy tool written in Go, designed for penetration testers. It allows users to proxy external traffic through multiple nodes into internal networks, bypassing network access restrictions and constructing a tree-like node network.

## Components

| Component | File | Description |
|-----------|------|-------------|
| Admin | `admin/admin.go`, `admin/admin_win.go` | Controller interface used by penetration testers |
| Agent | `agent/agent.go` | Controlled node deployed on target systems |

## Features

- Multi-level SOCKS5 proxy (TCP/UDP, IPv4/IPv6)
- Remote shell access
- File upload/download
- Port forwarding (local/remote)
- SSH tunneling
- Port reuse (SO_REUSEPORT, SO_REUSEADDR, iptables)
- Node reconnection
- Traffic encryption (AES-256-GCM, TLS)
- Multiple protocol support (TCP, HTTP, WebSocket)
- Cross-platform (Linux, Windows, macOS, MIPS, ARM, FreeBSD)

## Network Behavior

| Feature | Details |
|---------|---------|
| Default Ports | User-defined via `-l` or `-c` |
| Protocols | TCP, HTTP, WebSocket |
| Encryption | AES-256-GCM, TLS |
| Proxy Support | SOCKS5, HTTP proxy |

## Process Behavior

| Feature | Details |
|---------|---------|
| Process Names | `stowaway_admin`, `stowaway_agent` |
| CLI Arguments | `-l`, `-c`, `-s`, `--socks5-proxy`, `--http-proxy`, `--reconnect`, `--up`, `--down`, `--tls-enable` |

## File Behavior

| Feature | Details |
|---------|---------|
| Output Files | None (in-memory operations) |
| Config Files | None (CLI-based configuration) |

## String Constants

### Protocol Identifiers
- `IAMADMINXD` - Admin UUID identifier
- `IAMNEWHERE` - Temporary UUID for new connections
- `THEREISNOROUTE` - Temporary route identifier

### Log Messages
- `[*] Starting admin node on port`
- `[*] Starting agent node`
- `[*] Waiting for new connection`
- `[*] Trying to connect node actively`

## Build System

- Build tool: Go (Makefile)
- Build flags: `-trimpath -ldflags "-w -s"`
- Output: Multiple platform binaries in `release/` directory

## Detection Vectors

1. **Binary Names**: `stowaway_admin`, `stowaway_agent`
2. **CLI Arguments**: `-s`, `--socks5-proxy`, `--http-proxy`, `--reconnect`, `--tls-enable`
3. **Protocol Strings**: UUID identifiers in network traffic
4. **Log Messages**: Startup and connection messages
5. **Import Paths**: `Stowaway/` module path in Go binaries

© JDArmy · MIT · JDArmy/Evasion-SubAgents

Similar IDE rules

All IDE rules for Security →

tool_profile by other authors comes first.

tool_profile JDArmy tool_profile is a Claude Code rule about SharpHound, the data collector used by BloodHound. It applies to questions about Active Directory collection, the tool’s build, and detection. CX Codex +1 ★ 336repo stars burpsuite-mcp-bridge BurpSuite MCP Bridge burpsuite-mcp-bridge is a Claude Code plugin that connects Burp Suite workflows over MCP to search traffic, replay requests with bounded changes, and export evidence. CX Codex ★ 1,596repo stars flowdriver-covert-transport reason-machines flowdriver-covert-transport routes SOCKS5 traffic through Google Drive API calls so it survives DPI and SNI filtering. Useful on networks where a normal proxy gets blocked. CX Codex +1 317installs dominion-observatory vdineshk dominion-observatory assesses MCP server reliability scores and generates regulatory attestation receipts before agent calls. CX Codex +1 3,460installs coi-profile coipond This skill creates, edits, and validates Coi profiles that define sandbox images, AI tools, resource limits, mounts, networking, and security. CX Codex +1 ★ 790repo stars crabtrap-llm-proxy reason-machines crabtrap-llm-proxy guides setup of CrabTrap forward proxy to intercept agent HTTP requests, evaluating outbound traffic against static rules and an LLM judge before reaching remote APIs. CX Codex +1 365installs find-security-vulnerabilities-in-code usestrix find-security-vulnerabilities-in-code is a Claude Code skill for white-box code security reviews that confirms each finding with a working proof-of-concept. CX Codex +1 17,400installs

From the same set22

The whole set →
tool_profile tool_profile is a Claude Code rule about SharpHound, the data collector used by BloodHound. It applies to questions about Active Directory collection, the tool’s build, and detection. CX Codex +1 ★ 336repo stars c2_evasion c2_evasion examines C2 framework source code, locates detection rules (YARA, Sigma), and suggests modifications to bypass signatures. Takes a path to the source as an argument. CX Codex +1 ★ 336repo stars loader_generate loader_generate spawns an agent to assemble and compile C, C++, or Rust shellcode loaders from a techniques knowledge base. CX Codex +1 ★ 336repo stars rule_inventory The rule_inventory rule catalogues YARA indicators for Stowaway, including binary names, strings, paths, command-line patterns, and hashes. Use it when checking samples for those indicators. CX Codex +1 ★ 336repo stars rule_mapping rule_mapping is a Claude Code rule that analyzes YARA and Sigma signatures for AdaptixC2. It helps assess which signatures are outdated during detection rule reviews. CX Codex +1 ★ 336repo stars tools_evasion The tools_evasion command examines a penetration-testing tool, gathers detection rules, then changes its source code to avoid those rules. It is intended for authorized security work. CX Codex +1 ★ 336repo stars rule_inventory A rule file that gives the agent an inventory of SharpHound detections: three YARA rules, one Sigma rule, pattern tables and a difficulty rating for each. CX Codex +1 ★ 336repo stars hex_analysis hex_analysis — a rule file that explains YARA hex signatures for AdaptixC2: which instruction produced each one and which compiler flag moves those bytes. CX Codex +1 ★ 336repo stars

Project sponsors

Companies that keep this analytics open