| name | bitcoin-node-pentesting |
| description | How to enumerate and assess Bitcoin nodes during security assessments. Use this skill whenever the user mentions Bitcoin nodes, cryptocurrency pentesting, ports 8333/18333/38333/18444, or wants to enumerate Bitcoin network infrastructure. This skill covers mainnet, testnet, signet, and regtest Bitcoin node enumeration using Nmap scripts and Shodan queries. |
Bitcoin Node Pentesting
A skill for enumerating and assessing Bitcoin nodes during security assessments.
When to Use This Skill
Use this skill when:
- You need to enumerate Bitcoin nodes on a target network
- You're assessing cryptocurrency infrastructure security
- You encounter open ports 8333, 18333, 38333, or 18444
- You want to gather information about Bitcoin network nodes
- You're performing reconnaissance on Bitcoin-related services
Bitcoin Network Ports
| Port | Network | Description |
|---|
| 8333 | Mainnet | Production Bitcoin network |
| 18333 | Testnet | Bitcoin test network |
| 38333 | Signet | Bitcoin signet (alternative testnet) |
| 18444 | Regtest | Local/regtest Bitcoin network |
Enumeration Methods
Method 1: Nmap Bitcoin Scripts
Nmap includes specialized scripts for Bitcoin node enumeration. These scripts communicate with the node as if you were another valid Bitcoin node.
Get Basic Node Information
sudo nmap -p 8333 --script bitcoin-info <target-ip>
sudo nmap -p 18333 --script bitcoin-info <target-ip>
sudo nmap -p 38333 --script bitcoin-info <target-ip>
sudo nmap -p 18444 --script bitcoin-info <target-ip>
What this reveals:
- Timestamp of the node
- Network type (main/test/signet/regtest)
- Bitcoin Core version
- Node ID
- Last block height
- User agent string
Get Known Peer Addresses
sudo nmap -p 8333 --script bitcoin-getaddr <target-ip>
What this reveals:
- IP addresses of other Bitcoin nodes
- Timestamps for each peer
- Can help map the Bitcoin network topology
Method 2: Shodan Queries
Use Shodan to discover Bitcoin nodes on the internet.
Basic Queries
port:8333 bitcoin
User-Agent: /Satoshi
port:8333 "Satoshi"
Advanced Queries
port:8333 "Satoshi:0.19.1/"
port:8333 country:US
port:8333 "Satoshi:24.0/"
Example Workflow
Step 1: Identify Bitcoin Nodes
nmap -p 8333,18333,38333,18444 <target-ip>
Step 2: Enumerate Node Information
sudo nmap -p 8333 --script bitcoin-info <target-ip>
Step 3: Map Network Topology
sudo nmap -p 8333 --script bitcoin-getaddr <target-ip>
Step 4: Document Findings
Record:
- Node version and software
- Network type (mainnet/testnet/signet/regtest)
- Last block height (indicates sync status)
- Known peers (for network mapping)
- Any unusual configurations
Important Notes
- Permission Required: Always ensure you have authorization before scanning Bitcoin nodes
- Network Impact: Enumeration queries are lightweight but can add minimal load
- Version Detection: User agent strings reveal Bitcoin Core versions which may have known vulnerabilities
- Network Mapping: bitcoin-getaddr can reveal other nodes in the network
- Test Networks: Testnet (18333) and signet (38333) are safe for testing; mainnet (8333) should only be scanned with permission
Common Use Cases
- Security Assessment: Identify outdated Bitcoin Core versions with known vulnerabilities
- Network Discovery: Map Bitcoin node infrastructure in a target environment
- Compliance Audit: Verify Bitcoin node configurations meet security requirements
- Research: Study Bitcoin network topology and node distribution
Output Format
When documenting Bitcoin node enumeration results, use this structure:
## Bitcoin Node Assessment
### Target: <IP/Hostname>
**Port:** 8333 (mainnet)
**Status:** Open
### Node Information
- **Version:** <Bitcoin Core version>
- **Network:** <mainnet/testnet/signet/regtest>
- **Node ID:** <hex identifier>
- **Last Block:** <block height>
- **User Agent:** <full user agent string>
### Known Peers
- <peer IP>:8333
- <peer IP>:8333
- ...
### Security Observations
- <any relevant findings>
Related Skills
- Network enumeration skills for other cryptocurrency protocols
- Nmap scripting for service enumeration
- Shodan reconnaissance techniques