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

Gitea 1.22 detected as virus by windows defender #30488

Closed
yp05327 opened this issue Apr 15, 2024 · 7 comments
Closed

Gitea 1.22 detected as virus by windows defender #30488

yp05327 opened this issue Apr 15, 2024 · 7 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@yp05327
Copy link
Contributor

yp05327 commented Apr 15, 2024

image
When download gitea 1.22 from dl.gitea.com, I got a warning from windows defender.
1.21.10 is fine.

@yp05327
Copy link
Contributor Author

yp05327 commented Apr 15, 2024

gitea-1.22.0-rc0-windows-4.0-amd64.exe is also ok

the detected virus is Trojan:Win32/Wacatac.B!ml

@yp05327 yp05327 changed the title Gitea 1.22 detected as virus by windows defender? Gitea 1.22 detected as virus by windows defender Apr 15, 2024
@42wim
Copy link
Member

42wim commented Apr 15, 2024

That's an issue with defender, they seem to be labeling almost every Go program with Trojan:Win32/Wacatac.B!ml
See also https://go.dev/doc/faq#virus

For fun, try compiling a go windows binary that just prints "hello world" and upload it to virustotal.com :)
(https://www.virustotal.com/gui/file/0f7a665f7bb31e36fe33daa4608799f916a365dee74df18f1d5c75615083315b?nocache=1)

@lunny lunny added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Apr 15, 2024
@silverwind
Copy link
Member

Maybe it needs some kind of signature in the binary. How to other go programs avoid this?

@silverwind
Copy link
Member

silverwind commented Apr 15, 2024

golang/vscode-go#3182 looks related, but likely their fix does not apply to gitea.

@42wim
Copy link
Member

42wim commented Apr 15, 2024

Afaik there is no general way for the "little man", thats the sad state of antivirus at the moment. We're having the same issue with in-house software, even with certificate signing.

You can upload it to the different antivirus vendors and have them check it and whitelist it.
https://www.microsoft.com/en-us/wdsi/filesubmission

More complaints to be found here: kachick/dotfiles#442

@silverwind
Copy link
Member

silverwind commented Apr 15, 2024

Likely it just searches for some static strings in the binary which then causes the false-positive, so maybe it's possible to eliminate/obfuscate these parts of the binary. If those parts happen to be inside golang runtime parts, the issue should be reported to the golang/go repo.

https://mrd0x.com/bypass-static-detection-windows-defender/

@yp05327
Copy link
Contributor Author

yp05327 commented Apr 15, 2024

I can't reproduce this on my personal PC. But my PC is Windows 11.
My office's PC is Windows 10, and may have some special settings from the company (not sure).

@yp05327 yp05327 closed this as completed Apr 16, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

4 participants