<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit" -->

---
title: Revoking the token didn’t kill the backdoor | daily.dev
description: A reverse-engineering deep dive into GraphWorm, a custom backdoor tied to the China-nexus APT group Webworm, reveals that the implant uses a legitimate...
canonical: https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Revoking the token didn’t kill the backdoor | daily.dev
og:description: A reverse-engineering deep dive into GraphWorm, a custom backdoor tied to the China-nexus APT group Webworm, reveals that the implant uses a legitimate...
og:url: https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit
og:image: https://api.daily.dev/og/posts/1XYIkLBIt.png
og:image:alt: Revoking the token didn’t kill the backdoor
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoking the token didn’t kill the backdoor

**[CSO Online](https://daily.dev/sources/csoonline)** · 7 min read · 0 upvotes · 0 comments

## Summary

A reverse-engineering deep dive into GraphWorm, a custom backdoor tied to the China-nexus APT group Webworm, reveals that the implant uses a legitimate OneDrive account as its command-and-control channel via Microsoft Graph OAuth. Because the malware includes an 'upgrade' command that can remotely swap its entire OAuth credential set (client ID, secret, tenant ID, refresh token) for a new set pointing at a different OneDrive account, revoking the compromised tokens only delays the attacker rather than evicting them. The implant also fingerprints victims using hardware identifiers (MAC, CPU, disk serials) rather than hostname or IP, making network-level containment ineffective. The analysis argues incident responders must treat the application registration itself as the thing to kill, isolate the endpoint's ability to reach the channel simultaneously with credential revocation, and hunt on identity-plane telemetry (sign-in logs, application IDs, unfamiliar tenants) rather than network signatures.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.csoonline.com/article/4223975/revoking-the-token-didnt-kill-the-backdoor.html>

## Questions this post answers

### Why doesn't revoking a stolen OAuth token stop a backdoor that uses OneDrive for command and control?

Because some implants, like GraphWorm tied to the Webworm APT group, ship a remote 'upgrade' command that destroys all five stored credential strings (client ID, secret, tenant ID, refresh token) and replaces them with a second, pre-registered OAuth application pointing at a different OneDrive account. The malware resumes operation with no new binary or process, so revocation only delays the attacker rather than removing access.

_Teams hardening identity incident response workflows can track detection research like this through daily.dev._

### How does the GraphWorm malware identify and track a victim machine even after it changes hostname or network address?

GraphWorm builds a victim identifier by hashing the network adapter's hardware MAC address together with CPU and disk serial numbers pulled through WMI. Renaming the machine, moving it to a different subnet, or changing its egress address does not break this fingerprint, so containment strategies relying on network identity changes fail against it.

_Anyone building malware detection playbooks around identity fingerprints can follow this kind of research on daily.dev._

### What cloud telemetry signals can detect OAuth-based command and control abusing a legitimate OneDrive account?

Effective detections are identity-plane, not network-based: the operator's application ID appearing in sign-in events, authentication attempts against an unfamiliar tenant, a non-browser HTTP library user agent hitting OneDrive, and beacon or fingerprint file names surfacing in file telemetry. A single sign-in log query for the fixed application ID reveals whether it has ever requested a token from a given tenant.

_Security engineers building cloud identity detections can find writeups like this via daily.dev._

## Similar posts on daily.dev

- [OAuth Token Theft Through Microsoft's Front Door](https://daily.dev/posts/oauth-token-theft-through-microsoft-s-front-door-iae9qoanl) · Huntress Blog · 0 upvotes · 0 comments
- [Evil Token: AI-Enabled Device Code Phishing Campaign](https://daily.dev/posts/evil-token-ai-enabled-device-code-phishing-campaign-vbp9mzpqq) · Coralogix · 0 upvotes · 0 comments
- [GhostCode attackers hijack Microsoft 365 accounts with device codes](https://daily.dev/posts/ghostcode-attackers-hijack-microsoft-365-accounts-with-device-codes-czidg2xfc) · CSO Online · 0 upvotes · 0 comments
- [When checking the URL isn't enough: phishing via the Microsoft identity platform](https://daily.dev/posts/when-checking-the-url-isn-t-enough-phishing-via-the-microsoft-identity-platform-wtxnir48k) · Securelist · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#malware](https://daily.dev/tags/malware), [#oauth](https://daily.dev/tags/oauth)

[View this post on daily.dev](https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Revoking the token didn’t kill the backdoor","url":"https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit"},"datePublished":"2026-09-21T09:08:30.209Z","dateModified":"2026-09-21T09:08:59.038Z","description":"A reverse-engineering deep dive into GraphWorm, a custom backdoor tied to the China-nexus APT group Webworm, reveals that the implant uses a legitimate...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7c89acb0c6b36e00bd4d0889aeb37db1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7c89acb0c6b36e00bd4d0889aeb37db1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"CSO Online","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"CSO Online","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/98667e4b5cac46cf9c470819c6cf71cd","url":"https://daily.dev/sources/csoonline"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,malware,oauth","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"CSO Online","item":"https://daily.dev/sources/csoonline"},{"@type":"ListItem","position":3,"name":"Revoking the token didn’t kill the backdoor"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/revoking-the-token-didn-t-kill-the-backdoor-1xyiklbit#faq","mainEntity":[{"@type":"Question","name":"Why doesn't revoking a stolen OAuth token stop a backdoor that uses OneDrive for command and control?","acceptedAnswer":{"@type":"Answer","text":"Because some implants, like GraphWorm tied to the Webworm APT group, ship a remote 'upgrade' command that destroys all five stored credential strings (client ID, secret, tenant ID, refresh token) and replaces them with a second, pre-registered OAuth application pointing at a different OneDrive account. The malware resumes operation with no new binary or process, so revocation only delays the attacker rather than removing access. Teams hardening identity incident response workflows can track detection research like this through daily.dev."}},{"@type":"Question","name":"How does the GraphWorm malware identify and track a victim machine even after it changes hostname or network address?","acceptedAnswer":{"@type":"Answer","text":"GraphWorm builds a victim identifier by hashing the network adapter's hardware MAC address together with CPU and disk serial numbers pulled through WMI. Renaming the machine, moving it to a different subnet, or changing its egress address does not break this fingerprint, so containment strategies relying on network identity changes fail against it. Anyone building malware detection playbooks around identity fingerprints can follow this kind of research on daily.dev."}},{"@type":"Question","name":"What cloud telemetry signals can detect OAuth-based command and control abusing a legitimate OneDrive account?","acceptedAnswer":{"@type":"Answer","text":"Effective detections are identity-plane, not network-based: the operator's application ID appearing in sign-in events, authentication attempts against an unfamiliar tenant, a non-browser HTTP library user agent hitting OneDrive, and beacon or fingerprint file names surfacing in file telemetry. A single sign-in log query for the fixed application ID reveals whether it has ever requested a token from a given tenant. Security engineers building cloud identity detections can find writeups like this via daily.dev."}}]}
```

