CTIPilot
AI-generated · no human review · verify critical claims against the linked source. how it works →

Microsoft Agent Framework

product · product:microsoft-agent-framework

Coverage
1
first 2026-11-18 → last 2026-11-18
Latest activity
2026-11-18
Microsoft's agent-framework on PyPI carried a Python-startup credential stealer in 1.26.1 and 1.26.2; pin…
Peak priority
notable
1 notable
Targets
technology
sectors: technology
Sources cited
2
2 hosts

Action items (1)

Do-now tasks recorded on the entries about Microsoft Agent Framework, newest first. Check the date before acting on an older one.

  • Search lockfiles, requirements files and CI install logs for agent-framework 1.26.1 or 1.26.2 installed since 2026-11-17 20:35 UTC, and on every host or job that ran Python after installing either, treat the environment variables, local credential files, Azure managed-identity and Azure DevOps tokens and, for 1.26.2, GitHub Actions OIDC tokens as stolen and rotate them, then pin agent-framework to 1.26.0 or earlier.
    2026-11-18Microsoft's agent-framework on PyPI carried a…

Defender insights

What each entry about Microsoft Agent Framework tells a defender to do, newest first.

2026-11-18NOTABLEMicrosoft's agent-framework on PyPI carried a Python-startup credential stealer in 1.26.1 and 1.26.2; pin 1.26.0

Exposure · detection

Story timeline

  1. 2026-11-18Microsoft's agent-framework package on PyPI, versions 1.26.1 and 1.26.2 published on 2026-11-17, carried a credential stealer that a .pth startup hook runs every time Python starts, collecting environment secrets and requesting Azure managed-identity, Azure DevOps and GitHub Actions OIDC tokens; both versions were removed and 1.26.0 is the last clean release
    active-threatsMicrosoft's agent-framework on PyPI carried a Python-startup credential stealer in 1.26.1 and 1.26.2; pin 1.26.0

Hunting pivots

Releases covered
Microsoft Agent Framework
ATT&CK techniques (7 across 6 tactics)

7 techniques observed across 1 entry about this entity, derived from entry metadata and body evidence, never asserted without a published entry behind it · pinned to MITRE ATT&CK v20.1 · compare on the matrix · Navigator layer (JSON)

  • Initial AccessSupply Chain Compromise: Compromise Software Supply Chain
  • ExecutionCommand and Scripting Interpreter: Python
  • PersistenceEvent Triggered Execution: Python Startup Hooks
  • Privilege EscalationEvent Triggered Execution: Python Startup Hooks
  • Credential AccessSteal Application Access Token · Unsecured Credentials: Credentials In Files · Unsecured Credentials: Cloud Instance Metadata API
  • ExfiltrationExfiltration Over Web Service

Initial Access TA0001

T1195.002Supply Chain Compromise: Compromise Software Supply Chain×1

Adversaries may manipulate application software prior to receipt by a final consumer for the purpose of data or system compromise. Supply chain compromise of software can take place in a number of ways, including manipulation of the application source code, manipulation of the update/distribution mechanism for that software, or replacing compiled releases with a modified version.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

Execution TA0002

T1059.006Command and Scripting Interpreter: Python×1

Adversaries may abuse Python commands and scripts for execution. Python is a very popular scripting/programming language, with capabilities to perform many functions. Python can be executed interactively from the command-line (via the <code>python.exe</code> interpreter) or via scripts (.py) that can be written and distributed to different systems. Python code can also be compiled into binary executables.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

Persistence TA0003

T1546.018Event Triggered Execution: Python Startup Hooks×1

Adversaries may achieve persistence by leveraging Python’s startup mechanisms, including path configuration (`.pth`) files and the `sitecustomize.py` or `usercustomize.py` modules. These files are automatically processed during the initialization of the Python interpreter, allowing for the execution of arbitrary code whenever Python is invoked.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

Privilege Escalation TA0004

T1546.018Event Triggered Execution: Python Startup Hooks×1

