metasploit-cursor-harness: Skill for Cursor

.cursor/skills/nosql-injection-pentest/SKILL.md

nosql-injection-pentest is a skill for Cursor from Suzu-Testing/metasploit-cursor-harness. It costs 63 tokens per session (1,889 once invoked), scanned A, original, MIT.

A guide for testing NoSQL injection, a web-application flaw where crafted query values change database commands, against systems using databases such as MongoDB. It includes checks for login bypass, hidden-data extraction, and JavaScript-based injection.

In plain words
What is it for?
For authorized web testing when JSON or form fields accept database operators such as $gt, $ne, or $regex, or when MongoDB, CouchDB, Redis, or Elasticsearch is involved.
Why use it?
It gives testers a structured way to recognize NoSQL-specific inputs and document evidence instead of relying only on ordinary SQL-injection checks.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is Suzu-Testing/metasploit-cursor-harness's own configuration. It tells Cursor how to work on metasploit-cursor-harness itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything metasploit-cursor-harness configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Suzu-Testing/metasploit-cursor-harness. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Suzu-Testing/metasploit-cursor-harness/main/.cursor/skills/nosql-injection-pentest/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Suzu-Testing/metasploit-cursor-harness

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nosql-injection-pentest

README.md
[![agentmods](https://agentmods.dev/badge/skills/suzu-testing/metasploit-cursor-harness/nosql-injection-pentest/github.svg)](https://agentmods.dev/skills/suzu-testing/metasploit-cursor-harness/nosql-injection-pentest)
Your own site
<a href="https://agentmods.dev/skills/suzu-testing/metasploit-cursor-harness/nosql-injection-pentest"><img src="https://agentmods.dev/badge/skills/suzu-testing/metasploit-cursor-harness/nosql-injection-pentest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nosql-injection-pentest

Your own site · 80×15
<a href="https://agentmods.dev/skills/suzu-testing/metasploit-cursor-harness/nosql-injection-pentest"><img src="https://agentmods.dev/badge/skills/suzu-testing/metasploit-cursor-harness/nosql-injection-pentest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,889 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01889
Opus 5 $0.00032 $0.00945
Sonnet 5 $0.00013 $0.00378
Haiku 4.5 $0.00006 $0.00189

Measured 11d ago against content hash 25ab98650a8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

nosql-injection-pentest scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLlowData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -X POST "http://<target>/login" -d "username[\$ne]=x&password[\$ne]=x"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST "http://<target>/login" -H "Content-Type: application/json" \
.cursor/skills/nosql-injection-pentest/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NoSQL Injection Pentest

Prerequisites

  • Target is in scope (scope/scope-master.txt, engagement ROE).
  • Load web-app-pentest for overall web testing context.

Triggers

  • MongoDB, CouchDB, Redis, or Elasticsearch backend identified
  • JSON login/search bodies accepting operator syntax ($gt, $ne, $regex)
  • URL-encoded params like username[$ne]=x&password[$ne]=x
  • NoSQL-related error messages in responses
  • Authentication bypass with unexpected empty or wildcard credentials

Workflow

Task Progress:
- [ ] Identify JSON or form parameters mapped to NoSQL queries
- [ ] Test authentication bypass with $ne, $gt, $regex, $expr operators
- [ ] Extract data via $regex blind injection or aggregation pipeline abuse
- [ ] If filtered, try duplicate key override and operator encoding
- [ ] Document with request/response evidence

Detection

Authentication bypass probes

CLI (primary for web vulns):

python3 nosqlmap.py -u "http://<target>/login" --postdata "username=admin&password=test"
curl -X POST "http://<target>/login" -H "Content-Type: application/json" \
  -d '{"username":{"$ne":null},"password":{"$ne":null}}'
curl -X POST "http://<target>/login" -d "username[\$ne]=x&password[\$ne]=x"

JSON: {"username":{"$ne":null},"password":{"$ne":null}} URL: username[$ne]=x&password[$ne]=x

MSF MCP:

msf_run_auxiliary_module(
  module_name="auxiliary/scanner/http/mongodb_login",
  engagement_id="<id>",
  options={"RHOSTS": "<target>", "RPORT": 27017, "USERNAME": "admin", "PASSWORD": "password", "DATABASE": "admin"}
)

Note: mongodb_login targets direct MongoDB port; for HTTP JSON injection use CLI primarily.

Exploitation by variant

Operator injection reference

Operator Effect
$ne Not equal (bypass auth)
$gt / $gte Greater than (match any non-empty)
$regex Pattern match (blind extraction)
$in Match any in array
$expr Aggregation expression in query
$where JavaScript execution (MongoDB)

Read the full file on GitHub · 214 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 214 lines · 63 tokens per session scan A 25ab98650a8c

Subscribe to this mod's changes

nosql-injection-pentest is a skill published in the GitHub repository Suzu-Testing/metasploit-cursor-harness (3 stars, last pushed 17d ago), licensed MIT. It adds 63 tokens to every session and 1,889 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

dbx

DBX CLI for database schema exploration and read-only queries. When the user needs to list connections, explore tables, describe schemas, run queries, or generate AI-friendly schema context from DBX-managed databases. Do NOT use for write operations unless the user explicitly confirms with --allow-writes.

t8y2/dbx · 61 tokens

azure-mgmt-mongodbatlas-dotnet

Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.

microsoft/skills · 64 tokens

nosqli

NoSQL injection — MongoDB operator injection ($ne, $gt, $where, $regex), CouchDB / Firebase / Redis attack patterns, auth bypass, blind extraction.

PurpleAILAB/Decepticon · 38 tokens

prisma-mongodb-upgrade

Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb"…

nitrocloudofficial/nitrostack · 95 tokens

byted-volcengine-mongodb

An operations tool for Volcengine MongoDB, a document database that stores data in flexible, JSON-like records. It can query managed MongoDB instances and return details for further explanation or diagnosis.

bytedance/agentkit-samples · 82 tokens

dynamic

Fullstack development with bkend.ai BaaS — authentication, database, API integration. Triggers: fullstack, BaaS, login, signup, database, web app.

ww-w-ai/bkit-claude-code · 38 tokens