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
.claude/rules/rule_inventory.mdWhat 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_inventoryin this sample.
How to install rule_inventory
Manually: put the files in place
.claude/rules/rule_inventory.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/rule_inventory.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/rule_inventory.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/rule_inventory.mdManually: put the files in place
.clinerules/rule_inventory.mdStep 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.