redis-webroot-rce
Skill by m-sec-org
Redis unauthorized access attack chain skill that guides an AI assistant from writing a PHP page to the web root through to command execution, then moving control to NPS. It is aimed at security testers working on Windows or Linux targets that expose Redis on port 6379.
Install redis-webroot-rce
Built from the published package, never by AI.
git clone --depth 1 https://github.com/m-sec-org/BreachWeave /tmp/BreachWeave && mkdir -p ~/.claude/skills && cp -r /tmp/BreachWeave/packages/core/src/config/skills/builtin/redis-webroot-rce ~/.claude/skills/redis-webroot-rceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/m-sec-org/BreachWeave /tmp/BreachWeave && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/BreachWeave/packages/core/src/config/skills/builtin/redis-webroot-rce ~/.gemini/antigravity-cli/skills/redis-webroot-rceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers one attack chain: unauthorized Redis access, writing a file into the web root, a minimal PHP check page, command execution, and then handing control to NPS. It sets a fixed order of steps, using redis-cli CONFIG SET, SAVE and HTTP POST checks to confirm each stage before moving on. It also requires a diagnostic page to check PHP's disable_functions setting before a system() page is deployed.
It is aimed at security testers who already have an upstream jump host with an NPS channel and a mapped HTTP port. The skill says to avoid overwriting index files or running FLUSHALL or FLUSHDB without explicit user consent, and to switch to NPS once a stable whoami result is confirmed. It points to nps-operator for tunnels and intranet-pentest for later lateral movement.
Written from the project's SKILL.md and checked against it.
What it can do
- Baseline checkConfirms Redis version, operating system, dir and dbfilename, and whether the HTTP root responds.
- Minimal PHP closure testWrites a test page with a separate filename and checks for an RCOK response to a POST request.
- Environment diagnosisDeploys a diagnostic page to check disable_functions and COM availability before choosing an execution method.
- Command execution pageDeploys a system() page for running commands, with a fixed Windows verification sequence.
- NPS handoffDownloads npc through the upstream host and starts it with wmic once a stable whoami result is confirmed.
What you need
- Redis reachable on port 6379, mapped through an upstream jump host
- Web service reachable on an HTTP port, such as 80
- redis-cli available in the execution environment
- Upstream jump host with an NPS channel
- Windows (Apache/PHP/phpStudy preferred) or Linux web root
Try asking
- Use redis-webroot-rce to check whether Redis on my mapped port can write to the web root.
- Run the Redis webroot closure test with the diagnostic step before deploying a command page.
- Once whoami works through the web shell, walk me through handing control to NPS.
Good to know
- Requires Redis and the web port to be reachable before the chain starts.
- Skill steers away from overwriting index files or flushing Redis without explicit user consent.
- Preferred scenario is Windows with Apache/PHP, though Linux web roots are also mentioned.
- Not applicable when the user has forbidden writing files to the target.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/core/src/config/skills/builtin/redis-webroot-rce/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to redis-webroot-rce
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
redis-webroot-rce: common questions
What does the redis-webroot-rce skill do?
It guides an assistant through writing a PHP page to a web root via unauthorized Redis access, getting command execution, and then moving control to NPS.
When should this skill be used instead of a generic web exploit?
The source says to prefer it when the user mentions Redis, port 6379, unauthorized file output, or writing a webshell, especially when an upstream jump host and NPS channel already exist.
Does the skill overwrite existing site files?
No. The source says not to overwrite index files or existing business files by default, and not to run FLUSHALL or FLUSHDB without user consent.
How do I install redis-webroot-rce?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is redis-webroot-rce free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is redis-webroot-rce safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to redis-webroot-rce?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
