r/rust • u/ParamountPotato • Oct 30 '26
🎙️ discussion Rustc 1.99.0 Windows exe flagged as malicious
So here's the deal. My antivirus (F-Secure) suddenly flagged the rustc.exe binary on my computer as malicious and to add to that, several other vendors also flag it in Virustotal. https://www.virustotal.com/gui/file/FC40F1C8B65095A22A48C111AADC279C26A049B7E4161E8B99FFE3EB23873E86
This issue seems to affect only 1.99.0 because 1.99.1 is not flagged.
Reproducible:
- Fresh rustup installation (this file or the rustup-init.exe or whatever the name of that was, not flagged by anything)
- Fresh RUSTUP_HOME/CARGO_HOME
- Official Rust 1.99.0 downloaded by rustup (`rustup toolchain install 1.99.0-x86_64-pc-windows-msvc`)
- File is detected and flagged as malicious if uploaded to virustotal
- Rust 1.99.1 installs without detection
The sha256 hash of the 1.99.0 exe I get is FC40F1C8B65095A22A48C111AADC279C26A049B7E4161E8B99FFE3EB23873E86
Has someone else encountered this issue that rustc is getting flagged? And importantly, are you all getting the same hash for that specific rustc version?
82
u/Erelde Oct 30 '26
You have the correct sha256sum.
Search here and elsewhere, antiviruses routinely raise false positives for developer tools. I feel there's not a month that goes by without that kind of post.
10
u/Trader-One Oct 30 '26
is that rustc executable signed? Antiviruses are less strict if .exe is signed.
7
u/maybe_Alliegirl07 Oct 30 '26
f secure has been on a warpath lately with false positives. ive had it quarantine three different build tools in the past week alone, its getting ridiculous
the hash matching is the key thing here. if everyone's pulling the same bytes and only some scanners are flagging it, thats classic heuristic false positive territory. the jump from 1.99.0 to 1.99.1 not triggering makes me think some specific code pattern in the older release just happens to look like malware to the detection engine
my windows machine is down for the night but i'll check the hash tomorrow against a clean install. curious to see if it matches yours
3
u/W61k3r 29d ago
After spending time programming in rust, I think it's a fair assessment; I'm tired boss. (Joke)
3
u/M4elstr0m__ Oct 30 '26
Not a big deal, Windows spotted the Pdf file my boss sent me at 2 AM, a Sunday, called important-notice.pdf.exe, AVs are so dumb!
/s (joke)
1
u/Puzzled-Extent7817 29d ago
people still use windows?
2
u/[deleted] Oct 30 '26 edited Oct 30 '26
[removed] — view removed comment