Author Topic: Virus detected when I delete .exe files  (Read 1032 times)

0 Members and 1 Guest are viewing this topic.

Offline micronoise

  • Newbie
  • Posts: 6
Virus detected when I delete .exe files
« on: March 30, 2022, 04:18:40 pm »
Hello. I'm new to this forum, so bear with me.
After I upgraded from QB64 1.4 to the newest version, i find that when I delete .exe files made with QB64 my antivirus (Avast!) pops up and tells me that a virus has been detected and put in quarantine. The name of the "virus" detected, located in Recycle bin,  is totally different from the one I just deleted. My QB64 folder is set to not be scanned by my antivirus program, this only happens when I delete the files, if I scan the .exe files no viruses are detected. Anybody have any input on this?

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
Re: Virus detected when I delete .exe files
« Reply #1 on: March 30, 2022, 04:38:31 pm »
Welcome @micronoise that is weird!

Why would you get a warning from the Recycle bin?

Are you deleting file from Window Explorer to Recycle Bin or clearing Recycle of deleted files?

Offline micronoise

  • Newbie
  • Posts: 6
Re: Virus detected when I delete .exe files
« Reply #2 on: March 30, 2022, 05:26:03 pm »
I'm deleting from Explorer.

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
Re: Virus detected when I delete .exe files
« Reply #3 on: March 30, 2022, 07:52:32 pm »
1.) You excluded your QB64 folder from virus scanning
2.) Guess your Recycle Bin is NOT excluded

So what do you think is happening here:
As soon as your deleted exe is moved to Recycle Bin it becomes "visible" for the virus scanner. It also explains why the names are different, as windows maintains the files in the Recycle Bin with internal names (probably symbolic links).

3.) Does the same happen, if you hard delete (bypassing Recycle Bin) using SHIFT-DELETE ??
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
Re: Virus detected when I delete .exe files
« Reply #4 on: March 30, 2022, 09:07:58 pm »
Ha, didn't know you could hard delete, shift + delete cool!

I was going to suggest using a QB64 program to delete the exe's with Kill, those don't go to recycle.

Offline micronoise

  • Newbie
  • Posts: 6
Re: Virus detected when I delete .exe files
« Reply #5 on: March 30, 2022, 09:57:03 pm »
1.) You excluded your QB64 folder from virus scanning
2.) Guess your Recycle Bin is NOT excluded

So what do you think is happening here:
As soon as your deleted exe is moved to Recycle Bin it becomes "visible" for the virus scanner. It also explains why the names are different, as windows maintains the files in the Recycle Bin with internal names (probably symbolic links).

3.) Does the same happen, if you hard delete (bypassing Recycle Bin) using SHIFT-DELETE ??

Ah, thank you! Good solution, I didn't know about SHIFT+DELETE. That did the trick!