You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI v1.0 triggers windows defender for Worm:Win32/Yuner.A #1894
A couple of days ago I upgraded my CLI to v1.0 using winget winget install --id GitHub.cli -e.
For reference, here is the manifest it installed.
After digging around, I found that windows defender had quarantined gh.exe because it detected it containedYuner.A
OS: windows 10 2004 (19041.508)
Rules updates (for defender): 1.323.1687.0
As a workaround I added the CLI as an exclusion for the time being.
Steps to reproduce the behavior
install GH CLI on a similar OS configuration
reboot
gh.exe will be quarantined
Expected vs actual behavior
The CLI not to trigger the antivirus.
Logs
Using PowerShell 7 to call gh, I obtained the following error response.
ResourceUnavailable: Program 'gh.exe' failed to run: Operation did not complete successfully because the file contains a virus or potentially unwanted software.At line:1 char:1
Using cmd to call GitHub I obtained the following response.
Thanks for this report. We contacted Microsoft to figure out why Windows Defender is incorrectly identifying the gh as Worm:Win32/Yuner.A. Sorry for any confusion. We will report back ASAP!
Thank you for reporting! We've also had the experience with hub.exe (another GitHub API client written in Go) being erroneously flagged as malware as well
These are all false positives, but it looks like something about Go binaries triggers these malware detection heuristics, since these are entirely different codebases and the only thing in common with them is that they are cross-compiled with Go.
The Microsoft Windows Defender team have indicated that they have cleared the false detection. Windows Defender updates will usually come down automatically. However if you want to manualy update then the Microsoft team advised that you do the following to clear cached detection and obtain the latest malware definitions from them.
Open command prompt as administrator and change directory to c:\Program Files\Windows Defender
Run MpCmdRun.exe -removedefinitions -dynamicsignatures
I experienced a similar problem. In spite of having tried to the solution, gh.exe was automatically deleted again by Windows Defender. The problem doesn't seem to have been solved ...
As a side note, gh_1.0.0_windows_386.zip is regarded as a virus when downloaded on Microsoft Edge or inspected by the Defender. Here are the screenshots:
Activity
rnystrom commentedon Sep 22, 2020
Thanks for this report. We contacted Microsoft to figure out why Windows Defender is incorrectly identifying the
ghas Worm:Win32/Yuner.A. Sorry for any confusion. We will report back ASAP!craig-jennings commentedon Sep 22, 2020
When clicking on the download link on the Releases page, I get a similar result:
jessehouwing commentedon Sep 22, 2020
@martinwoodward
mislav commentedon Sep 22, 2020
Thank you for reporting! We've also had the experience with hub.exe (another GitHub API client written in Go) being erroneously flagged as malware as well
These are all false positives, but it looks like something about Go binaries triggers these malware detection heuristics, since these are entirely different codebases and the only thing in common with them is that they are cross-compiled with Go.
martinwoodward commentedon Sep 22, 2020
The Microsoft Windows Defender team have indicated that they have cleared the false detection. Windows Defender updates will usually come down automatically. However if you want to manualy update then the Microsoft team advised that you do the following to clear cached detection and obtain the latest malware definitions from them.
c:\Program Files\Windows DefenderMpCmdRun.exe -removedefinitions -dynamicsignaturesMpCmdRun.exe -SignatureUpdateAlternatively, the latest definition is available for download here: https://www.microsoft.com/en-us/wdsi/definitions
Thanks for letting us know about this one. Sorry for the inconvienience.
baywet commentedon Sep 22, 2020
thanks @martinwoodward this seems to do the trick for me.
@rnystrom do you want me to close the issue or leave it open for visibility?
mislav commentedon Sep 22, 2020
@baywet Let's please leave this open for visibility for a couple of days. 🙇
jessehouwing commentedon Sep 22, 2020
Does it make sense to close, but pin it? That should make it visible, but also highlight the problem has been solved.
Meiryo7743 commentedon Sep 24, 2020
I experienced a similar problem. In spite of having tried to the solution,
gh.exewas automatically deleted again by Windows Defender. The problem doesn't seem to have been solved ...As a side note,
gh_1.0.0_windows_386.zipis regarded as a virus when downloaded on Microsoft Edge or inspected by the Defender. Here are the screenshots:Expand
Version of the malware definitions
vilmibm commentedon Sep 30, 2020
Closing since no new reports have come in.
@Meiryo7743 are you still having problems?