# MAL-2026-17861: Malicious code in sysdiagd (PyPI)


- **Type:** Malicious package
- **Package:** `sysdiagd` (PyPI)
- **Published:** 13 Oct 2026

## What is MAL-2026-17861?

MAL-2026-17861 is a malicious package in sysdiagd, published on 13 Oct 2026. 

### Official description

Package sysdiagd version 1.2.2 on PyPI was examined across 15 files. No a static rule matches were produced and no concrete behavioral findings are available from the traced code review. The package name suggests a system diagnostics daemon, but no specific file, function, network destination, credential read, or install-time execution path has been corroborated with evidence in this record. Without a named installer-side data read tied to a specific destination, a named install-time or import-time execution path, or any other concrete fingerprint, the behavior of this version cannot be characterized as benign or malicious from the available signals alone.

Disguised as a system monitoring tool, the package delivers a Discord bot acting as an infostealer exfiltrating credentials, browser data, files and recording audio, screenshots and video. The code requires providing bot credentials, it is not functional without providing them.

---

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

Campaign: 2026-10-sysdiagd

Reasons (based on the campaign):

 - rat

 - exfiltration-browser-data

 - persistence

 - exfiltration-credentials

 - files-exfiltration

 - spyware-like

 - infostealer

## What should I do about MAL-2026-17861?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-17861 is a malicious package: sysdiagd (PyPI). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-17861/ (Markdown: https://insights.sbomify.com/MAL-2026-17861/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-17861

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-17861/
Summaries are generated and may contain mistakes; the official description above is the record.
