# GitHub as a command server: what Kaspersky's GitDoor shows about domain allow-lists

On 17 November 2026, Kaspersky's GReAT team published a two-part report on Operation ShadowCloud, an intrusion campaign against mainly government networks in Asia and Africa. The report opens: "In early 2026, we identified a new, active intrusion campaign that we have named Operation ShadowCloud."

Two backdoors carry the campaign. GitDoor runs its command channel through the GitHub API. GraphDoor runs its channel through Microsoft Graph and a SharePoint document library. Both lean on services most companies already allow.

## The problem: the allowed domain carried the channel

Most egress policies are written as domain lists. `api.github.com` is on the list because developers, CI jobs and package managers need it. `login.microsoftonline.com` and SharePoint are on the list because the whole office signs in through them. Kaspersky describes the effect in Part 1: the design lets the implants "blend in with normal traffic, effectively evading network-based detections".

## How GitDoor uses the GitHub API

The requests GitDoor sends to `api.github.com`, as listed in Part 1 (GitHub has since taken the account's repositories down):

| Step | Method | Path | What the request does |
|---|---|---|---|
| Register | POST | `/repos/LatonyCharnleyaW/Trix/issues` | Opens an issue for the new victim |
| Check | GET | `/repos/LatonyCharnleyaW/Trix/contents/main.<code>.js.map` | Checks whether the victim's information file already exists |
| Store | PUT | `/repos/LatonyCharnleyaW/Trix/contents/main.<code>.js.map` | Creates the file that holds the victim's information |
| Fetch commands | GET | `/repos/LatonyCharnleyaW/Havo/contents/<file>` | Downloads commands and plug-ins |
| Loop | POST or DELETE | `/repos/LatonyCharnleyaW/Trix/issues/<n>/labels` | Adds the "bug" label, or removes it if it's already there; repeats with the Havo fetch until an exit command |

The two repositories split the work. In Kaspersky's words, "the command input is retrieved from the public Havo repository," while "the command result is uploaded to the private Trix repository". Results are encrypted (AES-256, then XOR) and Base64-encoded before the upload. Writing to Trix needs a GitHub personal access token, which the backdoor decrypts at run time along with everything else it needs to reach GitHub.

Across the samples, Kaspersky lists GitHub repositories created between 3 September 2024 and 5 December 2025, and reads the dates as a threat actor "preparing the infrastructure of this operation since at least the end of 2024".

## GraphDoor: the same idea through SharePoint

GraphDoor requests a token from `login.microsoftonline.com` with a client-credentials flow, using an application ID and secret hard-coded in the implant. The token authenticates the malicious application, not a person, so no user sign-in sits behind the traffic. The backdoor then sends Graph PUT requests that write encrypted victim data into a SharePoint document library, in a file named like a JavaScript source map (`main.<victim code>.js.map`). Graph GET requests fetch its plug-ins for screenshots, process lists and keystrokes.

## Why a domain allow-list can't separate the two

A domain decision answers one question: is this destination trusted? For `api.github.com` the answer is yes, and the answer stays yes whether the request is a developer reading a public library or a backdoor writing a keylog into an attacker's private repository. Without decryption, a gateway usually sees the hostname and the byte count, and nothing in the path.

What looks like routine developer traffic is, in reality, a two-way command channel.

## What the request shows

Once the HTTPS request is opened, three fields separate the two cases:

1. **The account in the path.** `/repos/<owner>/<repo>/...` names the owner. Your company has a short list of GitHub organisations; a write to any other owner deserves its own rule. A SharePoint hostname names the tenant in the same way.
2. **The method.** GET and PUT to the same host carry opposite risk. Reading a public project is everyday work. A PUT or POST into a private repository you don't own is data leaving.
3. **The client.** A developer workstation or a CI runner talking to `api.github.com` is expected. An accounts PC, a file server or a domain controller is not.

None of the three is exotic. All three disappear in a policy that stops at the hostname.

## Checks you can run this week

- Write down the GitHub organisations and SharePoint tenants your company owns. Everything else is "not ours" by default.
- Check what your web logs keep for `api.github.com`: the hostname only, or the method and the full path.
- List every internal machine that reached `api.github.com` or `graph.microsoft.com` in the last 30 days, and match each one to a reason.
- Look for MeshCentral agents nobody installed. Kaspersky's closing advice in Part 2 is to treat the arrival of a legitimate remote-management tool such as MeshCentral as a suspicious event.
- Make sure servers can't reach the internet directly. When outbound HTTPS works only through your proxy, a backdoor that ignores proxy settings fails instead of slipping past.

## Limits worth stating

- Reading the path needs HTTPS inspection, which needs devices that trust a certificate you own, plus a bypass list for apps that refuse inspection.
- An attacker holding a stolen token for your own GitHub organisation passes the account check. The method, the time and the client still apply.
- Kaspersky's sample used the account and file names above; other builds will use other names. Rules should key on "not ours", not on a list of indicators.

## Where VxSure fits

Rather than allowing or blocking github.com as a whole, VxSure opens every web request that passes through it and can tag each one by host, URL and method. A read from a public project and a write into a stranger's repository become separate rules and separate log lines, kept on your own server.

Can your team say today which machines wrote to GitHub last week?

## Sources

- Kaspersky Securelist, "Operation ShadowCloud", Part 1 (GitDoor), 17 Nov 2026: https://securelist.com/operation-shadowcloud-gitdoor/122004/
- Kaspersky Securelist, "Operation ShadowCloud", Part 2 (GraphDoor), 17 Nov 2026: https://securelist.com/operation-shadowcloud-graphdoor/122005/
- The Hacker News, "New GitDoor and GraphDoor Backdoors Turn GitHub and SharePoint Into Covert C2 Channels", 17 Nov 2026: https://thehackernews.com/2026/11/new-gitdoor-and-graphdoor-backdoors.html