Adversaries may achieve persistence by leveraging Python’s startup mechanisms, including path configuration (`.pth`) files and the `sitecustomize.py` or `usercustomize.py` modules. These files are automatically processed during the initialization of the Python interpreter, allowing for the execution of arbitrary code whenever Python is invoked.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

Credential Access TA0006

T1528Steal Application Access Token×1

Adversaries can steal application access tokens as a means of acquiring credentials to access remote systems and resources.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

T1552.001Unsecured Credentials: Credentials In Files×1

Adversaries may search local file systems and remote file shares for files containing insecurely stored credentials. These can be files created by users to store their own credentials, shared credential stores for a group of individuals, configuration files containing passwords for a system or service, or source code/binary files containing embedded passwords.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

T1552.005Unsecured Credentials: Cloud Instance Metadata API×1

Adversaries may attempt to access the Cloud Instance Metadata API to collect credentials and other sensitive data.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

Exfiltration TA0010

T1567Exfiltration Over Web Service×1

Adversaries may use an existing, legitimate external Web service to exfiltrate data rather than their primary command and control channel. Popular Web services acting as an exfiltration mechanism may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to compromise. Firewall rules may also already exist to permit traffic to these services.

Evidence: 2026-11-18/microsoft-agent-framework-pypi-credential-stealer-pth-hook · ATT&CK page ↗

Entries about Microsoft Agent Framework (1)

2026-11-18 · view entry permalink →

NOTABLENATOB1

Microsoft's agent-framework package on PyPI, versions 1.26.1 and 1.26.2 published on 2026-11-17, carried a credential stealer that a .pth startup hook runs every time Python starts, collecting environment secrets and requesting Azure managed-identity, Azure DevOps and GitHub Actions OIDC tokens; both versions were removed and 1.26.0 is the last clean release

Socket reports that the Microsoft agent-framework PyPI package was compromised on 2026-11-17, in versions 1.26.1 and 1.26.2, both of which install Python startup hooks that collect credentials, environment data and cloud identity tokens and send them to a web endpoint (Socket, 2026-11-17). SafeDep, which flagged both releases independently, says the project is Microsoft's official metapackage, published under the microsoft account on PyPI, that 1.26.1 appeared at 20:35 UTC and 1.26.2 at 21:08 UTC, that each is a single wheel where earlier releases shipped a wheel and a source archive, and that both were removed from PyPI and 1.26.0 is the last clean release (SafeDep, 2026-11-18). The attacker published 1.26.2 after 1.26.1 was gone, so removing one version did not stop it, and how it obtained publishing access is not known (SafeDep, 2026-11-18).

Nothing has to import the package: a .pth file runs on Python startup, imports a module and launches collection in a background process or thread, so a pip install in a CI job is enough (Socket, 2026-11-17; SafeDep, 2026-11-18). 1.26.1 routes through the package's own initializer, while 1.26.2 moves the payload to a new top-level module and restores the legitimate initializer byte for byte, so checking only the initializer misses it (Socket, 2026-11-17). The code matches environment variables by substring, such as TOKEN, SECRET, KEY and AZURE, reads other processes' environments and credential files for pip, npm, netrc, git, Docker, Hugging Face and Foundry, and actively requests fresh Azure managed-identity and Azure DevOps tokens, with GitHub Actions OIDC tokens added in 1.26.2; it compresses the result and posts it to a web endpoint and downloads no further code (Socket, 2026-11-17). There is no persistent on-disk marker, so fresh process trees can trigger collection again (Socket, 2026-11-17).

On Python startup, the .pth file imports a module that launches collection in a background process/thread.

Socket Research Team 2026-11-17

The last clean release is 1.26.0.

How the attacker got publishing access is not known yet.

SafeDep 2026-11-18
incident18 Nov 05:11Zmulti-sourceOpen finding →

Co-occurring entities

Derived: referenced by the same focused operational entries (weekly summaries and report roundups don't count); ×N counts the shared entries.

Where this entity is cited

  • Threats1

Source distribution

  • safedep.io1 (50%)
  • socket.dev1 (50%)