Detecting ReLeak-style Copilot exfiltration: 3 Sigma rules for audit and proxy logs

Detecting ReLeak-style Copilot exfiltration: 3 Sigma rules for audit and proxy logs

Most detection posts start from an indicator. This one can’t. ReLeak, the three zero-click Copilot chains Cato AI Labs disclosed on December 3, 2026, came with no IOCs, Microsoft fixed all three on its side, and two of the three exits never touched anything a customer logs. I covered the chains themselves in my analysis of ReLeak.

So why write rules at all? Because the way in hasn’t changed. Instructions hidden in content Copilot reads on someone’s behalf were the start of EchoLeak and ReLeak (an email) and of SearchLeak (a crafted link whose search query became the prompt), and they will be the start of the next one. What you get here: three experimental Sigma rules for the Purview audit log and a forward proxy, one KQL hunt for Defender for Office 365, and an honest list of what none of them can see.

At a glance

  • Rules: 3 Sigma rules (1 alerting, 2 hunting) plus 1 KQL email hunt.
  • Domains: Cloud-M365 (2 rules), Web/App (1 rule).
  • Log sources: Microsoft Purview audit, CopilotInteraction records; forward proxy or secure web gateway with TLS inspection; Defender for Office 365 Plan 2 EmailEvents for the hunt.
  • ATT&CK (my mapping): T1566 Phishing, T1114.002 Remote Email Collection, T1567 Exfiltration Over Web Service.
  • Status: all experimental. The field names come from Microsoft’s documentation; the link to ReLeak is my inference.
  • GitHub: Detection Rules/Cloud/M365 and Detection Rules/Web-App.

The case in brief

An attacker sends an email with instructions meant for the model. It can sit unread. When the user asks Copilot something that makes it retrieve that email, Copilot follows the instructions with the user’s own permissions and sends data out one of three ways: an image loaded through Bing, which then fetches the attacker’s URL; a Word, Excel, PowerPoint or PDF file saved to OneDrive or SharePoint whose link Microsoft’s background processing fetches one to eight minutes later; or code in the Copilot code interpreter sandbox calling out directly. Cato’s timeline: disclosed between July 29 and August 20, 2026, patched by Microsoft on September 17, November 11 and November 15. The full story is in the analysis.

Traces on your side: the inbound email in your mail logs, and a CopilotInteraction record in the Purview audit log listing what Copilot read and created. For the Bing exit only, there may also be a browser request to Bing, but you will only see its details if your proxy decrypts Bing traffic and logs full query strings. The file fetch and the sandbox egress happen inside Microsoft; Cato saw the file fetches arrive from Microsoft address space with a fake browser user agent.

Detection map

Detection map: Defender for Office 365 EmailEvents, the Purview audit log and a TLS-inspecting proxy feed an email hunt and three Sigma rules, mapped to T1566, T1114.002 and T1567, with exits 2 and 3 marked as a gap on Microsoft's side.
Every rule watches the start of the chain. The file fetch and the sandbox egress happen where no tenant log reaches.

Read it left to right. Three telemetry sources feed one hunt and three rules. Everything lines up on the delivery and collection steps; on exfiltration, the proxy rule sees only the first exit and the file rule sees only a precursor of the second. The dashed box on the right is the gap that matters: the fetch and the sandbox egress run on Microsoft’s side, and no rule you write can see them.

Rule overview

RuleDomainLog sourceATT&CK, my mapping (tactic / technique)LevelStatus
Copilot read a resource flagged for cross-prompt injectionCloud-M365m365 / auditInitial Access / T1566; Collection / T1114.002MediumExperimental
Copilot created a file in OneDrive or SharePointCloud-M365m365 / auditExfiltration / T1567Low (hunting)Experimental
Bing request with an embedded URL from a Copilot pageWeb/AppproxyExfiltration / T1567Low (hunting)Experimental

The rules

Microsoft 365 Copilot Read a Resource Flagged for Cross-Prompt Injection

Context: Microsoft’s Purview documentation says each CopilotInteraction record (RecordType 261, with the details under CopilotEventData) lists the resources Copilot accessed, and each entry carries XPIADetected, a boolean flag for a cross prompt injection attack (XPIA) found in that resource. That is the closest thing to a “hostile instructions reached Copilot” signal a tenant gets. Cato says ReLeak got past Microsoft’s injection protections, so the real chains probably never set it; this rule is for the copycats and the next variant.

Condition: alert when a CopilotInteraction audit record shows any accessed resource with XPIADetected set to true.

ATT&CK (my mapping): Initial Access (TA0001) – T1566 Phishing; Collection (TA0009) – T1114.002 Remote Email Collection. ATT&CK has no technique for prompt injection itself, so I map the delivery and the effect.

title: Microsoft 365 Copilot Read a Resource Flagged for Cross-Prompt Injection
id: d1de096a-ba86-4d8f-a652-52e2d4033204
status: experimental
description: |
    Detects a CopilotInteraction audit record in which Microsoft flagged a cross prompt injection attack (XPIA) in a
    resource Copilot read to answer the user, such as an inbound email. ReLeak, EchoLeak and similar chains start with
    instructions hidden in content Copilot retrieves; a hit means hostile instructions reached the model, whether or not
    they worked. ReLeak itself bypassed Microsoft's injection protections, so absence of hits is not proof of safety.
references:
    - https://learn.microsoft.com/en-us/purview/audit-copilot
    - https://learn.microsoft.com/en-us/office/office-365-management-api/copilot-schema
    - https://www.catonetworks.com/blog/releak-three-zero-click-data-exfiltration-chains-in-microsoft-365-copilot/
    - https://netsec101.com/?p=678
author: netsec101.com
date: 2026-12-04
tags:
    - attack.initial-access
    - attack.t1566
    - attack.collection
    - attack.t1114.002
logsource:
    product: m365
    service: audit
    definition: 'Requirement: Microsoft Purview audit (Standard) enabled and CopilotInteraction records (RecordType 261, Workload Copilot) shipped to the SIEM, e.g. via the Office 365 Management Activity API catch-all Audit.General content type. XPIADetected is a boolean in each entry of the CopilotEventData.AccessedResources array; map the path to how your pipeline flattens arrays.'
detection:
    selection_operation:
        Operation: 'CopilotInteraction'
    selection_xpia:
        CopilotEventData.AccessedResources.XPIADetected: true
    condition: all of selection_*
falsepositives:
    - Phishing simulations or red-team emails that carry prompt-injection text on purpose
    - Security newsletters, research mail or tickets that quote prompt-injection examples
level: medium

View on GitHub

False positives and tuning: phishing simulations and red-team mail that carry injection text on purpose, and security newsletters or tickets that quote injection examples. Exclude known simulation senders by joining on the resource ID back to the message, rather than suppressing the user. XPIADetected lives inside the CopilotEventData.AccessedResources array, so make sure your pipeline matches “any element”, not only the first.

How to test: from an external test mailbox, send a harmless email with an obvious “ignore your previous instructions” line, ask Copilot to summarise recent mail, then search the audit log for the CopilotInteraction record. Don’t be surprised by a miss: Microsoft’s own email detection notes that a basic test from a known sender may not trigger, and XPIA flagging isn’t guaranteed either.

Microsoft 365 Copilot Created a File in OneDrive or SharePoint

Context: in ReLeak’s second chain, Copilot wrote a file with a data-bearing link and Microsoft’s background processing fetched it. You can’t see the fetch, but the audit log records that Copilot created something (Action create in AccessedResources). Files created during the exposure window, before the November 11 fix, are worth a look for external links.

Condition: list every CopilotInteraction where an accessed resource has Action create.

ATT&CK (my mapping): Exfiltration (TA0010) – T1567 Exfiltration Over Web Service.

title: Microsoft 365 Copilot Created a File in OneDrive or SharePoint
id: 9357d214-b98f-4ff1-9bd5-d21efec15f54
status: experimental
description: |
    Hunting rule. Lists CopilotInteraction audit records in which Copilot created a resource, such as a Word, Excel,
    PowerPoint or PDF file saved to OneDrive or SharePoint. In the ReLeak generated-file chain, a Copilot-written file
    carried a data-bearing link that Microsoft background processing fetched minutes later. Review created files from
    the exposure window for external links, starting with interactions that also read external email.
references:
    - https://learn.microsoft.com/en-us/purview/audit-copilot
    - https://learn.microsoft.com/en-us/office/office-365-management-api/copilot-schema
    - https://www.catonetworks.com/blog/releak-three-zero-click-data-exfiltration-chains-in-microsoft-365-copilot/
    - https://netsec101.com/?p=678
author: netsec101.com
date: 2026-12-04
tags:
    - attack.exfiltration
    - attack.t1567
    - detection.threat-hunting
logsource:
    product: m365
    service: audit
    definition: 'Requirement: Microsoft Purview audit (Standard) enabled and CopilotInteraction records (RecordType 261, Workload Copilot) shipped to the SIEM. Action is a string in each entry of the CopilotEventData.AccessedResources array (Microsoft examples show "Read"); check the casing of create in your own records.'
detection:
    selection_operation:
        Operation: 'CopilotInteraction'
    selection_create:
        CopilotEventData.AccessedResources.Action: 'create'
    condition: all of selection_*
falsepositives:
    - Every legitimate "draft a document" request; this is a review list, not an alert
level: low

View on GitHub

False positives and tuning: every legitimate “draft me a document” request. This is a review list, not an alert. Narrow it by joining on users whose Copilot sessions also read external email the same day, or by sensitivity label on the created file, then scan the files for links to domains you don’t know.

How to test: ask Copilot in Word or Copilot Chat to create a short document, then find the CopilotInteraction record and check for the create action. Check the exact value casing in your own records.

Bing Request Carrying an Embedded URL Loaded From a Microsoft 365 Copilot Page

Context: the first ReLeak exit, like SearchLeak in June 2026, wrapped the attacker’s URL in a Bing search-by-image link; the browser loaded it and Bing fetched the embedded URL, carrying the data. Cato doesn’t publish the exact request, so this rule looks for the shape: a Bing request whose query string holds a full URL and whose Referer is a Copilot web page. It only works if your proxy decrypts Bing traffic and logs the full query and Referer.

Condition: list proxy requests where the host ends in bing.com, the Referer contains microsoft365.com, copilot.cloud.microsoft or office.com (my inferred list of Copilot web hosts, not published indicators), and the query string contains an http or https URL, plain or URL-encoded.

ATT&CK (my mapping): Exfiltration (TA0010) – T1567 Exfiltration Over Web Service.

title: Bing Request Carrying an Embedded URL Loaded From a Microsoft 365 Copilot Page
id: 17297a42-a78c-4f73-b06e-9338d89c36c1
status: experimental
description: |
    Hunting rule. Detects browser requests to Bing whose query string contains a full URL, sent from a Microsoft 365
    Copilot web page. ReLeak and SearchLeak both moved stolen data out by having Bing fetch an attacker URL on the
    browser's behalf, via a Bing search-by-image URL. The Referer host list and the query match are my inference, not
    published indicators, and the rule only sees traffic your proxy decrypts.
references:
    - https://www.catonetworks.com/blog/releak-three-zero-click-data-exfiltration-chains-in-microsoft-365-copilot/
    - https://www.varonis.com/blog/searchleak
    - https://netsec101.com/?p=678
author: netsec101.com
date: 2026-12-04
tags:
    - attack.exfiltration
    - attack.t1567
    - detection.threat-hunting
logsource:
    category: proxy
    definition: 'Requirement: forward proxy or secure web gateway with TLS inspection for bing.com that logs the full query string and the Referer header. Copilot inside desktop apps may not send a Referer or may bypass the proxy.'
detection:
    selection_host:
        cs-host|endswith: 'bing.com'
    selection_referrer:
        cs-referrer|contains:
            - 'microsoft365.com'
            - 'copilot.cloud.microsoft'
            - 'office.com'
    selection_embedded_url:
        c-uri-query|contains:
            - 'http://'
            - 'https://'
            - 'http%3A%2F%2F'
            - 'https%3A%2F%2F'
    condition: all of selection_*
falsepositives:
    - Users clicking Bing search or image results from Copilot answers that legitimately carry a source URL
    - Copilot web-grounding citations that link back through Bing
level: low

View on GitHub

False positives and tuning: users clicking Bing results or citations from a Copilot answer, which can legitimately carry a URL. Look for long query strings, encoded blobs inside the embedded URL, and destinations that are not well-known sites. Copilot in the Outlook or Teams desktop apps may not send a Referer, or may bypass the proxy, so a quiet result is not a clean bill of health.

How to test: write a synthetic proxy log line with host http://www.bing.com, a Referer of a Copilot page and a query containing an encoded https URL, then run it through the converted query.

Email hunt: Defender for Office 365 prompt injection verdicts

Not a Sigma rule, and untested against a real tenant, because there’s no standard Sigma log source for Defender’s EmailEvents table. Microsoft documents that Defender for Office 365 Plan 2 flags prompt injection in inbound mail under the High confidence phishing verdict with the detection technology “Prompt injection protection”, and that it focuses on injections that try to exfiltrate data through a URL, among others. The columns below are from Microsoft’s EmailEvents schema, but the schema page doesn’t list the prompt-injection value, so treat this as a starting point and adjust the match once you have seen the exact DetectionMethods string in your own tenant:

EmailEvents
| where Timestamp > ago(30d)
| where DetectionMethods has "Prompt injection"
| project Timestamp, NetworkMessageId, SenderFromAddress, RecipientEmailAddress, Subject, DeliveryAction, DetectionMethods

Then check whether any recipient used Copilot after delivery, using the CopilotInteraction records from the first rule.

Coverage and gaps

Step in the caseTacticTechniqueRuleCovered?
Injected email deliveredInitial Access (TA0001)T1566Email hunt; rule 1 once Copilot reads itPartial
Copilot reads mailbox data for the attackerCollection (TA0009)T1114.002Rule 1Partial, only if XPIA flags it
Exit 1: Bing image relayExfiltration (TA0010)T1567Rule 3Partial, needs TLS inspection
Exit 2: generated file fetched by MicrosoftExfiltration (TA0010)T1567Rule 2Precursor only
Exit 3: code interpreter egressExfiltration (TA0010)T1567NoneNo

The gap is structural. Exits two and three ran on Microsoft infrastructure: background processing fetching a link, and a sandbox that Microsoft documents as allowing no inbound or outbound traffic. No proxy, firewall or EDR in your tenant sits on that path. The only party that could log those requests is Microsoft. Until it exposes them in the audit log, the best you can do is shrink the input side: Restricted Content Discovery for sensitive SharePoint sites and Purview DLP for Copilot to keep labelled files and email out of its reach.

Deploying the rules

Pull the YAML from the repo and convert it with sigma-cli. There is no field-mapping pipeline I trust for the Purview CopilotInteraction schema, so convert without one and map the fields by hand to how your SIEM stores the unified audit log (the nested CopilotEventData.AccessedResources array is the part that needs care). I didn’t have sigma-cli on hand for this post, so these commands are untested; Splunk is just the example backend:

