---
title: "Security Insights"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/selectors/security-insights"
image: "https://docs.vlt.io/og/client/selectors/security-insights"
lang: "en"
---

# Security Insights

Security insight selectors rely on data provided by [Socket](https://socket.dev/). Using any of these selectors triggers a network call to fetch package report data.

**note**

Security selectors require fetching data from Socket's API. This adds latency to queries — the data is fetched before the query runs. Keep this in mind for interactive use.

## Malware & threats

### `:malware`

Matches packages that contain malware. This is a binary selector — a package either has malware or it doesn't:

```bash title="Terminal"
$ vlt query ':malware'
```

**tip**

`:malware` matches only high-confidence malware alerts (`malware` and `gptMalware`). For broader vulnerability detection with configurable severity levels, use [`:vuln`](https://docs.vlt.io/client/selectors/security-insights#vulnerable--vuln).

### `:squat` / `:squat(<type>)`

Matches packages with names similar to popular packages (typosquatting).

```bash title="Terminal"
$ vlt query ':squat'
```

`:squat` without arguments matches any severity. Filter with:

| Type              | Description               |
| ----------------- | ------------------------- |
| `critical` or `0` | High-confidence typosquat |
| `medium` or `2`   | Possible typosquat        |
| `none`            | Not a typosquat           |

### `:suspicious`

Matches packages with artificially inflated GitHub stars (bots, crowdsourcing, etc.):

```bash title="Terminal"
$ vlt query ':suspicious'
```

### `:confused`

Matches packages affected by manifest confusion — the published `package.json` differs from what's in the tarball:

```bash title="Terminal"
$ vlt query ':confused'
```

## Vulnerabilities

### `:vulnerable` / `:vuln`

Matches packages with vulnerability or security anomaly alerts with severity >= medium (excludes low-severity alerts by default):

```bash title="Terminal"
$ vlt query ':vulnerable'
```

The `:vuln` alias works identically:

```bash title="Terminal"
$ vlt query ':vuln'
```

#### `:vuln(<level>)`

Filter by severity level:

| Level             | Alert types matched                     |
| ----------------- | --------------------------------------- |
| `critical` or `0` | `criticalCVE`                           |
| `high` or `1`     | `cve`                                   |
| `medium` or `2`   | `potentialVulnerability`, `gptSecurity` |
| `low` or `3`      | `mildCVE`, `gptAnomaly`                 |

Comparators are supported:

```bash title="Terminal"
$ vlt query ':vuln(critical)'
$ vlt query ':vuln(">1")'
$ vlt query ':vuln(">=medium")'
```

### `:cve(<id>)`

Matches packages with a specific CVE alert:

```bash title="Terminal"
$ vlt query ':cve(CVE-2023-1234)'
```

Match packages with any CVE:

```bash title="Terminal"
$ vlt query ':cve'
```

### `:cwe(<id>)`

Matches packages with a specific CWE alert:

```bash title="Terminal"
$ vlt query ':cwe(CWE-79)'
```

### `:severity(<level>)`

Matches packages by CVE severity level:

| Level             | Description            |
| ----------------- | ---------------------- |
| `critical` or `0` | Critical severity CVEs |
| `high` or `1`     | High severity CVEs     |
| `medium` or `2`   | Medium severity CVEs   |
| `low` or `3`      | Low severity CVEs      |

Comparators are supported:

```bash title="Terminal"
$ vlt query ':severity(critical)'
$ vlt query ':severity(">1")'
$ vlt query ':severity(">=medium")'
```

## Licensing

### `:license(<type>)`

Matches packages based on license issues:

| Type         | Description                              |
| ------------ | ---------------------------------------- |
| `unlicensed` | No license                               |
| `misc`       | Fine-grained license problems            |
| `restricted` | Non-permissive license                   |
| `ambiguous`  | Ambiguous licensing                      |
| `copyleft`   | Copyleft license (GPL, etc.)             |
| `unknown`    | License data found but type undetermined |
| `none`       | No license data at all                   |
| `exception`  | SPDX license exception                   |

```bash title="Terminal"
# Find packages with copyleft licenses
$ vlt query ':license(copyleft)'

# Find unlicensed packages

$ vlt query ':license(unlicensed)'

# Find packages with any license

$ vlt query ':license'
```

## Code behavior signals

### `:eval`

Packages using dynamic code execution (`eval()`, `new Function()`, etc.):

```bash title="Terminal"
$ vlt query ':eval'
```

### `:network`

Packages that access the network:

```bash title="Terminal"
$ vlt query ':network'
```

### `:fs`

Packages that access the file system:

```bash title="Terminal"
$ vlt query ':fs'
```

### `:env`

Packages that access environment variables:

```bash title="Terminal"
$ vlt query ':env'
```

### `:shell`

Packages that access the system shell:

```bash title="Terminal"
$ vlt query ':shell'
```

### `:scripts`

Packages with install scripts (postinstall, preinstall, etc.), or marked by install as needing a build (e.g. a root `binding.gyp`):

```bash title="Terminal"
$ vlt query ':scripts'
```

### `:debug`

Packages using debug, reflection, or dynamic code execution features:

```bash title="Terminal"
$ vlt query ':debug'
```

### `:dynamic`

Packages using dynamic imports:

```bash title="Terminal"
$ vlt query ':dynamic'
```

## Obfuscation & hiding

### `:obfuscated`

Packages with intentionally obfuscated code:

```bash title="Terminal"
$ vlt query ':obfuscated'
```

### `:minified`

Packages containing minified code:

```bash title="Terminal"
$ vlt query ':minified'
```

### `:entropic`

Packages with high-entropy strings (possibly encrypted data, leaked secrets, or obfuscated code):

```bash title="Terminal"
$ vlt query ':entropic'
```

### `:native`

Packages containing native code (compiled binaries, shared libraries):

```bash title="Terminal"
$ vlt query ':native'
```

### `:shrinkwrap`

Packages containing a shrinkwrap file that may bypass normal install procedures:

```bash title="Terminal"
$ vlt query ':shrinkwrap'
```

## Package health

### `:deprecated`

Packages marked as deprecated:

```bash title="Terminal"
$ vlt query ':deprecated'
```

### `:unmaintained`

Packages not updated in more than 5 years:

```bash title="Terminal"
$ vlt query ':unmaintained'
```

### `:unpopular`

Packages that are not widely used:

```bash title="Terminal"
$ vlt query ':unpopular'
```

### `:trivial`

Packages with less than 10 lines of code:

```bash title="Terminal"
$ vlt query ':trivial'
```

### `:abandoned`

Packages published by an npm account that no longer exists:

```bash title="Terminal"
$ vlt query ':abandoned'
```

### `:unknown`

Packages with a new npm collaborator publishing for the first time:

```bash title="Terminal"
$ vlt query ':unknown'
```

### `:unstable`

Packages with unstable ownership (new collaborator publishing):

```bash title="Terminal"
$ vlt query ':unstable'
```

## Other

### `:tracker`

Packages containing telemetry:

```bash title="Terminal"
$ vlt query ':tracker'
```

### `:undesirable`

Packages that are jokes, parodies, or include undocumented behavior:

```bash title="Terminal"
$ vlt query ':undesirable'
```

### `:score(<rate>, <kind>)`

Match packages by security score:

| Parameter | Description                                          |
| --------- | ---------------------------------------------------- |
| `rate`    | Score value 0–100 (or 0–1), with optional comparator |
| `kind`    | Score category (optional, default: `overall`)        |

Available kinds: `overall`, `license`, `maintenance`, `quality`, `supplyChain`, `vulnerability`.

```bash title="Terminal"
# Packages with exactly 0.8 overall score
$ vlt query ':score(80)'

# Packages with score > 0.8

$ vlt query ':score(">0.8")'

# Low maintenance score

$ vlt query ':score("<=0.5", "maintenance")'
```

## Common audit queries

Run a comprehensive security audit:

```bash title="Terminal"
# Critical issues
$ vlt query ':malware, :cve, :obfuscated'

# Vulnerability scan with severity

$ vlt query ':vuln(critical), :vuln(high)'

# Supply chain risks

$ vlt query ':abandoned, :unmaintained, :unknown'

# License compliance

$ vlt query ':license(copyleft), :license(unlicensed)'

# Code behavior audit

$ vlt query ':eval, :shell, :network, :fs'
```

## See also

- [`:scanned`](https://docs.vlt.io/client/selectors/pseudo-states.md) — check if packages have security metadata
- [vlt security overview](https://docs.vlt.io/client/security.md) — security features in vlt
