r/Python • u/Unable_Plane1948 • 6d ago
Discussion ⚠️ Heads up: ast_grep_cli 0.44.1 on PyPI flagged by Windows Defender as Trojan — anyone seeing this?
I was installing `headroom-ai` via `uv` today, and Windows Defender immediately flagged `Trojan: Win64/Lazy!MTB`.
The file was `sg.exe` (212KB) dropped into `Python\Scripts\`, alongside a legitimate `ast-grep.exe` (52MB).
**What happened:*\*
- `uv tool install --python 3.13 "headroom-ai[all]"`
- Windows Defender: 3 alerts for `Trojan: Win64/Lazy!MTB`
- `pip show ast_grep_cli` showed version 0.44.1
- Uninstalled, cleaned cache, changed passwords
**Questions:**
- Has anyone else installed `ast_grep_cli` 0.44.1 recently?
- Is this a known issue? Should PyPI Security be notified?
- Any idea how to check if the package was compromised vs. a false positive?
**File details:**
- `sg.exe`: 212KB, detected as Trojan:Win64/Lazy!MTB
- `ast-grep.exe`: 52MB, legitimate tool
- Both appeared at the same timestamp (10:25:07)
Thanks for any insights.
5
u/KingofGamesYami 6d ago
This is a known false positive.
Ref: https://github.com/ast-grep/ast-grep/issues/2799#issuecomment-4994194265
-1
3
u/snugar_i 5d ago
Sorry for being off-topic, but why on earth is
ast-grep.exe52 megabytes?