Skip to main content

Swif Extension Security Policy

Find malicious editor extensions and AI coding agent CLI builds, and the backdoors they leave behind

The Swif Extension Security Policy lists the editor extensions and AI coding agent CLIs installed on your devices, and flags builds that a security advisory has named as malicious. It also looks for the files and startup items a compromised build leaves behind. Use it to find out quickly which devices are affected when a malicious extension is published.

It works on macOS, Linux, and Windows, on company-owned and BYOD devices.

Swif only reports. It doesn't uninstall extensions or delete files.


What Swif checks

Check

What Swif does

Installed extensions and CLIs

Lists the extensions in VS Code, Cursor, Windsurf, and VSCodium, and the installed versions of the Claude Code and Codex CLIs, for every user on the device. Old versions still on disk are included. Each one shows its version, when it was installed, and whether it's the version in use.

Known-Bad Builds

Compares each installed build with your Known-Bad Builds list. A match shows the device as exposed.

Backdoor Artifacts

Looks for the files, SSH keys, and startup items in your Backdoor Artifacts list, for every user, on every scan. A device with an artifact shows as compromised.

Exposed or compromised

Result

What it means

Exposed, with a file hash match

The device has the bad build. The hash of the extension's main file matches the advisory.

Exposed, with a version match only

The device had a version the advisory names. A clean build can share a version number with a bad one, so check the device.

Compromised

Swif found a backdoor artifact. The device stays compromised until a scan no longer finds the artifact.

Removing or updating a bad extension doesn't remove what it installed. That's why Swif checks Backdoor Artifacts on every scan, whether or not the extension is still installed.

Adding a build to Known-Bad Builds also flags devices that had it earlier, before you added it.


Requirements

Requirement

Details

Agent

Swif Agentic Security, installed and running. See Getting Started with Swif's Agentic Security for Enterprise.

Platforms

macOS, Linux, and Windows

Device ownership

Company-owned and BYOD devices


Settings reference

Setting

What it does

Default

Enabled

Scans the device's extensions and artifacts. Turning it off stops scanning on the device.

On

Sources

The editors and CLIs whose installs are listed: vscode, cursor, windsurf, vscodium, claude-code-cli, codex-cli. Leave it empty to list all of them. Backdoor Artifacts are checked either way.

All six

Scan Interval (Minutes)

How often the device scans, from 30 to 1440. The device also scans when the policy changes.

60

Known-Bad Builds

Extension or CLI builds named in a security advisory. Up to 512.

One advisory. See Default entries.

Backdoor Artifacts

Files, keys, and startup items a compromised build leaves behind. Up to 128.

Ten artifacts. See Default entries.

Known-Bad Builds

Field

What to enter

Extension ID (required)

The ID as publisher.name, as the editor shows it, for example anthropic.claude-code. The Claude Code CLI is anthropic.claude-code, and the Codex CLI is openai.codex.

Versions

Exact versions, such as 2.1.313, or * for every version. Up to 64. Required unless you enter a SHA-256.

SHA-256

The SHA-256 hash of the extension's main file (extension.js), from the advisory: 64 hex characters. Up to 64. A hash match confirms the bad build, even when the version looks clean.

Advisory

Text shown with every match, up to 256 characters. For example, the advisory's name and date.

Backdoor Artifacts

Field

What to enter

Name (required)

Shown when the artifact is found. Up to 128 characters.

Kind (required)

What to look for. See the table below.

Value (required)

The comment, path, label, task name, or text to look for, depending on the kind.

Operating Systems

Where to check: macos, linux, windows. Leave it empty to check every OS the kind supports.

Advisory

Text shown when the artifact is found, up to 256 characters.

Kind

Looks for

OS

ssh_key_comment

A key with this comment in a user's authorized_keys. On Windows, also in administrators_authorized_keys.

macOS, Linux, Windows

path_glob

A file that matches the path

macOS, Linux, Windows

launch_agent

A LaunchAgent or LaunchDaemon with this label

macOS

scheduled_task

A scheduled task with this name

Windows

crontab_contains

A line in a user's crontab that contains this text

macOS, Linux

Paths for path_glob must start with one of these, or be an absolute path:

Start

Means

~/

Each user's home folder

{tmp}/

Each user's temporary folder

{appdata}/

Each user's AppData folder (Windows)

You can use wildcards, such as *, only in the last part of the path. For example, ~/.config/.smt* works, but ~/*/.smt doesn't.


Default entries

A new policy starts with the indicators from one published advisory: Cursor's security notice about a trojanized Claude Code extension published to the Cursor marketplace on October 29, 2026. You can edit or remove these entries like any other.

Known-Bad Builds:

Extension ID

Versions

SHA-256

anthropic.claude-code

2.1.312, 2.1.313

ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15

A clean build of 2.1.312 was published before the attack. So a match on the version alone shows the device as exposed, and only a hash match confirms the bad build.

Backdoor Artifacts:

Name

Kind

Value

OS

svc-telemetry SSH key

ssh_key_comment

svc-telemetry

Any

Hidden loader script

path_glob

~/.config/.smt

macOS, Linux

Hidden tunnel key

path_glob

~/.config/.smtk

macOS, Linux

Loader script (Windows)

path_glob

~/.config/smt.cmd

Windows

Tunnel key (Windows)

path_glob

~/.config/smtk

Windows

Temporary tunnel key

path_glob

{tmp}/.stk_*

Any

Fake sysmond LaunchAgent

launch_agent

com.apple.sysmond

macOS

SysMon scheduled task

scheduled_task

SysMon

Windows

Startup folder sysmon.cmd

path_glob

{appdata}/Microsoft/Windows/Start Menu/Programs/Startup/sysmon.cmd

Any

@reboot crontab entry

crontab_contains

.config/.smt

Linux


Create the policy

  1. In Swif, go to Agentic Security > Policies.

  2. Select Swif Extension Security Policy.

  3. Leave Enabled on.

  4. Choose the Sources to list, or leave it empty for all of them.

  5. Set the Scan Interval (Minutes), or keep 60.

  6. Review the Known-Bad Builds and Backdoor Artifacts. Add entries from any new advisory.

  7. Assign the policy to your devices and save.

The device scans as soon as it gets the policy, and again whenever you change it.


When a new advisory is published

  1. Add the bad builds to Known-Bad Builds: the extension ID, the versions, and the file hashes if the advisory lists them.

  2. Add the files, keys, and startup items the advisory names to Backdoor Artifacts.

  3. Put the advisory's name in Advisory, so every match shows where it came from.

  4. Save. Devices scan again right away, and devices that had the build earlier are flagged too.

For each compromised device, remove the bad extension, and remove the artifacts Swif found. Swif doesn't do this for you. Then follow your incident response process, for example rotating the user's credentials. The device stays compromised until a scan no longer finds the artifacts.


FAQ

Does this policy remove bad extensions?

No. Swif only reports. Remove the extension and its artifacts on the device.

A device shows as exposed, but it has a clean build

If the match is on the version alone, the device had a version the advisory names, but a clean build may share that version number. Add the advisory's file hashes to SHA-256, so a match confirms the bad build.

I updated the extension, but the device still shows as compromised

Updating or removing an extension doesn't remove the artifacts it installed. Remove each artifact Swif found. The device clears on the next scan that doesn't find them.


Related resources

Did this answer your question?