cstrien/skills_dior/4369-pentesting-erlang-port-mapper-daemon-epmd
Claude Code and agent skill by cstrien/skills_dior
- community
Checking that the SKILL.md file is still in the repository.
Pentest Erlang Port Mapper Daemon (epmd) on port 4369. Use this skill whenever you need to enumerate, assess, or exploit epmd services during security assessments. Trigger this when you see port 4369 open, when working with RabbitMQ or CouchDB installations, when you need to extract Erlang node information, or when attempting cookie-based RCE attacks. Don't forget to use this for any epmd-related reconnaissance or exploitation tasks.
Install
npx vskill@latest install cstrien/skills_dior/4369-pentesting-erlang-port-mapper-daemon-epmdSKILL.md
The same SKILL.md was published earlier as cstrien/skills_dior/4369-pentesting-erlang-port-mapper-daemon-epmd.
EPMD Pentesting Skill
This skill helps you enumerate and exploit the Erlang Port Mapper Daemon (epmd) service, commonly found on port 4369 in RabbitMQ and CouchDB installations.
When to Use This Skill
- Port 4369 is open during network scanning
- You're assessing RabbitMQ or CouchDB infrastructure
- You need to enumerate Erlang node names and ports
- You have access to an Erlang cookie and want to attempt RCE
- You're doing distributed Erlang security assessments
Enumeration
Quick Manual Check
Send a raw EPMD query to verify the service is responding:
This sends a name query (0x6e = 'n') to the EPMD daemon. A response indicates the service is active.
Nmap Enumeration
Use Nmap's epmd-info script for comprehensive enumeration:
This reveals:
- EPMD port number
- All registered Erlang nodes
- Port mappings for each node
Example output:
Erlang Client Enumeration
If you have Erlang installed, you can query node names directly:
This returns the listening addresses for the target host.
Erlang Cookie RCE
The Erlang cookie is the authentication mechanism for distributed Erlang. If you can obtain it, you can execute arbitrary code on the target.
Cookie Location
The cookie is typically stored in:
~/.erlang.cookieon the target system- Generated as a random 20-character string [A-Z] on first Erlang start
- May be configured manually in some deployments
Remote Code Execution
Once you have the cookie, connect remotely:
This opens an Erlang shell on the remote system. Execute commands:
Local Privilege Escalation (CouchDB)
If you're already on the system and have the cookie, abuse CouchDB for privilege escalation:
Then execute commands via RPC:
Metasploit Exploitation
Metasploit has a module for Erlang cookie RCE:
Cookie Discovery Techniques
Brute Force
If the cookie is weak or predictable, you can attempt brute force:
- Use epmd_bf tool (available from security research sources)
- Try common default cookies
- Check for cookies in configuration files
- Look for cookies in environment variables
Information Gathering
Check these locations for exposed cookies:
/etc/rabbitmq/erlang.cookie/var/lib/rabbitmq/.erlang.cookie/opt/couchdb/etc/vm.args- Application configuration files
- Environment variables in process listings
Shodan Reconnaissance
Find exposed EPMD services on the internet:
This can help identify:
- Internet-facing EPMD instances
- Potential targets for assessment
- Misconfigured services
Safety and Legal Considerations
- Only test systems you have explicit authorization to assess
- EPMD exploitation can cause service disruption
- Document all findings and coordinate with system owners
- Follow responsible disclosure practices
Practice Environment
The Canape HTB machine provides a safe environment to practice EPMD exploitation techniques.
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingnetwork-services-pentesting/4369-pentesting-erlang-port-mapper-daemon-epmd/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cstrien/skills_dior/4369-pentesting-erlang-port-mapper-daemon-epmd)