False Positive Gen:Variant.Tedy When running Java build tools program from CLI

the command is as follow:

C:\Program Files\BellSoft\LibericaNIK-23-OpenJDK-21\bin\native-image.cmd @target\tmp\native-image-13450498874924067046.args

the command will create a temp folder under Appdata/local/ then proceed to create a few .exe files to run and will be removed when complete but Bitdefender Antivirus seems to mark these files as virus.

the message:

The file C:\Users\MyUserName\AppData\Local\Temp\SVM-17235292226367487544\JNIHeaderDirectives.exe is infected with Gen:Variant.Tedy.627232. The threat has been successfully blocked, your device is safe.

how to I prevent it without having to disable Bitdefender? since the file is dynamically generated from command line in different folder.

Comments