Hi, I am writing small app for point extrection from laz file. I am using this crates:
anyhow = "1.0.100"
las = { version = "0.9.8", features = ["laz"] }
serde = { version = "1.0.228", features = ["derive"] }
thiserror = "2.0.17"
toml = "0.9.10"
Compiled my app and run for one laz file. It worked. Run it for multiple files and it was stoped by Windows Defender. Defender said my app is Trojan:Win32/Bearfoos.A!ml
and have been deleted.
I don't think any of this crates have viruses. My code also don't have a virus, because I wrote it my self. Anyone had this problem with Windows Defender?
A key insight from computer science is that the halting problem is undecidable. In other words, it is provably impossible to write a computer program that can decide (in finite time), for some other "input" program, whether that other program will ever stop (or run forever).
Given that it is provably impossible to write a computer program that can answer such a (seemingly) simple question, do you think it is possible to write a so-called "antivirus" program that can decide, for every given "input" program, whether that program is "harmful" or not?
Of course, it is not !!!
The only possible conclusion is that so-called "antivirus" programs are nothing but snake oil. They can call it "heuristics", or "machine learning", or "artificial intelligence", or whether buzzwords the marketing department comes up with today. Maybe they even add a "blockchain", because... market research says it sounds cool. But, in the end, it is really nothing but guesswork and speculation, with some fancy UI glued on top of it. Not only useless, but even dangerous, because it lulls the user into a false sense of security! That plus: History has shown, over and over again, that so-called "antivirus" programs will often create fatal security vulnerabilities in your system that wouldn't have existed without the so-called "antivirus" program.
To make a long story short: You shouldn't worry about what any so-called "antivirus" program has to say about your code. More often than not, it will be just utter nonsense...
Yes. This is why I don't install any antivirus. Only windows Defender is running, because it is already installed with windows.
Many ask me for best antivirus software. And I have say to them, here are no antivirus software to protec computer from spacer between monitor and chair. Because often this spacer will turn of antivirus to install cracked software (maybe even cracked antivirus) full of viruses.
imho similar to belts in cars - they might not help you survive head on bump to concrete wall at high speed, but...
Growing up in era when viruses went wild on DOS, through all windows generations etc., i've had experience with many "most-used" antiviruses, and settled with one that in my case never went rogue on CPU/mem use, or haven't had false positive even with Rust development.
Occasionally stumbling upon web-pages that tend to bundle various JS etc. "helpers", and seeing the notifications about blocked items, it's the one and only subscription i don't regret paying
i agree that virus vs web-stuff blocker etc. term definitions may affect what type of apps we discuss here, i just take it as all-in-one solution in last decade or so...
If one does only controlled specific stuff with computer, they are indeed snake oil, but try telling that to our grandmas / teenage relatives clicking the web-places we wouldn't believe...
It's a pain. I built a Rust program targeting Windows on my Mac for my colleague. His machine is tooled up with some anti-virus mandated by his employer. Cargo produced a .exe which of course the anti-virus prevented from running. Oddly though building the program on an actual Windows machine worked without trouble.