Microsoft Agent Framework PyPI Compromise
Executive Summary
On 2026-11-17 two malicious releases of Microsoft’s agent-framework PyPI package, 1.26.1 (20:35 UTC) and 1.26.2 (~21:08 UTC), were published 33 minutes apart. Both were quarantined by roughly 21:30 UTC; 1.26.0 (2026-11-12 18:25 UTC) is the last clean release. Wiz puts the package at about 41,000 downloads a week, SecurityWeek and Aikido at about 190,000 a month.
Both releases drop a .pth file into the site-packages root (agent_framework_meta.pth in 1.26.1, af_runtime_diag.pth in 1.26.2). CPython executes any import line in a .pth file on every interpreter start, so the stealer runs on any Python launch in that environment, pip itself included, whether or not anything imports agent_framework. The victim never has to use the library.
The stealer forks into a detached background process, sets _AF_TEL=1 as a run-once marker (a marker, not a credential), and harvests environment variables by substring (TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, OPENAI and more), up to 300 /proc/*/environ files, and up to 60 (1.26.1) or 80 (1.26.2) credential files: Azure CLI state, Azure DevOps agent .credentials, pip.conf, .npmrc, .netrc, .git-credentials, .docker/config.json, Hugging Face tokens and .env files. It also requests Azure managed-identity tokens from IMDS for 12 resources and, in 1.26.2, GitHub Actions OIDC tokens for api://AzureADTokenExchange and https://management.azure.com/. Everything is zlib-compressed, base64-encoded and sent in one HTTPS POST to a webhook.site endpoint.
Attacker objective: steal cloud, CI/CD and registry credentials from developer and build environments and mint fresh Azure identities from them. Root cause is unconfirmed. Candidates in the reporting are a stolen PyPI upload token, a misconfigured Trusted Publisher or a compromised maintainer account; none is established. Attribution to a named actor is also unestablished and this pack does not assert one.
Honest scope: the releases are quarantined, so the window of exposure is closed. The value of this pack is retro-hunting install evidence (builds, images and caches from 2026-11-17 onward) and treating every hit as a credential-compromise event requiring rotation. It is not live prevention.
Defender priority: build agents (Azure DevOps, GitHub Actions runners, container builds) and Azure-hosted workloads are the highest-value scope. Find every environment that resolved 1.26.1 or 1.26.2, run Q1 to Q4, search proxy logs for the webhook UUID (Q5), and rotate every secret and identity reachable from any hit before anything else.
Source Review & Web Hunter Notes
| Tier | Source | Key finding | Carry fwd |
|---|---|---|---|
| 1 | Socket (2026-11-17) | Richest IOC and behavior detail: per-version file chain, selector lists, credential file globs, token audiences, base64 destination, seven SHA-256 values, both User-Agents | Yes |
| 1 | Wiz (2026-11-17) | UTC timeline, root-cause evidence (no matching tag or release in the source repo, wheel only, no sdist), IOC table, the only SHA-1, the 100-request free-tier cap on webhook.site, remediation steps | Yes |
| 1 | Aikido (2026-11-17) | Wheel diff against 1.26.0 (994 vs 853 bytes, world-writable injected files), full code excerpts, IMDS 169.254.169.254 fallback, 1.26.2 restored the clean __init__.py, per-version hash lists | Yes |
| 2 | SecurityWeek | Press coverage: Microsoft acknowledged the incident; OX Security, Wiz, Endor Labs and SafeDep analyzed it independently; mentions a PyPI account named in third-party analysis. Used for context only | Partial |
Sourcing note: every atomic indicator in this pack was re-derived from the saved snapshots in AgentFramework-PyPI-CredentialStealer-Hunt-sources/ (01-socket, 02-wiz, 03-securityweek, 04-aikido), not from search summaries. No fetched page contained text directed at an AI agent.
Discrepancies and open items
- Quarantine time: Wiz says both versions were gone by ~21:30 UTC; Aikido says 1.26.1 was pulled around the 1.26.2 upload and both were gone by ~21:20 UTC. This pack uses the wider window (20:35 to ~21:30 UTC).
- Download volume: Wiz about 41,000 a week; SecurityWeek and Aikido about 190,000 a month. Not material to hunting.
__init__.pyhash: Socket and Aikido listc275ccbe…foragent_framework_meta/__init__.py; Aikido places it under 1.26.1 and says 1.26.2 restored the byte-identical clean 1.26.0 file. It ships as detect only because a clean module shares the filename.- Maintainer account: SecurityWeek relays a third-party (SafeDep) claim about a newly created PyPI maintainer account with publish rights. Its involvement is explicitly unconfirmed, it is not in any snapshot of the primary reports, and it is not used as an indicator here.
- Root cause: unconfirmed in every source. Wiz notes an earlier unrelated Microsoft Python package (durabletask) compromise via a stolen PyPI token and states the two are not linked.
Hunt Brief & Attack Chain
Hunt hypotheses (fidelity-ordered)
| # | Hypothesis | MITRE | Telemetry | Conf |
|---|---|---|---|---|
| H1 | The campaign webhook UUID appears in a logged URL | T1567, T1041 | URL-path logs from a proxy or gateway (Next-Gen SIEM, ECS fields) | High |
| H2 | A host installed 1.26.1 or 1.26.2 | T1195.002 | Process creation with command line (CrowdStrike: ProcessRollup2 and SyntheticProcessRollup2. SentinelOne: Process Creation. Defender: DeviceProcessEvents) | High |
| H3 | The exfil User-Agent appears in outbound HTTP | T1567, T1071.001 | User-Agent logs from a proxy or gateway | High |
| H4 | A Python-family process resolved webhook.site | T1567, T1041 | DNS lookup with the requesting process (CrowdStrike: DnsRequest. SentinelOne: DNS Resolved. Defender: DeviceEvents, ActionType DnsQueryResponse) | High |
| H5 | A package manager or test runner requested Azure IMDS tokens | T1552.005, T1528 | Outbound network connection (CrowdStrike: NetworkConnectIP4. SentinelOne: IP Connect. Defender: DeviceNetworkEvents) | Med |
| H6 | A host ran an install of agent-framework that could have resolved a malicious release | T1195.002 | Process creation with command line (CrowdStrike: ProcessRollup2 and SyntheticProcessRollup2. SentinelOne: Process Creation. Defender: DeviceProcessEvents) | Med |
| H7 | A .pth hook or stealer module exists in site-packages, a venv, image layer or cache | T1546.018 | File inventory (not in endpoint event telemetry; see s7) | High |
Attack chain
| Step | Action | Telemetry / hunt angle |
|---|---|---|
| 1 · Publish | Malicious wheel-only releases uploaded to PyPI with valid publishing credentials; no matching tag in the source repo | Registry audit; lockfile and requirements grep (s7) |
| 2 · Install | Dev machine, CI job or image build resolves 1.26.1 or 1.26.2 (loose pin or dependency bot PR) | Process creation with command line (CrowdStrike: ProcessRollup2 and SyntheticProcessRollup2. SentinelOne: Process Creation. Defender: DeviceProcessEvents). Q1, Q2 |
| 3 · Hook | .pth file written to the site-packages root; runs on every interpreter start | No file-write event covers text files. File inventory (s7) |
| 4 · Collect | Fork and setsid(); env-var sweep, up to 300 /proc/*/environ, up to 60 or 80 credential files | In-process reads: no endpoint event. Covered indirectly by steps 2, 5 and 6 |
| 5 · Mint tokens | Azure IMDS or IDENTITY_ENDPOINT tokens for 12 resources; Azure DevOps OIDC; GitHub Actions OIDC (1.26.2) | Outbound network connection (CrowdStrike: NetworkConnectIP4. SentinelOne: IP Connect. Defender: DeviceNetworkEvents). Q3. Identity-side: Entra service-principal and managed-identity sign-in logs (s7) |
| 6 · Exfil | One zlib+base64 HTTPS POST to webhook.site with ?t=telemetry and a masqueraded User-Agent | DNS lookup with the requesting process (CrowdStrike: DnsRequest. SentinelOne: DNS Resolved. Defender: DeviceEvents, ActionType DnsQueryResponse). Q4. Proxy URL and User-Agent logs. Q5, Q6 |
Consolidated IOC Table
| Type | Indicator | Confidence | Action | Sources | Context |
|---|---|---|---|---|---|
| SHA-256 | d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 | high | prevent | 3 src | agent_framework-1.26.1-py3-none-any.whl |
| SHA-256 | 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 | high | prevent | 3 src | agent_framework-1.26.2-py3-none-any.whl |
| SHA-256 | 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e | high | prevent | 2 src | agent_framework_meta.pth (1.26.1 startup hook) |
| SHA-256 | 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 | high | prevent | 2 src | agent_framework_meta/_telemetry.py (1.26.1 stealer) |
| SHA-256 | c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 | medium | detect | 2 src | agent_framework_meta/__init__.py (1.26.1 loader appended). Detect only: same filename as a legitimate module, and the reporting does not tie this hash to a single release |
| SHA-256 | 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 | high | prevent | 3 src | af_runtime_diag.pth (1.26.2 startup hook) |
| SHA-256 | 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f | high | prevent | 3 src | af_runtime_diag.py (1.26.2 stealer) |
| SHA-1 | 0a013e4724c4437cf9b177def1d988113e167539 | medium | detect | 1 src | agent_framework_meta/_telemetry.py (Wiz only). Falcon IOC import does not accept SHA-1, so this is a table entry, not a CSV row |
| UUID path token | d381fd80-ec62-42ad-8f5c-d1b15103c9bb | high | hunt | 3 src | Campaign webhook UUID: the safe, specific string to search |
| Base64 string | aHR0cHM6Ly93ZWJob29rLnNpdGUvZDM4MWZkODAtZWM2Mi00MmFkLThmNWMtZDFiMTUxMDNjOWJi | high | hunt | 2 src | Hardcoded encoded destination (_ENC) in both payload modules; decodes to the exfil URL without the query string |
| User-Agent | af-runtime-diagnostics/1 | high | hunt | 3 src | Exfil User-Agent, 1.26.1 |
| User-Agent | runtime-diagnostics/1 | high | hunt | 3 src | Exfil User-Agent, 1.26.2 (also on GitHub OIDC token requests) |
| Filename | agent_framework_meta.pth | high | hunt | 3 src | Startup hook in the site-packages root (1.26.1) |
| Filename | agent_framework_meta/_telemetry.py | high | hunt | 3 src | Stealer module (1.26.1) |
| Filename | af_runtime_diag.pth | high | hunt | 3 src | Startup hook in the site-packages root (1.26.2) |
| Filename | af_runtime_diag.py | high | hunt | 3 src | Stealer module, top level of site-packages (1.26.2) |
| Env marker | _AF_TEL=1 | high | hunt | 3 src | Run-once marker set in the Python process environment. A marker, not a credential |
| Package | agent-framework==1.26.1 | high | hunt | 4 src | Malicious PyPI release, 2026-11-17 20:35 UTC (quarantined) |
| Package | agent-framework==1.26.2 | high | hunt | 4 src | Malicious PyPI release, 2026-11-17 ~21:08 UTC (quarantined) |
Exfiltration endpoint: an HTTPS POST to a public request-bin endpoint, path UUID d381fd80-ec62-42ad-8f5c-d1b15103c9bb, query string ?t=telemetry. It is listed as narrative rather than as an indicator row because the hostname is a public request-bin shared by unrelated actors: the UUID path is the atomic indicator, and the host must never be blocked tenant-wide.
webhook.site is not an IOC. It is a public request-bin used by many unrelated actors and legitimate developers. The pack ships the full URL with the campaign UUID and hunts the UUID string. The bare hostname is not in any import file at any action.
Prevent rule: only indicators present in two or more snapshots may be prevent. All seven SHA-256 values are two-source or better; six ship prevent and the shared-filename __init__.py hash ships detect. The SHA-1 is Wiz-only and is not importable to Falcon. Network, filename and behavioral strings are hunt strings, not blocks.
Affected Surface & Telemetry Matrix
| Surface | Telemetry | Priority | Gap |
|---|---|---|---|
| Azure DevOps build agents (Linux, self-hosted and hosted images) | Process creation with command line (CrowdStrike: ProcessRollup2 and SyntheticProcessRollup2. SentinelOne: Process Creation. Defender: DeviceProcessEvents); Outbound network connection (CrowdStrike: NetworkConnectIP4. SentinelOne: IP Connect. Defender: DeviceNetworkEvents) | Critical | Hosted ephemeral agents often have no sensor: outside endpoint telemetry. Use lockfile, registry and Entra logs |
| GitHub Actions runners (hosted and self-hosted) | Process creation with command line (CrowdStrike: ProcessRollup2 and SyntheticProcessRollup2. SentinelOne: Process Creation. Defender: DeviceProcessEvents); workflow logs and pip logs | Critical | GitHub-hosted runners are outside endpoint telemetry. 1.26.2 only for OIDC theft |
| Azure VMs, App Service, Functions, AKS nodes with a managed identity | Outbound network connection (CrowdStrike: NetworkConnectIP4. SentinelOne: IP Connect. Defender: DeviceNetworkEvents); DNS lookup with the requesting process (CrowdStrike: DnsRequest. SentinelOne: DNS Resolved. Defender: DeviceEvents, ActionType DnsQueryResponse) | High | App Service and Functions have no endpoint sensor: outside endpoint telemetry |
| Developer workstations (Linux, macOS, Windows) | Process creation with command line (CrowdStrike: ProcessRollup2 and SyntheticProcessRollup2. SentinelOne: Process Creation. Defender: DeviceProcessEvents); DNS lookup with the requesting process (CrowdStrike: DnsRequest. SentinelOne: DNS Resolved. Defender: DeviceEvents, ActionType DnsQueryResponse) | Medium | Windows has no /proc; the file-credential and env sweeps still run |
| Container images and CI caches built from 2026-11-17 | Image scan for .pth files and the package version (not endpoint telemetry) | High | Needs image and cache inventory; no endpoint event |
| Egress proxy / secure web gateway | URL path, User-Agent and status logging (Next-Gen SIEM, ECS fields) | High | Hostname-only DNS or SNI logs cannot see the UUID |
| Entra ID and Azure Resource Manager | Service-principal, managed-identity and federated-credential sign-in logs; Azure Activity log | High | Identity-side: outside endpoint telemetry |
ATT&CK Mapping
| Tactic | Technique | Behavior | Query / control |
|---|---|---|---|
| Initial Access | T1195.002 Compromise Software Supply Chain | Malicious PyPI releases of a trusted Microsoft package | Q1, Q2, Q7; lockfile audit; M1051, M1013 |
| Persistence / Execution | T1546.018 Python Startup Hooks | .pth import line runs on every interpreter start | File inventory (s7); hardening tier 1 |
| Execution | T1059.006 Python | Payload runs as Python in a forked background process | Q1 to Q4 |
| Credential Access | T1552.001 Credentials in Files | Azure CLI, .npmrc, .netrc, .git-credentials, .docker/config.json, Hugging Face, ADO .credentials, .env | Gap in endpoint telemetry; rotation; M1027, M1041 |
| Credential Access | T1552.005 Cloud Instance Metadata API | IMDS and IDENTITY_ENDPOINT managed-identity tokens for 12 resources | Q3; IMDS egress restriction |
| Credential Access | T1528 Steal Application Access Token | Azure DevOps and GitHub Actions OIDC tokens, SYSTEM_ACCESSTOKEN | Entra sign-in logs (s7); federated-credential scoping |
| Credential Access | T1552 Unsecured Credentials (environment) | Substring sweep of environment variables and other processes’ /proc/*/environ | Gap in endpoint telemetry; rotation |
| Defense Evasion | T1036 Masquerading, T1027 Obfuscated Files | Telemetry-themed names and User-Agents; base64-encoded destination | Q6; string hunts |
| Exfiltration | T1567 Exfiltration Over Web Service | Single HTTPS POST to webhook.site, zlib+base64 body | Q4, Q5, Q6; proxy egress control |
Native Audit-Log Hunts (non-CQL)
Do not start Python in a suspect environment to investigate it. The stealer runs on every interpreter launch there, pip and pytest included. Use the shell-only checks below, or python3 -S -I (the -S flag skips site processing, so .pth hooks do not run), or inspect from a clean host against a mounted image.
Host and image inventory (no interpreter)
# Linux / macOS: find the hooks and stealer modules
find / -xdev \( -name 'agent_framework_meta.pth' -o -name 'af_runtime_diag.pth' \
-o -name 'af_runtime_diag.py' -o -path '*/agent_framework_meta/_telemetry.py' \) 2>/dev/null
# Any .pth with an executable import line in site-packages (broader, will show benign hooks too)
find / -xdev -path '*/site-packages/*.pth' -exec grep -l '^import ' {} + 2>/dev/null
# Containers: scan an image without running Python
docker run --rm --entrypoint sh IMAGE -c "find / -xdev \( -name 'agent_framework_meta.pth' -o -name 'af_runtime_diag.pth' \) 2>/dev/null"
# Is the run-once marker present in any running process?
for p in /proc/[0-9]*/environ; do tr '\0' '\n' < "$p" 2>/dev/null | grep -q '^_AF_TEL=' && echo "$p"; done
# Windows (PowerShell): hooks under every site-packages
Get-ChildItem -Path C:\ -Recurse -Include agent_framework_meta.pth,af_runtime_diag.pth,af_runtime_diag.py -ErrorAction SilentlyContinue | Select FullName,Length,LastWriteTime
Lockfile, manifest and registry audit
# Every repo, build cache and artifact store: any pin, range or lock entry for agent-framework # Files: requirements*.txt, pyproject.toml, uv.lock, poetry.lock, Pipfile.lock, constraints files # Exposed: resolved version 1.26.1 or 1.26.2. Also exposed: any loose range (>=1.26) resolved on or after 2026-11-17 20:35 UTC. # Registry proxy / SCA (Artifactory, Nexus, Azure Artifacts, devpi): list download events for # agent-framework 1.26.1 and 1.26.2 since 2026-11-17 20:35 UTC; map each to a host, CI job and user. # Image registries: images and layers built since 2026-11-17 may carry the hook even if a later rebuild is clean.
Entra ID: identities reachable from affected hosts (Log Analytics KQL)
// Managed identities and service principals signing in after the window opens, from unexpected IPs. // Stolen managed-identity and OIDC-exchanged tokens stay valid for up to 24 hours (Wiz). let start = datetime(2026-11-17T20:35:00Z); union ManagedIdentitySignInLogs, ServicePrincipalSignInLogs | where TimeGenerated >= start | summarize SignIns=count(), IPs=make_set(IPAddress, 20), Resources=make_set(ResourceDisplayName, 20) by ServicePrincipalName, AppId | order by SignIns desc // Then review AzureActivity for write operations by those principals, and the Entra audit log for // new credentials, role assignments and federated credentials created since the window opened.
GitHub Actions and Azure DevOps
# GitHub Actions: workflow runs that installed agent-framework since 2026-11-17 20:35 UTC. # For runs of 1.26.2 with "permissions: id-token: write": treat OIDC tokens for # api://AzureADTokenExchange and https://management.azure.com/ as exposed. # Review the Entra federated credentials that trust those repos/workflows and the sign-ins # of the matching app registrations. Rotate repo and org secrets exposed to those jobs. # Azure DevOps: pipelines that ran pip/uv install since the window opened. Treat SYSTEM_ACCESSTOKEN, # service connections and any PAT on the agent as exposed. Check agent hosts for # _work/*/.credentials and /vss-agent/*/.credentials (read by the stealer).
Egress logs
# Proxy / gateway / firewall URL logs, 2026-11-17 onward: # URL path contains d381fd80-ec62-42ad-8f5c-d1b15103c9bb (Q5) # User-Agent equals af-runtime-diagnostics/1 or runtime-diagnostics/1 (Q6) # HTTP 200 = webhook.site accepted that host's data; 410 or 429 = rejected (Wiz). Rotate either way. # Wiz confirmed the attacker's token was free tier: at most 100 requests accepted, at most 50 captured. # That cap limits attacker visibility, it does not make any captured host safe.
Steps 3 and 4 of the chain (the .pth write and the credential reads) leave no discrete endpoint event. This host and image inventory is what proves installation; the CQL queries show execution-adjacent behavior.
Hunt Queries: CrowdStrike CQL, SentinelOne PowerQuery and Defender XDR KQL
Paste your own address, taken from your browser with Event Search open in the scope you want: the whole thing, including the _scopeId and _scopeLevel parameters that aim the search. Then "Copy & open SentinelOne" opens Event Search with the query and a time window already set, and copies the query as well. A bare console address still works, but it can only open the console for you to paste into. Your address is kept in this browser alone: it is never part of this page, never sent anywhere, and no address of ours is built in.
Pick your portal. Microsoft documents a Share link in advanced hunting but not its URL format, so each "Copy & open Defender" button copies the query and opens Advanced hunting: paste it into the editor.
Q1 to Q4 and Q7 run on endpoint telemetry. Q5 and Q6 use ECS dotted fields for a web proxy or gateway repository in Next-Gen SIEM: select that repository before running them. Event names used here are limited to ProcessRollup2, SyntheticProcessRollup2, NetworkConnectIP4 and DnsRequest. No Falcon event records the write of a text .pth file, so no file-write query is offered (see Coverage Map).
Looks for: A package-manager or interpreter process whose command line pins one of the two quarantined versions. This is the retro-hunt that answers “did this host install a malicious release” whenever the version appears on the command line.
FP: None expected: only the two quarantined versions match. A -r requirements.txt install does not show the version on the command line, so a miss here does not clear a host; use Q2 and the lockfile audit in s7.
Known limitations and deployment notes
- PowerQuery: An install launched by a process the agent did not observe starting is not captured.
- PowerQuery assumes: tgt.process.cmdline holds the full command line of the created process.
- PowerQuery assumes: matches is case-insensitive by default, which reproduces the CQL /i flag.
- KQL – Defender XDR: An install launched by a process the sensor did not observe starting is not captured.
- KQL – Defender XDR assumes: ProcessCommandLine holds the full command line of the created process.
// HUNT: install of the compromised agent-framework releases 1.26.1 / 1.26.2 // MITRE: T1195.002 | CONF: high FP: low COST: low // REQUIRES: process creation with command line on dev, CI and server hosts // LOOKBACK: 30d via the console time picker (releases were live 2026-11-17 20:35 to ~21:30 UTC) #event_simpleName=/^(ProcessRollup2|SyntheticProcessRollup2)$/ | FileName=/^(pip[0-9.]*|pipx|uv|poetry|pdm|python[0-9.]*|py)(\.exe)?$/i | CommandLine=/agent[-_]framework\s*(===|==|=|@)?\s*1\.26\.[12]([^0-9]|$)/i | table([@timestamp, aid, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName], limit=200)
4 required fields · View requirements
Required telemetry
- Process Creation
Required fields
event.time: Event timeevent.type: Event typetgt.process.name: Created process nametgt.process.cmdline: Created command line
Recommended fields
src.process.name: Creator process
Fallbacks
endpoint.name→agent.uuid: Changes the displayed host identifier only.
Readiness test
event.type = 'Process Creation' tgt.process.cmdline = * | limit 5 | columns event.time, event.type, tgt.process.name, tgt.process.cmdline
// HUNT: install of the compromised agent-framework releases 1.26.1 / 1.26.2 // SCHEMA PROFILE: sentinelone-endpoint-ocsf // MITRE: T1195.002 // CONF: high | FP: low // EQUIVALENCE: equivalent-with-schema-assumptions - Same process-creation predicate: a package manager or interpreter name, and a command line that installs agent-framework 1.26.1 or 1.26.2. The created process is tgt.process.* and its creator is src.process.*. The regexes are written so they select the same rows whether matches is a full-string or a search match. // REQUIRES: SentinelOne endpoint process-creation telemetry with command line // TUNING: Treat every hit as a host that resolved a compromised release; confirm against the lockfile and the install time window. // LOOKBACK: 30d; releases were live 2026-11-17 20:35 to about 21:30 UTC // CONFIGURATION: No lookup objects required. // KNOWN GAPS: An install launched by a process the agent did not observe starting is not captured. // VALIDATION LEVEL: static-reviewed event.type = 'Process Creation' tgt.process.name matches '^(pip[0-9.]*|pipx|uv|poetry|pdm|python[0-9.]*|py)(\\.exe)?$' tgt.process.cmdline matches '.*agent[-_]framework\\s*(===|==|=|@)?\\s*1\\.26\\.[12]([^0-9].*)?$' | columns event.time, agent.uuid, endpoint.name, src.process.user, tgt.process.name, tgt.process.cmdline, src.process.name | sort -event.time | limit 200
Automated validation: static-passed
3 required fields · View requirements
Required telemetry
- DeviceProcessEvents
Required fields
Timestamp: Event timeFileName: Created process nameProcessCommandLine: Created command line
Recommended fields
InitiatingProcessFileName: Initiating process
Fallbacks
DeviceName→DeviceId: Changes the displayed host identifier only.
Readiness test
DeviceProcessEvents | where Timestamp > ago(1d) | project Timestamp, FileName, ProcessCommandLine | take 5
// HUNT: install of the compromised agent-framework releases 1.26.1 / 1.26.2 // SCHEMA PROFILE: microsoft-defender-xdr // MITRE: T1195.002 // CONF: high | FP: low // EQUIVALENCE: equivalent-with-schema-assumptions - Same process-creation predicate: a package manager or interpreter name, and a command line that installs agent-framework 1.26.1 or 1.26.2. The created process is FileName and its creator is InitiatingProcessFileName. matches regex with (?i) reproduces the CQL /i intent. // REQUIRES: Defender for Endpoint process-creation telemetry (DeviceProcessEvents) // TUNING: Treat every hit as a host that resolved a compromised release; confirm against the lockfile and the install time window. // LOOKBACK: 30d (Advanced Hunting retention); releases were live 2026-11-17 20:35 to about 21:30 UTC // CONFIGURATION: No lookup objects required. // KNOWN GAPS: An install launched by a process the sensor did not observe starting is not captured. // VALIDATION LEVEL: schema-aligned // AUTOMATED VALIDATION: static-passed; static=passed; fixtures=0/0 DeviceProcessEvents | where Timestamp >= ago(30d) | where FileName matches regex @"(?i)^(pip[0-9.]*|pipx|uv|poetry|pdm|python[0-9.]*|py)(\.exe)?$" | where ProcessCommandLine matches regex @"(?i)agent[-_]framework\s*(===|==|=|@)?\s*1\.26\.[12]([^0-9]|$)" | project Timestamp, ReportId, DeviceId, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName | sort by Timestamp desc | take 200
Looks for: Every host that ran an install, upgrade or sync naming agent-framework (not agent-framework-core), minus commands that explicitly pin the clean 1.26.0. Catches loose requirements such as agent-framework>=1.26 that resolved to a malicious release during the window.
FP: Legitimate Microsoft Agent Framework users match. Treat a host as exposed only if its install ran on or after 2026-11-17 20:35 UTC and before the quarantine; confirm the resolved version in the lockfile or image layer.
Known limitations and deployment notes
- PowerQuery: Only one sample command line per host is shown; the CQL tab lists every distinct command line.
- PowerQuery assumes: tgt.process.cmdline holds the full command line of the created process.
- PowerQuery assumes: The quote characters in the CQL boundary class are written as hex escapes.
- KQL – Defender XDR: The command line list is capped at 20 distinct values per host.
- KQL – Defender XDR assumes: ProcessCommandLine holds the full command line of the created process.
// HUNT: agent-framework installs (loose or unpinned) as an exposure inventory // MITRE: T1195.002 | CONF: medium FP: medium COST: low // REQUIRES: process creation with command line on dev, CI and server hosts // LOOKBACK: 14d via the console time picker // TUNING: only installs with FirstSeen between 2026-11-17 20:35 and ~21:30 UTC can have resolved 1.26.1 or 1.26.2; treat the rest as inventory, not exposure // TUNING: exclude hosts whose requirements are fully hash-pinned to 1.26.0 once confirmed against the lockfile #event_simpleName=/^(ProcessRollup2|SyntheticProcessRollup2)$/ | FileName=/^(pip[0-9.]*|pipx|uv|poetry|pdm|python[0-9.]*|py)(\.exe)?$/i | CommandLine=/agent[-_]framework(\s|=|<|>|~|!|@|"|'|$)/i | CommandLine!=/agent[-_]framework\s*(===|==)\s*1\.26\.0([^0-9]|$)/i | groupBy([aid, ComputerName], function=[count(as=Installs), min(@timestamp, as=FirstSeen), max(@timestamp, as=LastSeen), collect([CommandLine])], limit=500) | sort(LastSeen, order=desc, limit=200)
6 required fields · View requirements
Required telemetry
- Process Creation
Required fields
event.time: Event timeevent.type: Event typetgt.process.name: Created process nametgt.process.cmdline: Created command lineagent.uuid: Endpoint identifierendpoint.name: Endpoint name
Readiness test
event.type = 'Process Creation' tgt.process.cmdline = * | limit 5 | columns event.time, event.type, tgt.process.name, tgt.process.cmdline, agent.uuid, endpoint.name
// HUNT: agent-framework installs (loose or unpinned) as an exposure inventory // SCHEMA PROFILE: sentinelone-endpoint-ocsf // MITRE: T1195.002 // CONF: medium | FP: medium // EQUIVALENCE: approximate-analytic - Same install population and the same 1.26.0 pin exclusion, grouped per host. The CQL collects every distinct command line; PowerQuery shows one sample command line per host because array_agg is not used here. // REQUIRES: SentinelOne endpoint process-creation telemetry with command line // TUNING: Only installs between 2026-11-17 20:35 and about 21:30 UTC can have resolved 1.26.1 or 1.26.2; treat the rest as inventory. Exclude hosts whose requirements are hash-pinned to 1.26.0 once confirmed against the lockfile. // LOOKBACK: 14d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: Only one sample command line per host is shown; the CQL tab lists every distinct command line. // VALIDATION LEVEL: static-reviewed event.type = 'Process Creation' tgt.process.name matches '^(pip[0-9.]*|pipx|uv|poetry|pdm|python[0-9.]*|py)(\\.exe)?$' tgt.process.cmdline matches '.*agent[-_]framework([\\s=<>~!@\\x22\\x27].*)?$' !(tgt.process.cmdline matches '.*agent[-_]framework\\s*(===|==)\\s*1\\.26\\.0([^0-9].*)?$') | group installs=count(), first_seen=min(event.time), last_seen=max(event.time), sample_command=any(tgt.process.cmdline) by agent.uuid, endpoint.name | sort -last_seen | limit 200
Automated validation: static-passed
5 required fields · View requirements
Required telemetry
- DeviceProcessEvents
Required fields
Timestamp: Event timeFileName: Created process nameProcessCommandLine: Created command lineDeviceId: Device identifierDeviceName: Device name
Readiness test
DeviceProcessEvents | where Timestamp > ago(1d) | project Timestamp, FileName, ProcessCommandLine, DeviceId, DeviceName | take 5
// HUNT: agent-framework installs (loose or unpinned) as an exposure inventory // SCHEMA PROFILE: microsoft-defender-xdr // MITRE: T1195.002 // CONF: medium | FP: medium // EQUIVALENCE: approximate-analytic - Same install population and the same 1.26.0 pin exclusion, grouped per host. The CQL collects every distinct command line; KQL keeps up to 20 distinct command lines per host with make_set. // REQUIRES: Defender for Endpoint process-creation telemetry (DeviceProcessEvents) // TUNING: Only installs between 2026-11-17 20:35 and about 21:30 UTC can have resolved 1.26.1 or 1.26.2; treat the rest as inventory. Exclude hosts whose requirements are hash-pinned to 1.26.0 once confirmed against the lockfile. // LOOKBACK: 14d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: The command line list is capped at 20 distinct values per host. // VALIDATION LEVEL: schema-aligned // AUTOMATED VALIDATION: static-passed; static=passed-with-warnings; fixtures=0/0 DeviceProcessEvents | where Timestamp >= ago(14d) | where FileName matches regex @"(?i)^(pip[0-9.]*|pipx|uv|poetry|pdm|python[0-9.]*|py)(\.exe)?$" | where ProcessCommandLine matches regex @"(?i)agent[-_]framework(\s|=|<|>|~|!|@|\x22|\x27|$)" | where not(ProcessCommandLine matches regex @"(?i)agent[-_]framework\s*(===|==)\s*1\.26\.0([^0-9]|$)") | summarize Installs = count(), FirstSeen = min(Timestamp), LastSeen = max(Timestamp), CommandLines = make_set(ProcessCommandLine, 20) by DeviceId, DeviceName | sort by LastSeen desc | take 200
Looks for: A package manager or test runner connecting to 169.254.169.254. The stealer asks IMDS for managed-identity tokens (12 resources per Wiz) from whatever Python process starts, including pip itself. A package manager has no reason to touch IMDS.
FP: Integration tests that use ManagedIdentityCredential run under pytest and will match. If a known positive returns nothing, the forked collector child may have no process rollup of its own: pivot on the same aid and time window using Q4.
Known limitations and deployment notes
- PowerQuery: A process outside the named package managers and test runners that requests the metadata endpoint is not captured.
- PowerQuery assumes: On an IP Connect event the connecting process is src.process.*.
- PowerQuery assumes: The agent records connections to the link-local metadata address.
- KQL – Defender XDR: A process outside the named package managers and test runners that requests the metadata endpoint is not captured.
- KQL – Defender XDR assumes: The sensor records connections to the link-local metadata address in DeviceNetworkEvents.
// HUNT: package manager or test runner talking to Azure IMDS (stealer token request) // MITRE: T1552.005, T1528 | CONF: medium FP: medium COST: medium // REQUIRES: NetworkConnectIP4 and process creation telemetry on Azure VMs, build agents, App Service and AKS nodes // LOOKBACK: 14d via the console time picker // TUNING: drop pytest rows whose CommandLine path is a known integration-test suite that legitimately uses managed identity // TUNING: scope to build-agent host groups first; pip and uv should never request IMDS tokens #event_simpleName=NetworkConnectIP4 | RemoteAddressIP4="169.254.169.254" | rename(field=ContextProcessId_decimal, as=TargetProcessId_decimal) | join(query={ #event_simpleName=/^(ProcessRollup2|SyntheticProcessRollup2)$/ | (FileName=/^(pip[0-9.]*|pipx|uv|poetry|pdm|pytest|py\.test)(\.exe)?$/i or CommandLine=/\s-m\s+(pip|pytest|build|venv|ensurepip)(\s|$)/i) | select([aid, TargetProcessId_decimal, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName]) }, field=[aid, TargetProcessId_decimal], mode=inner) | table([@timestamp, aid, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, RemoteAddressIP4, RemotePort], limit=200)
5 required fields · View requirements
Required telemetry
- IP Connect
Required fields
event.time: Event timeevent.type: Event typedst.ip.address: Destination addresssrc.process.name: Connecting process namesrc.process.cmdline: Connecting command line
Recommended fields
dst.port.number: Destination port
Fallbacks
endpoint.name→agent.uuid: Changes the displayed host identifier only.
Readiness test
event.type = 'IP Connect' dst.ip.address = * | limit 5 | columns event.time, event.type, dst.ip.address, src.process.name, src.process.cmdline
// HUNT: package manager or test runner talking to Azure IMDS (stealer token request) // SCHEMA PROFILE: sentinelone-endpoint-ocsf // MITRE: T1552.005, T1528 // CONF: medium | FP: medium // EQUIVALENCE: equivalent-with-schema-assumptions - The CQL joins a network connection to the process that made it; an IP Connect event already carries that process as src.process.*, so no join is needed. Same destination, same package-manager or test-runner population. // REQUIRES: SentinelOne endpoint network telemetry (IP Connect) on Azure VMs, build agents, App Service and AKS nodes // TUNING: Drop pytest rows whose command line is a known integration-test suite that legitimately uses managed identity; scope to build-agent host groups first. pip and uv should never request IMDS tokens. // LOOKBACK: 14d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: A process outside the named package managers and test runners that requests the metadata endpoint is not captured. // VALIDATION LEVEL: static-reviewed event.type = 'IP Connect' dst.ip.address = '169.254.169.254' (src.process.name matches '^(pip[0-9.]*|pipx|uv|poetry|pdm|pytest|py\\.test)(\\.exe)?$' or src.process.cmdline matches '.*\\s-m\\s+(pip|pytest|build|venv|ensurepip)(\\s.*)?$') | columns event.time, agent.uuid, endpoint.name, src.process.user, src.process.name, src.process.cmdline, src.process.parent.name, dst.ip.address, dst.port.number | sort -event.time | limit 200
Automated validation: static-passed
4 required fields · View requirements
Required telemetry
- DeviceNetworkEvents
Required fields
Timestamp: Event timeRemoteIP: Destination addressInitiatingProcessFileName: Connecting process nameInitiatingProcessCommandLine: Connecting command line
Recommended fields
RemotePort: Destination port
Fallbacks
DeviceName→DeviceId: Changes the displayed host identifier only.
Readiness test
DeviceNetworkEvents | where Timestamp > ago(1d) | project Timestamp, RemoteIP, InitiatingProcessFileName, InitiatingProcessCommandLine | take 5
// HUNT: package manager or test runner talking to Azure IMDS (stealer token request) // SCHEMA PROFILE: microsoft-defender-xdr // MITRE: T1552.005, T1528 // CONF: medium | FP: medium // EQUIVALENCE: equivalent-with-schema-assumptions - The CQL joins a network connection to the process that made it; DeviceNetworkEvents already carries that process as InitiatingProcess*, so no join is needed. Same destination, same package-manager or test-runner population. // REQUIRES: Defender for Endpoint network telemetry (DeviceNetworkEvents) on Azure VMs, build agents, App Service and AKS nodes // TUNING: Drop pytest rows whose command line is a known integration-test suite that legitimately uses managed identity; scope to build-agent host groups first. pip and uv should never request IMDS tokens. // LOOKBACK: 14d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: A process outside the named package managers and test runners that requests the metadata endpoint is not captured. // VALIDATION LEVEL: schema-aligned // AUTOMATED VALIDATION: static-passed; static=passed; fixtures=0/0 DeviceNetworkEvents | where Timestamp >= ago(14d) | where RemoteIP == "169.254.169.254" | where InitiatingProcessFileName matches regex @"(?i)^(pip[0-9.]*|pipx|uv|poetry|pdm|pytest|py\.test)(\.exe)?$" or InitiatingProcessCommandLine matches regex @"(?i)\s-m\s+(pip|pytest|build|venv|ensurepip)(\s|$)" | project Timestamp, ReportId, DeviceId, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessParentFileName, RemoteIP, RemotePort | sort by Timestamp desc | take 200
Looks for: A Python-family process resolving webhook.site, the request-bin service the stealer posts to. DNS cannot show the campaign UUID, so this is a host-level lead that must be confirmed with Q5 or proxy logs. The hostname is a hunt term only; it is never an IOC to block tenant-wide.
FP: Developers testing webhooks from scripts legitimately resolve webhook.site. On build agents and servers a Python process doing so is rare.
Known limitations and deployment notes
- PowerQuery: If the tenant populates dns.request and not event.dns.request, this query returns nothing until the field name is swapped.
- PowerQuery assumes: event.dns.request holds the queried name; the vendor field documentation names dns.request instead, so check which one is populated on the tenant.
- PowerQuery assumes: On a DNS Resolved event the requesting process is src.process.*.
- KQL – Defender XDR: If the tenant stores the name under another AdditionalFields key, this query returns nothing until the key is added.
- KQL – Defender XDR assumes: AdditionalFields carries the queried name under DnsQueryString or QueryName; the readiness test shows which key the tenant populates.
// HUNT: python / pip process resolving webhook.site (exfil endpoint hostname) // MITRE: T1567, T1041 | CONF: high FP: medium COST: medium // REQUIRES: DnsRequest and process creation telemetry // LOOKBACK: 14d via the console time picker // TUNING: exclude developer workstation host groups that run webhook test scripts; keep build agents and servers in scope // TUNING: confirm any hit against Q5 (UUID in proxy URL logs) before declaring compromise #event_simpleName=DnsRequest | DomainName=/^(.+\.)?webhook\.site$/i | rename(field=ContextProcessId_decimal, as=TargetProcessId_decimal) | join(query={ #event_simpleName=/^(ProcessRollup2|SyntheticProcessRollup2)$/ | FileName=/^(python[0-9.]*|pip[0-9.]*|pipx|uv|poetry|pdm|pytest|py)(\.exe)?$/i | select([aid, TargetProcessId_decimal, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName]) }, field=[aid, TargetProcessId_decimal], mode=inner) | table([@timestamp, aid, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, DomainName], limit=200)
4 required fields · View requirements
Required telemetry
- DNS Resolved
Required fields
event.time: Event timeevent.type: Event typeevent.dns.request: Queried namesrc.process.name: Requesting process name
Recommended fields
src.process.cmdline: Requesting command line
Fallbacks
event.dns.request→dns.request: Same value under the other schema version; swap the field name in the query.
Readiness test
event.type = 'DNS Resolved' event.dns.request = * | limit 5 | columns event.time, event.type, event.dns.request, src.process.name
// HUNT: python / pip process resolving webhook.site (exfil endpoint hostname)
// SCHEMA PROFILE: sentinelone-endpoint-ocsf
// MITRE: T1567, T1041
// CONF: high | FP: medium
// EQUIVALENCE: equivalent-with-schema-assumptions - The CQL joins a name lookup to the process that made it; a DNS Resolved event already carries that process as src.process.*, so no join is needed. Same domain (webhook.site and its subdomains) and same interpreter or package-manager population.
// REQUIRES: SentinelOne endpoint DNS telemetry (DNS Resolved) with the requesting process
// TUNING: Exclude developer workstation host groups that run webhook test scripts; keep build agents and servers in scope. Confirm any hit against the proxy-log UUID hunt before declaring compromise.
// LOOKBACK: 14d
// CONFIGURATION: No lookup objects required.
// KNOWN GAPS: If the tenant populates dns.request and not event.dns.request, this query returns nothing until the field name is swapped.
// VALIDATION LEVEL: static-reviewed
event.type = 'DNS Resolved' (event.dns.request in:anycase ('webhook.site') or event.dns.request matches '^(.+\\.)?webhook\\.site$') src.process.name matches '^(python[0-9.]*|pip[0-9.]*|pipx|uv|poetry|pdm|pytest|py)(\\.exe)?$'
| columns event.time, agent.uuid, endpoint.name, src.process.user, src.process.name, src.process.cmdline, src.process.parent.name, event.dns.request
| sort -event.time
| limit 200Automated validation: static-passed
4 required fields · View requirements
Required telemetry
- DeviceEvents
Required fields
Timestamp: Event timeActionType: Action typeAdditionalFields: Event details holding the queried nameInitiatingProcessFileName: Requesting process name
Recommended fields
InitiatingProcessCommandLine: Requesting command line
Fallbacks
DeviceName→DeviceId: Changes the displayed host identifier only.
Readiness test
DeviceEvents | where Timestamp > ago(1d) | where ActionType == "DnsQueryResponse" | project Timestamp, ActionType, AdditionalFields, InitiatingProcessFileName | take 5
// HUNT: python / pip process resolving webhook.site (exfil endpoint hostname) // SCHEMA PROFILE: microsoft-defender-xdr // MITRE: T1567, T1041 // CONF: high | FP: medium // EQUIVALENCE: equivalent-with-schema-assumptions - Defender has no endpoint DNS table, so the name lookup is read from DeviceEvents DnsQueryResponse records with the name taken from AdditionalFields. The requesting process is InitiatingProcess*, so no join is needed. Same domain and same interpreter or package-manager population. // REQUIRES: Defender for Endpoint DNS response telemetry (DeviceEvents, ActionType DnsQueryResponse) // TUNING: Exclude developer workstation host groups that run webhook test scripts; keep build agents and servers in scope. Confirm any hit against the proxy-log UUID hunt before declaring compromise. // LOOKBACK: 14d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: If the tenant stores the name under another AdditionalFields key, this query returns nothing until the key is added. // VALIDATION LEVEL: schema-aligned // AUTOMATED VALIDATION: static-passed; static=passed; fixtures=0/0 DeviceEvents | where Timestamp >= ago(14d) | where ActionType == "DnsQueryResponse" | extend DnsName = tostring(coalesce(parse_json(AdditionalFields)["DnsQueryString"], parse_json(AdditionalFields)["QueryName"])) | where DnsName =~ "webhook.site" or DnsName endswith ".webhook.site" | where InitiatingProcessFileName matches regex @"(?i)^(python[0-9.]*|pip[0-9.]*|pipx|uv|poetry|pdm|pytest|py)(\.exe)?$" | project Timestamp, ReportId, DeviceId, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessParentFileName, DnsName | sort by Timestamp desc | take 200
Looks for: The campaign-specific webhook UUID in a logged URL. A 200 response means the capture endpoint accepted that host’s data; 410 or 429 means webhook.site rejected it (Wiz). Either way the request was attempted, so rotate.
FP: None: the UUID is unique to this campaign. Requires a log source that records the URL path (TLS-inspecting proxy, secure web gateway, firewall URL filtering). Hostname-only DNS or SNI logs cannot see it.
Known limitations and deployment notes
- PowerQuery: The query searches all indexed fields, so it can also match the UUID in a command line or a file; it does not name the URL field or the HTTP status.
- PowerQuery: The CQL's ECS fields host.name, source.ip, user.name, http.request.method, url.full, url.path and user_agent.original are not reproduced: this pivot has no field names to carry.
- PowerQuery: If the proxy logs are not in the Singularity Data Lake this returns nothing; use the CQL tab against the proxy repository.
- PowerQuery assumes: The proxy or gateway logs are ingested to the Singularity Data Lake and the URL is an indexed field.
- KQL – Defender XDR: RemoteUrl often holds only the host name, so a UUID in the URL path is frequently invisible here and an empty result is not a clean result.
- KQL – Defender XDR: The HTTP status and User-Agent are not available.
- KQL – Defender XDR: The CQL's ECS fields host.name, source.ip, user.name, http.request.method, url.full, url.path and user_agent.original are not reproduced: they are proxy log fields, not endpoint columns.
- KQL – Defender XDR assumes: RemoteUrl carries the full URL including the path for the connection; it often holds only the host name.
// HUNT: campaign webhook UUID in web proxy / gateway URL logs // MITRE: T1567, T1041 | CONF: high FP: low COST: low // REQUIRES: URL-path logging in a proxy, secure web gateway or firewall ingested to Next-Gen SIEM (ECS fields) // LOOKBACK: 30d via the console time picker; select the proxy repository, not the endpoint repository // NOTE: status 200 = endpoint accepted the data; 410 or 429 = endpoint rejected it (free-tier cap). Both mean the POST was sent. url.full=/d381fd80-ec62-42ad-8f5c-d1b15103c9bb/i or url.path=/d381fd80-ec62-42ad-8f5c-d1b15103c9bb/i | table([@timestamp, host.name, source.ip, user.name, http.request.method, url.full, user_agent.original, http.response.status_code], limit=200)
1 required field · View requirements
Required telemetry
- Proxy or gateway URL logs in the Singularity Data Lake
Required fields
event.time: Event time
Readiness test
event.time = * | limit 5 | columns event.time
// HUNT: campaign webhook UUID in web proxy / gateway URL logs // SCHEMA PROFILE: sentinelone-endpoint-ocsf // MITRE: T1567, T1041 // CONF: high | FP: low // EQUIVALENCE: telemetry-gap - The CQL searches the URL fields of proxy or gateway logs. SentinelOne has no attested URL-path field and a proxy source uses parser-specific names, so this partial pivot searches every indexed field of any source for the campaign webhook UUID instead. // REQUIRES: Proxy or gateway URL logs ingested to the Singularity Data Lake // TUNING: Narrow by data source once the tenant's proxy source name is known. Status 200 means the endpoint accepted the data; 410 or 429 means it rejected it; both mean the POST was sent. // LOOKBACK: 30d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: The query searches all indexed fields, so it can also match the UUID in a command line or a file; it does not name the URL field or the HTTP status. The CQL's ECS fields host.name, source.ip, user.name, http.request.method, url.full, url.path and user_agent.original are not reproduced: this pivot has no field names to carry. If the proxy logs are not in the Singularity Data Lake this returns nothing; use the CQL tab against the proxy repository. // VALIDATION LEVEL: static-reviewed * contains 'd381fd80-ec62-42ad-8f5c-d1b15103c9bb' | limit 200
Automated validation: static-passed
2 required fields · View requirements
Required telemetry
- DeviceNetworkEvents
Required fields
Timestamp: Event timeRemoteUrl: Remote URL
Readiness test
DeviceNetworkEvents | where Timestamp > ago(1d) | project Timestamp, RemoteUrl | take 5
// HUNT: campaign webhook UUID in web proxy / gateway URL logs // SCHEMA PROFILE: microsoft-defender-xdr // MITRE: T1567, T1041 // CONF: high | FP: low // EQUIVALENCE: telemetry-gap - The CQL searches the URL fields of proxy or gateway logs, which Advanced Hunting does not hold. This partial pivot searches the remote URL of endpoint network events for the campaign webhook UUID instead. // REQUIRES: Defender for Endpoint network telemetry (DeviceNetworkEvents) with RemoteUrl populated // TUNING: Run the CQL tab against the proxy repository for the full URL path and the HTTP status. // LOOKBACK: 30d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: RemoteUrl often holds only the host name, so a UUID in the URL path is frequently invisible here and an empty result is not a clean result. The HTTP status and User-Agent are not available. The CQL's ECS fields host.name, source.ip, user.name, http.request.method, url.full, url.path and user_agent.original are not reproduced: they are proxy log fields, not endpoint columns. // VALIDATION LEVEL: schema-aligned // AUTOMATED VALIDATION: static-passed; static=passed; fixtures=0/0 DeviceNetworkEvents | where Timestamp >= ago(30d) | where RemoteUrl contains "d381fd80-ec62-42ad-8f5c-d1b15103c9bb" | project Timestamp, ReportId, DeviceId, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName, RemoteUrl, RemoteIP, RemotePort | sort by Timestamp desc | take 200
Looks for: The two distinctive User-Agents: af-runtime-diagnostics/1 (1.26.1) and runtime-diagnostics/1 (1.26.2). The 1.26.2 string is also sent on the GitHub OIDC token requests, so a hit can come from the runner’s own identity-endpoint calls. It survives even if the webhook UUID is rotated by a later variant.
FP: Very unlikely to occur legitimately; the strings imitate SDK telemetry but are not used by Microsoft tooling.
Known limitations and deployment notes
- PowerQuery: The query searches all indexed fields and matches a substring, so it is broader than the anchored CQL regex and can match the string in a command line or a file.
- PowerQuery: The CQL's ECS fields host.name, source.ip, user.name, url.full and user_agent.original are not reproduced: this pivot has no field names to carry.
- PowerQuery: If the proxy logs are not in the Singularity Data Lake this returns nothing; use the CQL tab against the proxy repository.
- PowerQuery assumes: The proxy or gateway logs are ingested to the Singularity Data Lake and the User-Agent is an indexed field.
- KQL – Defender XDR: No documented column holds a User-Agent, so an empty result is expected on most tenants and is not a clean result.
- KQL – Defender XDR: The match is a substring, broader than the anchored CQL regex.
- KQL – Defender XDR: The CQL's ECS fields host.name, source.ip, user.name, url.full and user_agent.original are not reproduced: they are proxy log fields, not endpoint columns.
- KQL – Defender XDR assumes: AdditionalFields on a network event can carry a User-Agent; Microsoft does not document that it does.
// HUNT: stealer User-Agent strings in proxy / gateway logs // MITRE: T1567, T1071.001 | CONF: high FP: low COST: low // REQUIRES: User-Agent logging in a proxy, secure web gateway or firewall ingested to Next-Gen SIEM (ECS fields) // LOOKBACK: 30d via the console time picker; select the proxy repository, not the endpoint repository user_agent.original=/^(af-)?runtime-diagnostics.1$/i | table([@timestamp, host.name, source.ip, user.name, url.full, user_agent.original, http.response.status_code], limit=200)
1 required field · View requirements
Required telemetry
- Proxy or gateway logs in the Singularity Data Lake
Required fields
event.time: Event time
Readiness test
event.time = * | limit 5 | columns event.time
// HUNT: stealer User-Agent strings in proxy / gateway logs // SCHEMA PROFILE: sentinelone-endpoint-ocsf // MITRE: T1567, T1071.001 // CONF: high | FP: low // EQUIVALENCE: telemetry-gap - The CQL matches the User-Agent field of proxy or gateway logs. SentinelOne has no attested User-Agent field, so this partial pivot searches every indexed field of any source for the stealer User-Agent string as a substring. // REQUIRES: Proxy or gateway logs with User-Agent logging ingested to the Singularity Data Lake // TUNING: Narrow by data source once the tenant's proxy source name is known. // LOOKBACK: 30d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: The query searches all indexed fields and matches a substring, so it is broader than the anchored CQL regex and can match the string in a command line or a file. The CQL's ECS fields host.name, source.ip, user.name, url.full and user_agent.original are not reproduced: this pivot has no field names to carry. If the proxy logs are not in the Singularity Data Lake this returns nothing; use the CQL tab against the proxy repository. // VALIDATION LEVEL: static-reviewed * contains 'runtime-diagnostics.1' | limit 200
Automated validation: static-passed
2 required fields · View requirements
Required telemetry
- DeviceNetworkEvents
Required fields
Timestamp: Event timeAdditionalFields: Free-text event details
Readiness test
DeviceNetworkEvents | where Timestamp > ago(1d) | project Timestamp, AdditionalFields | take 5
// HUNT: stealer User-Agent strings in proxy / gateway logs // SCHEMA PROFILE: microsoft-defender-xdr // MITRE: T1567, T1071.001 // CONF: high | FP: low // EQUIVALENCE: telemetry-gap - The CQL matches the User-Agent field of proxy or gateway logs. Advanced Hunting has no User-Agent column, so this partial pivot searches the free-text AdditionalFields of endpoint network events for the stealer User-Agent string. // REQUIRES: Defender for Endpoint network telemetry (DeviceNetworkEvents) // TUNING: Run the CQL tab against the proxy repository for the User-Agent field itself. // LOOKBACK: 30d // CONFIGURATION: No lookup objects required. // KNOWN GAPS: No documented column holds a User-Agent, so an empty result is expected on most tenants and is not a clean result. The match is a substring, broader than the anchored CQL regex. The CQL's ECS fields host.name, source.ip, user.name, url.full and user_agent.original are not reproduced: they are proxy log fields, not endpoint columns. // VALIDATION LEVEL: schema-aligned // AUTOMATED VALIDATION: static-passed; static=passed; fixtures=0/0 DeviceNetworkEvents | where Timestamp >= ago(30d) | where AdditionalFields contains "runtime-diagnostics.1" | project Timestamp, ReportId, DeviceId, DeviceName, InitiatingProcessFileName, RemoteUrl, RemoteIP, AdditionalFields | sort by Timestamp desc | take 200
Looks for: The seven SHA-256 values from the reporting as an executed image hash. Expect little yield: the stealer is a .pth and .py text payload, and Falcon records image hashes for executed binaries, not for Python source. Kept as a cheap completeness check and so the hashes also exist as Custom IOCs.
FP: None expected.
Known limitations and deployment notes
- PowerQuery: A payload that never runs as a process (a file written and not executed) is not captured by this process sweep.
- PowerQuery assumes: tgt.process.image.sha256 is populated on the tenant and stored as lowercase hex, which the case-sensitive in operator requires.
- KQL – Defender XDR: Advanced Hunting retains 30 days, so the 90d CQL window is not covered here.
- KQL – Defender XDR: SHA256 is often unpopulated in DeviceProcessEvents; an empty result does not prove a clean estate.
- KQL – Defender XDR assumes: SHA256 is populated in DeviceProcessEvents on this tenant; Microsoft documents it as often unpopulated.
// HUNT: campaign file hashes seen as process image hashes // MITRE: T1195.002, T1546.018 | CONF: high FP: low COST: low // REQUIRES: process creation telemetry with SHA256HashData // LOOKBACK: 90d via the console time picker #event_simpleName=/^(ProcessRollup2|SyntheticProcessRollup2)$/ | in(SHA256HashData, values=[ "d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110", "3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9", "39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663", "c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02", "21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e", "54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f", "325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93"]) | table([@timestamp, aid, ComputerName, UserName, FileName, ImageFileName, SHA256HashData, CommandLine], limit=max)
3 required fields · View requirements
Required telemetry
- Process Creation
Required fields
event.time: Event timeevent.type: Event typetgt.process.image.sha256: Created process image hash
Recommended fields
tgt.process.image.path: Created process path
Fallbacks
endpoint.name→agent.uuid: Changes the displayed host identifier only.
Readiness test
event.type = 'Process Creation' tgt.process.image.sha256 = * | limit 5 | columns event.time, event.type, tgt.process.image.sha256, tgt.process.image.path
// HUNT: campaign file hashes seen as process image hashes
// SCHEMA PROFILE: sentinelone-endpoint-ocsf
// MITRE: T1195.002, T1546.018
// CONF: high | FP: low
// EQUIVALENCE: equivalent-with-schema-assumptions - Same sweep: the SHA-256 of the created process image against the campaign hash list. The created process is tgt.process.*.
// REQUIRES: SentinelOne endpoint process-creation telemetry with the image SHA-256
// TUNING: Treat any hit as a confirmed campaign payload; isolate the host and pull the storyline.
// LOOKBACK: 90d
// CONFIGURATION: No lookup objects required.
// KNOWN GAPS: A payload that never runs as a process (a file written and not executed) is not captured by this process sweep.
// VALIDATION LEVEL: static-reviewed
event.type = 'Process Creation' tgt.process.image.sha256 in ('d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110', '3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9', '39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663', 'c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02', '21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e', '54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f', '325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93')
| columns event.time, agent.uuid, endpoint.name, src.process.user, tgt.process.name, tgt.process.image.path, tgt.process.image.sha256, tgt.process.cmdline
| sort -event.time
| limit 1000Automated validation: static-passed
2 required fields · View requirements
Required telemetry
- DeviceProcessEvents
Required fields
Timestamp: Event timeSHA256: Created process image hash
Recommended fields
FolderPath: Created process path
Fallbacks
DeviceName→DeviceId: Changes the displayed host identifier only.
Readiness test
DeviceProcessEvents | where Timestamp > ago(1d) | project Timestamp, SHA256, FolderPath | take 5
// HUNT: campaign file hashes seen as process image hashes
// SCHEMA PROFILE: microsoft-defender-xdr
// MITRE: T1195.002, T1546.018
// CONF: high | FP: low
// EQUIVALENCE: equivalent-with-schema-assumptions - Same sweep: the SHA-256 of the created process image against the campaign hash list. The CQL carries SHA-256 values only, so there is no SHA1 pivot to fall back on.
// REQUIRES: Defender for Endpoint process-creation telemetry (DeviceProcessEvents) with SHA256 populated
// TUNING: Treat any hit as a confirmed campaign payload; isolate the host and review the process tree.
// LOOKBACK: 30d (Advanced Hunting retention); the CQL tab covers 90d
// CONFIGURATION: No lookup objects required.
// KNOWN GAPS: Advanced Hunting retains 30 days, so the 90d CQL window is not covered here. SHA256 is often unpopulated in DeviceProcessEvents; an empty result does not prove a clean estate.
// VALIDATION LEVEL: schema-aligned
// AUTOMATED VALIDATION: static-passed; static=passed; fixtures=0/0
DeviceProcessEvents
| where Timestamp >= ago(30d)
| where SHA256 in~ ("d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110", "3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9", "39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663", "c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02", "21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e", "54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f", "325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93")
| project Timestamp, ReportId, DeviceId, DeviceName, AccountName, FileName, FolderPath, SHA256, ProcessCommandLine
| sort by Timestamp desc
| take 1000Detection Rules by Platform
CrowdStrike: Custom IOA
| IOA name | Pattern | Exclusions | Action |
|---|---|---|---|
| Pinned install of a compromised release (promote Q1) | Process Creation. Image filename matches pip, pipx, uv, poetry, pdm or python; command line agent[-_]framework\s*(===|==|=|@)?\s*1\.26\.[12]([^0-9]|$) | None needed | Detect (high). The versions are quarantined, so any new match is a stale pin or a mirror |
| Package manager requests Azure IMDS (promote Q3) | Network Connection. Remote IP 169.254.169.254 from an image matching (^|\\)(pip[0-9.]*|pipx|uv|poetry|pdm)(\.exe)?$ | pytest suites that use managed identity; run in Detect for 14 days first | Detect (medium) |
| Python process resolves webhook.site (promote Q4) | Domain Name rule: webhook\.site from an image matching python|pip|uv|poetry|pdm|pytest, scoped to build-agent and server host groups only | Developer workstation groups | Detect (medium). Never block tenant-wide |
Deployment path: load the six prevent and one detect SHA-256 values from s10 as Custom IOCs. Promote Q1 immediately; keep Q3 and Q4 in Detect, scoped to build-agent groups, until the FP rate is measured. No IOA here is a prevention rule, and the webhook.site hostname is never loaded as an IOC.
SentinelOne: custom detection rules
| Rule | Source query | Run as | Notes |
|---|---|---|---|
| Pinned install of a compromised release (promote Q1) | Q1, PowerQuery tab | Scheduled custom detection rule | Bind entities so the alert names the host instead of "Unknown Device" |
| Package manager requests Azure IMDS (promote Q3) | Q3, PowerQuery tab | Scheduled custom detection rule | Bind entities so the alert names the host instead of "Unknown Device" |
| Python process resolves webhook.site (promote Q4) | Q4, PowerQuery tab | Scheduled custom detection rule | Bind entities so the alert names the host instead of "Unknown Device" |
Create the rule with POST /web/api/v2.1/cloud-detection/rules, queryType: "scheduled" and queryLang: "2.0", with the query in data.scheduledParams.query. Use 2.0 operator spellings: a rule written with the 1.0 token ContainsCIS was accepted and never fired on a tenant. The API does not warn, so lint the body before deploying.
Microsoft Defender: custom detection rules
| Rule | Source query | Run as | Notes |
|---|---|---|---|
| Pinned install of a compromised release (promote Q1) | Q1, KQL – Defender XDR tab | Custom detection rule, alert only, every hour | The query returns Timestamp, ReportId and DeviceId, which Microsoft recommends for Defender for Endpoint tables so alerts carry the device group scope and the process tree. Remove the Timestamp filter and the final sort and take before saving the rule: the service applies the rule's lookback itself |
| Package manager requests Azure IMDS (promote Q3) | Q3, KQL – Defender XDR tab | Custom detection rule, alert only, every hour | The query returns Timestamp, ReportId and DeviceId, which Microsoft recommends for Defender for Endpoint tables so alerts carry the device group scope and the process tree. Remove the Timestamp filter and the final sort and take before saving the rule: the service applies the rule's lookback itself |
| Python process resolves webhook.site (promote Q4) | Q4, KQL – Defender XDR tab | Custom detection rule, alert only, every hour | The query returns Timestamp, ReportId and DeviceId, which Microsoft recommends for Defender for Endpoint tables so alerts carry the device group scope and the process tree. Remove the Timestamp filter and the final sort and take before saving the rule: the service applies the rule's lookback itself |
Q2, Q5, Q6 and Q7 stay a hunt in this pack, not a rule. A rule can generate only 150 alerts per run. Continuous (NRT) frequency needs a single table and no comment lines, so delete the generated comment header from the query first.
Machine-Readable IOC Appendix
type,value,action,severity,expiration,description,tags sha256,d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110,prevent,critical,2027-11-18,agent-framework PyPI compromise: agent_framework-1.26.1 wheel,campaign:AgentFramework-PyPI sha256,3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9,prevent,critical,2027-11-18,agent-framework PyPI compromise: agent_framework-1.26.2 wheel,campaign:AgentFramework-PyPI sha256,21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e,prevent,critical,2027-11-18,agent-framework PyPI compromise: agent_framework_meta.pth,campaign:AgentFramework-PyPI sha256,39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663,prevent,critical,2027-11-18,agent-framework PyPI compromise: agent_framework_meta/_telemetry.py,campaign:AgentFramework-PyPI sha256,c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02,detect,high,2027-11-18,agent-framework PyPI compromise: agent_framework_meta/__init__.py loader,campaign:AgentFramework-PyPI sha256,325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93,prevent,critical,2027-11-18,agent-framework PyPI compromise: af_runtime_diag.pth,campaign:AgentFramework-PyPI sha256,54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f,prevent,critical,2027-11-18,agent-framework PyPI compromise: af_runtime_diag.py,campaign:AgentFramework-PyPI
indicatorType,indicatorValue,action,title,description,expirationTime,severity,recommendedActions,rbacGroups,category,mitretechniques,GenerateAlert FileSha256,d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110,Block,agent-framework PyPI compromise: agent_framework-1.26.1 whee,agent-framework PyPI compromise: agent_framework-1.26.1 wheel,2027-11-18T00:00:00.0Z,High,Investigate the device and pivot into the pack's queries,,,,True FileSha256,3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9,Block,agent-framework PyPI compromise: agent_framework-1.26.2 whee,agent-framework PyPI compromise: agent_framework-1.26.2 wheel,2027-11-18T00:00:00.0Z,High,Investigate the device and pivot into the pack's queries,,,,True FileSha256,21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e,Block,agent-framework PyPI compromise: agent_framework_meta.pth,agent-framework PyPI compromise: agent_framework_meta.pth,2027-11-18T00:00:00.0Z,High,Investigate the device and pivot into the pack's queries,,,,True FileSha256,39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663,Block,agent-framework PyPI compromise: agent_framework_meta/_telem,agent-framework PyPI compromise: agent_framework_meta/_telemetry.py,2027-11-18T00:00:00.0Z,High,Investigate the device and pivot into the pack's queries,,,,True FileSha256,c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02,Audit,agent-framework PyPI compromise: agent_framework_meta/__init,agent-framework PyPI compromise: agent_framework_meta/__init__.py loader,2027-11-18T00:00:00.0Z,High,Investigate the device and pivot into the pack's queries,,,,True FileSha256,325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93,Block,agent-framework PyPI compromise: af_runtime_diag.pth,agent-framework PyPI compromise: af_runtime_diag.pth,2027-11-18T00:00:00.0Z,High,Investigate the device and pivot into the pack's queries,,,,True FileSha256,54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f,Block,agent-framework PyPI compromise: af_runtime_diag.py,agent-framework PyPI compromise: af_runtime_diag.py,2027-11-18T00:00:00.0Z,High,Investigate the device and pivot into the pack's queries,,,,True
Column names and allowed values are from Microsoft's documented parameter table. Prevent rows import as Block, without remediation; network indicators cannot use BlockAndRemediate. Check each expirationTime before importing: an indicator whose date has passed is already expired. Download the sample CSV from the Import page to confirm the column order before a bulk import. Each file takes at most 500 indicators. Learn describes the import per entity type, so if a mixed file is rejected, split it by indicatorType. An imported indicator does nothing unless the matching Advanced features are on (for example Custom network indicators and Allow or block file).
This pack does not ship a SentinelOne import block: the import format could not be verified against SentinelOne's own documentation. Export a sample from your console and the block can be added with confidence.
# Hunt strings (search these in proxy URL logs, EDR command lines, SIEM) # NOTE: webhook.site is a public request-bin used by many unrelated people. # Hunt the UUID below. Do NOT block or import the bare hostname. d381fd80-ec62-42ad-8f5c-d1b15103c9bb ?t=telemetry af-runtime-diagnostics/1 runtime-diagnostics/1 _AF_TEL=1 aHR0cHM6Ly93ZWJob29rLnNpdGUvZDM4MWZkODAtZWM2Mi00MmFkLThmNWMtZDFiMTUxMDNjOWJi # Behavioral signals .pth file with a line starting "import " written to site-packages root by pip/uv python/pip/pytest process requesting 169.254.169.254 (Azure IMDS) python process reading up to 300 /proc/*/environ files, then one HTTPS POST to a request-bin GitHub Actions: ACTIONS_ID_TOKEN_REQUEST_URL called with audience api://AzureADTokenExchange or https://management.azure.com/
# Files to look for in any site-packages root, venv, container layer or CI cache agent_framework_meta.pth agent_framework_meta/__init__.py (1.26.1 only: 994 bytes vs 853 clean) agent_framework_meta/_telemetry.py af_runtime_diag.pth af_runtime_diag.py # SHA-1 (Wiz only; not importable to Falcon): 0a013e4724c4437cf9b177def1d988113e167539 agent_framework_meta/_telemetry.py
# Package-state audit (SAFE: none of these start a Python interpreter) grep -RIn --include='requirements*.txt' --include='*.lock' --include='Pipfile*' --include='pyproject.toml' --include='uv.lock' -E 'agent[-_]framework[^-]' . # Lockfile hash match for the two malicious wheels: grep -RIn -E 'd27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110|3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9' . # Clean version to pin to: agent-framework==1.26.0 (2026-11-12 18:25 UTC) # Exposure window: 2026-11-17 20:35 UTC to quarantine (Wiz ~21:30, Aikido ~21:20)
Import notes: Falcon IOC import accepts SHA-256 and MD5 only, so the seven SHA-256 values are the whole CSV; the URL, UUID, User-Agents, filenames, base64 string and SHA-1 are hunt strings. The CSV contains no hostname and no domain at any action.
Detection Validation Gates
| Gate | Check | Pass criteria |
|---|---|---|
| Telemetry ready | Process creation with command line (CrowdStrike: ProcessRollup2. SentinelOne: Process Creation. Defender: DeviceProcessEvents) and outbound connection / DNS telemetry flowing from build agents, Azure VMs and developer hosts; a proxy or gateway repository that logs URL path and User-Agent | Recent events from representative hosts in each group; proxy repository shows url.full populated |
| IOC loaded | Seven SHA-256 values imported as Custom IOCs (six prevent, one detect) | Import status active; no hostname rows present |
| Positive test (Q1) | In a lab, run pip install --dry-run agent-framework==1.26.1 against an offline index stub, or any command line containing that pin | Q1 fires on the test host |
| Positive test (Q5, Q6) | Send a benign request through the proxy to a URL ending in the campaign UUID with User-Agent runtime-diagnostics/1 against a harmless internal test endpoint | Q5 and Q6 return the row. Do not post to webhook.site |
| Benign baseline | Run Q2, Q3 and Q4 for 14 days | Allowlist legitimate Agent Framework users, managed-identity test suites and developer webhook scripts before alerting |
| Scope complete | Lockfile, image and cache audit (s7) across all repos and registries | Every resolved 1.26.1 or 1.26.2 mapped to a host or job; its credentials rotated |
| Promotion | Q1 detection first; Q3 and Q4 only after the baseline; none to prevent | FP rate below 5% over 14 days before any promotion |
Hardening — Tiered
- Pin and hash-lock Python dependencies. Pin
agent-framework==1.26.0and install with--require-hashesfrom a lock generated bypip-compile --generate-hashesoruv pip compile --generate-hashes. MITRE M1051, M1013. Best-practice (pip secure-install guidance), no formal benchmark. Verify:grep -c -- "--hash=" requirements.txt. - Rebuild and purge. Delete virtualenvs, rebuild container images and clear CI caches that resolved a release since 2026-11-17 20:35 UTC. MITRE M1051. Verify with the s7 inventory (no
.pthhit). - Rotate every secret and identity reachable from any affected environment (Azure CLI sessions, ADO PATs and service connections, GitHub, npm, PyPI, NuGet, Docker and Hugging Face tokens,
.envcontents). MITRE M1026, M1018. Verify: sign-in logs show only new credentials in use. - Deny webhook.site egress from build runners and servers at the proxy or firewall, scoped to those source ranges (not tenant-wide, not a Falcon IOC). MITRE M1037, M1021. Best-practice. Verify: a test request from a runner returns a proxy deny.
- Dependency cooldown. Enforce a release-age delay before dependency bots or resolvers pick up a new version: Dependabot
cooldown, RenovateminimumReleaseAge, or an index snapshot timestamp withuv --exclude-newer. This would have kept both releases out of automated PRs. MITRE M1051, M1013. Best-practice. - Least-privilege OIDC in GitHub Actions. Set top-level
permissions: contents: readand grantid-token: writeonly to the single deploy job. Pin Entra federated-credential subjects to a specific branch or environment. MITRE M1026, M1018. Best-practice (GitHub and Microsoft workload-identity guidance). - Restrict IMDS reach from build workloads. Block
169.254.169.254for processes that do not need it (AKS NetworkPolicy for non-system pods; host firewall owner rules on build agents) after inventorying which UIDs legitimately use managed identity. MITRE M1030, M1035. CIS Microsoft Azure Foundations and Microsoft Cloud Security Benchmark (identity and network sections). - Scope Azure DevOps tokens. Limit
System.AccessTokenjob authorization scope, avoid exposing it to script steps that install third-party packages, and use ephemeral agents. MITRE M1026. Best-practice (Microsoft Azure DevOps security guidance).
- Private package index with quarantine. Route all CI installs through a proxy (Azure Artifacts, Artifactory, Nexus) that enforces an allowlist and a cooldown, and alerts on a new release of a pinned package. MITRE M1051. Best-practice.
- Ephemeral runners with no standing secrets. Move to workload identity federation with short-lived, audience-restricted tokens and per-environment approvals; remove long-lived PATs and client secrets from agent images. MITRE M1026, M1032. CIS Azure Foundations, Microsoft Cloud Security Benchmark.
- Inventory and review of
.pthfiles in base images. Add a build-time check that fails an image containing an unexpected.pthwith animportline. MITRE M1047. Best-practice, no formal benchmark.
Deployable Playbooks
1 · Locate and verify hooks without launching Python
Prerequisites: Shell access to the host, image mount or CI workspace; do not run python or pip in the suspect environment.
Reboot required: No
Rollback: Read-only; nothing to undo.
find / -xdev \( -name 'agent_framework_meta.pth' -o -name 'af_runtime_diag.pth' -o -name 'af_runtime_diag.py' \) 2>/dev/null | tee /tmp/af-hooks.txt # Hash any hit with sha256sum and compare against s10: xargs -r sha256sum < /tmp/af-hooks.txt # Verify: no output means no hook on this filesystem.
2 · Rebuild the environment clean (do not repair in place)
Prerequisites: A reviewed requirements file; the host or runner is isolated and its secrets are being rotated.
Reboot required: No
Rollback: Keep the old directory renamed until rotation completes, then delete it. Do not reuse it: it contains the live hook.
mv .venv .venv.compromised # do NOT delete yet if forensics are needed
python3 -m venv .venv # new environment, clean interpreter
. .venv/bin/activate
pip install --require-hashes -r requirements.txt # lock pins agent-framework==1.26.0
# Verify: the lock hashes match and no *.pth import hook is present:
find .venv -path '*/site-packages/*.pth' -exec grep -l '^import ' {} +
3 · Generate a hash-locked requirements file
Prerequisites: Network access to your approved index; pip-tools or uv available.
Reboot required: No
Rollback: Revert the lock file in version control (git checkout -- requirements.txt).
echo "agent-framework==1.26.0" > requirements.in pip-compile --generate-hashes -o requirements.txt requirements.in # or: uv pip compile --generate-hashes requirements.in -o requirements.txt # Verify: every line carries --hash=sha256:...
4 · Dependency cooldown (Dependabot and Renovate)
Prerequisites: Repository admin; dependency bot already enabled.
Reboot required: No
Rollback: Remove the cooldown or minimumReleaseAge key and commit.
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
cooldown:
default-days: 7
# renovate.json
{ "packageRules": [ { "matchDatasources": ["pypi"], "minimumReleaseAge": "7 days" } ] }
5 · Least-privilege workflow permissions
Prerequisites: Workflow owner; inventory of which jobs really need Azure login.
Reboot required: No
Rollback: Revert the workflow commit.
# .github/workflows/deploy.yml
permissions:
contents: read # default for every job
jobs:
build:
runs-on: ubuntu-latest
steps: [ ... ] # no id-token here
deploy:
permissions:
contents: read
id-token: write # only this job can request an OIDC token
steps: [ ... ]
# Verify: github.com > repo > Settings > Actions shows default token permissions read-only.
6 · Egress deny for webhook.site from runner subnets (Squid example)
Prerequisites: A forward proxy on the runner egress path; the CI source range is known. Developer ranges are intentionally excluded.
Reboot required: No (Squid reconfigure only)
Rollback: Delete the two ACL lines, then run squid -k reconfigure.
acl ci_runners src 10.20.0.0/16 # replace with your runner/agent ranges
acl reqbin dstdomain .webhook.site
http_access deny ci_runners reqbin
# squid -k reconfigure
# Verify from a runner: curl -sS -o /dev/null -w '%{http_code}\n' -x http://proxy:3128 https://webhook.site/ # expect 403
7 · Restrict IMDS for build workloads (Linux host firewall, pilot first)
Prerequisites: Inventory of the UIDs that legitimately use managed identity (for example the deployment user); root access; a pilot agent pool. Best-practice, no formal benchmark.
Reboot required: No
Rollback: iptables -D OUTPUT -d 169.254.169.254 -m owner ! --uid-owner 0 -j REJECT and the matching allow lines; or reboot to drop non-persistent rules.
# Allow the deployment user, reject everyone else on the build agent: iptables -A OUTPUT -d 169.254.169.254 -m owner --uid-owner deploy -j ACCEPT iptables -A OUTPUT -d 169.254.169.254 -m owner ! --uid-owner 0 -j REJECT # Verify as an unprivileged build user: curl -s -m 3 -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2021-02-01" # expect failure
Snippets are raw configuration. Wrap them for fleet deployment with your own tooling.
Containment Runbook
| Phase | Actions | Owner | Evidence |
|---|---|---|---|
| Scope | Grep every repo, lockfile, image and cache for 1.26.1 and 1.26.2 and any loose range resolved since 2026-11-17 20:35 UTC; run Q1, Q2 and the s7 inventory | Threat Hunt / AppSec | Hit list mapped to hosts and jobs |
| Isolate | Isolate or pause any build agent or host with a hook or a Q1 to Q5 hit; revoke its pipeline and service connections; block webhook.site egress from runner ranges. By platform: Falcon network containment on the host; for hosted runners cancel the job and disable the workflow | SOC / Platform | Containment record; egress rule change |
| Isolate: by platform | CrowdStrike: network-contain the host. SentinelOne: network quarantine (Disconnect from Network; confirm the label in your console version). Microsoft Defender: Isolate device (full network isolation). | SOC / Platform | Containment record; egress rule change |
| Eradicate | Do not repair in place. Rebuild images and venvs from a clean base with agent-framework==1.26.0 and hash-locked requirements; purge caches | Platform / Dev | Rebuild logs; clean s7 inventory |
| Rotate | Treat every secret in the environment as stolen: Azure CLI sessions, ADO PATs and service connections, GitHub, npm, PyPI, NuGet, Docker, Hugging Face and registry tokens, Azure service principal credentials, anything in .env files. Removing the package does not undo what was already sent | IAM / Platform | Rotation record |
| Verify abuse | Review Entra sign-ins for service principals, managed identities and federated credentials reachable from affected hosts (tokens stay valid up to 24 hours); review Azure Activity, ADO audit, GitHub audit and package-registry publish logs since 2026-11-17 20:35 UTC | IR / Cloud | Provider log review; list of unfamiliar activity |
| Recover | Re-enable installs behind a hash-locked, cooldown-protected index; keep Q1, Q3 and Q4 as detections; re-run Q5 and Q6 weekly while indicators remain valid | Platform / SOC | CI configuration; detection status |
Detection Coverage Map
| Technique | Behavior | CQL | IOA/IOC | CrowdStrike coverage | SentinelOne | Defender XDR |
|---|---|---|---|---|---|---|
| T1195.002 | Malicious release installed | Q1, Q2, Q7 | IOA (Q1) / IOC | Good (for command-line-visible installs) | Partial: Q2 approximate | Partial: Q2 approximate |
| T1546.018 | .pth startup hook written | — | IOC (hashes) | GAP no file-write event for text files; use s7 inventory | GAP | GAP |
| T1552.005 | IMDS token requests | Q3 | IOA (Q3) | Partial (forked child may lack its own rollup) | Partial: same limit as CrowdStrike | Partial: same limit as CrowdStrike |
| T1567 / T1041 | Exfil POST to webhook.site | Q4, Q5, Q6 | IOA (Q4) | Good (Q5, Q6 need URL and User-Agent logging) | Partial: Q5 telemetry gap, Q6 telemetry gap | Partial: Q5 telemetry gap, Q6 telemetry gap |
| T1552.001 | Credential file reads | — | — | GAP file reads leave no endpoint event; rotation is the control | GAP | GAP |
| T1552 | Env-var and /proc/*/environ sweep | — | — | GAP in-process reads | GAP | GAP |
| T1528 | Azure DevOps and GitHub OIDC token theft | — | — | GAP outside endpoint telemetry; Entra sign-in logs (s7) | GAP | GAP |
Honest read: the malicious releases are quarantined, so live prevention value is low and the exposure window has closed. The pack’s job is to find installs that already happened and to drive credential rotation. The decisive scoping tools are the lockfile, image and registry audit and the Entra and provider logs, not endpoint CQL. The _AF_TEL marker and the credential file reads are visible only by inspecting running processes or the filesystem. Hosted CI runners are usually outside endpoint telemetry entirely.
File-write detection was deliberately not built. The Falcon reference lists ElfFileWritten while this repository’s syntax gate lists ELFFileWritten and flags the other spelling as invented; either way, that event is for ELF executables, and the payload is a text .pth. A query on it would return nothing. Validation gates are in s11.
Hunt Summary Ticket
TITLE: Microsoft Agent Framework PyPI compromise (agent-framework 1.26.1 / 1.26.2)
SEVERITY: High: credential stealer, quarantined 2026-11-17; retro-hunt and rotation
SCOPE: Dev, CI/CD (Azure DevOps, GitHub Actions) and Azure workloads that installed
1.26.1 or 1.26.2 on or after 2026-11-17 20:35 UTC (images and caches included)
HYPOTHESIS: A build or host resolved a malicious release; a .pth hook ran on interpreter
start, harvested env/files/IMDS/OIDC tokens and POSTed to webhook.site.
QUERIES: Q1 pinned install · Q2 install inventory · Q3 IMDS from pip · Q4 webhook.site DNS
Q5 UUID in proxy URLs · Q6 User-Agents · Q7 hash sweep · native inventory (s7)
DO FIRST: 1) Grep lockfiles, images, caches for 1.26.1/1.26.2; run Q1, Q2
2) Search proxy logs for the webhook UUID and both User-Agents (Q5, Q6)
3) Rotate every secret and identity reachable from any hit; pin 1.26.0
FINDINGS: ____________________________________________________________
GAPS: .pth write, credential-file reads, env sweep and OIDC theft produce no endpoint
event (outside endpoint telemetry); hosted CI runners unmonitored; root cause unconfirmed
ACTIONS: Rebuild clean · rotate secrets · deny webhook.site from runner ranges ·
hash-locked requirements · dependency cooldown · least-privilege OIDC
OWNER: ____________________ VERSION: v0.1 (2026-11-18)
Changelog
References
| Tier | Source | Used for | Accessed |
|---|---|---|---|
| 1 | Socket: Microsoft agent-framework PyPI package compromised with credential stealer | Per-version file chain, selector lists, credential globs, token audiences, hashes, User-Agents, base64 destination | 2026-11-18 |
| 1 | Wiz: Malicious version of Microsoft agent-framework published to PyPI | Timeline, root-cause evidence, IOC table, SHA-1, webhook.site free-tier limits, remediation | 2026-11-18 |
| 1 | Aikido: Two malicious agent-framework releases hit PyPI in 33 minutes | Wheel diff, code excerpts, IMDS fallback, per-version hashes, remediation | 2026-11-18 |
| 2 | SecurityWeek: Microsoft Agent Framework releases poisoned with credential stealer | Press context, Microsoft acknowledgement, unconfirmed maintainer-account claim | 2026-11-18 |
Generated 2026-11-18 · HuntPack · Defensive detection & hardening content only. No victim organizations named.