Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PrivaSecNew to Visual Studio Code? Get it now.
PrivaSec

PrivaSec

jshlks

| (0) | Free
Zero-cost, 100% offline security linter for detecting leaked secrets and API keys
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PrivaSec - Security Linter for VS Code

Open VSX Registry License: MIT

PrivaSec is a zero-cost, 100% offline security linter extension for VS Code (optimized for Open VSX platforms like VSCodium and Gitpod). It runs purely client-side inside your IDE, requiring zero servers or backend infrastructure. License verification is done by pinging Gumroad directly from your machine.

Features

  • 🔒 Real-time Secret Detection: Scans your code for leaked credentials before you save
  • 🛡️ Multiple Pattern Support: Detects OpenAI keys, AWS credentials, GitHub tokens, Slack tokens, Google API keys, and private certificates
  • ⚙️ Custom Patterns: Add your own regex patterns for organization-specific secrets
  • 📊 Problems Panel Integration: Shows security issues in VS Code's Problems panel
  • 🚫 Strict Mode: Optionally block saves when secrets are detected
  • 🔑 Gumroad License Verification: Client-side license validation with timeout handling

Supported Secret Patterns

Secret Type Pattern Example
OpenAI API Key sk-proj-...
AWS Access Key ID AKIA...
GitHub Personal Access Token ghp_...
Slack API Token xoxb-..., xoxa-..., etc.
Google API Key AIza...
Private Key Certificates -----BEGIN RSA PRIVATE KEY-----

Installation

From Open VSX Registry

  1. Open VS Code or VSCodium
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "PrivaSec"
  4. Click Install

Manual Installation

  1. Download the .vsix file from the releases page
  2. In VS Code, go to Extensions
  3. Click the "..." menu and select "Install from VSIX..."
  4. Select the downloaded file

Usage

Setting Up Your License

  1. Purchase a subscription at Gumroad
  2. Copy your license key
  3. Open VS Code Settings (Ctrl+,)
  4. Search for "privasec"
  5. Enter your license key in the Privasec: Gumroad License Key field

Configuration Options

Setting Type Default Description
privasec.gumroadLicenseKey string "" Your Gumroad subscription license key
privasec.enableStrictMode boolean true Block saves when secrets are detected
privasec.additionalPatterns array [] Custom regex patterns for secret detection

Adding Custom Patterns

Add custom patterns in your settings.json:

{
  "privasec.additionalPatterns": [
    {
      "pattern": "your_secret_pattern_regex",
      "name": "My Custom Secret"
    }
  ]
}

Commands

  • PrivaSec: Retry Verification - Manually re-verify your license key

Requirements

  • VS Code ^1.75.0 or compatible (VSCodium, Gitpod, etc.)
  • Internet connection for initial license verification
  • Node.js 18+ (for development)

Development

Setup

# Clone the repository
git clone https://github.com/privasec/privasec-extension.git
cd privasec-extension

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Watch for changes
npm run watch

Testing

# Run linting
npm run lint

# Package extension
npm run package

# Publish to Open VSX
npm run publish

Privacy & Security

  • No Data Collection: PrivaSec does not send your code anywhere
  • Client-Side Only: All scanning happens locally on your machine
  • License Verification: Only your license key is sent to Gumroad's API
  • No Telemetry: No usage statistics or analytics

Troubleshooting

License Verification Fails

  1. Check your internet connection
  2. Verify your license key is correct
  3. Ensure your subscription is active on Gumroad
  4. Try the "Retry Verification" command

False Positives

If PrivaSec flags legitimate code:

  1. Use non-strict mode ("privasec.enableStrictMode": false)
  2. Add the file to .gitignore if it contains test credentials
  3. Report false positives via GitHub Issues

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Support

  • Issues: GitHub Issues
  • Email: support@privasec.dev
  • Buy a License: Gumroad
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft