Skip to main content

Secret scanning CLI for Cursor (depends on claude-secret-scan core)

Project description

Cursor Secret Scan

Secret scanning CLI for Cursor. Blocks or warns on common credentials (cloud, source control, payment, collaboration) using zero dependencies and local regex matching. Thin wrapper that depends on claude-secret-scan.

Cursor Secret Scan demo

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

  • Uses the same core regex-based scanner as claude-secret-scan.
  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursor_secret_scan-0.1.13.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cursor_secret_scan-0.1.13-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file cursor_secret_scan-0.1.13.tar.gz.

File metadata

  • Download URL: cursor_secret_scan-0.1.13.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cursor_secret_scan-0.1.13.tar.gz
Algorithm Hash digest
SHA256 045db3ce09dc682afb3e008e2e103edfba43a3c8fa6bbdc90fc3ee94893b5a23
MD5 f9b8579f484cafb8fa0d9fabb1018508
BLAKE2b-256 c09645782c7a2cebacf08052f197833e43104267d1d2070958f965a5a6a55572

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursor_secret_scan-0.1.13.tar.gz:

Publisher: ci.yml on mintmcp/agent-security

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cursor_secret_scan-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for cursor_secret_scan-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4093b27d8cff5c91e3656cd1b042e6d2e3281937388c5ca2baf5a116e43b5b01
MD5 1430cf76e2d41c998fb78187f303c818
BLAKE2b-256 6ae416eabb39ef61f669b88a746694869fdf381154c05b884834689ac337441c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursor_secret_scan-0.1.13-py3-none-any.whl:

Publisher: ci.yml on mintmcp/agent-security

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page