Skip to main content
rule CX Codex

rule_inventory · jdarmy, stowaway — Claude Code rule for Stowaway detection

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.

MIT ★ 336 updated 2026-04-09

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

What rule_inventory does

rule_inventory describes indicators from a single YARA rule for Stowaway. It covers names such as stowaway_admin and stowaway_agent, author strings, file paths, and command-line patterns. Its condition is any of them, so a match on any listed pattern is sufficient.

The rule includes three SHA256 hashes and patterns such as ProxyStream.*Stowaway, --socks5-proxy, and python reuse.py --start --rhost --rport. The inventory contains no Sigma or network rules, so these indicators do not provide network-traffic detection. To add it to Claude Code, place .claude/rules/rule_inventory.md in the project.

What it helps with

  • find Stowaway binaries by name
  • compare a sample against three SHA256 hashes
  • search for Stowaway-specific strings and paths
  • check command-line arguments against YARA patterns

Example prompts for the agent

  • Check this sample for Stowaway indicators from rule_inventory.
  • Compare the file's strings and hash with rule_inventory.
  • Look for Stowaway paths and command-line patterns from rule_inventory in this sample.

How to install rule_inventory

Manually: put the files in place

.claude/rules/rule_inventory.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 rule_inventory

How do I install rule_inventory in Claude Code?

Add .claude/rules/rule_inventory.md to your Claude Code project.

What does rule_inventory do?

It describes YARA indicators for Stowaway, including filenames, strings, paths, command-line patterns, and SHA256 hashes. The any of them condition allows any listed pattern to trigger a match.

Does rule_inventory include Sigma or network rules?

No. The inventory describes one YARA rule and contains no Sigma or network rules for Stowaway.

Source text

rule_inventory.md · MIT
# Stowaway Rule Inventory

## Summary

| Type | Count | Sources |
|------|-------|---------|
| YARA | 1 | mthcht/ThreatHunting-Keywords-yara-rules |
| Sigma | 0 | - |
| Network | 0 | - |
| Other | 0 | - |

## YARA Rules

### 1. stowaway.yara (mthcht)

**Source:** https://github.com/mthcht/ThreatHunting-Keywords-yara-rules

**Detection Patterns:**

| Pattern ID | Type | Description | Category |
|------------|------|-------------|----------|
| $string1 | String | ` Author:ph4ntom` | Banner/Author |
| $string2 | Regex | CLI args pattern with `-c -s --proxy --proxyu --proxyp --reconnect` | CLI Arguments |
| $string3 | Regex | `ProxyStream.*Stowaway` | Internal string |
| $string4 | Regex | `/script/reuse.py` | Script path |
| $string5 | Regex | `/Stowaway.git` | Git path |
| $string6 | String | `/stowaway_admin` | Binary name |
| $string7 | String | `/stowaway_agent` | Binary name |
| $string8-11 | Regex | `/windows_x64_admin.exe`, `/windows_x64_agent.exe`, etc. | Binary names |
| $string12 | Regex | `\\mipsel_agent` | Binary name |
| $string13-15 | Regex | `\\Stowaway\\admin\\`, `\\Stowaway\\agent\\`, `\\Stowaway\\ansicon\\` | Directory paths |
| $string16-19 | Regex | `\\windows_x64_admin.exe`, etc. | Binary names (Windows) |
| $string20 | Regex | Log message pattern | Log output |
| $string21-23 | Hash | SHA256 hashes | Binary hashes |
| $string24 | Regex | CLI args pattern | CLI Arguments |
| $string25 | String | `ph4ntonn/Stowaway` | GitHub repo |
| $string26 | Regex | `python reuse.py --start --rhost --rport` | Script usage |
| $string27 | String | `release/mipsel_agent` | Build path |
| $string28-30 | String | `--socks5-proxy socks5`, etc. | CLI Arguments |
| $string31 | String | `'start/stop iptables port reuse'` | Functionality string |
| $string32 | String | `Stowaway/admin/process` | Go import path |

**Condition:** `any of them`

## Sigma Rules

No Sigma rules found for Stowaway.

## Network Rules

No network-based detection rules found.

## Hash-based Detection

The YARA rule includes 3 SHA256 hashes:
- `1df8bc4fb468ccc0fd85b553411d9b3eb7a2ba4c4a4469ae41913eef9a9e65f6`
- `a78d737f30e03d166d4e3e3b2dca71d54f1cbf582206dfe16a1e717ce3dc0ef7`
- `ac9215db682509ab2bdcba7fe924d84dafa1d8aade87172c1c6328b2cb6c9e52`

## Detection Categories

1. **Binary Names**: `stowaway_admin`, `stowaway_agent`, platform-specific names
2. **Author Strings**: `Author:ph4ntom`, `ph4ntonn/Stowaway`
3. **CLI Arguments**: `--socks5-proxy`, `--socks5-proxyu`, `--socks5-proxyp`, `--reconnect`
4. **Paths**: Build paths, Git paths, script paths
5. **Go Import Paths**: `Stowaway/admin/process`, `Stowaway/agent/`
6. **Log Messages**: Startup messages
7. **Binary Hashes**: Known sample hashes

© JDArmy · MIT · JDArmy/Evasion-SubAgents

Similar IDE rules

All IDE rules for Security →

rule_inventory by other authors comes first.

From the same set22

The whole set →
evasion_integrate evasion_integrate adds evasion techniques to a shellcode loader you already have: it edits the source, checks which tricks fit and builds the binary. CX Codex +1 ★ 336repo stars 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 tool_profile 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. 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

Project sponsors

Companies that keep this analytics open