sigma convert -t splunk --without-pipeline m365_audit_copilot_interaction_xpia_detected.yml
sigma convert -t splunk --without-pipeline m365_audit_copilot_created_file_hunting.yml
sigma convert -t splunk --without-pipeline proxy_bing_request_with_embedded_url_from_m365_copilot.yml

For the proxy rule, check that your gateway’s field names match cs-host, cs-referrer and c-uri-query. Run everything in alert-only mode for a week before it pages anyone; the two hunting rules should never page anyone at all.

My take

Detectability for this case is low, and I’d rather say so than pad the post. Two of three exits are invisible to customers by design, and the one signal Microsoft gives you, XPIADetected, is exactly what ReLeak was built to dodge. If you only turn on one thing, make it the XPIADetected rule, plus the email hunt if you have Plan 2. They are cheap, they cover the part of the attack that every variant shares, and a hit is worth a human look.

The rule I’d really like to write would match “Copilot caused an outbound request to a domain this tenant has never seen”. Microsoft has that data and customers don’t. Logging the outbound fetches Copilot triggers, with the destination host, in the CopilotInteraction record would turn this from guesswork into a one-line rule. Until then, spend more effort on what Copilot can read than on catching what it sends.

Sources

ReLeak: an unread email made Microsoft 365 Copilot leak data three ways

ReLeak: an unread email made Microsoft 365 Copilot leak data three ways

The email never has to be opened. It just has to be sitting in the mailbox on the day someone asks Copilot to pull together last week’s supplier threads. Copilot fetches it along with everything else, reads the instructions hidden inside, and quietly follows them.

That is the setup behind ReLeak, three zero-click data exfiltration chains in Microsoft 365 Copilot that Cato AI Labs disclosed on December 3, 2026. Each chain ended with confidential mailbox data on an attacker’s server, through three different exits: a Bing image relay, a generated Office file, and the code interpreter sandbox. Microsoft fixed all three in the service between September 17 and November 15, 2026, and nobody knows of any use in the wild.

Severity for defenders: high, but with nothing to patch. The interesting part isn’t the fix. It’s that two of the three exits left from Microsoft’s own infrastructure, where your egress controls and logs never see them.

At a glance

  • What: ReLeak, three zero-click chains in Microsoft 365 Copilot that turn an external email into data theft, found by Cato AI Labs.
  • CVEs: Cato’s disclosure timeline lists three. CVE-2026-78501 (code interpreter chain), “Microsoft 365 Copilot Business Chat Information Disclosure Vulnerability”, rated Critical on Microsoft’s own severity scale, with a CVSS 3.1 score of 8.6 (also Microsoft’s), published September 17, 2026. CVE-2026-124115 (Bing image chain) and CVE-2026-124132 (generated-file chain) are named by Cato but were not published on CVE.org or NVD when I checked on December 4, 2026.
  • Affected: Microsoft 365 Copilot’s Business Chat, a Microsoft-hosted service (the product named in Microsoft’s advisory). The generated-file chain worked through Word, Excel, PowerPoint and PDF files Copilot saved to OneDrive or SharePoint.
  • Exploitation: none known. Cato says it is not aware of any affected customers, and Microsoft’s advisory lists CVE-2026-78501 as not exploited and not publicly disclosed at publication.
  • Fix: server-side, on September 17, November 11 and November 15, 2026. There is nothing to install; Microsoft says CVE-2026-78501 requires no customer action.
  • Who should care: Microsoft 365 admins with Copilot licences, Purview and data security teams, and SOC teams that own Microsoft 365 audit logs.

What we know

Cato AI Labs, the research team inside Cato Networks, reported the three findings to Microsoft between July 29 and August 20, 2026. According to Cato’s disclosure timeline, Microsoft triaged each report within a day and patched the chains on September 17, November 11 and November 15. Vitaly Simonovich’s write-up went up on December 3, and Cato says it is “not aware of any customers affected by these attacks to date.” Microsoft’s advisory for CVE-2026-78501 credits Simonovich.

Microsoft revised that advisory on October 13, changing user interaction from Required to None, which raised the CVSS score to 8.6. That revision matches what Cato describes: the victim only asks Copilot an ordinary question.

ReLeak is a follow-up, not a first. In June 2025 Aim Labs disclosed EchoLeak (CVE-2025-32711, CVSS 9.3), which set the template: a hidden prompt in an email, data packed into an image link, and trusted Teams and SharePoint URLs used to get it out. Microsoft fixed it server-side in May 2025. In June 2026 Varonis Threat Labs showed SearchLeak (CVE-2026-42824), a one-click variant in which Bing’s “Search by Image” endpoint fetched an attacker’s URL from Microsoft’s side.

How it works

All three chains start the same way, with indirect prompt injection: instructions planted in content the assistant retrieves, rather than typed by the user. Copilot answers questions by pulling relevant mail, files and chats into the model’s context (retrieval-augmented generation, or RAG). Anyone who can email you can put text in front of the model, and Copilot acts with the employee’s own permissions: no account access for the attacker, just a reader that copies out whatever the employee can see.

Four-step attack chain: an external email with hidden instructions sits unread, the user asks Copilot an ordinary question, Copilot retrieves the email and follows the instructions, and mailbox data leaves through one of three exits.
The shared start of all three ReLeak chains, as described in Cato AI Labs’ write-up.

The victim’s part is a normal request that happens to make Copilot retrieve the planted email. No click, no open, no consent prompt. All three chains got past Microsoft’s cross-prompt injection (XPIA) classifiers. Cato says the trick was framing: instructions dressed up as a routine business requirement were followed, while a direct instruction was rejected. What differs is the exit.

Exit one, the Bing relay. Copilot’s content security policy stops the browser from loading images from attacker domains. EchoLeak got around that through Teams and SharePoint hosts, which Cato says are no longer allowed. Bing still was. So Copilot wrapped the attacker’s URL, with the data in it, inside a Bing search-by-image link; the browser loaded it, and Bing fetched the embedded URL from its own servers, outside the browser’s policy. SearchLeak used a Bing server-side fetch the same way in June. Cato says it found two more URLs that bypass the policy, unnamed. Disclosed July 29, patched November 15.

Exit two, the generated file. Copilot saves a file to OneDrive or SharePoint with a link that contains the data; Cato confirmed this with PowerPoint, PDF, Word and Excel files. Microsoft’s background processing then fetched the link, which Cato observed one to eight minutes after the conversation ended, without anyone opening the file. The requests came from Microsoft address space with browser-like headers, including a user agent claiming to be a Surface Pro on macOS 10.15, which Cato reads as automated link inspection. Your browser controls and egress logs never see it. Disclosed August 6, patched November 11.

Exit three, the code interpreter. Copilot can write and run code in isolated VMs that Microsoft’s documentation says “don’t allow any inbound or outbound traffic.” Cato got data out two ways: by clearing the sandbox’s proxy settings before a curl request, and with Python’s http.client while leaving the proxy settings alone. Disclosed and triaged August 20, patched September 17, the fastest of the three. Cato’s timeline ties this chain to CVE-2026-78501, whose weakness list includes CWE-923, improper restriction of a communication channel to intended endpoints.

