AccuKnox Code Security
Find and fix security issues without leaving your editor — SAST, SCA, secrets, IaC, container/SBOM, and ML model scanning, with AI-assisted remediation and chat.
Your code never leaves your machine. Scan results stay local; nothing is uploaded to AccuKnox. Signing in with an Access Key only authorizes use of the extension.
Features
- Multi-engine scanning — SAST, SCA, secrets, IaC, ML-static, and container/SBOM in one place
- Scan the whole project or just what changed — full workspace or git-changed files only
- Findings sidebar — group by severity, scan type, or file; suppress and restore findings
- Inline diagnostics — issues surface in the Problems panel and directly in your code
- AI remediation — one-click fix suggestions you review and accept or reject
- AI chat — ask questions about a specific finding or your code's security
- Bring your own scanner — wire in any SARIF- or Semgrep-JSON-producing CLI via settings
Requirements
- VS Code 1.85+ (Cursor works identically — it's a VS Code fork)
- Python 3.9+, to install the scanner CLI the extension runs
Install the scanner CLI:
python3 -m pip install --user --upgrade "https://github.com/accuknox/aspm-scanner-cli/releases/download/v0.14.7/accuknox_aspm_scanner-0.14.7-py3-none-any.whl"
Alternatively, download the platform binary (accuknox-aspm-scanner / accuknox-aspm-scanner.exe) from the releases page and add it to your PATH.
The extension detects a missing scanner automatically and offers to install it for you — the command above is only needed if that doesn't work, or you'd rather install it yourself first.
Common install issues:
error: externally-managed-environment (Debian, Ubuntu, WSL, or a Homebrew-managed Python): add --break-system-packages to the command above.
- Windows, "Python not found": install Python from python.org, then fully quit and reopen your editor — it only picks up a new
PATH on launch.
- Behind a proxy: configure pip's proxy (
HTTPS_PROXY environment variable) or download the file manually from the releases page and run python3 -m pip install --user <downloaded-file>.whl.
Installing the extension
From a .vsix file:
| Method |
VS Code |
Cursor |
| GUI |
Extensions panel → ... menu → Install from VSIX... |
Same |
| Command line (recommended) |
code --install-extension accuknox-security.vsix |
cursor --install-extension accuknox-security.vsix |
The command-line method reports real errors instead of a progress bar that can appear to hang.
Quick start
- Install AccuKnox Code Security (above).
- Confirm the scanner CLI is available:
accuknox-aspm-scanner --help
- Open your project in VS Code.
- Sign in: Command Palette → AccuKnox: Log In / Set Access Token, then paste an Access Key from the AccuKnox console (Profiles → Access Token).
- Run a scan: Command Palette → AccuKnox: Run Scan (Full Directory), or use the play button in the AccuKnox → Findings view.
- Review results in the AccuKnox activity bar — Findings, Suppressed, and AI Chat.
Authentication
|
|
| Why |
Scans require a valid Access Key |
| What to enter |
Your AccuKnox Access Key, from Profiles → Access Token in the console |
| Where it's stored |
Your OS's secure credential store — never in settings.json |
| Findings upload |
Off. Scans always run and stay local |
Commands: Log In / Set Access Token, Log Out, Show Authentication Status.
Default endpoint: https://cspm.demo.accuknox.com — change it with accuknox.auth.endpoint for a staging, production, or on-premises deployment.
Commands
| Command |
What it does |
| Run Scan (Full Directory) |
Scan the whole workspace |
| Run Scan (Changed Files) |
Scan only git-changed files |
| Cancel Scan |
Stop the current scan |
| Log In / Set Access Token |
Save and validate your Access Key |
| Log Out |
Clear the saved Access Key |
| Open AI Chat |
Open the chat panel |
| Set LLM API Key |
Add your own LLM key for AI remediation and chat |
| Set AccuKnox SaaS Token |
Token for the AccuKnox-hosted AI route (optional) |
| Open Settings |
Jump to AccuKnox settings |
Configuration
Open Settings and search accuknox, or edit settings.json directly:
{
"accuknox.scanner.command": "accuknox-aspm-scanner",
"accuknox.scanner.executionMode": "local",
"accuknox.auth.endpoint": "https://cspm.demo.accuknox.com",
"accuknox.scan.types": {
"sast": true,
"sca": true,
"secret": true,
"iac": true,
"ml-scan": false,
"container": false
}
}
| Setting |
Purpose |
accuknox.scanner.command |
Path or name of the scanner CLI |
accuknox.scanner.executionMode |
local or docker |
accuknox.auth.endpoint |
AccuKnox platform URL for your environment |
accuknox.scan.types |
Which scan types run |
accuknox.scan.secretEngine |
trufflehog or gitleaks |
accuknox.scan.timeoutMs |
Time limit per scan, in milliseconds (default 10 minutes — raise it for large repositories) |
accuknox.llm.* / accuknox.saas.* |
AI remediation and chat — see Configuring the AI model below |
API keys and tokens are never written to settings files — they're always stored in your OS's secure credential store.
Configuring the AI model
accuknox.llm.model and accuknox.llm.apiBase are regular settings, editable anytime. Your API key is set separately, via Command Palette → "AccuKnox: Set LLM API Key" — never add it to settings.json.
| Provider |
accuknox.llm.model |
accuknox.llm.apiBase |
API key |
| Anthropic |
anthropic/claude-opus-4 |
(leave unset) |
Anthropic Console key — a Claude Pro subscription won't work here |
| OpenAI |
openai/gpt-4o |
(leave unset) |
OpenAI API key |
| Gemini |
gemini/gemini-2.0-flash |
(leave unset) |
Google AI Studio key |
| Ollama / LM Studio (local) |
ollama/llama3 / lmstudio/my-model |
(leave unset) |
Not required |
| OpenRouter or other OpenAI-compatible |
openai-compatible/<the provider's model id> |
The provider's base URL |
The provider's API key |
Troubleshooting
| Problem |
Solution |
| Scan asks you to sign in |
Sign in with a valid Access Key, then check Show Authentication Status |
| Authentication fails |
Check your network; confirm accuknox.auth.endpoint is correct |
| Scanner not found |
Install it (see Requirements), or set an absolute path in accuknox.scanner.command |
| Unclear scan results or errors |
Open View → Output, then select AccuKnox from the dropdown for the live scan log |
| A scan times out on a large repository |
Raise accuknox.scan.timeoutMs |
| AI remediation or chat fails |
Re-check your API key and model settings above; test the key directly against your provider's API if unsure whether it's a configuration issue |
| Extensions panel shows "Installing…" after a successful install |
Display issue, not a failed install — reopen the editor |
Privacy
- Your Access Key is used only to verify your AccuKnox account before a scan.
- Scan results stay in your editor. This extension does not upload findings to AccuKnox.
Support
- Product and documentation: accuknox.com
- Issues: contact your AccuKnox support channel