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: | All six |
Scan Interval (Minutes) | How often the device scans, from |
|
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 |
Versions | Exact versions, such as |
SHA-256 | The SHA-256 hash of the extension's main file ( |
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: |
Advisory | Text shown when the artifact is found, up to 256 characters. |
Kind | Looks for | OS |
| A key with this comment in a user's | macOS, Linux, Windows |
| A file that matches the path | macOS, Linux, Windows |
| A LaunchAgent or LaunchDaemon with this label | macOS |
| A scheduled task with this name | Windows |
| 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 |
| Each user's temporary folder |
| 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 |
|
|
|
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 |
|
| Any |
Hidden loader script |
|
| macOS, Linux |
Hidden tunnel key |
|
| macOS, Linux |
Loader script (Windows) |
|
| Windows |
Tunnel key (Windows) |
|
| Windows |
Temporary tunnel key |
|
| Any |
Fake sysmond LaunchAgent |
|
| macOS |
SysMon scheduled task |
|
| Windows |
Startup folder sysmon.cmd |
|
| Any |
@reboot crontab entry |
|
| Linux |
Create the policy
In Swif, go to Agentic Security > Policies.
Select Swif Extension Security Policy.
Leave Enabled on.
Choose the Sources to list, or leave it empty for all of them.
Set the Scan Interval (Minutes), or keep
60.Review the Known-Bad Builds and Backdoor Artifacts. Add entries from any new advisory.
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
Add the bad builds to Known-Bad Builds: the extension ID, the versions, and the file hashes if the advisory lists them.
Add the files, keys, and startup items the advisory names to Backdoor Artifacts.
Put the advisory's name in Advisory, so every match shows where it came from.
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