cursor-secret-scan


Namecursor-secret-scan JSON
Version 0.1.14 PyPI version JSON
download
home_pageNone
SummarySecret scanning CLI for Cursor
upload_time2025-10-18 01:05:02
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseApache-2.0
keywords secrets security cursor hooks agent-security
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Cursor Secret Scan
==================

Secret scanning CLI for Cursor. Blocks or warns on common credentials (cloud, source control, payment, collaboration) using local regex matching.

![Cursor Secret Scan demo](https://github.com/mintmcp/agent-security/raw/main/assets/Cursor-Secret-Scan.gif)

Install
- pipx (recommended):
  - `pipx install cursor-secret-scan`
- pip (user):
  - `python3 -m pip install --user cursor-secret-scan`

Hook Setup (Cursor)
Add to `~/.cursor/hooks.json`:

```
{
  "version": 1,
  "hooks": {
    "beforeReadFile": [{"command": "cursor-secret-scan --mode=pre"}],
    "beforeSubmitPrompt": [{"command": "cursor-secret-scan --mode=pre"}]
  }
}
```

CLI Usage
- Pre mode (blocks on detection):
  - `echo '{"hook_event_name":"beforeSubmitPrompt","prompt":"hello"}' | cursor-secret-scan --mode=pre`
- Post mode (warns on detection):
  - `echo '{"hook_event_name":"afterShellExecution","stdout":"OPENAI_API_KEY=...T3BlbkFJ..."}' | cursor-secret-scan --mode=post`

How It Works
- Regex-based scanner implemented in this project.
- Reads only from hook JSON input or file paths provided by the hook.
- Binary-aware scanning with size limits; local-only execution.

Notes
- Pre hooks block; post hooks print warnings.

Links
- Source, docs, and examples: https://github.com/mintmcp/agent-security

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cursor-secret-scan",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "secrets, security, cursor, hooks, agent-security",
    "author": null,
    "author_email": "MintMCP <support@mintmcp.com>",
    "download_url": "https://files.pythonhosted.org/packages/ce/a6/dc90a1a5edb2007b9e90762d52765ea42936995b3e5af9d2f4bffada49c9/cursor_secret_scan-0.1.14.tar.gz",
    "platform": null,
    "description": "Cursor Secret Scan\n==================\n\nSecret scanning CLI for Cursor. Blocks or warns on common credentials (cloud, source control, payment, collaboration) using local regex matching.\n\n![Cursor Secret Scan demo](https://github.com/mintmcp/agent-security/raw/main/assets/Cursor-Secret-Scan.gif)\n\nInstall\n- pipx (recommended):\n  - `pipx install cursor-secret-scan`\n- pip (user):\n  - `python3 -m pip install --user cursor-secret-scan`\n\nHook Setup (Cursor)\nAdd to `~/.cursor/hooks.json`:\n\n```\n{\n  \"version\": 1,\n  \"hooks\": {\n    \"beforeReadFile\": [{\"command\": \"cursor-secret-scan --mode=pre\"}],\n    \"beforeSubmitPrompt\": [{\"command\": \"cursor-secret-scan --mode=pre\"}]\n  }\n}\n```\n\nCLI Usage\n- Pre mode (blocks on detection):\n  - `echo '{\"hook_event_name\":\"beforeSubmitPrompt\",\"prompt\":\"hello\"}' | cursor-secret-scan --mode=pre`\n- Post mode (warns on detection):\n  - `echo '{\"hook_event_name\":\"afterShellExecution\",\"stdout\":\"OPENAI_API_KEY=...T3BlbkFJ...\"}' | cursor-secret-scan --mode=post`\n\nHow It Works\n- Regex-based scanner implemented in this project.\n- Reads only from hook JSON input or file paths provided by the hook.\n- Binary-aware scanning with size limits; local-only execution.\n\nNotes\n- Pre hooks block; post hooks print warnings.\n\nLinks\n- Source, docs, and examples: https://github.com/mintmcp/agent-security\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Secret scanning CLI for Cursor",
    "version": "0.1.14",
    "project_urls": {
        "Homepage": "https://github.com/mintmcp/agent-security",
        "Issues": "https://github.com/mintmcp/agent-security/issues",
        "Source": "https://github.com/mintmcp/agent-security"
    },
    "split_keywords": [
        "secrets",
        " security",
        " cursor",
        " hooks",
        " agent-security"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0ea6fa0d2470d4c13c0fe06629b459bc40e3a98820bf2e7a656b33dec415b423",
                "md5": "eee9b2d5b8c29fc8c8e8bef5178e950d",
                "sha256": "554f971e49d0a0121f8f5efa9440965a7895daa7d8e44af34cc18aef0e9d5673"
            },
            "downloads": -1,
            "filename": "cursor_secret_scan-0.1.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eee9b2d5b8c29fc8c8e8bef5178e950d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2802,
            "upload_time": "2025-10-18T01:05:00",
            "upload_time_iso_8601": "2025-10-18T01:05:00.941558Z",
            "url": "https://files.pythonhosted.org/packages/0e/a6/fa0d2470d4c13c0fe06629b459bc40e3a98820bf2e7a656b33dec415b423/cursor_secret_scan-0.1.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cea6dc90a1a5edb2007b9e90762d52765ea42936995b3e5af9d2f4bffada49c9",
                "md5": "d030fa6e2425f46e8fda44ac70a575ee",
                "sha256": "074645d75b99d890f56576e17e0a3ede4aff8696b066f7974e37fcf2babe0035"
            },
            "downloads": -1,
            "filename": "cursor_secret_scan-0.1.14.tar.gz",
            "has_sig": false,
            "md5_digest": "d030fa6e2425f46e8fda44ac70a575ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2449,
            "upload_time": "2025-10-18T01:05:02",
            "upload_time_iso_8601": "2025-10-18T01:05:02.343986Z",
            "url": "https://files.pythonhosted.org/packages/ce/a6/dc90a1a5edb2007b9e90762d52765ea42936995b3e5af9d2f4bffada49c9/cursor_secret_scan-0.1.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-18 01:05:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mintmcp",
    "github_project": "agent-security",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cursor-secret-scan"
}
        
Elapsed time: 3.35053s