Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Loros Security ScannerNew to Visual Studio Code? Get it now.
Loros Security Scanner

Loros Security Scanner

Loros Security Solutions

|
31 installs
| (0) | Free
Local security analysis, secrets detection, opt-in findings sync, and Git pre-push checks for VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Loros Security Scanner

Catch security vulnerabilities and exposed secrets before they reach production — directly inside VS Code, with no external tools required.

Features

  • Local SAST analysis across JavaScript, TypeScript, Python, Go, and PHP
  • Bounded local context for modern SQL/command injections and selected AI prompt/output risks
  • Secrets detection with entropy filtering to minimize false positives
  • Inline diagnostics with fix guidance for every finding
  • Pre-push blocking to prevent risky code from reaching your repository
  • Optional sync with the Loros Cybersecurity platform for team-wide visibility

Local SAST recognizes selected templates, f-strings and short local aliases, with safe counterexamples for parameterized queries, shell-free argv and trusted HTML sanitization. AI rules flag external text in privileged instructions and model output used as code or HTML for supported SDK patterns. These are static risk signals, not whole-program taint, confirmed exploitability or complete prompt injection coverage. No AI service is called.

Scanner coverage and uncertainty

SQLAlchemy text literals with bound parameters are excluded. Dynamic SQL without recognized request input is a Medium review finding; supported request-controlled SQL remains Critical. Syntax/context failures retain findings in valid regions and report partial coverage. Unknown-severity dependency advisories remain visible at every threshold. Optional sync represents them as informational triage with no CVSS estimate and an explicit unrated label.

The parser uses pinned @vscode/tree-sitter-wasm 0.3.1. Modern import/sink support has known gaps, and these static patterns do not provide whole-program taint or complete AI security.

Supported Languages

Language SAST Secrets
JavaScript / TypeScript Yes Yes
Python Yes Yes
Go Yes Yes
PHP Yes Yes
All other files — Yes

Usage

Scan Modes

Command Description
Scan Changed Files Scans only files modified since the last commit
Scan Current File Scans the file open in the editor
Scan Entire Project Scans all source files in the workspace
Pre-push Security Scan Manually checks committed changes relative to the upstream branch
Install Git Pre-push Hook Installs a local hook that blocks pushes with high/critical findings or analysis failures
Deep SAST Scan Runs local checks, then requests server-side analysis of the linked repository

Automatic scans run on save when the workspace is trusted, your account has scan permission, and the repository is linked to a Loros project. Only the first workspace folder is linked and scanned. Project and save scans respect Git ignore rules; tracked files remain scannable even if an ignore rule is added later. Explicit current-file scans can inspect ignored files.

Findings

Results appear inline as editor diagnostics (red and yellow underlines) and in the Loros Security sidebar panel. Click any finding to jump to the exact line in the file.

Suppressing a finding

If a finding is a false positive, mark the line and the scanner will skip it:

const password = 'Tr0ub4dor&3xyz'; // loros-ignore: rotated fixture, not a live credential

The comment can also sit on the line directly above. Markers from other scanners are honoured too — nosec, gitleaks:allow, pragma: allowlist secret and trufflehog:ignore — so code you have already reviewed does not need re-annotating. To limit a marker to a single rule, write loros-ignore:<rule-id> with the exact rule ID from the finding. A scoped marker with an unrecognized rule ID suppresses nothing.

Test files are not scanned

Editor scans and the pre-push hook skip test code, which otherwise produces most false positives (sample credentials, intentionally vulnerable fixtures). A file is a test file when its path inside the workspace contains a test, tests, __tests__, spec, specs, __mocks__, __fixtures__, fixtures, testdata, test-data, __snapshots__, e2e or cypress folder, or when its name follows a test convention: *.test.*, *.spec.*, *.e2e-spec.*, *.cy.*, test_*.py, *_test.py, conftest.py, tests.py, *_test.go or *Test.php. Dependency manifests inside those folders are skipped too. Scan summaries state how many test files were skipped. Real credentials do not belong in tests either: keep them out of the repository.

Configuration

Setting Default Description
loros.severityThreshold medium Minimum severity to report: low, medium, high, or critical
loros.languages [javascript, typescript, python] Languages included in SAST analysis
loros.sync.enabled false Opt-in upload of findings metadata, excluding source code
loros.maxFileSizeMB 2 Maximum file size for editor scans

Requirements

  • VS Code 1.90.0 or higher
  • A Loros account — sign up at loros.io

Privacy & Security

  • SAST and secrets scans run locally; deep scans run on the Loros backend
  • Findings sync is disabled by default. Enable loros.sync.enabled to upload finding metadata, relative paths, and Git context. Source lines and secret values are excluded.
  • Dependency checks cover exact Python/Go pins and npm versions resolved from package-lock.json (or exact manifest pins). Unresolved version ranges are skipped to avoid reporting vulnerabilities for a version that is not installed. Dependency checks are enabled by default under the Loros service agreement and are controlled per company from Dashboard Settings > IDE Extension. The company policy is the only switch: it applies to every developer in the company who has SCA permission and works in a trusted workspace, there is no device setting, and turning it off stops new queries within 60 seconds. Only packages with a verified public origin are ever named in OSV queries: npm packages must resolve to registry.npmjs.org in the lockfile (scoped packages without that origin are withheld), and Go modules matching GOPRIVATE or a replace directive are withheld. Withheld packages appear in scan summaries as a count, never by name.
  • This release contains no telemetry sender. Older telemetry preferences do not enable collection.
  • Credentials are stored securely using the system keychain

