# Red Hat: Red Hat: a malicious VS Code extension poisoned 32 @redhat-cloud-services npm packages with valid OIDC provenance

> **Safety notice:** Read-only IDE settings and lockfile check.

- **Incident date:** May 29–Jun 4, 2026
- **Disclosed:** Jun 1, 2026
- **Source disclosure:** https://access.redhat.com/security/vulnerabilities/RHSB-2026-006

## Reproduction lab
Verify developer workstations disable automatic VS Code tasks on folder open and scan lockfiles for @redhat-cloud-services versions published June 1–4, 2026.

```bash
grep -rn "@redhat-cloud-services/" package-lock.json pnpm-lock.yaml yarn.lock 2>/dev/null || echo "No @redhat-cloud-services packages found"
```

## Policies and detection rules

### `vscode-hardening.json`
Enforce VS Code Workspace Trust and disable automatic extension updates on engineering workstations.

```json
{
  "security.workspace.trust.enabled": true,
  "security.workspace.trust.startupPrompt": "always",
  "extensions.autoUpdate": false,
  "task.allowAutomaticTasks": "off"
}
```

## Indicators of compromise
- **Advisory:** `RHSB-2026-006` (undefined)
- **Scope:** `@redhat-cloud-services/* (32 packages)` (undefined)
