cstrien/skills_dior/11211-memcache
Claude Code and agent skill by cstrien/skills_dior
- community
Checking that the SKILL.md file is still in the repository.
How to enumerate and extract data from exposed Memcache instances. Use this skill whenever you need to test Memcache security, enumerate cached data, extract keys/values, or assess Memcache vulnerabilities on port 11211. Trigger this for any Memcache-related security testing, data exfiltration from caches, or when you discover an open 11211 port during reconnaissance.
Install
npx vskill@latest install cstrien/skills_dior/11211-memcacheSKILL.md
The same SKILL.md was published earlier as cstrien/skills_dior/11211-memcache.
Memcache Pentesting
Memcache is a distributed memory caching system often exposed without authentication. This skill guides you through enumerating and extracting data from Memcache instances.
Quick Start
Enumeration Workflow
Step 1: Initial Reconnaissance
Start by checking if Memcache is accessible and gathering basic information:
Step 2: Identify Active Slabs
From stats slabs output, identify slabs with active items > 0. These contain cached data.
Step 3: Dump Keys from Active Slabs
For each active slab class, dump the keys:
Step 4: Extract Data
Once you have key names, retrieve the actual data:
Automated Tools
Using libmemcached-tools
Using Metasploit
Using Nmap
Key Concepts
Slab Classes
Memcache organizes data into slab classes based on item size. Each slab class has:
- chunk size: Size of each item slot
- perslab: Number of chunks per slab
- active: Number of currently used chunks
- get_hits/misses: Cache efficiency metrics
Important Limitations
- 1MB Data Limit: Prior to Memcache 1.4, objects larger than 1MB cannot be stored
- Timeout Maximum: Never set timeout > 2592000 seconds (30 days), or Memcache treats it as a Unix timestamp
- Cachedump Limit: Only 1MB of keys can be dumped per slab class
- No Authentication: Most instances are exposed without authentication
- Ephemeral Data: Cache data may appear and disappear as it's evicted
Common Use Cases
Finding Sensitive Data
Look for keys containing:
- Session tokens
- API keys
- Database credentials
- User data
- Configuration values
Assessing Cache Efficiency
From stats items output:
- High
evictedcount indicates memory pressure get_hitsvsget_missesratio shows cache effectivenessexpiredcount shows data lifecycle
Troubleshooting
Keys Disappearing
If keys disappear after incr operations, they may have overflowed. Recreate them with add or set.
Connection Issues
Large Datasets
For datasets larger than 1MB per slab:
- Use
peeptool (warning: may freeze Memcache in production) - Use
lru_crawler metadump allfor Memcache 1.4.31+ - Iterate through slab classes manually
Shodan Queries
For finding exposed Memcache instances:
Security Considerations
- Authorization: Only test systems you have permission to assess
- Data Sensitivity: Cached data may contain PII, credentials, or sensitive information
- Production Impact: Some tools (like
peep) can freeze Memcache processes - Compliance: Ensure testing complies with organizational policies and regulations
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/11211-memcache/11211-memcache/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/11211-memcache)