Skip to content

Antivirus detects uv installer as malicious on Windows #10079

Closed as not planned
Closed as not planned

Description

@ShaiAvr

I wanted to give a try to uv to see if I like it as a project and dependencies manager. I tried installing it on my Windows 11 PC using the command: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
However, I get an error stating that this script contains malicious content and has been blocked by my antivirus software:

Image
My antivirus (BitDefender) indeed believes this script is malicious:

Image
Why does this happen? How can I fix this and install uv on my Windows system?

Activity

  1. FishAlchemist commented on Dec 21, 2024

    @FishAlchemist
    Contributor

    I remember that the UV team actually couldn't do much about it, so you could try downloading the UV using other tools.

    e.g. from PyPi
    https://docs.astral.sh/uv/getting-started/installation/#pypi

  2. ShaiAvr commented on Dec 21, 2024

    @ShaiAvr
    Author

    Weird. Other tools like pdm and rustup also have installer scripts and I never had problems with them.

  3. FishAlchemist commented on Dec 21, 2024

    @FishAlchemist
    Contributor

    @ShaiAvr Perhaps the downloaded content triggered the virus detection? Since you're using a Windows 11 PC x86-64, this should be the correct link. Could you please scan this file?
    https://github.com/astral-sh/uv/releases/download/0.5.11/uv-x86_64-pc-windows-msvc.zip

    Edit:
    Since PDM installer is essentially a Python script, it's not typically flagged by virus scanners.
    As for Rustup, given its widespread use, I assume many antivirus programs have already scanned and added it to their virus databases.

  4. zanieb commented on Dec 21, 2024

    @zanieb
    Member

    Nothing we can do here but it submit it as valid software to the antivirus

  5. Stokestack commented on Dec 11, 2025

    @Stokestack

    For what it's worth, I just got the same thing:

    Image
  6. Rykarix commented on Jan 27, 2026

    @Rykarix

    I wouldn't be surprised if it's related to how uvx is the tool of choice for mcp servers which commonly demonstrate that you can run python code from anywhere by simply doing uvx --from git+....

    since ai + mcp server prolification I'm not surprised...

    It's caused by Smart App Control which is part of windows (you can search for this by simply pressing the winkey and typing "Smart App Control". If you turn it off uv and others no longer get blocked but I don't recommend this for obvious reasons. Unfortunately windows doesn't appear to provide an obvious way to control this. Perhaps another user can offer a more sensible suggestion

  7. ojob commented on Sep 9, 2026

    @ojob

    My two cents, just for illustration to others: ESET also tagged uv as a "malicious, high-reputation-threat executable" in one of my CI pipelines, due to manipulation of hidden files, using root:root:

    Image Image

    These hidden files are surely those from the Python virtual environments, aka. .venv, and root is used since it’s running in a container; said otherwise, uv does what it’s made for in an already contained environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions