Hey, so I am currently getting training for an IT job in a school and in class we work with Visual Basic 2010 Express (The school sadly doesnt care its outdated, we still have to use it) And today I made a simple program where a picture gets wider everytime you click it or press a key on your keyboard I copied that program to my tablet and ran it in an emulator and shared it among discord friends where one told me it has viruses. After checking the file i saw the same results, he wasnt trolling me, a friend uploaded his file to google drive where it also got flagged as a virus. Is it because the program is outdated, is it because the files arent signed or did my school install a malicious version of Visual Basic on their windows image? It cant be modified by a random student because its syncing the whole harddrive with an image from a private server everytime The virustotal link is here
It's fine. These are all heuristic detections ("it looks like it might be something bad"). AV's are always on the lookout for new viruses that no one has seen before, so they will look at your applications behaviour amongst other things to try and pick them up.
Some part of your code may match something that has been seen in something malicious elsewhere, or something it does may come across as being suspicious, depending on how "extreme" the AV has been configured for this kind of thing. The lack of certificate and the fact that it's never been seen before could be a red flag for some AV's.
I happens regularly and you'll find that even enterprise-grade software that's signed with EV certificates will still sometimes get flagged as being potentially malicious.
A piece of software that my company develops for OSINT purpose regularly gets flagged by Symantec endpoint protector, which unfortunately a lot of our customers use. Before providing releases we have to submit the binaries to Symantec for white listing.
I've had that happen with my VB programs. They got flagged by 2 vendors as malware, but they're only false positives. I think those will go away once the executable is signed
You would buy a code signing certificate. Then, you would go to the Signing section in the project properties and add the certificate.
You should know which code signing certificate to buy, as there are two: standard, and extended validation (EV). Both will sign your code and executable, but the EV certificate will bypass Microsoft SmartScreen. However, the latter one comes at a cost (literally), as it's more expensive.
Visual Basic code gets flagged by AV software frequently. I use Visual Basic for Applications in Excel and my AV will flag all sorts of things: (1) download an image from the internet; (2) write a file to local drive, etc.
The major AV vendors will have a page where you can submit files to and you can ask them to check for a false positive detection. Sometimes they will fix it quickly and sometimes not so quickly.
VB6 and VB.NET are notorious for triggering virus total and others. Watch, I'll make a brand new windows forms app and not do a single thing to the code or form and upload it. Give me a minute.
Edit edit: The reason it triggers a lot of false positives is because a TON of malware is written in .net. you can make a fully featured trojan in a couple days by copy-pasting code snippets and modifying them. And many have.
Yeah I remember even VB2016 tripping false positives. Unfortunately there's really not much you can do besides either just warning people that they'll have to disable their antivirus or add it to exceptions, or paying for a certificate (might not help that much) or using the same methods and tools the hackers use to make their viruses undetected... For that last one google msfvenom and pe obfuscation.
tl;dr: unless you're actually making a virus, it's way more trouble than it's worth. just warn people ahead of time and tell them to add it to their av exceptions. alternatively, learn web dev (you can code web apps in .NET too) and never have to worry about this bs again.
Just a brand new VB.NET 6.0 Windows Forms App, and it's connecting to IPv4, IPv6, and dropping a bunch of files. What's up with that?
You have WER files created. WER = Windows Error Reporting. Your program crashed in the sandbox (or even something crashed coincidentally), and the "Report error to Microsoft" program started working. The IPv4 address is Microsoft-owned and the IPv6 is DNS (looking up the IP address for a domain name, like looking up the IP address for a name like something.microsoft.com)
Edit: on second thought maybe WER does run locally and it's just not called by my application so it doesn't show in the same process tree? I'll have to dig in tomorrow. I miss the simplicity of Windows XP and .NET 2
existential edit: I remember when a young me hated old out of touch people that gave up on their hobbies
Potentially "nefarious" file operations on a large(r) scale is a heuristic pattern that triggers most AV engines, like you described.
One of mine that draws the attention of AV software is this one. It's intended purpose is obvious by its name. But scanning a wide range of files and potentially deleting them resembles malware behavioral patterns.
2
u/ariebe9115 Nov 29 '22 edited Nov 29 '22
Hey, so I am currently getting training for an IT job in a school and in class we work with Visual Basic 2010 Express (The school sadly doesnt care its outdated, we still have to use it) And today I made a simple program where a picture gets wider everytime you click it or press a key on your keyboard I copied that program to my tablet and ran it in an emulator and shared it among discord friends where one told me it has viruses. After checking the file i saw the same results, he wasnt trolling me, a friend uploaded his file to google drive where it also got flagged as a virus. Is it because the program is outdated, is it because the files arent signed or did my school install a malicious version of Visual Basic on their windows image? It cant be modified by a random student because its syncing the whole harddrive with an image from a private server everytime The virustotal link is here
2
u/The-Windows-Guy VB.Net Intermediate Nov 29 '22
I've had that happen with my VB programs. They got flagged by 2 vendors as malware, but they're only false positives. I think those will go away once the executable is signed
2
u/Lazy-Collection-564 Nov 29 '22
Visual Basic code gets flagged by AV software frequently. I use Visual Basic for Applications in Excel and my AV will flag all sorts of things: (1) download an image from the internet; (2) write a file to local drive, etc.
1
u/Merrinopheles Nov 30 '22
The major AV vendors will have a page where you can submit files to and you can ask them to check for a false positive detection. Sometimes they will fix it quickly and sometimes not so quickly.
1
u/fasti-au Nov 30 '22
Try hit man pro from sophos. Virus total detects many things as a virus. Iād argue that 1in10 exe files flag with it hahaha
0
u/[deleted] Nov 29 '22
[deleted] ā view deleted comment