Three columns comparing the ReLeak exits: Bing image relay (request starts in the user's browser), generated file fetched by Microsoft background processing, and code interpreter egress, with report date, fix date, CVE ID and whether a customer can see the traffic.
Only the first exit touches anything a customer can log. Dates and CVE IDs from Cato AI Labs’ disclosure timeline; two of the IDs were not yet published as of December 4, 2026.

Who is affected and how badly

Before the fixes, the attacker needed only to get an email into a Copilot user’s mailbox; Copilot pulled it in during a normal request. The ceiling on damage was the victim’s own access: their mailbox, and whatever files and chats Copilot could ground on for them. For an executive assistant, that’s a lot.

Today the risk from these exact chains is close to zero, because Microsoft fixed them in the service. Microsoft’s advisory says CVE-2026-78501 requires no customer action and has been fully mitigated. The window that remains open is the past, up to the fix dates in September and November 2026. Nobody has reported abuse before the fixes, but nobody outside Microsoft can fully check it either, for reasons I get to below.

What to do now

  1. Don’t look for a patch. There isn’t one for customers. Note CVE-2026-78501 in your vulnerability register as vendor-remediated and move on.
  2. Check that auditing is on. Copilot interactions land in the Purview audit log as part of Audit (Standard), with operation CopilotInteraction, the resources Copilot read (AccessedResources) and an XPIADetected flag per resource. If auditing was off, you have no history for the exposure window.
  3. Retro-hunt that log as far back as your retention allows, up to November 15, 2026, for interactions where XPIADetected is true and for files Copilot created. The rules in the next section do both.
  4. If you have Defender for Office 365 Plan 2, its prompt injection protection works at mail flow with no extra setup. Make sure your policy quarantines high confidence phish rather than delivering it.
  5. Shrink what Copilot can read. Use Restricted Content Discovery on sensitive SharePoint sites, and Purview DLP for Copilot to stop files and emails with chosen sensitivity labels from being processed. This is the control that still works when the next exit turns up.

Detection and monitoring

Be realistic about what you can see. The email arrives through your mail flow, and every Copilot interaction lands in the Purview audit log with the resources it read. The first exit starts in the user’s browser, so a proxy that decrypts Bing traffic and logs full query strings could see it. The other two exits left from Microsoft’s side (Cato saw the file fetches come from Microsoft address space), and nothing in your tenant records those requests. So my rules watch the start of the chain and its precursors, not the theft itself, and all three are experimental.

RuleCategoryLog sourceATT&CK (my mapping)Level
Copilot read a resource flagged for cross-prompt injectionGeneric TTPPurview audit (CopilotInteraction)T1566, T1114.002Medium
Copilot created a file in OneDrive or SharePointHuntingPurview audit (CopilotInteraction)T1567Low
Bing request with an embedded URL from a Copilot pageHuntingForward proxy with TLS inspectionT1567Low

The one I’d switch on first fires when a CopilotInteraction record shows that any resource Copilot read was flagged by Microsoft’s cross-prompt injection (XPIA) detection. A hit means hostile instructions reached the model, whether or not they worked. The honest caveat: Cato says ReLeak got past those protections, so the real chains probably never set this flag. It catches clumsier copycats. XPIADetected sits inside an array, so check how your pipeline flattens it.

title: Microsoft 365 Copilot Read a Resource Flagged for Cross-Prompt Injection
id: d1de096a-ba86-4d8f-a652-52e2d4033204
status: experimental
description: |
    Detects a CopilotInteraction audit record in which Microsoft flagged a cross prompt injection attack (XPIA) in a
    resource Copilot read to answer the user, such as an inbound email. ReLeak, EchoLeak and similar chains start with
    instructions hidden in content Copilot retrieves; a hit means hostile instructions reached the model, whether or not
    they worked. ReLeak itself bypassed Microsoft's injection protections, so absence of hits is not proof of safety.
references:
    - https://learn.microsoft.com/en-us/purview/audit-copilot
    - https://learn.microsoft.com/en-us/office/office-365-management-api/copilot-schema
    - https://www.catonetworks.com/blog/releak-three-zero-click-data-exfiltration-chains-in-microsoft-365-copilot/
    - https://netsec101.com/?p=678
author: netsec101.com
date: 2026-12-04
tags:
    - attack.initial-access
    - attack.t1566
    - attack.collection
    - attack.t1114.002
logsource:
    product: m365
    service: audit
    definition: 'Requirement: Microsoft Purview audit (Standard) enabled and CopilotInteraction records (RecordType 261, Workload Copilot) shipped to the SIEM, e.g. via the Office 365 Management Activity API catch-all Audit.General content type. XPIADetected is a boolean in each entry of the CopilotEventData.AccessedResources array; map the path to how your pipeline flattens arrays.'
detection:
    selection_operation:
        Operation: 'CopilotInteraction'
    selection_xpia:
        CopilotEventData.AccessedResources.XPIADetected: true
    condition: all of selection_*
falsepositives:
    - Phishing simulations or red-team emails that carry prompt-injection text on purpose
    - Security newsletters, research mail or tickets that quote prompt-injection examples
level: medium

If you have Defender for Office 365 Plan 2, add the email side: hunt EmailEvents for the detection technology “Prompt injection protection” (my query for that is untested, so check the exact DetectionMethods value in your tenant) and look at who received those messages and whether they used Copilot afterwards. Keep all of this running after the fixes: the next chain will arrive the same way.

I wrote up all three rules, with the email hunt, tuning notes and the gaps, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The “zero-click” headline is accurate, and for these three chains it is also history. What I take from ReLeak is the pattern. EchoLeak, SearchLeak and now ReLeak each found a new way out, and each fix closed that way out: certain Teams and SharePoint URLs, a Bing endpoint, a sandbox network path. None of them changed the cause, which is that Copilot reads attacker-written email as part of its context and a model can’t reliably tell data from instructions. I expect a fourth exit in 2027, because the incentive and the method are both public now.

The part I think is underrated is where the data left. In exits two and three, the request came from Microsoft’s background processing and from Microsoft’s sandbox. Your proxy, CASB and egress firewall weren’t in the path. For a SaaS assistant, the customer can control what goes in and read the logs Microsoft chooses to write, and that’s about it. I’d spend the effort on input scoping instead.

Two things I’d ask Microsoft for. First, a tenant setting that treats external, unauthenticated email as untrusted for grounding: readable for a summary, but never able to trigger tools, file writes or code. Second, audit records for the outbound fetches Copilot causes, so a customer could answer “did any of this happen to us?” without taking it on faith. And a smaller one: Cato’s timeline names three CVEs, but as of December 4 only one has a published record. Customers track risk by advisory, so the other two should be public as well.

If I ran a Copilot tenant, I’d do two things this week: retro-hunt the audit log for XPIADetected as far back as retention allows, and put Restricted Content Discovery on the handful of SharePoint sites I’d least like to read about in the news.

Sources

Word of the Day: Kerberoasting, Explained with CISA Advisory AA24-290A

Word of the Day: Kerberoasting, Explained with CISA Advisory AA24-290A

Picture this: a help desk account asks a domain controller for a ticket to the SQL Server service. Then one for the backup service, then two dozen more in under a minute. The domain controller hands every one over, because handing out tickets is its job. The password guessing happens later, offline, on somebody else’s graphics card.

TermKerberoasting
Also calledKerberoast, MITRE ATT&CK T1558.003
CategoryIdentity & access
LevelIntermediate
In one sentenceRequesting Kerberos service tickets that any domain user can get, then cracking them offline to recover a service account’s password.

Where the name comes from

Kerberos, the sign-in protocol of Windows domains, is named after the three-headed guard dog of Greek myth, a joke MIT’s 1988 design dialogue plays with. Add “roast” and you have the name of Tim Medin’s 2014 Kerberoast tooling on GitHub. MITRE ATT&CK cites his November 2014 talk, “Attacking Kerberos – Kicking the Guard Dog of Hades”.

How it works

In Active Directory, a service such as a database runs under an account with a service principal name (SPN), so clients can find it. Any signed-in domain user can request a ticket for any SPN, and part of that ticket is encrypted with a key derived from the service account’s password. The attacker carries the tickets away and guesses passwords offline. Because the guessing happens offline, wrong guesses never reach the domain controller.

Microsoft says it targets service accounts with weak passwords and high privileges. With the older RC4 cipher, Microsoft notes, turning a password into a key uses no salt and no repeated hashing, so each guess is cheap.

Four-step flow of Kerberoasting: an attacker with any domain account finds service accounts with SPNs, requests service tickets the domain controller hands out normally, then guesses the password offline, so the domain controller sees no failed logons
Each ticket request looks normal on its own. The guessing happens offline, on the attacker’s own hardware.

Real-world example: CISA advisory AA24-290A

On October 16, 2024, the FBI, CISA, NSA and partner agencies in Canada and Australia published AA24-290A about Iranian cyber actors who, since October 2023, had broken into organisations in healthcare, government, IT, engineering and energy. They got in with password spraying and MFA push bombing: flooding a user with sign-in prompts until one gets approved.

Once inside, the actors enumerated the SPNs of several service accounts and received RC4 tickets, a step the advisory maps to Kerberoasting. They used built-in Windows tools to list domain controllers and admin groups, and in one case likely tried to exploit Zerologon (CVE-2020-1472). The agencies assess the actors sell what they collect on cybercriminal forums.

Timeline: Kerberoast repository created on GitHub in September 2014, Iranian actors' brute force from October 2023, Microsoft Kerberoasting guidance on October 11, 2024, joint advisory AA24-290A on October 16, 2024, and domain controllers assuming AES only for accounts with no explicit setting from April 14, 2026
Over eleven years from public tool to an AES-only default for accounts with no explicit setting. Sources: GitHub, CISA AA24-290A, Microsoft.

Common misconceptions

  • “You need admin rights to do it.” Any domain user can request these tickets, so one stolen account is enough.
  • “Account lockout will stop the guessing.” Because the cracking happens offline, the guesses never hit the domain controller, so lockout never triggers.
  • “Switching to AES fixes it.” Microsoft says AES alone is not a solution and must be paired with strong passwords.

How defenders spot it

The ticket request itself is normal, so you look for patterns and make a stolen ticket worth less:

  • Audit Kerberos service ticket operations on domain controllers (Event ID 4769). Microsoft expects AES types 0x11 and 0x12 on modern Windows; ATT&CK flags RC4 (0x17) and one account requesting many tickets quickly.
  • Use the KDCSVC events 201 to 209 that Microsoft’s January 13, 2026 updates added (KB5073381) to find accounts still relying on RC4.
  • Move service accounts to group managed service accounts, whose passwords are 120 random characters. Otherwise Microsoft advises at least 14 characters, ideally longer and random.
  • Remove SPNs from accounts that don’t need them (Microsoft), and keep service accounts out of groups like Domain Admins (ATT&CK).
  • Disable RC4 for Kerberos, as AA24-290A advises.

Related terms

Password spraying, MFA fatigue, living off the land, pass-the-hash, golden ticket.

Sources

Detecting the ARTEX-linked MONAI Label operation: 2 Sigma rules for web and agent hosts

Detecting the ARTEX-linked MONAI Label operation: 2 Sigma rules for web and agent hosts

Most ARTEX detection work so far has been about catching the agent at your door. The research I covered in my analysis of targets turning the ARTEX agent on its operator adds two new things to look for: indicators from an operation Previdian links to ARTEX with moderate confidence, which hit a MONAI Label honeypot, and a reminder that if your team runs agentic pentest tools, the agent host is a target too.

This post gives you two Sigma rules for that: one web rule for the operation and one hunting rule for agent hosts. For the MONAI Label flaw itself, I point you to the rule I wrote on November 21. The new ones sit on top of the twelve rules in my first ARTEX detection post, which still do the heavy lifting.

At a glance

  • Rules: 2 new (one emerging-threat web rule, one hunting rule), plus a pointer to the existing MONAI Label traversal rule.
  • Domains: Web/App, Linux.
  • Log sources: web server access logs (User-Agent, client IP); Linux process creation with parent command line on agent hosts.
  • ATT&CK: T1190 Exploit Public-Facing Application, T1059.004 Unix Shell.
  • Status: one test (IOCs published by Previdian), one experimental (my inference).
  • GitHub: Detection Rules repo.

The case in brief

Previdian ran a MONAI Label honeypot in Germany. On November 26 and 27, 2026 one source IP sent 454 requests over nearly four hours and reached root-level Python code execution through CVE-2026-133968, a path traversal in the image parameter of PUT /datastore/image in MONAI Label before 0.8.6 (CVSS 9.8; the CVE record says exploitation started in September 2026). Previdian links the operation to ARTEX with moderate confidence, based on a User-Agent, strings in request bodies and multipart boundaries, and a Python shell with ARTEX identifiers found on the attacker’s staging server. Of those, only the User-Agent and the source IP appear in a standard access log; the body strings need a WAF or proxy that records request bodies.

The second half of the case runs the other way. NebuSec and Baldur Security showed in lab tests that content an ARTEX agent pulls from a target can execute inside the agent container. One NebuSec decoy abuses an exposed .git directory: a malicious Git configuration runs code while the repository is being recovered. If you run agentic tools yourself, that may leave a trace in process telemetry on the agent host. The full story, with its caveats, is in the analysis.

Detection map

Detection map: web access logs feed a medium-level User-Agent and IP rule mapped to T1190, with the existing MONAI Label traversal rule from the November 21 post alongside; Linux process creation on agent hosts feeds a low-level hunt mapped to T1059.004; possible in-process code loading is marked as a gap.
One web rule for the operation, one hunt for your own agent hosts, and the existing MONAI Label rule.

Web access logs feed the User-Agent and IP rule, mapped to T1190, next to the existing MONAI Label traversal rule. Process creation on agent hosts feeds the low-level hunt, mapped to T1059.004. The dashed box is my inference, not something the researchers measured: some payload types, such as a pickle or a poisoned .pyc file loaded by the agent’s own Python process, may run in-process without starting a child process. NebuSec’s proof tasks also included a native binary run from memory, and its live captures were reverse shells, which generic process and network rules may see. For in-process code, egress control and isolation are the defence, not a rule.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
User-Agent or source IP of the ARTEX-linked operation (Previdian)Web/AppwebserverInitial Access / T1190Mediumtest
Git checkout spawning an interpreter on an agent hostLinuxlinux / process_creationExecution / T1059.004Lowexperimental

The rules

Web request with User-Agent or source IP from the ARTEX-linked MONAI Label operation

Context: Previdian published the User-Agent ARTEX-CVE2026-133968 and the source IP of the operation. The earlier ARTEX User-Agent rule matches Mozilla/5.0 (ARTEX) and the AntiFox string spa-api-recon, and Café Security Research says ARTEX 0.3.30 now sends ordinary browser User-Agents, so this rule adds the operation’s own values instead of editing the old one.

Condition: alert when the User-Agent is exactly the published value, or the client IP is the published source. Both are attacker-controlled or reassignable, and the ARTEX attribution is moderate confidence, so the rule sits at medium.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Web Request With User-Agent or Source IP From the ARTEX-Linked MONAI Label Operation
id: 08e4b8c7-5b97-4883-9c5f-42a1c30d85fc
status: test
description: |
    Detects web requests with the User-Agent or from the source IP that Previdian published for an operation it links
    to ARTEX with moderate confidence, which exploited a MONAI Label honeypot in November 2026. Both values are
    attacker-controlled or reassignable; a hit is a reason to review everything else the source did, not proof of ARTEX.
references:
    - https://blog.previdian.com/uncovering-an-artex-linked-offensive-operation-in-the-wild/
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
    - https://netsec101.com/?p=650
author: netsec101.com
date: 2026-12-01
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-133968
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_ua:
        cs-user-agent: 'ARTEX-CVE2026-133968'
    selection_ip:
        c-ip: '193.32.148.31'
    condition: 1 of selection_*
falsepositives:
    - Your own authorised tests that reuse the published User-Agent; exclude their source IPs
    - The source IP may be reassigned to an unrelated customer of the hosting provider after the operation ends
level: medium

View on GitHub

False positives and tuning: your own tests that reuse the User-Agent, and the IP being reused by someone else once the operator moves on. Retire the IP selection after a few weeks.

Body markers (hunting guidance, no rule): Previdian saw ARTEX strings in request bodies and multipart boundaries with an artex prefix, plus markers such as ARTEX207NF, ARTEX_OOB_207_CB, ARTEX_OOB_INLINE_207 and ARTEXSHELL_OK. If your WAF or reverse proxy records bodies, search them for those strings. I did not turn this into a Sigma rule because body fields differ by product and the standard webserver logsource has none.

How to test: from a lab client, send a GET to any test web server with the published User-Agent and confirm the access log line matches.

The MONAI Label traversal itself: use the existing rule

I did not write a new rule for CVE-2026-133968. It is the same MONAI Label datastore flaw I covered on November 21 under its GitHub advisory ID GHSA-qc22-rmgc-vg94: the maintainers’ 0.8.6 release notes list the two IDs as one issue, fixed by the same pull request. The rule in that detection post already flags dot-dot sequences, slashes and their encoded forms in the image and tag parameters of the datastore upload routes, so load that one rather than a near-copy.

Git checkout spawning a shell or interpreter on an agentic pentest host

Context: NebuSec’s first decoy class plants a malicious Git configuration in an exposed .git directory, so that recovering the repository runs code on the agent’s machine. It reported a sanitizer bypass in git-dumper to its maintainer on November 28, 2026. NebuSec published no process telemetry, so this rule is my inference about what that may look like on the host.

Condition: on hosts that run AI pentest agents, flag a git process whose command line contains checkout starting a shell, Python, Perl, curl, wget or netcat.

ATT&CK: Execution (TA0002) – T1059.004 Unix Shell.

title: Git Checkout Spawning a Shell or Interpreter on an Agentic Pentest Host
id: 0b7ef67b-2126-4685-8f72-1b6ad74e4281
status: experimental
description: |
    Hunts for a git checkout process that starts a shell, scripting interpreter or download tool. NebuSec showed that a
    target can plant a malicious Git configuration in an exposed .git directory so that recovering the repository runs
    code on the machine of the agent that recovers it. Scope this to hosts or containers that run AI pentest agents.
references:
    - https://nebusec.ai/research/artexpot/
    - https://baldur.dk/blog/artex-go-hack-yourself/
    - https://netsec101.com/?p=650
author: netsec101.com
date: 2026-12-01
tags:
    - attack.execution
    - attack.t1059.004
    - detection.threat-hunting
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith: '/git'
        ParentCommandLine|contains: 'checkout'
    selection_child:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
            - '/zsh'
            - '/python'
            - '/python3'
            - '/perl'
            - '/curl'
            - '/wget'
            - '/nc'
            - '/ncat'
    condition: all of selection_*
falsepositives:
    - Legitimate post-checkout hooks, smudge filters or Git LFS in repositories your own team cloned on the same host
    - Developer workstations; do not deploy this outside dedicated agent hosts without heavy tuning
level: low

View on GitHub

False positives and tuning: post-checkout hooks, smudge filters and Git LFS in repositories your own team cloned. That is why this is a hunting rule at level low, scoped to dedicated agent hosts or containers. On developer laptops it would be noise.

How to test (suggested, I have not run it): in a throwaway container, create a test repository with a harmless post-checkout hook that runs /bin/true, run git checkout, and check whether git starting sh appears in your process telemetry.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
MONAI Label traversal requestInitial AccessT1190Existing rule from the November 21 postYes, existing rule
Published User-Agent or source IPInitial AccessT1190User-Agent or source IP of the operationYes, IOC only
ARTEX strings in request bodiesInitial AccessT1190NoneGap: needs body logging; text guidance above
Python shell and Chisel tunnelling on the victimExecution / C2T1059.006 / T1572None newGap: use generic reverse shell and tunnelling rules
Malicious Git config runs during repository recoveryExecutionT1059.004Git checkout spawns interpreterHunting only
Pickle, .pyc or native module loaded by the agentExecutionT1059.006NoneGap: may run in-process (inference)
Agent command reads model keys from the environmentCredential AccessT1552.001NoneGap: fix by design

The gaps on the agent side are design problems, not logging problems. NebuSec says that in its tested setup the operator’s API key, database credentials and console signing key sit in the container environment, and Café says agent commands can read them by default. No Sigma rule fixes that. Moving secrets out of the worker, running each task in a throwaway sandbox and allowing egress only to the target and the model gateway does. Runtime sensors built on eBPF would give you more than process creation here.

Deploying the rules

Grab the YAML from GitHub and convert it with sigma-cli. I have not run these conversions here; the lines below skip field mapping, so pick a processing pipeline that matches your web server, proxy or Linux telemetry schema before you rely on the output:

sigma convert -t splunk --without-pipeline web_artex_linked_monai_operation_ua_or_source_ip.yml
sigma convert -t kusto --without-pipeline proc_creation_lnx_agent_host_git_checkout_spawns_interpreter.yml

Check that cs-user-agent and c-ip map to your proxy or web server fields, and that ParentCommandLine exists in your Linux telemetry. Run both in alert-only mode for a week before anything pages someone.

My take

Honestly, these are thin rules for a thin slice of the story, and I’d rather say that than pretend otherwise. The User-Agent and IP rule will be useful for a few weeks and then go stale, like every IOC rule built on values an operator controls. If you run MONAI Label, the rule I would turn on first is the existing traversal rule from November 21, because it watches a 9.8 that is already being exploited.

The hunting rule matters more as a habit than as a detection. If you run agentic tools, you need the same telemetry on the agent host that you demand on a jump box. ARTEX should not need a Sigma rule to protect its operators. It should keep secrets out of the worker and sandbox each task, which is close to what NebuSec recommends to agent builders and what Baldur Security recommends for agent tooling.

Sources

Targets can turn the ARTEX agent on its operator, in the lab: what it means for defenders

Targets can turn the ARTEX agent on its operator, in the lab: what it means for defenders

Twenty-seven seconds. That is how long it took, in NebuSec’s fastest lab run, for a decoy web service to get code running inside an ARTEX agent that had been sent to attack it. Three research teams wrote about this soft spot within two days of each other.

On November 27 and 28, 2026, two lab tests (NebuSec and Baldur Security) got an ARTEX agent to run code chosen by its target, and a static code review by Café Security Research found the design weaknesses that make that possible. In NebuSec’s lab setup, that code landed in the same root container that holds the operator’s model API key, database credentials and console signing key. The same week, Previdian traced an ARTEX-linked operation from a honeypot back to the attacker’s own exposed staging server.

I covered what ARTEX is and how its intrusions look in my earlier ARTEX analysis, so this post is only about the new part: the agent itself is attack surface. Severity for defenders: medium. It changes how you should think about deception, about User-Agent-based ARTEX rules, and about any agentic pentest tool your own team runs.

At a glance

  • What: two lab tests show content served by a target can run code inside the ARTEX agent container; a code review explains why.
  • Headline result: 33 of 36 NebuSec lab runs on ARTEX 0.3.15 reached code execution.
  • In the wild: NebuSec reports five reverse shells on November 30, 2026, two from ARTEX and three from an unidentified framework, at non-root privileges, host access not verified, and with an unresolved “internal testing” caveat. Separately, Previdian ties a MONAI Label exploitation run to ARTEX with moderate confidence.
  • Related CVE: CVE-2026-133968, MONAI Label before 0.8.6, path traversal to remote code execution, CVSS 9.8, exploited in the wild per the CVE record.
  • Fix: none announced for these findings. ThreatBook, which says it owns ARTEX, says it discontinued the open-source version on October 8, 2026 and offers Artex Pro only to verified enterprises. Its November 26 statement predates the research.
  • Who should care: SOC teams hunting ARTEX, anyone running MONAI Label, and any red team or MSSP running agentic pentest tools.

What is new since November 22

NebuSec published “ArtexPot” on November 28: decoy services built to compromise the agent that attacks them. Against unmodified ARTEX 0.3.15, with two models (a DeepSeek and a GPT setup), six decoys produced code execution in 33 of 36 runs. DeepSeek went 18 for 18, GPT 15 for 18. Runs took between 27 seconds and 17 minutes. A seventh decoy, a backdoored SDK the agent runs on purpose, worked 8 times out of 8 over two rounds, one of them with the implant removed.

Baldur Security reached a similar result on the same day with a single run on GLM-5.3. It planted a fake “leaked” debug key on its own site, with a note telling admins to pipe a remote script into a shell. The agent refused at first and correctly called it risky. Baldur then changed the script to return misleading error messages and held back the real payload for several requests. The agent ran it and handed back a reverse shell inside the ARTEX container. Kevin Joensen’s summary was blunt: “ARTEX offers no sandboxing and everything is mashed together.”

Café Security Research looked at the code without running anything. Its static review, dated November 27, says ARTEX skips its engine’s approval step for every agent, checks scope only against its own records rather than against the commands agents run, and by default lets every agent command read the operator’s model keys and database password. It did not test whether a target could exploit that. It also notes an unauthenticated health check on port 8787 that names the service and version by default, and that 0.3.30 makes agents send ordinary browser User-Agents.

Previdian added the in-the-wild piece. A MONAI Label honeypot in Germany logged 454 requests from one IP over nearly four hours on November 26 and 27, and the attacker reached root-level Python code execution through CVE-2026-133968. The payloads led Previdian to the attacker’s exposed staging server: 40 files, including exploit scripts, callback logs, a Python shell with ARTEX identifiers and SSH private keys. Previdian says it ran none of the tools and used none of the credentials.

How a target turns the tables

The interesting thing is what did not work. On the one NebuSec target with planted prompt injections, the workers downloaded seven of the eight scripts and ran none, and the planner flagged the first one on sight. Seventeen command-injection probes all failed. In these scenarios the model was not the weak point; Baldur’s agent, too, refused before it was talked round. The runtime around the model is where things broke.

Four-step chain from NebuSec's lab: the agent recovers or loads a target artefact, the artefact runs code as a side effect, the code lands in a shared root container, and the operator's model key, database credentials and signing key are exposed.
How a decoy turned the tables on an ARTEX agent in NebuSec’s lab, with Baldur Security’s test and Café Security’s code review.

What did work was ordinary pentest busywork that executes code as a side effect. In NebuSec’s decoys, a trusted tool fails (a malicious Git configuration in an exposed .git/ directory runs during checkout, via a git-dumper sanitizer bypass NebuSec reported on November 28), code runs implicitly (pickled backups, poisoned .pyc files), or the agent runs it on purpose while building a private SDK or checking a vendor advisory.

Then the architecture does the rest. NebuSec says that in its tested setup the backend, every worker and every shell command the model writes share one container running as root, with the LLM API key, database credentials and console signing key in the environment and no egress limits. Baldur’s shell could see the panel binary, a keys directory and a link to the JWT signing key; the files were owned by root, though Baldur does not say its shell was. In one NebuSec run, a worker flagged a pickle as malicious and another loaded it under two seconds later.

Comparison of the three studies: NebuSec lab decoys on ARTEX 0.3.15 with 33 of 36 runs, Baldur Security single run on GLM-5.3 with a reverse shell, Café Security static review of 0.3.15 and 0.3.30.
Two lab tests and a code review point to the same weakness in the ARTEX runtime.

What the research does not show

The lab numbers come from one vendor, one ARTEX version, two models and scenarios NebuSec picked. They measure how exposed the design is, not how many criminal agents could be caught. Baldur’s result is a single run on one model with no version stated. Café explicitly did not test whether a target can exploit the credential exposure. Neither lab team showed a break-out from the container to the operator’s host.

The live captures are weaker still. NebuSec deployed a public ArtexPot on November 15 and says two agents probed it on November 30: two shells came from ARTEX and three from an unidentified framework, all at non-root privileges, with host-level access not verified. Nobody knows who ran the agents or whether they were authorised, and NebuSec’s own timeline caption says each lane starts “during internal testing”, which conflicts with the public-traffic story. I treat these as unverified. Previdian’s ARTEX link rests on attacker-controlled strings, and it says so. NebuSec also sells a commercial ArtexPot.

The idea is not new either: the Mantis paper (arXiv, October 2024) and “Cloak, Honey, Trap” (USENIX Security 2025) both described decoys that turn an attacking agent against itself. What is new is the same weakness in a tool in active criminal use.

Who should care

SOC teams hunting ARTEX: since 0.3.30 sends normal browser User-Agents, any rule keyed on strings like Mozilla/5.0 (ARTEX), including one of mine, will miss newer builds. Teams running MONAI Label: CVE-2026-133968 is a 9.8 and looks like the same datastore flaw I covered on November 21 under its GitHub advisory ID, its CVSS vector says no privileges are required, and the CVE record says exploitation started in September 2026. And anyone running an agentic pentest tool: in a setup like the one NebuSec tested, where the agent shares a container with its secrets and has open egress, a hostile target can do to it what these researchers did. Separately, on November 30 PortSwigger’s James Kettle described a website in a private bug-bounty programme that tried to prompt-inject automated testing tools; ARTEX was not involved.

What to do now

  1. Patch MONAI Label to 0.8.6 or later, take it off the internet or put authentication in front of it, and run the container as non-root. Then check logs for unusual datastore requests and outbound traffic.
  2. Hunt for Previdian’s published indicators: source IP 193.32.148[.]31 and User-Agent ARTEX-CVE2026-133968 in access logs; markers such as ARTEX207NF and ARTEXSHELL_OK in request bodies, if your WAF or proxy logs them. Correlate with behaviour; identifiers alone are not proof.
  3. Scan your own address space for anything answering as ARTEX on port 8787. An ARTEX console inside your network is either a red-team tool you should know about or an incident.
  4. If you run agentic pentest tools: split the worker that touches targets from the console and its secrets, give each task a throwaway sandbox with strict egress, run workers without root, and enforce scope at the network or execution layer rather than in a prompt.
  5. Do not hack back. Deception inside your own estate is fine; anything that executes code on a visitor’s machine needs counsel first, and none of this research settles the legal question.

Detection and monitoring

Most of this happens on the attacker’s side, so the defender’s view is narrow: the ARTEX-linked operation in web logs of the service it targets, and, if you run agents yourself, some target-triggered execution in process telemetry on the agent host. Some payload types, such as a pickle loaded by Python, may run in-process without starting a child process; there, egress control is the defence. I added two rules on top of the twelve from the first ARTEX detection post. For the MONAI Label traversal itself, I reuse the rule in my November 21 detection post.

RuleCategoryLog sourceATT&CKLevel
User-Agent or source IP of the ARTEX-linked operation (Previdian)Emerging threatWeb server access logsT1190Medium
Git checkout spawning an interpreter on an agent hostHuntingLinux process creationT1059.004Low

The simplest rule matches what an access log can actually see from Previdian’s report: the exact published User-Agent or the published source IP. Operators control the first and can drop the second, so it has a short shelf life and sits at medium, but a hit tells you which source to pull apart. Previdian’s other ARTEX strings were in request bodies, which access logs do not record.

title: Web Request With User-Agent or Source IP From the ARTEX-Linked MONAI Label Operation
id: 08e4b8c7-5b97-4883-9c5f-42a1c30d85fc
status: test
description: |
    Detects web requests with the User-Agent or from the source IP that Previdian published for an operation it links
    to ARTEX with moderate confidence, which exploited a MONAI Label honeypot in November 2026. Both values are
    attacker-controlled or reassignable; a hit is a reason to review everything else the source did, not proof of ARTEX.
references:
    - https://blog.previdian.com/uncovering-an-artex-linked-offensive-operation-in-the-wild/
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
    - https://netsec101.com/?p=650
author: netsec101.com
date: 2026-12-01
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-133968
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_ua:
        cs-user-agent: 'ARTEX-CVE2026-133968'
    selection_ip:
        c-ip: '193.32.148.31'
    condition: 1 of selection_*
falsepositives:
    - Your own authorised tests that reuse the published User-Agent; exclude their source IPs
    - The source IP may be reassigned to an unrelated customer of the hosting provider after the operation ends
level: medium

Retro-hunt MONAI Label web logs back to September 2026, when the CVE record dates exploitation from, and age out the IP after a few weeks. Keep the behavioural ARTEX rules from November running: they do not depend on User-Agents, so the 0.3.30 change does not hurt them.

I wrote up both rules, with tuning notes and lab tests, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The headline “criminal AI tool hacked by its targets” is half right. The architecture finding is solid: two lab tests and a code review point the same way. In the setup NebuSec tested, ARTEX runs model-written commands as root next to the keys that pay for the model. That is exactly why I would not run it, or any fork of it, on a box that matters. The “caught in the wild” part is thin: two ARTEX shells and three from an unknown framework, of unknown origin, with an internal-testing question hanging over them. I would not build a strategy on that.

For defenders, the gain is modest but real: decoys are a cheap way to tell an autonomous agent from a human. Amazon showed the gentler version on November 13, when MadPot decoys posing as LLM APIs collected agents’ own campaign records without running anything on an operator system. I’d start there, inside my own estate.

The lesson I’d underline is for our own side. Red teams and MSSPs are adopting agentic tools fast, and many may share the same pattern: one container, broad egress, secrets in the environment, scope enforced by a prompt. If a target can steer an attacker’s agent, it can steer yours. Treat the agent host like a jump box, because that is what it is.

Sources

Detecting MONAI Label CVE-2026-133968: 5 Sigma rules for web, host and network

Detecting MONAI Label CVE-2026-133968: 5 Sigma rules for web, host and network

First written November 21, 2026. Updated December 3, 2026: the flaw is now CVE-2026-133968 (CVSS 9.8), fixed in MONAI Label 0.8.6 and in CISA KEV, and Previdian has published indicators from a second operation against it.

Amazon’s write-up advises defenders to build high-confidence detections that can trigger an automated response, with humans overseeing outcomes. That sounds abstract until you try it. MONAI Label is a niche Python application, and when I first wrote this I found no public detections for it. So I wrote some.

The bug, the release history and the AI agent angle are in my analysis. This post is the defender’s half: five Sigma rules, the telemetry each one needs, how to tune them and how to test them safely.

At a glance

  • Vulnerability: CVE-2026-133968 (GHSA-qc22-rmgc-vg94), CVSS 9.8, MONAI Label before 0.8.6. In CISA KEV since November 23, 2026.
  • Rules: 5. Three are status: test (built on behaviour or indicators from the advisory or Amazon), two are status: experimental (my inference).
  • Log sources: HTTP access logs from MONAI Label (opt-in with --access_log) or a reverse proxy; Linux file and process events (Sysmon for Linux, auditd or an EDR); firewall logs. Only the web rule needs the access log.
  • ATT&CK (my mapping): T1190, T1546.018, T1059.004, T1098.004, T1053.003. The IP rule has none.
  • New since November 21: Previdian’s indicators for an ARTEX-linked operation are in my ARTEX detection post, not repeated here.
  • YAML: my Detection Rules repo on GitHub.

The case in brief

According to the advisory, PUT /datastore/image uses the caller’s image query parameter as the image ID without validation and copies the upload to that path. PUT /datastore/label builds its path from the image ID and the label tag the same way, and in 0.8.5 the deprecated PUT /datastore/ route calls the image handler. Authentication is off by default, so the result is an arbitrary file write as whatever user runs the server.

Amazon describes what the attacker did with the bug in the medical imaging application it doesn’t name (the CVE record and advisory identify it as MONAI Label): a Python reverse shell written to sitecustomize.py, then a training call that made the server start a fresh Python process, which imported the hook and connected back as root. MONAI Label 0.8.5 runs those tasks as python -m monailabel.interfaces.utils.app. That gives four places to look: the HTTP request, the file on disk, the processes that follow, and the network.

Detection map

Detection map: an opt-in HTTP access log, Linux file events, Linux process creation and firewall logs feed five Sigma rules; four are mapped to T1190, T1546.018, T1059.004, T1098.004 and T1053.003, the IP rule has no technique, and .pth hooks, pure-Python shells and the C2 pivot are marked as gaps.
Which telemetry feeds which rule, and what none of them can see. Only the web rule needs MONAI Label’s opt-in access log. ATT&CK mapping is mine.

The top source is the weak spot: the access log is off unless someone started the server with --access_log, and in my experience many lab installs don’t sit behind a proxy. The host sources are stronger, but only if the GPU box runs Sysmon for Linux, auditd or an EDR. The dashed box is what none of the rules see: .pth startup hooks, a reverse shell that never starts a shell binary, the C2 channel and the proxy pivot.

Rule overview

RuleDomainLog sourceATT&CK (my mapping)LevelStatus
Datastore upload with path traversal in image or tag parameterWeb/Appwebserver (opt-in access log or proxy)Initial Access / T1190HighTest
Python startup hook sitecustomize or usercustomize createdLinuxlinux / file_eventPersistence, Privilege Escalation / T1546.018HighTest
Shell or network tool spawned by MONAI Label server or task processLinuxlinux / process_creationExecution / T1059.004HighExperimental
Python interpreter writes SSH authorized keys or cron filesLinuxlinux / file_eventPersistence / T1098.004, T1053.003MediumExperimental
Traffic with IP addresses from Amazon’s Cairn reportNetworkfirewallNone (role not stated)MediumTest

The rules

Datastore upload with path traversal in the image or tag parameter

Context. The exploit request itself, the earliest point you can catch the attack. It needs HTTP request logs with the query string: the --access_log flag or a reverse proxy logging in front of the server.

Condition. Alert on a PUT to a path ending in /datastore/, /datastore/image or /datastore/label where the image or tag parameter contains .., a slash, a backslash, or their URL-encoded (or double-encoded) forms. Endpoints, parameters and bug class come from the advisory and the CVE record; the character set is my inference. endswith keeps it working behind a path prefix.

ATT&CK. Initial Access (TA0001), T1190 Exploit Public-Facing Application.

title: MONAI Label Datastore Upload With Path Traversal In Image Or Tag Parameter
id: 580a8863-e255-42ca-a57b-f3735ae7f382
status: test
description: |
    Detects PUT requests to the MONAI Label datastore upload routes where the image or tag query
    parameter contains a dot-dot sequence, a slash, a backslash or their URL-encoded forms.
    CVE-2026-133968 (GHSA-qc22-rmgc-vg94, fixed in 0.8.6) lets these parameters write files outside
    the datastore. Needs HTTP access logs, which MONAI Label only writes with --access_log, or the logs
    of a reverse proxy in front of it.
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
    - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
    - https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
    - https://netsec101.com/?p=382
author: netsec101.com
date: 2026-11-21
modified: 2026-12-01
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-133968
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_method:
        cs-method: 'PUT'
    selection_uri:
        cs-uri-stem|endswith:
            - '/datastore/'
            - '/datastore/image'
            - '/datastore/label'
    selection_param:
        cs-uri-query|re: '(?i)(^|&)(image|tag)=[^&]*(\.\.|/|\\|%2f|%5c|%2e%2e|%252f|%255c)'
    condition: all of selection_*
falsepositives:
    - Authorised vulnerability scanning or penetration tests against the MONAI Label server
    - Custom clients that send image IDs containing folder separators; confirm with the data owners and filter on their source addresses
level: high

View on GitHub

False positives and tuning. Legitimate image IDs are plain names, so the main noise is your own scanners and pentests; filter their source addresses. Uvicorn’s access log is one line per request, so you need a parser that splits it into cs-method, cs-uri-stem and cs-uri-query. SigmaHQ’s generic “Path Traversal Exploitation Attempts” rule probably won’t catch this: it looks for traversal towards /etc/ and Windows folders, not a write into site-packages.

How to test. Replay a synthetic log line such as PUT /datastore/image?image=..%2Ftest through your parser and SIEM. For a live request, use a lab instance on 0.8.6 or later, where the fix reduces the ID to its base name so the upload stays inside the datastore and the request is still logged. Never test against hosts you don’t own.

Python startup hook sitecustomize or usercustomize created

Context. The step Amazon observed: the reverse shell written to sitecustomize.py, which Python imports at every interpreter start. It needs no access log and doesn’t care how the file got there. Elastic ships the same idea as “Python Site or User Customize File Creation”; this is my own Sigma version.

Condition. Alert when any process creates or overwrites a file ending in /sitecustomize.py or /usercustomize.py, unless the writer is a system or conda package manager. File events don’t carry the writer’s command line, so the rule stays generic.

ATT&CK. Persistence (TA0003), Privilege Escalation (TA0004), T1546.018 Event Triggered Execution: Python Startup Hooks.

title: Python Startup Hook Sitecustomize Or Usercustomize Created On Linux
id: c473ee4e-df72-4d6d-8b73-d4604dcacadc
status: test
description: |
    Detects creation or overwrite of sitecustomize.py or usercustomize.py, which Python imports
    automatically at interpreter startup. Amazon reports the actor wrote a Python reverse shell to
    sitecustomize.py through the file-write bug, then made the server start a new Python process
    to run it. In my experience such a file is uncommon, so a new one is worth a look on any host.
references:
    - https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
    - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
    - https://docs.python.org/3/library/site.html
    - https://attack.mitre.org/techniques/T1546/018/
    - https://netsec101.com/?p=382
author: netsec101.com
date: 2026-11-21
modified: 2026-12-01
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.018
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|endswith:
            - '/sitecustomize.py'
            - '/usercustomize.py'
    filter_main_package_managers:
        Image|endswith:
            - '/dpkg'
            - '/apt'
            - '/apt-get'
            - '/rpm'
            - '/dnf'
            - '/yum'
            - '/zypper'
            - '/conda'
            - '/mamba'
            - '/micromamba'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Distribution packages that may ship a sitecustomize.py with the system Python, when written by a tool not in the filter list
    - pip or Poetry installing a package that provides sitecustomize.py; pip runs as the python interpreter, so it cannot be filtered on Image. Baseline per host
    - Coverage and profiling tools that may drop a sitecustomize.py on CI runners
level: high

View on GitHub

False positives and tuning. pip and Poetry run as the Python interpreter, so a package that installs a sitecustomize.py will fire; coverage and profiling tools on CI runners may too. Baseline per host for a week, then filter specific paths, not the interpreter.

How to test (my suggestion, not from a source). In a throwaway container, create an empty sitecustomize.py in the directory printed by python3 -c 'import site; print(site.getsitepackages()[0])', confirm the alert, then delete the file.

Shell or network tool spawned by the MONAI Label server or its task process

Context. Amazon reports the training call started the Python process that ran the planted shell, as root. Commands an operator types into that shell run as children of a MONAI Label process.

Condition. Alert when sh, bash, dash, zsh, nc, ncat, socat, curl or wget starts with a parent command line containing monailabel. That covers monailabel start_server and the task processes. The attack’s process tree isn’t published, so this is inference.

ATT&CK. Execution (TA0002), T1059.004 Command and Scripting Interpreter: Unix Shell.

title: Shell Or Network Tool Spawned By MONAI Label Server Or Its Task Process
id: d571b32e-2a17-4ac5-bded-ee3d5628170b
status: experimental
description: |
    Detects a Unix shell or network utility whose parent command line contains monailabel, which
    covers the server and the Python processes it starts for training and other tasks. Amazon reports
    that a training API call started the Python process that ran the planted reverse shell, giving
    the actor a root shell. Inferred logic: the exact process tree is not published.
references:
    - https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
    - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
    - https://netsec101.com/?p=382
author: netsec101.com
date: 2026-11-21
modified: 2026-12-01
tags:
    - attack.execution
    - attack.t1059.004
    - cve.2026-133968
    - detection.emerging-threats
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent:
        ParentCommandLine|contains: 'monailabel'
    selection_child:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
            - '/zsh'
            - '/nc'
            - '/ncat'
            - '/socat'
            - '/curl'
            - '/wget'
    condition: all of selection_*
falsepositives:
    - Custom MONAI Label apps or training scripts that shell out, for example to download models or call system tools; baseline child command lines per app before alerting
level: high

View on GitHub

False positives and tuning. Custom apps can shell out during training; baseline child command lines per app. A pure-Python reverse shell stays invisible here until the operator runs a command, which is why the startup hook rule matters more. To test, make a lab app’s training hook run /bin/sh -c true, then remove it.

Python interpreter writes SSH authorized keys or cron files

Context. The advisory lists SSH keys and cron as routes from this file write to code execution. Amazon doesn’t report them being used, but the next actor might, and the writes would presumably come from python.

Condition. Alert when an image path containing /python writes authorized_keys or authorized_keys2 under .ssh, a file under /etc/cron.d/, /etc/cron.hourly/, /etc/cron.daily/ or /var/spool/cron/, or /etc/crontab. Inferred, hence experimental and medium.

ATT&CK. Persistence (TA0003), T1098.004 SSH Authorized Keys; T1053.003 Cron.

title: Python Interpreter Writes SSH Authorized Keys Or Cron Files On Linux
id: e2d226bb-db95-4365-b269-2f022ee1c6e0
status: experimental
description: |
    Detects a Python interpreter creating or modifying authorized_keys or cron files. The MONAI Label
    advisory GHSA-qc22-rmgc-vg94 names SSH keys and cron as routes from its arbitrary file write to
    code execution, and the server is a Python process, so that write would presumably come from python.
    Inferred from the advisory; Amazon only describes the sitecustomize.py route.
references:
    - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
    - https://netsec101.com/?p=382
author: netsec101.com
date: 2026-11-21
tags:
    - attack.persistence
    - attack.t1098.004
    - attack.t1053.003
logsource:
    product: linux
    category: file_event
detection:
    selection_image:
        Image|contains: '/python'
    selection_target_keys:
        TargetFilename|endswith:
            - '/.ssh/authorized_keys'
            - '/.ssh/authorized_keys2'
    selection_target_cron:
        TargetFilename|startswith:
            - '/etc/cron.d/'
            - '/etc/cron.hourly/'
            - '/etc/cron.daily/'
            - '/var/spool/cron/'
    selection_target_crontab:
        TargetFilename: '/etc/crontab'
    condition: selection_image and 1 of selection_target_*
falsepositives:
    - Configuration management written in Python (Ansible modules, Salt) that manages SSH keys or cron entries; filter on the service account or parent
    - cloud-init writing authorized_keys on first boot
level: medium

View on GitHub

False positives and tuning. Ansible, Salt and cloud-init are written in Python and manage exactly these files; filter by service account or parent. On a lab GPU box with no configuration management, any hit deserves a look.

Traffic with the IP addresses from Amazon’s Cairn report

Context. Amazon lists 142[.]4.98.145 and 142[.]4.107.34 as seen in records dated September 8 to 10, 2026, without saying what role they played. Treat them as retro-hunt leads. Previdian’s indicators from the November ARTEX-linked operation are a different set; they are in the ARTEX detection post.

Condition. Any firewall record with either address as source or destination. The YAML holds the real addresses, because a rule can’t match defanged ones. ATT&CK: none; without a stated role, any technique would be invented.

title: Traffic With IP Addresses From Amazon Cairn Campaign Report
id: 07f34ede-b119-4c8a-b18c-eeb09da4ca74
status: test
description: |
    Detects traffic to or from the two IP addresses Amazon Threat Intelligence says appear in records
    dated September 8 to 10, 2026, in its report on the Cairn AI agent campaign that exploited a
    medical imaging application. Amazon does not state the role of the addresses, so treat a match
    as a lead for a retro-hunt, not proof of compromise.
references:
    - https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
    - https://netsec101.com/?p=382
author: netsec101.com
date: 2026-11-21
tags:
    - detection.emerging-threats
logsource:
    category: firewall
detection:
    selection_dst:
        dst_ip:
            - '142.4.98.145'
            - '142.4.107.34'
    selection_src:
        src_ip:
            - '142.4.98.145'
            - '142.4.107.34'
    condition: 1 of selection_*
falsepositives:
    - Infrastructure reuse; the addresses may have been reassigned since September 2026
level: medium

View on GitHub

Tuning. Addresses get reassigned. Run it against logs from September 1, 2026 onwards and retire it after about three months. Test by replaying a log line; don’t generate real traffic to them.

Coverage and gaps

Step in the caseTacticTechnique (my mapping)RuleCovered?
Agents map the APIReconnaissanceT1595–Gap: needs access logs and a baseline
Traversal uploadInitial AccessT1190Datastore upload traversalYes, if access log or proxy
sitecustomize.py writtenPersistenceT1546.018Startup hook createdYes, with file telemetry
.pth startup hook (alternative)PersistenceT1546.018–Gap: too noisy here
authorized_keys or cron (alternative)PersistenceT1098.004, T1053.003Python writes keys or cronYes (inferred)
Train call runs the payloadExecutionT1059.004Shell under MONAI LabelPartial
Reverse shell and proxy pivotCommand and Control–IP rule (role of IPs unknown)Gap

The gap that worries me most is a reverse shell written entirely in Python, talking out over an ordinary port: it never starts a shell binary and never touches a file after the hook. If the hook is a .pth file instead, the startup hook rule misses it too; Elastic’s “Python Path File (pth) Creation” rule is a starting point if you can make it quiet. File integrity monitoring on site-packages and egress rules on GPU boxes close most of the rest.

Deploying the rules

Download the YAML from the repo and convert it with sigma-cli for your SIEM. The lines below are untested (I haven’t run them against these files); they convert without a processing pipeline, so pick one that matches your log schema, or map the field names (TargetFilename, ParentCommandLine, cs-uri-query, dst_ip) yourself.

sigma convert -t splunk --without-pipeline web_monai_label_datastore_upload_path_traversal.yml
sigma convert -t lucene --without-pipeline file_event_lnx_python_sitecustomize_usercustomize_creation.yml
sigma convert -t kusto --without-pipeline proc_creation_lnx_monai_label_shell_or_network_tool_child.yml

The web rule uses a regular expression; check that your backend supports |re. Run everything in alert-only mode for a week, and look at what the startup hook rule finds on your build servers first.

My take

This case is more detectable than it looks, but not with the telemetry most MONAI Label installs have. The exploit request is a single, very distinctive HTTP call, and the default server doesn’t log it. The payload step is even more distinctive, but in my experience lab GPU boxes rarely record file writes.

Patching to 0.8.6 or later (I’d take 0.8.8) closes the bug, not an earlier compromise. If you can only do one more thing, turn on the startup hook rule: it catches the technique Amazon saw, works for every Python service you run, and a new sitecustomize.py is rare enough that an alert should reach a person quickly. Then add --access_log or a proxy, because two agent frameworks have now come for this server and the next one will too.

Sources

MONAI Label CVE-2026-133968: the zero-day behind Amazon’s Cairn AI agent report

MONAI Label CVE-2026-133968: the zero-day behind Amazon’s Cairn AI agent report

First written November 21, 2026. Updated December 3, 2026: the flaw now has a CVE (CVE-2026-133968, CVSS 9.8), a fixed release (0.8.6), a CISA KEV entry and a second, unrelated exploitation report. See “Update, December 3” below.

About eleven minutes. That is how long Amazon says it took a set of AI agents, given a list of IP addresses and the goal “obtain shell access”, to go from mapping an unfamiliar medical imaging server’s API to writing arbitrary files on it. Amazon is highly confident nobody had found the bug before.

Amazon Threat Intelligence published the story on November 20, 2026, after it found a publicly hosted, unauthenticated instance of the attacker’s agent framework, Cairn. Amazon doesn’t name the software. The CVE record and the maintainers do: it is MONAI Label, an open-source tool for annotating medical images and training segmentation models, and the bug is a path traversal in its datastore upload endpoint, CVE-2026-133968 (GitHub advisory GHSA-qc22-rmgc-vg94).

Severity: critical. CVSS 9.8, no authentication needed in the default configuration, exploited in the wild since September 2026, and in CISA’s Known Exploited Vulnerabilities catalog since November 23. Version 0.8.6 fixes it.

At a glance

  • CVE: CVE-2026-133968, published November 20, 2026. Same flaw as GitHub advisory GHSA-qc22-rmgc-vg94 (November 18), per the maintainers’ 0.8.6 release notes. CWE-24 / CWE-22.
  • CVSS: 9.8 (3.1, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), assigned by MITRE as CNA.
  • Affected: monailabel (pip) before 0.8.6. Endpoints PUT /datastore/image and PUT /datastore/label.
  • Auth needed: none by default. With auth on, the ANNOTATOR role is enough.
  • Exploitation: Amazon reports a zero-day exploited during a Cairn campaign that began September 8, 2026 and ran about 48 hours; it doesn’t date the exploit session itself. Previdian reports a separate operation against its honeypot on November 26. In CISA KEV since November 23.
  • Patch: 0.8.6, released November 22, 2026. I’d go to 0.8.8 (November 25), which also fixes later critical bugs.
  • Who should care: anyone running MONAI Label or university GPU and ML lab infrastructure.

Update, December 3: a CVE, a release and a second operation

MITRE published CVE-2026-133968 on November 20 (I missed it in my first version), describing a traversal through the image parameter of PUT /datastore/image, “as exploited in the wild starting in September 2026”. The maintainers shipped 0.8.6 on November 22 and their release notes list the CVE and GHSA-qc22-rmgc-vg94 as one issue, so my earlier “likely MONAI Label” hedge is gone. CISA added the CVE to KEV on November 23.

Then on November 26, Previdian’s MONAI Label honeypot in Germany took 454 HTTP requests from one IP over nearly four hours and ended with root-level Python code execution inside the honeypot container. Previdian links the operation to ARTEX, another agentic offensive framework, with moderate confidence, and says it has not established any connection to the operators in Amazon’s report. I cover that operation, its indicators and the rules for it in my ARTEX analysis and its detection post.

One more thing: 0.8.7 and 0.8.8, both released November 25, fix further critical remote code execution bugs, one of them reachable through training task requests (/train).

What we know

On September 10, 2026, Amazon found a server hosting Cairn, an open-source framework that coordinates multiple AI agents, running without authentication, so the operator’s prompts and the agents’ output were readable. Citing Simplified Chinese prompts and China Standard Time timestamps, Amazon attributes the activity to a Chinese-nexus actor at moderate confidence.

The campaign began September 8 and lasted roughly 48 hours, aimed at universities in East Asia outside mainland China. Most of it failed: about 16 hours and 148 actions against an unauthenticated Redis server, and more than 30,000 credential combinations against a GPU server, got nowhere.

The medical imaging server was different. Amazon writes that the agents identified the framework, mapped its API, found an upload endpoint with a filename-style parameter, tested it for path traversal and got arbitrary file write in about 11 minutes. In a later session they used the bug to drop a Python reverse shell into sitecustomize.py, then hit a training API endpoint to spawn a fresh Python process. The shell came back as root.

Then a human handed the agents a proxy into a second university network, whose server ran the same software; Amazon infers the actor had used the zero-day to compromise it.

Amazon’s post still says only “an open-source medical imaging AI application”. The name comes from the advisory, first reported by aws-sec-vdp (which appears to be Amazon’s disclosure program), and from the CVE record, whose NVD entry cites Amazon’s post.

How it works

The root cause is about as old as web servers. PUT /datastore/image takes an image query parameter and uses it, unvalidated, as the image ID. LocalDatastore.add_image() appends an extension, joins the ID onto the datastore’s image directory and copies the uploaded bytes there. Nothing checks that the result is still inside the datastore, so ../ sequences walk out of it. save_label(), behind PUT /datastore/label, builds its destination from the image ID and the label tag the same way.

The advisory lists the usual routes from file write to code execution (application code, SSH keys, cron). The agents picked a quieter one. Python’s site module imports a module called sitecustomize at interpreter startup, before any user code runs. Drop that file on the interpreter’s search path and every new Python process runs it. MONAI Label starts new Python processes when you ask it to train a model, so one API call turns a written file into a running payload.

Four-step attack chain for CVE-2026-133968 as Amazon describes it: agents map the application's API, abuse the datastore upload path traversal, plant a reverse shell in sitecustomize.py, then trigger training to get a root shell and pivot.
How the Cairn agents went from API mapping to a root shell, per Amazon Threat Intelligence. Amazon doesn’t name the app; the CVE record and advisory do.

The defaults make exposure easy: in the source I checked (0.8.5 and main), authentication is off unless you set MONAI_LABEL_AUTH_ENABLE, and monailabel start_server binds to 0.0.0.0 on port 8000. A process running as root can write anywhere. Run as a user limited to the datastore, the same bug is far less useful.

The fix in PR #1915 resolves each destination with realpath, refuses writes outside the datastore and keeps only the basename of a supplied ID.

From fix to release

PR #1915 was merged into main on October 19. The advisory went public on November 18 saying the fix “will be included in the next MONAI Label release”, and on November 21 PyPI still offered only 0.8.5 from November 2024. Version 0.8.6 reached PyPI on November 22, a month after the merge. It requires Python 3.11 or newer, so older lab environments may need a rebuild.

Timeline from the September 8, 2026 campaign start through the October 19 fix, the November 18 advisory, the November 20 CVE, the November 22 0.8.6 release, the November 23 CISA KEV entry and Previdian's November 26 honeypot exploitation.
Campaign, fix, disclosure and release dates, plus the exploitation Previdian saw after disclosure.

Who is affected and how badly

The install base is small, mostly research labs, and I have no source for how many instances face the internet. But its users rarely have a security team watching: a researcher spins it up on a lab GPU box, leaves the defaults and gets back to work.

Those boxes hold imaging datasets (possibly patient data), model weights and often storage credentials, and Amazon’s account shows a compromised one used as a tunnel into a university network. The annotation server is a door, not the prize. And two agent frameworks, Cairn per Amazon and ARTEX per Previdian (moderate confidence), have now gone after this one product within three months.

What to do now

  1. Find your instances: monailabel processes and port 8000 listeners on lab and GPU hosts. Ask research groups directly.
  2. Upgrade to 0.8.6 or later. I’d go straight to 0.8.8: 0.8.7 and 0.8.8 fix further critical RCE bugs, including a client-supplied bundle_path on task requests such as /train (GHSA-j5c7-p3x5-gw2x).
  3. Take servers off untrusted networks: bind to an internal address, or put them behind a VPN or authenticating reverse proxy.
  4. Turn on authentication with MONAI_LABEL_AUTH_ENABLE=True (it needs an identity provider realm in MONAI_LABEL_AUTH_REALM_URI), and give the ANNOTATOR role only to people you trust.
  5. Stop running it as root; use an account that can write only to the datastore.
  6. Check whether you were already hit. The 0.8.6 release notes ask anyone whose 0.8.5 or older server was reachable from an untrusted network to review it for unexpected file changes first.

Detection and monitoring

You can catch this at three points: the traversal request, the startup hook landing on disk, and the shell after the training call. MONAI Label’s access log is opt-in (--access_log), so the web rule needs that flag or a reverse proxy. The host rules need Linux file and process telemetry, which in my experience lab GPU boxes rarely have. The ATT&CK IDs are my mapping, not the sources’.

RuleCategoryLog sourceATT&CKLevel
Datastore upload with traversal in image or tag (needs access log or proxy)Web/AppwebserverT1190High
sitecustomize.py or usercustomize.py createdLinuxlinux / file_eventT1546.018High
Shell or network tool spawned by MONAI Label processesLinuxlinux / process_creationT1059.004High
Python writes authorized_keys or cron filesLinuxlinux / file_eventT1098.004, T1053.003Medium
Traffic with the IPs seen in Amazon’s recordsNetworkfirewallnone (role unknown)Medium

I’d turn on the startup hook rule first, because it covers the step Amazon saw and doesn’t care how the file got there. Python imports sitecustomize.py at every interpreter start, and in my experience few hosts have one, so the rule alerts on any process creating or overwriting a file of that name, minus system package managers. It isn’t MONAI-specific, which is a feature.

title: Python Startup Hook Sitecustomize Or Usercustomize Created On Linux
id: c473ee4e-df72-4d6d-8b73-d4604dcacadc
status: test
description: |
    Detects creation or overwrite of sitecustomize.py or usercustomize.py, which Python imports
    automatically at interpreter startup. Amazon reports the actor wrote a Python reverse shell to
    sitecustomize.py through the file-write bug, then made the server start a new Python process
    to run it. In my experience such a file is uncommon, so a new one is worth a look on any host.
references:
    - https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
    - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
    - https://docs.python.org/3/library/site.html
    - https://attack.mitre.org/techniques/T1546/018/
    - https://netsec101.com/?p=382
author: netsec101.com
date: 2026-11-21
modified: 2026-12-01
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.018
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|endswith:
            - '/sitecustomize.py'
            - '/usercustomize.py'
    filter_main_package_managers:
        Image|endswith:
            - '/dpkg'
            - '/apt'
            - '/apt-get'
            - '/rpm'
            - '/dnf'
            - '/yum'
            - '/zypper'
            - '/conda'
            - '/mamba'
            - '/micromamba'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Distribution packages that may ship a sitecustomize.py with the system Python, when written by a tool not in the filter list
    - pip or Poetry installing a package that provides sitecustomize.py; pip runs as the python interpreter, so it cannot be filtered on Image. Baseline per host
    - Coverage and profiling tools that may drop a sitecustomize.py on CI runners
level: high

Retro-hunt from September 1, 2026 on every MONAI Label host for sitecustomize.py, usercustomize.py or new .pth files, and changes to authorized_keys and crontabs. Amazon lists two IPs, 142[.]4.98.145 and 142[.]4.107.34, in records dated September 8 to 10, without saying what role they played; a hit is a lead, and I’d stop alerting on them after a few months.

I wrote up all five rules, with tuning notes and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The bug is boring: a user-supplied ID joined onto a directory without checking where it lands. What isn’t boring is who found it: an open-source agent framework, in about 11 minutes, while the operator’s job was writing a target list.

The “AI hacker” framing undersells the useful lesson, which is where these agents win. Redis and the password spraying got them nothing; obscure software with authentication off by default got them root. Previdian’s honeypot shows the same product drawing a second framework days after the CVE landed. Agents are good at grinding through the long tail of software human attackers never bothered with, and research infrastructure is that long tail.

So my priority list isn’t “deploy AI defence”. It is: find the lab servers, upgrade to 0.8.8, take them off the internet, turn auth on, stop running them as root. The maintainers have since shipped three security releases in four days. The month between merge and release is what I’d want fixed next time.

Sources

Detecting stolen GitHub tokens after SAP’s incident: 4 Sigma rules for the audit log

Detecting stolen GitHub tokens after SAP’s incident: 4 Sigma rules for the audit log

When a vendor says “suspicious activity” and the insiders say “stolen GitHub tokens,” the useful question for a defender is not what happened at SAP. It’s whether you would notice the same thing in your own GitHub organisation. In my analysis of the SAP incident I separated what SAP confirmed from what an insider told Der Spiegel and what company sources told Handelsblatt. This post is the practical half.

You get four Sigma rules for the GitHub audit log: one correlation for bulk cloning by a single token, two rules for attempts to get code past branch protection, and one hunting rule to find the classic personal access tokens that make this kind of theft worthwhile. None of them uses an indicator from the SAP case, because none has been published.

At a glance

  • Rules: 4 (one is a Sigma v2 correlation with its base rule in the same file).
  • Domain: Cloud-SaaS (GitHub).
  • Log source: product: github, service: audit, streamed from your organisation or enterprise to the SIEM, with Git events and token metadata.
  • ATT&CK: T1213.003 Code Repositories, T1550.001 Application Access Token, T1562.001 Disable or Modify Tools, T1565.001 Stored Data Manipulation.
  • Status: all experimental. The logic is inferred from reported behaviour, not from published IOCs.
  • GitHub: Detection Rules/Cloud/SaaS.

The case in brief

SAP confirmed on November 26, 2026 that it had identified suspicious activity and found no evidence of unauthorized access to customer business data. An insider cited by Der Spiegel said attackers had obtained SAP employees’ GitHub authentication tokens, which let them copy and alter source code. Handelsblatt reported a response called “Project Granite”; SecurityWeek, CyberInsider and the CSA, citing Handelsblatt, add that SAP limited GitHub access, paused automated development and replaced signing keys. SAP has confirmed none of those details, and nobody has said how the tokens were stolen. The analysis has the full picture.

For detection, that reported story breaks into four steps with different footprints. Nobody has said how the tokens were stolen; wherever that happened, it was outside GitHub, so the audit log won’t show it. Copying code shows up as git.clone and repo.download_zip events. Altering code shows up as git.push, and if branch protection is in the way, as overrides, rejected pushes or changes to the protection itself. GitHub attaches a hashed_token (a SHA-256 of the token) and a programmatic_access_type to many audit events, which is what ties those steps back to one credential.

Detection map

Detection map: GitHub audit log stream and Git events feed four Sigma rules (bulk clone correlation, protection change, override or rejected push, classic token hunt), mapped to T1213.003, T1550.001, T1562.001 and T1565.001, with token theft marked as a gap.
One log source, four rules. The theft of the token itself stays outside GitHub’s view.

Everything here depends on one telemetry source, and that is both the strength and the weakness of the set. If you stream the GitHub audit log with Git events, all four rules have their data, with one caveat: token metadata on Git events is still in public preview, and rules 1, 3 and 4 lean on token fields. If you don’t, none of them do, and you can’t fix it after the fact: Git events never show up in the web interface, and on Enterprise Cloud the REST API keeps them for seven days. The dashed box on the right is the honest gap: the theft of the token itself is outside GitHub’s view.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Single token clones many repositories within one hourCloud-SaaSgithub / auditCollection / T1213.003; Defense Evasion / T1550.001MediumExperimental
Branch protection removed or signing and force-push rules changedCloud-SaaSgithub / auditDefense Evasion / T1562.001MediumExperimental
Protected-branch override or rejected push using a tokenCloud-SaaSgithub / auditImpact / T1565.001; Defense Evasion / T1550.001MediumExperimental
Git activity with a classic personal access tokenCloud-SaaSgithub / auditDefense Evasion / T1550.001Low (hunting)Experimental

The rules

Single GitHub access token clones many distinct repositories within one hour

Context: “copy source code” is the reported step with the clearest log trail. A developer’s token usually touches a handful of repositories a day. An attacker with that token and a list of everything it can read tends to pull as much as possible, quickly, before someone revokes it.

Condition: a base rule keeps git.clone and repo.download_zip events that carry a hashed_token. The correlation counts distinct repo values (a common field on GitHub audit events; check your pipeline keeps the name) per hashed_token and fires at 25 or more within one hour.

ATT&CK: Collection (TA0009) – T1213.003 Data from Information Repositories: Code Repositories; Defense Evasion (TA0005) – T1550.001 Use Alternate Authentication Material: Application Access Token.

title: GitHub Git Clone or Source Archive Download Using an Access Token
id: 73613233-1c56-4b42-81ea-1750b63b4979
name: github_audit_git_clone_or_archive_download_by_token
status: experimental
description: |
    Base rule for the correlation below. Matches GitHub audit log git.clone and repo.download_zip events
    that carry a hashed token, meaning they were authenticated with a token or key rather than a browser session.
references:
    - https://www.securityweek.com/sap-confirms-cyberattack-source-code-reportedly-compromised/
    - https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/identifying-audit-log-events-performed-by-an-access-token
    - https://netsec101.com/?p=632
author: netsec101.com
date: 2026-12-01
tags:
    - attack.collection
    - attack.t1213.003
logsource:
    product: github
    service: audit
    definition: 'Requirement: GitHub enterprise or organisation audit log streamed to the SIEM with Git events included. Git events are not shown in the web UI and the Enterprise Cloud REST API keeps them for 7 days. Token metadata on Git events is in public preview. The correlation counts the repo field (a common GitHub audit field); check your pipeline does not rename it.'
detection:
    selection:
        action:
            - 'git.clone'
            - 'repo.download_zip'
    filter_main_no_token:
        hashed_token: null
    condition: selection and not filter_main_no_token
falsepositives:
    - CI runners, mirroring jobs, backup tools and code-scanning services that clone many repositories with one token
level: low
---
title: Single GitHub Access Token Clones Many Distinct Repositories Within One Hour
id: 1550313d-5018-4c24-8e89-72ca663dd413
status: experimental
description: |
    Detects one GitHub access token (grouped by hashed_token) cloning or downloading archives of 25 or more
    distinct repositories within one hour. In the SAP incident, an insider reported that stolen employee GitHub
    tokens let attackers copy source code; bulk cloning with a developer's token is how that would look in the audit log.
    Threshold and logic are inferred, not taken from a published indicator.
references:
    - https://www.securityweek.com/sap-confirms-cyberattack-source-code-reportedly-compromised/
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-sap-source-code-token-compromise-20261129/
    - https://netsec101.com/?p=632
author: netsec101.com
date: 2026-12-01
tags:
    - attack.collection
    - attack.t1213.003
    - attack.defense-evasion
    - attack.t1550.001
correlation:
    type: value_count
    rules:
        - github_audit_git_clone_or_archive_download_by_token
    group-by:
        - hashed_token
    timespan: 1h
    condition:
        gte: 25
        field: repo
falsepositives:
    - Automation tokens used by CI, backup, mirroring or code-scanning tools; allowlist their hashed_token values after review
    - Developers bootstrapping a new machine with a script that clones every team repository
level: medium

View on GitHub

False positives and tuning: CI runners, repository mirrors, backup tools and code-scanning services do exactly this every night. Run the base rule alone for a week, list the tokens that cross 25, and allowlist the ones you can explain by hashed_token, not by user name (a stolen token keeps its owner’s name). Then think about lowering the threshold for human accounts. If your SIEM can’t do Sigma correlations, convert the base rule and do the distinct count in the SIEM’s own query language.

How to test: in a lab organisation, create a test token and clone 25 or more small test repositories in a loop within an hour. Confirm that git.clone events with a hashed_token reach the SIEM first; if they don’t, fix the streaming setup before touching the rule.

GitHub branch protection removed or signing and force-push rules changed

Context: altering code that ships means getting past the controls on release branches: required reviews, required signed commits, no force pushes, rules that also bind administrators. An attacker with an admin’s token can simply switch those off. So can a tired admin at 11 p.m., which is why this rule is medium and not high.

Condition: alert on any of protected_branch.destroy, protected_branch.update_signature_requirement_enforcement_level, protected_branch.update_allow_force_pushes_enforcement_level, protected_branch.update_admin_enforced or repository_ruleset.destroy.

ATT&CK: Defense Evasion (TA0005) – T1562.001 Impair Defenses: Disable or Modify Tools.

title: GitHub Branch Protection Removed or Signing and Force-Push Rules Changed
id: 343e1a93-36da-430b-b720-970323305025
status: experimental
description: |
    Detects GitHub audit log events where branch protection is deleted, a repository ruleset is deleted, or the
    required-signature, force-push or admin-enforcement settings of a protected branch are changed. An attacker
    who wants to alter source code, as an insider reported in the SAP incident, has to get past these controls first.
    Inferred logic; no published indicator.
references:
    - https://www.securityweek.com/sap-confirms-cyberattack-source-code-reportedly-compromised/
    - https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise
    - https://netsec101.com/?p=632
author: netsec101.com
date: 2026-12-01
tags:
    - attack.defense-evasion
    - attack.t1562.001
logsource:
    product: github
    service: audit
    definition: 'Requirement: GitHub enterprise or organisation audit log streamed to the SIEM.'
detection:
    selection:
        action:
            - 'protected_branch.destroy'
            - 'protected_branch.update_signature_requirement_enforcement_level'
            - 'protected_branch.update_allow_force_pushes_enforcement_level'
            - 'protected_branch.update_admin_enforced'
            - 'repository_ruleset.destroy'
    condition: selection
falsepositives:
    - Repository administrators reorganising branch rules or migrating from branch protection to rulesets
    - The update events may also fire when a setting is tightened, not only loosened; check the new value in the event
level: medium

View on GitHub

False positives and tuning: the “update” events may also fire when a setting is tightened, so look at the new value in the event before escalating, or add a filter once you know how your SIEM parses it. Scope the rule to repositories that feed builds or releases if your organisation has thousands of scratch repos. Expect a burst of noise during a migration from branch protection to rulesets; suppress by change ticket, not forever.

How to test: in a test repository with a protected branch, turn “Require signed commits” off and back on, then delete the protection rule.

GitHub protected-branch override or rejected push using an access token

Context: this is the integrity signal. A token, not a person in the browser, either forcing a change past a protected-branch requirement or trying to push to a protected branch and being refused. The refused attempt matters as much as the successful one: it tells you someone with a token is probing your release branches.

Condition: alert on protected_branch.policy_override or protected_branch.rejected_ref_update when the event carries a hashed_token.

ATT&CK: Impact (TA0040) – T1565.001 Data Manipulation: Stored Data Manipulation; Defense Evasion (TA0005) – T1550.001 Application Access Token.

title: GitHub Protected Branch Override or Rejected Push Using an Access Token
id: aa421b51-1377-46e7-a151-ba9b3f319167
status: experimental
description: |
    Detects a protected-branch requirement being overridden, or a push to a protected branch being rejected,
    when the event was authenticated with a token or key (hashed_token present). An insider reported that stolen
    SAP employee GitHub tokens let attackers alter source code; a token pushing straight at protected branches,
    successfully or not, is the integrity signal to chase. Inferred logic; no published indicator.
references:
    - https://www.securityweek.com/sap-confirms-cyberattack-source-code-reportedly-compromised/
    - https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise
    - https://netsec101.com/?p=632
author: netsec101.com
date: 2026-12-01
tags:
    - attack.impact
    - attack.t1565.001
    - attack.defense-evasion
    - attack.t1550.001
logsource:
    product: github
    service: audit
    definition: 'Requirement: GitHub enterprise or organisation audit log streamed to the SIEM; token metadata (hashed_token, programmatic_access_type) present on events.'
detection:
    selection:
        action:
            - 'protected_branch.policy_override'
            - 'protected_branch.rejected_ref_update'
    filter_main_no_token:
        hashed_token: null
    condition: selection and not filter_main_no_token
falsepositives:
    - Release automation or bots that hold bypass rights on protected branches; allowlist their actor or hashed_token
    - Developers whose local Git client pushes to a protected branch by mistake (rejected_ref_update)
level: medium

View on GitHub

False positives and tuning: release bots and merge automation that hold bypass rights will trigger overrides; allowlist them by actor and hashed_token. Rejected pushes from developers who forgot which branch they were on are common and harmless; if they swamp you, require two rejected pushes from one token within ten minutes, or drop rejected pushes to low and keep overrides at medium.

How to test: with a personal access token in a lab repository, push a commit directly to a protected branch that requires pull requests. You should see a rejected ref update tied to the token’s hash.

GitHub Git activity authenticated with a classic personal access token

Context: this one is a hunt, not an alert. GitHub’s docs say a classic personal access token can access every repository its owner can, and GitHub recommends fine-grained tokens instead. That breadth makes classic tokens the most valuable thing to steal. You can’t protect tokens you don’t know exist.

Condition: list git.clone, git.fetch, git.push and repo.download_zip events where programmatic_access_type contains “classic”. I could not confirm GitHub’s exact string for this field from the docs, so check a real event and adjust the match.

ATT&CK: Defense Evasion (TA0005) – T1550.001 Application Access Token.

title: GitHub Git Activity Authenticated With a Classic Personal Access Token
id: 20a118bf-0c33-4456-a141-331a7a3230e4
status: experimental
description: |
    Hunting rule. Lists Git clone, fetch and push events and source archive downloads authenticated with a classic
    personal access token. A classic token can access every repository its owner can, which makes it the most useful kind
    to steal. Use the result to build a token inventory and to spot tokens used from unusual places or times.
references:
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-sap-source-code-token-compromise-20261129/
    - https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/identifying-audit-log-events-performed-by-an-access-token
    - https://netsec101.com/?p=632
author: netsec101.com
date: 2026-12-01
tags:
    - attack.defense-evasion
    - attack.t1550.001
    - detection.threat-hunting
logsource:
    product: github
    service: audit
    definition: 'Requirement: GitHub audit log streamed to the SIEM with Git events and token metadata (public preview for Git events). Check the exact programmatic_access_type value in your own events and adjust the match.'
detection:
    selection_action:
        action:
            - 'git.clone'
            - 'git.fetch'
            - 'git.push'
            - 'repo.download_zip'
    selection_token:
        programmatic_access_type|contains: 'classic'
    condition: all of selection_*
falsepositives:
    - Legitimate scripts and integrations still using classic tokens; that is the point of the hunt, review and migrate them
level: low

View on GitHub

False positives and tuning: every hit is a legitimate use until proven otherwise, and that’s fine. Group the results by hashed_token and actor, and turn the list into a migration plan to fine-grained, expiring tokens. Once a team has migrated, any new classic-token activity from that team becomes worth an alert.

How to test: clone any repository in a lab organisation with a classic token and look for the event.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
Employee token stolenCredential Access (TA0006)Unknown method–Gap: outside GitHub
Stolen token usedDefense Evasion (TA0005)T1550.001Hunting, correlation, override rulesPartial
Source code copiedCollection (TA0009)T1213.003Bulk clone correlationYes, for bulk; not for slow, targeted cloning
Protections weakenedDefense Evasion (TA0005)T1562.001Protection or signing changedPartial: ruleset edits and review-setting changes not covered
Source code alteredImpact (TA0040)T1565.001Override or rejected pushPartial: pushes to unprotected branches are invisible
Altered code built and shippedInitial Access, downstream (TA0001)T1195.002–Gap: needs build provenance and signature checks

Three gaps matter. First, the token theft happened outside GitHub, by a method nobody has disclosed, so catching it needs endpoint, CI or browser-side telemetry, not GitHub logs. Second, Sigma can’t express “first time this token has been seen from this network”; do that in the SIEM with a lookup of hashed_token against past source addresses. Third, a quiet attacker pushes to a feature branch and waits for a reviewer to merge it. No log rule catches that. Required reviews, required signed commits and build provenance (SLSA attestations, Sigstore signatures) do, which is why the second rule protects those settings.

Deploying the rules

Grab the YAML from the GitHub folder and convert it with sigma-cli for your SIEM. GitHub audit logs have no standard field mapping in most backends, so check that action, hashed_token, programmatic_access_type and repo match what your ingest pipeline produces, and add a small custom pipeline if they don’t. For example:

sigma convert -t splunk --without-pipeline github_audit_branch_protection_or_signing_requirement_changed.yml
sigma convert -t lucene --without-pipeline github_audit_protected_branch_override_or_rejected_push_by_token.yml
sigma convert -t kusto --without-pipeline github_audit_classic_pat_git_activity.yml

Correlation rules need a backend that supports Sigma correlations; check yours before relying on the bulk-clone rule, or rebuild the count in the SIEM. Run everything in alert-only mode for a week before paging anyone, and make sure the audit log stream actually includes Git events before you trust a quiet dashboard.

My take

Stolen-token activity is detectable in GitHub, but only if you decided to collect the right log before you needed it. My guess is that plenty of organisations have the audit log but not Git events in it, and certainly not more than a week of them. If I could turn on only one thing after reading the SAP story, it would be audit log streaming with Git events. The rule I’d enable first is the protection-change rule, because it is quiet in a well-run organisation and catches the attacker who switches off release controls instead of working around them. It won’t see a push to a feature branch that a reviewer later merges.

I’d also like GitHub to make two things default: Git events visible in the regular audit log search, and a warning when a classic token with no expiration is used against a repository with protected branches. Detection should not depend on setting up streaming in advance to find out that a token was used to clone everything you own.

Sources

SAP’s reported GitHub token theft: a short statement and the integrity question it skips

SAP’s reported GitHub token theft: a short statement and the integrity question it skips

On Thursday evening, November 26, 2026, SAP put out a short statement: it had identified suspicious activity, taken measures, and found “no evidence of unauthorized access to customer business data.” That last line is true as far as anyone knows, and it answers the wrong question. The incident, as insiders describe it, is not about customer data at all. It is about who could read and change SAP’s source code, and for how long.

SAP confirms it saw suspicious activity and took countermeasures. Der Spiegel, citing an insider, reports that attackers stole SAP employees’ GitHub authentication tokens, which let them copy and alter source code. Handelsblatt, citing company sources, names the internal response “Project Granite”; SecurityWeek, CyberInsider and the CSA, citing Handelsblatt, add that SAP restricted GitHub access, paused automated development and replaced signing keys. SAP has confirmed none of this.

I rate this high. Not because anything bad has been shown to reach customers (nothing has), but because a possible integrity problem in the development pipeline of a major ERP vendor touches a very large number of organisations, and the public record is still thin.

At a glance

  • Victim: SAP. Reported location: GitHub (dpa), in software development (Handelsblatt).
  • Confirmed by SAP (November 26, 2026): suspicious activity identified, measures taken, no evidence so far of unauthorized access to customer business data.
  • Reported, not confirmed: stolen employee GitHub tokens that let attackers copy and alter source code (Der Spiegel insider); detection the week before, “Project Granite” (Handelsblatt); GitHub access restricted, automation paused, signing keys replaced (outlets citing Handelsblatt).
  • Attribution: none. No actor has been publicly named.
  • Shipped products: no public evidence that altered code reached software delivered to customers.
  • CVE / patch: none. This is an incident, not a vulnerability.
  • Who should care: SAP customers (especially anyone pulling SAP code from npm, Maven or GitHub, or applying SAP Notes and transports), and every organisation that keeps its own code on GitHub with long-lived tokens.
Three columns: what SAP confirmed, what insiders and press report, and what is still unknown about the SAP GitHub incident.
Only the left column comes from SAP. Everything in the middle is insider reporting that SAP has not confirmed, as of December 1, 2026.

What we know

Der Spiegel broke the story on November 26, citing SAP insiders and an internal notice to employees. The German news agency dpa reviewed part of that internal communication and reported that the suspicious activity was found within GitHub, and that employees were asked to check whether they needed to change their login credentials.

SAP’s statement, shared with several outlets including SecurityWeek, says it identified suspicious activity and took measures to protect customers and secure its services. It does not say when the activity began, how the attackers got in, whether code was copied or changed, or whether any release was affected. It names no attacker.

Handelsblatt, citing people inside the company, adds three things: SAP noticed the incident the week before the press reports, the target was software development, and the internal response runs under the name “Project Granite” with multiple teams affected. SecurityWeek, CyberInsider and the Cloud Security Alliance all attribute the same reported measures to Handelsblatt: restricted GitHub access, paused automated development workflows and replaced signing keys.

Two other things got mixed into the coverage and should be kept apart. In late October 2026 the Gentlemen ransomware group listed SAP on its leak site, pointing at Latin American operations; SecurityWeek says the two incidents do not appear to be connected. And on April 29, 2026, malicious versions of four SAP-related npm packages (mbt 1.2.48 and three @cap-js packages) were published in the “Mini Shai-Hulud” campaign, built to steal GitHub and npm tokens among other secrets. That April story is about token theft too, which makes the link tempting, but no public source connects it to Project Granite.

Timeline from the reported detection in the week of November 16, 2026, through the internal memo, the November 26 Spiegel report and SAP statement, to coverage on November 27 and the CSA note on November 29.
Detection date is approximate: Handelsblatt says only that SAP noticed the incident the week before its report.

How the attack reportedly unfolded

All of this comes from insider accounts, so read it as the reported shape, not a forensic timeline. Attackers obtained authentication tokens belonging to SAP employees. Nobody has said what kind: a personal access token (a long string a developer creates so scripts and tools can act as them), an OAuth token issued to some app, or a browser session. Nobody has said how they were stolen either.

Whatever the type, a GitHub token is a bearer credential. Whoever holds it gets the owner’s access, with no second factor and no password prompt. If the employee could read a repository, so could the attacker. If the employee could push to it, so could the attacker. That is why the two verbs in the Spiegel report matter so much. “Copy” means an attacker now has source code to study for bugs at leisure, which is a confidentiality problem with a long tail. “Alter” is an integrity problem, and its blast radius depends entirely on one question: did any changed code pass review, get built, get signed and get shipped?

The reported response measures fit that worry. Pausing automated development processes stops a build pipeline from turning a poisoned commit into a release. Replacing signing keys means future artefacts carry a new signature, whether or not the old keys were actually exposed. As the CSA note points out, key rotation is common precaution and does not by itself prove the keys were compromised.

Der Spiegel’s sources also suggested the attackers may have had help from AI. There is no technical detail behind that yet. A same-day BSI warning about agentic AI in attacks does not mention SAP, so I wouldn’t connect the two.

Who is affected and how badly

I’d expect customer business data to live in production systems and cloud tenants, not in a source-code platform, so SAP’s “no evidence” sentence is plausible and also not very informative. The real exposure sits in three places.

  • Code you consume from SAP: SAP Notes and transports, npm and Maven packages under SAP namespaces, SDKs and samples cloned from SAP’s GitHub organisations. If any altered code was released (nothing says it was), this is where it would land.
  • Signature verification: if signing keys were replaced, anything that pins SAP key fingerprints or certificates will need the new ones, and anything signed with the old keys around the incident window deserves a second look once SAP says which window that is.
  • Future vulnerabilities: if proprietary source was copied, expect bug discovery against SAP products to get easier for whoever has it. That is a reason to keep SAP patch latency short.

My honest risk rating for a typical SAP customer as of December 1, 2026: low immediate risk, high uncertainty. The uncertainty is the problem, and only SAP can remove it.

What to do now

For SAP customers:

  1. Ask your SAP account team, in writing, four questions: which repositories were accessed, whether any of them feed shipped products, whether any released build contains unauthorised changes, and the new signing key fingerprints with guidance on how to verify them.
  2. Inventory SAP-originated code entering your environment. The CSA suggests a look-back to April 2026, which also catches anything left over from the npm incident.
  3. Pin SAP open-source dependencies to reviewed versions with lockfile integrity hashes instead of floating ranges, and turn off install-time scripts in CI where you can.
  4. Keep applying security-critical SAP Notes after normal verification. Holding every patch because of an unconfirmed report trades a known risk for an unknown one.
  5. Rotate any credentials you share with SAP-operated developer tooling or GitHub integrations, and confirm the April npm cleanup is finished (SAP Note 3747787).

For anyone running a GitHub organisation, this is a good week to check your own house. Inventory personal access tokens and move people to fine-grained, expiring tokens with SSO enforced. Require signed commits and branch protection on release branches, with the rules applied to administrators too. And stream the audit log to your SIEM, because Git events (clones, fetches, pushes) never show up in the web interface and, on Enterprise Cloud, the REST API keeps them for only seven days.

Detection and monitoring

Nobody has published indicators for this incident: no IPs, no token hashes, no branch names. So I can’t give you a rule that says “you were hit by the same people.” What I can give you is a set of rules for the behaviour the insiders describe, aimed at your own GitHub organisation. All of them read the GitHub audit log, which records a hashed_token (a SHA-256 of the token) and a programmatic_access_type on many events. That is what lets you trace one stolen token across everything it touched.

RuleCategoryLog sourceATT&CKLevel
One token clones 25+ repositories in an hourGeneric TTP (correlation)GitHub auditT1213.003, T1550.001Medium
Branch protection removed or signing / force-push rules changedGeneric TTPGitHub auditT1562.001Medium
Protected-branch override or rejected push by a tokenGeneric TTPGitHub auditT1565.001, T1550.001Medium
Git activity with a classic personal access tokenHuntingGitHub auditT1550.001Low

The one I’d switch on first is the bulk-clone correlation, because “copy source code” is the part of the story with the clearest log trail. A base rule picks out git.clone and repo.download_zip events that were authenticated with a token. The correlation then counts distinct repositories (GitHub’s common repo field; check your pipeline keeps that name) per token and fires at 25 within one hour. The threshold is my guess, not a published indicator, so tune it to your own CI and backup tooling before it pages anyone.

title: GitHub Git Clone or Source Archive Download Using an Access Token
id: 73613233-1c56-4b42-81ea-1750b63b4979
name: github_audit_git_clone_or_archive_download_by_token
status: experimental
description: |
    Base rule for the correlation below. Matches GitHub audit log git.clone and repo.download_zip events
    that carry a hashed token, meaning they were authenticated with a token or key rather than a browser session.
references:
    - https://www.securityweek.com/sap-confirms-cyberattack-source-code-reportedly-compromised/
    - https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/identifying-audit-log-events-performed-by-an-access-token
    - https://netsec101.com/?p=632
author: netsec101.com
date: 2026-12-01
tags:
    - attack.collection
    - attack.t1213.003
logsource:
    product: github
    service: audit
    definition: 'Requirement: GitHub enterprise or organisation audit log streamed to the SIEM with Git events included. Git events are not shown in the web UI and the Enterprise Cloud REST API keeps them for 7 days. Token metadata on Git events is in public preview. The correlation counts the repo field (a common GitHub audit field); check your pipeline does not rename it.'
detection:
    selection:
        action:
            - 'git.clone'
            - 'repo.download_zip'
    filter_main_no_token:
        hashed_token: null
    condition: selection and not filter_main_no_token
falsepositives:
    - CI runners, mirroring jobs, backup tools and code-scanning services that clone many repositories with one token
level: low
---
title: Single GitHub Access Token Clones Many Distinct Repositories Within One Hour
id: 1550313d-5018-4c24-8e89-72ca663dd413
status: experimental
description: |
    Detects one GitHub access token (grouped by hashed_token) cloning or downloading archives of 25 or more
    distinct repositories within one hour. In the SAP incident, an insider reported that stolen employee GitHub
    tokens let attackers copy source code; bulk cloning with a developer's token is how that would look in the audit log.
    Threshold and logic are inferred, not taken from a published indicator.
references:
    - https://www.securityweek.com/sap-confirms-cyberattack-source-code-reportedly-compromised/
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-sap-source-code-token-compromise-20261129/
    - https://netsec101.com/?p=632
author: netsec101.com
date: 2026-12-01
tags:
    - attack.collection
    - attack.t1213.003
    - attack.defense-evasion
    - attack.t1550.001
correlation:
    type: value_count
    rules:
        - github_audit_git_clone_or_archive_download_by_token
    group-by:
        - hashed_token
    timespan: 1h
    condition:
        gte: 25
        field: repo
falsepositives:
    - Automation tokens used by CI, backup, mirroring or code-scanning tools; allowlist their hashed_token values after review
    - Developers bootstrapping a new machine with a script that clones every team repository
level: medium

For monitoring, the hard part is retention, not logic. Git events never appear in the web interface, and on Enterprise Cloud the REST API holds them for seven days, so if you are not streaming the audit log today, you can’t look back at last month. Turn streaming on, then keep watching for protection changes and token-driven pushes for at least as long as your longest-lived token stays valid.

I wrote up all four rules, with tuning notes, lab tests and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

SAP’s statement is written for a data breach, and this is not shaping up as one. For a company whose product is code, the sentence customers need is different: “We have verified that no unauthorised change reached any released artefact, and here is how you can check.” Until SAP says something like that, with dates, the customer-data line is reassurance about a question nobody serious was asking.

I’m not saying SAP is hiding anything. A week or two into a source-code investigation, the honest answer to “was anything altered?” is often “we’re still diffing.” Pausing pipelines and rotating keys is what I’d want them to do. But the industry has learned, the hard way, that build-pipeline compromises are judged by the release record, not by the press statement, and customers will rightly expect a code-integrity disclosure, not only a data-breach one.

The bigger pattern is boring and therefore important. Tokens are the perimeter now. This year we have seen poisoned npm packages built to steal developer tokens, a forgotten vendor key behind Barracuda’s cloud breach, and now, reportedly, employee GitHub tokens at SAP. A personal access token without an expiry date is a password with no MFA that never gets typed, so nobody notices it is gone. If you do one thing this week, list every long-lived token that can push to your release branches and kill the ones nobody can explain.

Sources

On This Day (November 30, 2022): OpenAI Releases ChatGPT

On This Day (November 30, 2022): OpenAI Releases ChatGPT

On Wednesday, November 30, 2022, OpenAI put up a blog post called “Introducing ChatGPT” and invited the public to try it. The post called it a research preview, said it was free while OpenAI collected feedback, and spent a surprising amount of space on what the bot got wrong: answers that sound plausible but aren’t, wordiness, guessing instead of asking.

Five days later, on December 5, Sam Altman tweeted that ChatGPT had crossed 1 million users. That same Monday, Stack Overflow banned its answers. Both reactions were about the same thing: text that reads well whether or not it’s true.

At a glance

DateNovember 30, 2022 (release: OpenAI’s “Introducing ChatGPT” post)
EventOpenAI releases ChatGPT as a free research preview
TypeTechnology / solution
Who was involvedOpenAI and CEO Sam Altman; 1 million users in five days, per Altman
Impact at the time1 million users in five days (Altman’s figure); an estimated 100 million monthly users by January 2023 (UBS estimate)
Still relevant today?Yes: fluent phishing text and prompt injection are everyday problems

What happened

ChatGPT wasn’t a new model so much as a new way to talk to one. OpenAI said it was fine-tuned from a model in the GPT-3.5 series that finished training in early 2022, and called it a sibling of InstructGPT. The training method was reinforcement learning from human feedback (RLHF): human trainers wrote example conversations, ranked the model’s answers, and those rankings trained a reward model that steered the final tuning.

The launch post listed the limits plainly. The bot could write plausible-sounding but wrong answers, change its answer when a question was rephrased, guess what you meant instead of asking, and still respond to harmful instructions or show bias. OpenAI said its moderation would have false positives and negatives.

Then the growth. Altman’s December 5 tweet read “ChatGPT launched on wednesday. today it crossed 1 million users!” That number comes from the CEO, not an audit, and as far as I can find it is the only source for the famous “a million in five days” line. The bigger number came on February 1-2, 2023, when Reuters reported a UBS analyst note: about 100 million monthly active users in January, which UBS called the fastest ramp of any consumer app it could remember. That figure is an estimate built on data from the analytics firm Similarweb. OpenAI didn’t publish it.

Timeline from Simon Willison naming prompt injection on September 12, 2022, through the ChatGPT release on November 30, 2022, 1 million users and the Stack Overflow ban on December 5, 2022, Check Point's report on January 6, 2023, to OpenAI's account of the redis-py data exposure on March 24, 2023.
The first four months. Sources: Simon Willison, OpenAI, The Register, The Tech Outlook, Check Point Research.

Why it mattered then

Language models weren’t new in 2022, and neither were attacks on them. On September 12, 2022, more than two months before ChatGPT, Simon Willison wrote up Riley Goodside’s examples of GPT-3 dropping its instructions when the input told it to, and proposed the name “prompt injection”, by analogy with SQL injection. What ChatGPT changed was who was using these models. A research toy became a website your colleagues, students and, yes, criminals had open in a tab.

The first institutional reaction wasn’t about security at all. On December 5, 2022, Stack Overflow put in a temporary ban, saying that “the average rate of getting correct answers from ChatGPT is too low.” (Some outlets date it December 6, a time-zone difference.) The problem, as The Register reported, was volume: thousands of plausible-looking answers overwhelmed the site’s volunteer moderators.

Security people asked the obvious question: what will attackers do with it? Check Point Research gave an early answer on January 6, 2023. On underground forums it found a basic Python infostealer, a first-ever encryption script from a poster the researchers judged to have limited technical skills (one that could be turned into ransomware), and a script for a dark web marketplace’s payment system. The code was simple. The point was who was writing it: Check Point noted that many of these users had no development skills at all.

What changed afterwards

Four changes stand out to me, all from 2023.

Phishing lost its typos. In March 2023, Europol’s Innovation Lab published a Tech Watch Flash report on ChatGPT and law enforcement. It said the model’s ability to draft highly realistic text made it useful for phishing, that it could imitate how particular people or groups write, and that it could help criminals with little technical knowledge produce malicious code. It also noted the safeguards could be bypassed.

Prompt injection grew up. On February 23, 2023, Greshake and colleagues published research on indirect prompt injection: instructions planted in data the model retrieves, shown against Bing’s GPT-4 powered chat. When OWASP published version 1.0 of its Top 10 for Large Language Model Applications on August 1, 2023, prompt injection was entry number one, LLM01.

ChatGPT had its own data leak. On March 24, 2023, OpenAI explained a March 20 outage: a bug in redis-py, an open-source Redis client, let some users see titles from other users’ chat histories. For about 1.2% of ChatGPT Plus subscribers active during a nine-hour window, payment details such as name, email, address, card type, last four digits and expiry date could be visible to others. Full card numbers were never exposed.

At Samsung, the leak risk turned out to be its own staff. On May 2, 2023, CNBC, citing Bloomberg, reported that Samsung was temporarily restricting generative AI on company computers after staff uploaded sensitive code to ChatGPT. Defenders got their own tools too: Microsoft announced Security Copilot, a generative AI assistant for security teams, on March 28, 2023.

Then and now table comparing late 2022 with the period since 2023 for phishing, malware, prompt injection, data leaks and defense.
What changed for defenders after the launch. The "then" column is the author's summary; the rest is sourced.

My take

Four years on, I think ChatGPT’s security reputation is half deserved. The December 2022 “hacker superweapon” story was overhyped. Check Point’s own finds were basic scripts, and the researchers said so. ChatGPT didn’t invent a new attack. What it did was make old ones cheap: a fluent business email in any language, a starter script for someone who can’t code. That’s a change in volume and in who can play, and volume is what wears defenders down.

The lasting damage is to one piece of awareness training we leaned on for years: “look for spelling mistakes.” That tell is gone. If your phishing training still teaches grammar-spotting, change it to process: verify payment changes and urgent requests through a second channel you already trust, whatever the email looks like.

The part that deserves more attention is prompt injection, and it’s older than ChatGPT. It is the SQL injection mistake again: data and instructions sharing one channel. We fixed SQL injection with parameterized queries. There is no equivalent yet for a model that reads untrusted text and then acts. So I treat any app that feeds outside content (email, web pages, tickets, pull requests) to a model holding credentials as an interpreter of untrusted input, and I limit what it can reach.

And notice that ChatGPT’s own first incidents were boring: a cache bug in a Redis client, and employees pasting code into a box run by someone else. That’s the everyday lesson for a defender. Treat a chatbot as a third-party SaaS: decide which data may go in, give people an approved option so they don’t route around you, and log it like any other cloud service.

Further reading on netsec101

Sources