Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Pentari - Your security assistantNew to Visual Studio Code? Get it now.
Pentari - Your security assistant

Pentari - Your security assistant

Van Curen

|
2 installs
| (0) | Free
Real-time GPT-5 powered vulnerability detection and remediation for VS Code and Cursor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Pentari - AI Security Scanner for VS Code/Cursor

Pentari is an advanced VS Code/Cursor extension that provides real-time security vulnerability detection and AI-powered fix suggestions for any language.

With the rise of coding assistants like Codex, security has never been more important. Code is moving from shipping in weeks to days, and that speed demands protection. Pentari is a VS Code extension that monitors your code in real time, detects vulnerabilities, suggests fixes, and applies them when you request all using GPT-5. It’s language-agnostic and highly configurable, so you stay in control.

Imagine you accidentally commit a hardcoded password. Pentari instantly flags it, explains why it’s a risk, and can generate a secure fix you can apply with one click. Security remediation becomes as simple as accepting a code suggestion—keeping your code fast, safe, and production-ready.

Features

  • Real-time vulnerability scanning - Automatically scans your code as you type.
  • GPT-5 powered analysis - Uses OpenAI GPT-5 for deep on-demand security analysis.
  • Multi-lanaguage support - Full support for most languages.
  • One-click fixes - Apply suggested fixes directly from the editor.

Installation

  1. Install from VS Code Marketplace or Cursor Extensions
  2. Configure your AI provider (OpenAI or Anthropic)
  3. Add your API key in settings

Configuration

Open VS Code/Cursor settings and search for "Pentari":

{
  "pentari.aiProvider": "openai",
  "pentari.model": "gpt-5-nano",
  "pentari.apiKey": "your-api-key-here",
  "pentari.autoScan": true,
  "pentari.allowedLanguages": ["javascript", "typescript"],
  "pentari.blockedLanguages": ["markdown"],
  "pentari.fileIncludeGlobs": ["**/*.{js,ts,jsx,tsx}"],
  "pentari.fileExcludeGlobs": ["**/node_modules/**", "**/.git/**"],
  "pentari.severityThreshold": "low"
}
  • allowedLanguages / blockedLanguages let you explicitly opt in or out of language identifiers (defaults allow every text document).
  • fileIncludeGlobs / fileExcludeGlobs cap analysis to the paths you care about and use the same glob syntax as VS Code's files.exclude.

Usage

Automatic Scanning

With autoScan enabled, Pentari automatically scans files when:

  • You save a file
  • You open a new file
  • You switch between files

Manual Scanning

  • Scan Current File: Cmd/Ctrl + Shift + P → "Pentari: Scan Current File"
  • Scan Workspace: Cmd/Ctrl + Shift + P → "Pentari: Scan Workspace"

Viewing Results

  • Issues appear in the Problems panel
  • Click on any issue to jump to the code
  • Hover over underlined code for details
  • Click the lightbulb icon for fix options

Applying Fixes

  1. Click on the lightbulb icon next to a vulnerability
  2. Choose from:
    • Quick Fix - Apply pre-defined safe fix
    • Generate AI Fix - Get AI-generated fix
    • Suppress Warning - Ignore this specific issue

Security Panel

Open the security panel to see all vulnerabilities:

  • Cmd/Ctrl + Shift + P → "Pentari: Show Security Panel"
  • View vulnerabilities grouped by file
  • See severity distribution
  • Apply fixes in bulk

API Providers

OpenAI

  • Uses GPT-5 nano for analysis
  • Get API key from: https://platform.openai.com/api-keys

Anthropic

  • Use Claude for analysis
  • Get API key from https://console.anthropic.com

Local Mode

  • Basic pattern matching without AI
  • No API key required
  • Limited detection capabilities

Development

# Install dependencies
npm install

# Compile extension
npm run compile

# Watch for changes
npm run watch

# Package extension
npm run package

Testing

# Run tests
npm test

# Run with coverage
npm run test:coverage

Security Note

Pentari helps identify common vulnerabilities but is not a replacement for:

  • Professional security audits
  • Penetration testing
  • Code review by security experts
  • Static Application Security Testing (SAST) tools

Always verify fixes before applying them to production code.

Privacy

  • Code is sent to AI providers for analysis (when using AI mode)
  • No code is stored permanently
  • API keys are stored locally in VS Code settings
  • Consider using local mode for sensitive code

Contributing

Contributions are welcome! Please read our contributing guidelines and code of conduct.

License

MIT License - see LICENSE file for details

Support

  • Report issues: GitHub Issues
  • Documentation: Wiki
  • Discord: Join our community

Acknowledgments

  • Built with ❤️ for the OpenAI GPT-5 Hackathon
  • Inspired by security best practices from OWASP
  • Powered by OpenAI's most advanced AI model yet GPT-5-Codex

Remember: Security is a journey, not a destination. Stay vigilant! 🛡️

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft