Loros Security ScannerCatch security vulnerabilities and exposed secrets before they reach production — directly inside VS Code, with no external tools required. Features
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 uncertaintySQLAlchemy 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
UsageScan Modes
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. FindingsResults 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 findingIf a finding is a false positive, mark the line and the scanner will skip it:
The comment can also sit on the line directly above. Markers from other scanners are
honoured too — Test files are not scannedEditor 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 Configuration
Requirements
Privacy & Security
Dependency scan coverageThe 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 The XSS rule excludes a narrowly recognized entity decoder that creates a private
Project connection checksUse 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 failuresA 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
Pre-push checksRun 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 inSign-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. SupportFor questions or issues, contact us at support@loros.io |