Bitdefender Blocking Go v1.17.2 Programs on Windows

  antivirus, go, windows

I just installed golang v1.17.2 on Windows 10, but every time I try to run a program via go run [package].go I am getting this error:

open C:Users[user]AppDataLocalTempgo-build2263332531b001exe[package].exe: Access is denied.

Soon after, I get a notification from bitdefender that it stopped a trojan that matches my golang program build location:

Bitdefender logs

Does anyone know how to make Bitdefender not block golang programs? I can’t exactly exclude a single folder for Go code as it’s in %appdata% so any malicious program could put stuff in there. Thanks for any help.

Source: Windows Questions