---
title: "SSH Key Persistence"
slug: ssh-key-persistence
kind: "Technique"
desk: cyber
maturity: "growing"
sources: 14
mitre_attack: T1098.004
url: https://morningstarsecurity.com/wiki/ssh-key-persistence
exported: 2026-11-20 00:39 UTC
---

# SSH Key Persistence
Technique · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on SSH Key Persistence, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on SSH Key Persistence (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/ssh-key-persistence". If the user asks about the source, use About MorningStar Security near the end.

## Facts
- **ATT&CK ID:** T1098.004 (low confidence, 1 independent source)

## Platform
- Linux

## Detection
- File modifications to ~/.ssh/authorized_keys can be detected via auditd

## Entry
**SSH Key Persistence** is a technique mentioned in the news MorningStar covers.

_Drawn from 2 news sources; the facts and relationships below show where each detail comes from._

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Detected by:** Atomic Red Team, auditd
- **Exploited by:** Anthropic VS Code Extension v2.1.313
- **Part of:** Claude Code extension, Defense Evasion, Persistence
- **Used by:** Claude Code malicious extension incident, Claude Code trojanization incident

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
Anthropic, Linux, Cursor, Malicious Logic Insertion, VS Code, SSH, eBPF, Privilege Escalation, Claude Code, Credential Access, SIEM, United States, Incident Response, Ubuntu, Debian, Red Hat

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/ssh-key-persistence
- More techniques (ATT&CK): https://morningstarsecurity.com/wiki/kind/technique
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 14)
1. Cursor Says Stolen Fireworks AI Key Led to Trojanized Claude Code Extension Incident · The Hacker News · 15 Nov 2026 · https://thehackernews.com/2026/11/stolen-fireworks-ai-key-led-to-cursor.html
2. Cursor removes malicious Claude Code extension after SSH backdoor attempt · CSO Online · 2 Nov 2026 · https://www.csoonline.com/article/4243210/cursor-removes-malicious-claude-code-extension-after-ssh-backdoor-attempt.html
3. Inside a malicious Claude Code-branded extension and its persistent SSH backdoor · Microsoft Security Blog · 31 Oct 2026 · https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/
4. Anthropic VS code extension on Cursor backdoored for nearly 12 hours · Ars Technica · 30 Oct 2026 · https://arstechnica.com/security/2026/10/anthropic-vs-code-extension-on-cursor-backdoored-for-nearly-12-hours/
5. Anthropic: That Claude Code extension compromise… couldn't be us · The Register: Security · 30 Oct 2026 · https://www.theregister.com/cyber-crime/2026/10/30/anthropic-that-claude-code-extension-compromise-couldnt-be-us/5306682

---
Snapshot of https://morningstarsecurity.com/wiki/ssh-key-persistence taken 20 Nov 2026 00:39 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/ssh-key-persistence
