nosql-injection
Skill by Zyrexnn
Describes NoSQL injection techniques for MongoDB, CouchDB and Redis, with payloads and a testing checklist. It is written for security testers who already know SQL injection.
Install nosql-injection
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Zyrexnn/Cybermes /tmp/Cybermes && mkdir -p ~/.claude/skills && cp -r /tmp/Cybermes/skills/nosql-injection ~/.claude/skills/nosql-injectionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Zyrexnn/Cybermes /tmp/Cybermes && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Cybermes/skills/nosql-injection ~/.gemini/antigravity-cli/skills/nosql-injectionAntigravity 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 is an attack playbook for NoSQL injection. It explains how MongoDB query operators such as $ne, $gt and $regex can change query logic when user input is passed as an object instead of a string. It includes example login bypass payloads for JSON and form-encoded requests, a blind extraction method using $regex, and notes on $where JavaScript injection and aggregation pipeline injection.
The playbook also covers unauthenticated CouchDB and Redis exposure, detection payloads, and a testing checklist. It is aimed at penetration testers and security reviewers who want to check whether a backend accepts operator objects in its queries.
Written from the project's SKILL.md and checked against it.
What it can do
- Operator injection overviewExplains how query operator objects differ from SQL string injection in MongoDB.
- Login bypass payloadsLists JSON and URL-encoded examples that use $ne, $gt and $regex to test authentication.
- Blind extraction with $regexDescribes character-by-character extraction of field values using a boolean response oracle.
- $where injectionCovers server-side JavaScript injection in $where, including timing-based checks.
- Aggregation pipeline injectionShows how user input in $match, $lookup and $out stages can be abused.
- CouchDB and Redis checksLists exposed admin API and unauthenticated Redis checks on ports 5984 and 6379.
- Detection payloads and checklistProvides test strings and a checklist for reviewing NoSQL-backed inputs.
Try asking
- Give me a checklist for testing a login form for MongoDB operator injection.
- Explain how $regex can be used for blind extraction of a password field.
- List the detection payloads I should send to a search endpoint for NoSQL injection.
Good to know
- The source states that $where does not give OS command execution, though older MongoDB builds raised RCE concerns.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/nosql-injection/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to nosql-injection
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
nosql-injection: common questions
What is NoSQL injection according to this playbook?
The playbook describes it as injecting query operators, such as $ne or $gt, that change query logic. It differs from SQL injection, which breaks out of string literals.
Which databases does this skill cover?
It covers MongoDB in most depth, along with CouchDB HTTP admin exposure and unauthenticated Redis access.
Can $where be used to run operating system commands?
The source says $where does not give OS command execution. It notes that older MongoDB builds without a tight V8 sandbox historically raised RCE concerns.
How do I install nosql-injection?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is nosql-injection free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is nosql-injection safe to use?
It scores 81 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 nosql-injection?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
