Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala CLI v1.2.0 mistagged by Windows Defender as a Trojan in v1.2.0/scala-cli-x86_64-pc-win32.zip #2789

Open
philwalk opened this issue Mar 9, 2024 · 4 comments
Labels
anti-malware analysis Issues tied with anti-malware analysis of Scala CLI packages. installation Everything related to installing the CLI itself windows Windows-specific issues

Comments

@philwalk
Copy link
Contributor

philwalk commented Mar 9, 2024

Version(s)
v1.2.0 windows release

Describe the bug
Windows Defender reports that it's infected with a virus

To Reproduce
download this file:
releases/download/v1.2.0/scala-cli-x86_64-pc-win32.zip

After download, go to chrome downloads page, click show-in-folder, right-click on the zip file and then Scan with Microsoft Defender.

Defender prevented the unzip with the following information:

Threat blocked
Detected: Trojan:Script/Wacatac.B!ml
Status: Removed
A threat or app was removed from this device.
Date: 2024-03-09 10:46 AM
Details:
Affected items:
file: C:\Users\user\Downloads\scala-cli-x86_64-pc-win32.zip
[...]

Expected behaviour
Perhaps this is a false positive, hopefully it won't prevent Windows users from trying out scala-cli.

BTW, let me know if I should report this type of problem as other than as a bug ...

@philwalk philwalk added the bug Something isn't working label Mar 9, 2024
@Gedochao Gedochao added windows Windows-specific issues installation Everything related to installing the CLI itself labels Mar 11, 2024
@Gedochao
Copy link
Contributor

We always submit Windows native packages (.msi) for malware analysis when releasing a new Scala CLI version, as it often gets mistagged by Windows Defender otherwise.
For v1.2.0, the submission was done on 07.03.2024 (4 days ago, as of me writing this post).
It is very variable when it comes to Microsoft processing these submissions, sometimes it happens within 24 hours, sometimes it's still in progress after 2 weeks.
This time, after 4 days it's still in progress.
The file used for the submission is this one:

You're using the .zip, but that shouldn't matter once Microsoft approves this version as malware-free.

If you're curious about the process, it's described in our release steps here.

I will leave this issue open until the submission gets approved, in case anyone else looks for the answer in the meantime.

@Gedochao Gedochao changed the title Windows Defender reports a Trojan in v1.2.0/scala-cli-x86_64-pc-win32.zip Scala CLI v1.2.0 mistagged by Windows Defender as a Trojan in v1.2.0/scala-cli-x86_64-pc-win32.zip Mar 11, 2024
@Gedochao Gedochao added anti-malware analysis Issues tied with anti-malware analysis of Scala CLI packages. and removed bug Something isn't working labels Mar 11, 2024
@Gedochao
Copy link
Contributor

BTW, let me know if I should report this type of problem as other than as a bug ...

@philwalk I created a dedicated label for issues of this kind: anti-malware analysis Issues tied with anti-malware analysis of Scala CLI packages.

@Gedochao Gedochao added this to To do in Issue Board via automation Mar 11, 2024
@tgodzik tgodzik removed this from To do in Issue Board Mar 13, 2024
@boggye
Copy link

boggye commented Mar 15, 2024

I have the same issue... I cannot install it on a windows 2016 machine. And Defender won't let me run the msi program.

scala_cli

image

@Gedochao
Copy link
Contributor

Gedochao commented Mar 18, 2024

@boggye unfortunately, Microsoft still has not finished analysing our most recent release.
I have submitted it on 07.03.2024, so it's been processed for 11 days already at the time of writing this comment.

image

This is, unfortunately, the way it is with new releases on a Windows device. This should be fixed once Microsoft Security Intelligence finishes the scan and fixes the tagging for Scala CLI. Of course, when the next Scala CLI version comes out, we will wait for them to confirm Scala CLI indeed is not malware all over again.
I wish there was a way for us to expediate this process but it is what it is.

In the meantime, what I can suggest is:

  • use an earlier release which has already been scanned by Microsoft
    • I actually can't confirm if v1.1.3 has been approved my Microsoft already, but v1.1.2 definitely was; you can try either of them
  • use the JVM distribution via our fatJAR, temporarily (it may start slightly slower, but perhaps this solution would work for you)
    • you can use the fatJAR with Coursier:
cs launch org.virtuslab.scala-cli:cliBootstrapped:latest.release -M scala.cli.ScalaCli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anti-malware analysis Issues tied with anti-malware analysis of Scala CLI packages. installation Everything related to installing the CLI itself windows Windows-specific issues
Projects
None yet
Development

No branches or pull requests

3 participants