Real-time AI agent detection and response (AIDR) for Cursor. Observes every prompt, tool call, shell command, MCP invocation, file read, and subagent — flags prompt injections, secret exfiltration, and destructive operations before they reach production.
One-line installer (recommended):
curl -fsSL https://raw.githubusercontent.com/qualifire-dev/rogue-plugin-cursor/main/install.sh | bashThe installer drops the plugin into ~/.cursor/plugins/local/rogue/, writes
credentials to ~/.rogue-env, and prepares hooks for the next Cursor restart.
Get an API key at https://app.rogue.security/settings/api-keys.
.cursor-plugin/marketplace.json — marketplace manifest
plugins/rogue/
.cursor-plugin/plugin.json — plugin manifest
hooks/hooks.json — every Cursor agent event wired
scripts/rogue-hook.py — dispatcher (single entry point)
scripts/setup.sh — credential storage helper
scripts/auto-update.sh — background 24h auto-updater
commands/setup.md — /rogue:setup
commands/status.md — /rogue:status
sessionStart, sessionEnd, beforeSubmitPrompt, preToolUse, postToolUse,
postToolUseFailure, beforeShellExecution, afterShellExecution,
beforeMCPExecution, afterMCPExecution, beforeReadFile, afterFileEdit,
afterAgentResponse, afterAgentThought, subagentStart, subagentStop,
stop, preCompact.
All hooks POST to https://api.rogue.security/api/v1/hooks/cursor (configurable
via ROGUE_BASE_URL).
Block UX is decided entirely by the server based on your org's Rogue Security configuration — the plugin has no client-side policy flags.
- Tool calls (
preToolUse,beforeShellExecution,beforeMCPExecution): server returnspermission: askorpermission: deny.askrenders as Cursor's native confirmation prompt;denyhard-blocks with a chat message. - Prompts (
beforeSubmitPrompt): server returnscontinue: false+ a message shown in the chat (Cursor doesn't support ask on prompts). - File reads / subagent starts: server returns
permission: denywith a chat message.
| Variable | Default | Purpose |
|---|---|---|
ROGUE_API_KEY |
— | Required. From https://app.rogue.security/settings/api-keys. |
ROGUE_ACTOR_EMAIL |
git config | Sent as x-rogue-actor-email header. |
ROGUE_ACTOR_NAME |
git config | Sent as x-rogue-actor-name. |
ROGUE_BASE_URL |
https://api.rogue.security |
API base URL. |
ROGUE_AUTO_UPDATE |
1 |
Set 0 to disable the background updater. |
ROGUE_PLUGIN_VERSION |
(unpinned) | Pin to a release tag (e.g. v1.0.0). |
Credentials live in ~/.rogue-env (mode 600), shared with the Claude plugin.
System-wide MDM can use /etc/rogue/env.
Prepend rgx! to any prompt to allow it through and mark the previous
detection as a false positive in your dashboard. Per-prompt only.
https://app.rogue.security/aidr
- Cursor v2026.x with plugin support
python3andcurlon PATH
Proprietary. © Qualifire, Inc.