Dependency scan coverage

The Loros panel states the effective dependency policy and its reason: company policy (or the service-agreement default when a company has none stored), account SCA permission, or workspace trust. Company-managed activation does not require developers to edit JSON.

Manual scan completion messages distinguish dependency queries completed, skipped checks, no supported manifests selected, and findings hidden by the severity threshold. Output → Loros Security records aggregate manifest/package counts and skip reasons without package names, repository paths, tokens or source code. These diagnostics are local and do not enable telemetry or change consent.

The local engine recognizes requirements.txt, package.json and go.mod. Npm package-lock v1/v2/v3 includes resolved transitive versions as well as direct packages. Unsupported formats and unresolved versions are not a clean dependency bill of health. Advisory details provide severity and aliases prevent counting the same vulnerability twice. Missing severity remains visible as unknown; missing details or exhausted lookup limits produce incomplete-analysis errors. PyYAML==5.3 is a supported Python pin; its public advisory fixture produces two unique vulnerabilities at Critical, including when the reporting threshold is Critical. Scan the manifest itself to isolate dependency checking from project file selection. Local counts describe only the IDE scan, not a backend Deep SAST job.

The XSS rule excludes a narrowly recognized entity decoder that creates a private textarea, writes innerHTML, and only reads value. Unknown calls, aliases, element escape, shadowed document objects and reassignment retain the finding; subsequent writes of decoded text to real HTML sinks are still scanned.

Project connection checks

Use Re-check in the extension's window to verify the repository's dashboard link. It opens Output → Loros Security with page counts or a lookup error; diagnostics omit credentials and project/repository details. A stored login alone does not establish a current project connection.

If lookup completes without a match, choose Inspect connection in the notification. The local picker shows the detected workspace repository and projects returned for your current session. Select the expected project, or My project is not listed, to distinguish missing visibility, a missing repository link and a repository mismatch. The result also shows the account's scan capability, which is separate from project access. Inspection does not change links or permissions, persist project lists or send diagnostic details to logs or telemetry.

Lookup follows authorized project pages (20 projects per request), stops when the repository matches and is bounded to 10 pages and 30 seconds. Failed or incomplete lookups are reported as errors rather than a missing dashboard link. An existing verified link remains scoped to its current session; logout and workspace changes cancel the lookup.

Connection and permission failures

A saved login does not guarantee that a current permission check can reach the API. DNS, VPN/proxy, timeout and service failures are shown separately from denied permissions or an expired session. A DNS failure does not require logging in again; an HTTP 401 still clears the expired session and requires a new login.

Successful permissions retain their existing 60-second cache. Failed lookups deny scanning and wait 5, 10, 20, 40, then at most 60 seconds before the next eligible lookup. Repeated saves and panel refreshes share that cooldown and concurrent lookups share one request. There is no background retry timer: a later scan or panel refresh retries after the cooldown. Successful verification or a new login resets it. Non-transient failures such as HTTP 403 wait 60 seconds.

This prevents repeated checks during an outage; it does not repair DNS or enable offline scanning. To diagnose persistent ENOTFOUND, check resolution of api.loros.io from the environment running VS Code (including Remote/WSL or a container). Do not include tokens, private repository details or secret values in support logs. Permission error diagnostics omit raw response/error payloads.

Pre-push checks

Run Loros: Install Git Pre-push Hook to enable checks for a repository. The hook calls a runner at a version-independent path that the extension refreshes on every start, so extension updates do not break installed hooks, and hooks installed by older versions are repaired automatically when the workspace opens. Hooks owned by another tool are never overwritten; compose them manually. Loros: Uninstall Git Pre-push Hook removes a hook the extension owns. If the runner is missing because the extension was uninstalled, the hook prints a warning and allows the push instead of blocking every push. The hook scans committed snapshots across the outgoing history, so an uncommitted edit cannot hide a committed secret. New refs scan all reachable history. Deleted refs require no scan.

The hook runs local SAST and secrets checks without credentials or uploads. It requires the installed extension and its VS Code executable. A push fails if analysis is incomplete; scan limits are 1,000 commits, 10,000 file snapshots, and 2 MB per file. The hook checks all supported languages regardless of editor severity settings. Git hooks can be bypassed by repository owners, so enforce mandatory policy in CI or server-side repository controls as well.

Signing in

Sign-in always starts from the extension (Loros: Login) and opens your browser to complete authentication. Desktop VS Code and VS Code Insiders are supported; web editors are not. Access tokens expire normally: when a session ends, log in again. Sessions are stored in the system keychain, and the extension never embeds shared secrets. Authorization decisions are made by the Loros platform, not by the extension.

Support

For questions or issues, contact us at support@loros.io

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft