Skip to main content

Risk scoring

How ShieldX turns observations about an extension into a number and a level.

The four levels

LevelMeaningTypical action
LowNo notable signalsNone
ModerateOne notable signal or weak combined evidenceRead when convenient
HighMultiple signals, or one known vulnerabilityReview before next install / share
CriticalStrong combined evidenceManual review required

Level cutoffs are an implementation detail and may shift between releases. Always compare extensions by level string, not by numeric score.

Signal categories

Trust signals (positive)

  • Public repository linked from the manifest
  • Well-known publisher namespace
  • Recognized extension category
  • Lock file shipped (reproducible installs)
  • Active repository (recent pushes)
  • Popular repository (many stars)
  • Few open issues
  • No JavaScript files to inspect

Risk factors (negative)

  • Suspicious code patterns (eval of remote content, raw child_process with user input, obfuscation markers)
  • Missing repository URL
  • Missing license
  • Unknown publisher
  • Install scripts
  • Broad activation events (*, onStartupFinished, workspaceContains:*)
  • Known vulnerabilities in declared runtime dependencies (OSV)
  • Native (.node) modules
  • Minified or single-line bundled entry points

How signals combine

Each signal carries a weight. The aggregator sums weighted signals and maps the total to a level. Important rules:

  • A trust signal does not cancel a risk factor — they are reported independently.
  • Trust discounts are capped, so a well-known publisher cannot hide a critical finding.
  • A single Critical-severity rule match can push an extension to Critical on its own.
  • Vulnerability severity scales with CVSS where available.
  • The combined weight of low severity signals is capped. A long list of expected behaviour (file access, network calls, environment reads) can never escalate an extension on its own.
  • Low severity signals describe normal extension behaviour. Only medium, high and critical signals move the level.

Signals ShieldX reports

Manifest: requires a newer editor version, runs in untrusted workspaces, ships defaults for security sensitive settings, installs other extensions, registers an unusual number of commands, is marked deprecated, depends on a known compromised package.

Code: shell execution, network access, environment access, file system access, dynamic code execution, obfuscation, packed JavaScript, suspicious domains, hardcoded public IP endpoints, remote executable downloads, encoded payloads, credential access, source exfiltration, sensitive file access, file modification.

Dependencies: known vulnerable runtime packages, native modules, lock files present.

Why a popular extension can still register as High

Popularity is one signal in many. ShieldX deliberately does not down-weight risk factors just because an extension is widely installed — supply-chain compromises of popular packages are exactly the case ShieldX is designed to catch.

Tuning what you see

  • shieldx.minimumWarningLevel — hides notifications below this level
  • shieldx.warnOnHighRisk — disables modal warnings entirely
  • maxRiskLevel in policy — turns the level into a workspace-enforced rule

These only affect what is surfaced, never what is scored.

When the score feels wrong

  • Read the Risk factors list in the detail panel — the headline level is always backed by visible signals
  • If a factor is incorrect, the underlying analyzer (package, code, dependency, npm, OSV) is the right place to investigate
  • File a report with the extension ID, version, and the signals that look wrong