Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
MAL-2026-20101No CVE assignedReported malicious package

Malicious code in agent-framework (PyPI)

Products / packages agent-framework

Published

Share

Severity and exploitation

KEV unavailable / staleNo CVSS score

KEV coverage does not rule out exploitation.

KEV checked 28/11/2026, 23:20:32 UTC

Severity

unknown

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

KEV status unavailable or stale

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Fix status not established

No structured fix or guidance is available here. Check the latest publisher advisory.

What this means

Malicious releases of the legitimate "agent-framework" package (Microsoft Agent Framework). Versions 1.26.1 and 1.26.2 add a credential stealer that is not present in the last clean release, 1.26.0. Both releases were published on 2026-11-17 (1.26.1 at 20:35 UTC as a wheel only, 1.26.2 at 21:08 UTC) and have since been removed from PyPI.

Source excerpt · OSV

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

Packages

Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.

Read the explicit versions or original source for affected-version evidence.

Version evidence: OSV · MAL-2026-20101

View original version evidence (2 explicit versions)

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher description

Malicious releases of the legitimate "agent-framework" package (Microsoft Agent Framework). Versions 1.26.1 and 1.26.2 add a credential stealer that is not present in the last clean release, 1.26.0. Both releases were published on 2026-11-17 (1.26.1 at 20:35 UTC as a wheel only, 1.26.2 at 21:08 UTC) and have since been removed from PyPI.

How it triggers: each wheel adds an executable .pth startup hook that imports a helper module. Python runs .pth files at every interpreter start, so the code executes as soon as the package is installed, without importing agent_framework. In 1.26.1 the files are agent_framework_meta.pth and agent_framework_meta/_telemetry.py, started from a hook added to agent_framework_meta/init.py. In 1.26.2 they are renamed to af_runtime_diag.pth and af_runtime_diag.py; agent_framework_meta/init.py is identical to the clean 1.26.0 and the module calls its own _start() on import, so the .pth is the only trigger. The helper detaches into a background process (os.fork, os.setsid), is guarded by the environment marker _AF_TEL, and silences all errors. The rest of the wheel matches 1.26.0 and the dependency is unchanged (agent-framework-core[all]==1.26.0).

What it does (info stealer): it collects hostname, user, working directory and arguments; environment variables whose names contain TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, HF_, OPENAI, NPM, PIP or CI_; the environment of other processes (/proc/*/environ); credential files (~/.azure, .npmrc, .netrc, .git-credentials, .docker/config.json, Hugging Face token, Azure DevOps agent .credentials, .env files); Azure DevOps OIDC tokens (SYSTEM_ACCESSTOKEN, SYSTEM_OIDCREQUESTURI); and Azure managed-identity tokens from the instance metadata service (169.254.169.254, IDENTITY_ENDPOINT). 1.26.2 adds theft of GitHub Actions OIDC tokens (ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN, ACTIONS_RUNTIME_TOKEN), adds the /home/runner paths, and raises the limit on captured files from 60 to 80.

Exfiltration: the data is compressed with zlib, base64-encoded and sent by HTTP POST to https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb. The URL is stored base64-encoded (_ENC) and is identical in both releases. The User-Agent is af-runtime-diagnostics/1 in 1.26.1 and runtime-diagnostics/1 in 1.26.2.

Wheel sha256: 1.26.1 d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110; 1.26.2 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9.

Anyone who installed 1.26.1 or 1.26.2 should treat the environment as exposed and rotate the credentials reachable from it, including CI and GitHub Actions secrets. 1.26.0 and earlier are not affected. We have not attributed this to a known campaign.


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (72f7549a69d5529aca2fb787d2fbb62f94e73afd9ca1a832608687e1d185e594)

The wheel ships agent_framework_meta.pth containing import agent_framework_meta, which runs on every Python interpreter start (not just on import agent_framework). The imported module spawns a background thread that harvests installer-side secrets and POSTs a base64+zlib-compressed payload to https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb, whose URL is concealed as a base64 literal (_ENC) decoded at runtime. Collection includes: environment variables matching TOKEN/SECRET/PASSWORD/KEY/AZURE/AWS/GITHUB/OPENAI patterns; credential files ~/.azure, ~/.npmrc, ~/.netrc, ~/.git-credentials, ~/.docker/config.json, Hugging Face tokens; /proc/[0-9]*/environ scraping of other processes; Azure IMDS (169.254.169.254) and App Service IDENTITY_ENDPOINT managed-identity token requests across multiple resource audiences (management.azure.com, vault.azure.net, graph.microsoft.com, storage, etc.); and an ADO OIDC token-exchange POST using SYSTEM_ACCESSTOKEN against SYSTEM_OIDCREQUESTURI. Package metadata impersonates Microsoft and mimics the real microsoft/agent-framework README as cover. The name resembles the legitimate Microsoft package.

Source: kam193 (7170b55e6541c89d914a388534b7ccaeb303abb46def27bda667f5ad2051ed5d)

Versions 1.26.1, 1.26.2 were compromised.

Compromised versions use PTH file to trigger malicious actions on every Python process startup. It then exfiltrates environment variables, credential files and tokens from cloud metadata endpoints.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-11-compr-agent-framework

Reasons (based on the campaign):

  • exfiltration-env-variables

  • obfuscation

  • exfiltration-cloud-tokens

  • exfiltration-credentials

  • compromised-package

  • abuses-pth

References

5 sources

Inside the record

Evidence available

Package identity
Version evidence · not supplied
Remediation guidance · not supplied
Weakness classification · not supplied
Additional publishers · not supplied

Describes the evidence in this view, not whether the product is safe.

Original records

No official CVE record has been imported. Use the source links below for the original advisory.

cve.new JSON →

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Source updated

    Latest modification date supplied by the source.

  3. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
  1. OSV · MAL-2026-20101

    Observed 2026-11-23T10:05:45.982Z · upstream updated 2026-11-23T10:00:05.279Z

    References changed

    before

    [
      "https://pypi.org/project/agent-framework/1.26.2/",
      "https://pypi.org/project/agent-framework/1.26.1/",
      "https://opensourcemalware.com/blog/agent-framework-pypi-compromised",
      "https://bad-packages.kam193.eu/pypi/campaign/2026-11-compr-agent-framework"
    ]

    after

    [
      "https://pypi.org/project/agent-framework/1.26.2/",
      "https://pypi.org/project/agent-framework/1.26.1/",
      "https://opensourcemalware.com/blog/agent-framework-pypi-compromised",
      "https://bad-packages.kam193.eu/pypi/campaign/2026-11-compr-agent-framework",
      "https://www.ox.security/blog/breaking-hijacked-releases-of-microsofts-official-agent-framework-steals-azure-and-ci-credentials/"
    ]

Large field values are marked as truncated previews. Original source snapshots remain retained.

Showing up to 50 most recent observed changes.

Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.

unknown
PYSEC-2026-4388No CVE assigned

agent-framework 1.26.1 and 1.26.2 contain credential-stealing code

agent-framework versions 1.26.1 and 1.26.2 were uploaded to PyPI on 2026-11-17 without authorization, as wheel-only releases repackaged from the legitimate 1.26.0 wheel. Both added a .pth file, which runs the payload on every Python interpreter start in the environment where the package is installed, without needing an import. The payload forks a background process that collects:

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

Exploitation not established