by statictype · 9y ago · 0 comments
Double You Tee Eff.
Why would mpengine ever want to evaluate javascript code coming over the network or file system? Even in a sandboxed environment?
What could they protect against by evaluating the code instead of just trying to lexically scan/parse it?
(I'm sure they had a reason - wondering what it is)
I've known for over a decade that antivirus products are strangely destabilizing and stayed away from them myself. For the last year or so that Tavis has been investigating them, we know why. They're just really dumb. Because the popular commercial computer security product market is a "market for lemons": https://www.schneier.com/blog/archives/2007/04/a_security_ma...
It seems pretty obvious now that I think about it, and it definitely goes hand-in-hand with the "Confusopoly" concept (https://en.wikipedia.org/wiki/Confusopoly).
Why should companies compete on quality or price when they can put all that effort into advertising and marketing that scares or confuses most people into buying their product
1) Why are there only binary (2) qualities of cars - good or bad. And why are they static? What market is this trying to model? 2) Wouldn't it be sufficient for peaches (as opposed to lemons) to be lowered in cost to market price i.e. the avg. Somehow peaches are of immutable cost/ quality with zero seller margins?
Aside: 1) Also, why is the state of the cars being considered to be unknowable i.e. even in a given model of car, the units are not of consistent quality? Is this a production quality issue (i.e. inconsistent quality of units in a given model)
2) Why is this state of unknowable or perhaps inconsistent quality an equilibrium? meaning wouldn't a middle man who tests cars try and separate the lot and charge for his services?
This market situation that is being modeled seems contrived, at least to the extent that I understand from the Market for lemons wikipedia article
This is not about new cars, this is about second hand cars. And even if it was about new cars, you wouldn't know for another 5 years if the new car you bought was bad quality or not. (assuming you can't rely on the reputation of the car maker)
The problem with second hand cars is that I sell my car every 5 years, so I basically don't have any reputation. And you don't know how well I maintained my car. All you can see it that it looks shiny.
You can't let me test it, because you don't know if I got the certificate from a genuine unbiased party or from my brother in law. So if you want to test the quality of the car, it's going to cost you. Plus I'm not even sure if you can let it be test cheaply. I can paint over rust, roll back the odometer and do some quick fixes to make the car run smoothly, for now. Are you going to have the car taken apart in the test?
The problem now becomes that I know the quality of the car and you don't. The uncertainty is going to drive the price down. Sellers of good cars will hesitate to compete, because it's impossible for them to ask for a premium price. I'll probably keep the car longer (it's still good, why not) or sell it to a friend, who can rely on my reputation. Now the average quality of cars on the open market goes down, which drives the price down even further, which makes it even less likely a good car will end up on the open market, which drives the price even further down, etc.
If it was the case that peaches can't be produced at prices a customer is willing to pay, then the market splits to high-end and low-end with two types of customers with different paying ability like in high end cars (think mercs and rolls royces).
A customer might have information asymmetry but isn't stupid (is this overtly harsh?).
To quote my own comment in a parallel thread here: "wouldn't a middle man who tests cars try and separate the lot and charge for his services?". The market for lemons seems model a static market which is not realistic IMHO
There is no binary system of good or bad antivirus products but a spectrum and they all have different prices. They've been put to real (viruses and malware in the wild) and synthetic tests to test their efficacy by av-test and others. So they work, maybe not 100% but more than 99% on many benchmarks.
Comparing it to a allegedly failed device like Secustick and claiming (not sure where's the evidence for it) there are no good security products and then saying it's "Because the popular commercial computer security product market is a "market for lemons":" seems like begging the question or confirmation bias or both
I'd like to hear your thoughts. I hope I'm not trying to nitpick :)
"We don't trust this code from the internet, let's run it as SYSTEM!"
Because that seems insane. It's escalating the runtime permissions of code you don't trust -- moving it from user permission to SYSTEM permission just because it hits internet cache.
I keep thinking there must be some part of this I'm missing, because if that's really how it works... "Double You Tee Eff" indeed.
On a tangential point, one common "hack" when XP was popular was to replace Winlogon.exe with Minlogon, which basically made it an ultra-fast-booting "single user mode" (and coincidentally, also bypassed WPA) and that single user was... SYSTEM. That along with EWF and some creative RAMdisk usage made for some interesting liveCD-like Windows environments.
Do you have examples for what SYSTEM can do, but Administrator cannot?
So the anti-virus runtime engine has to run as something akin to SYSTEM since it has oversight over the entire system, but once a type is detected it could pass the actual sandboxing into a lowpriv child process and wait for a result.
The only explanation I can imagine is performance? But child processes could be pre-spawned or it could use shared memory regions for isolation. There's a number of things you can do here to have your cake and eat it too.
I'm legitimately surprised by this from Microsoft, they take security very seriously these days, and I cannot see how this would pass their normal review process? Even just reading the description makes you facepalm.
And fonts come from untrusted sources of course.
So there are precedents for direct paths from untrusted sources to SYSTEM or kernel space execution environments.
I expected better from MS, I really did. This is security engineering on the level of the other AVs, Linux Desktops and similarly insecure software, i.e. no security engineering AT ALL.
Why the unnecessary jab at Linux for no reason?
Executing the JavaScript will run it in a similar way to the client, and perhaps provide the original malware which you can detect against.
Malware struggles to stay stealth due to it needing to access specific features or run specific commands to elevate or take control. That isn't true for obfustication techniques which can look and act like "legitimate" JavaScript.
WTF
Archive bomb anyone? This isn't a new concept, right?
Doing IO intensive work, e.g. build large code base, I always have to deactivate the real time monitor - it slows down the whole process, or worded differently: turning off mpengine almost half's the build time. Reading more and more horror stories about its inner workings and design, it's time to get rid of it for good.
I greatly enjoy this analogy.
https://www.goodreads.com/book/show/13582015-think-like-a-di...
But yes, watch The Prestige.
Maybe I'm just wrong about that and this is a standard technique for evaluating security.
Turing's proof essentially says that there is no way to be sure of knowing what an arbitrary program will do except for running it and seeing what it does.
It's an imperfect technique for real-world programs, but so is everything. Think of it as being like static code analysis versus runtime "sanitizer" tools. Both are useful, and both can detect problems the other can't.
No, it's mostly a bullshit technique.
The thing is that the malware author can see "how much" of the halting problem AV software "solves", and then deliberately hide their bad/suspicious actions just out of reach of that limit.
Simple everyday heuristics are good for a lot of things, but the one thing that they are mostly ineffective against is intentional deception.
that's literally what every antivirus is already doing though.
Evaluating it in a sandbox, not as System, would be a reasonable attempt at security. What they are doing is insane.
Last time there were discussions about AV around here, people were adamant that Defender was simply above this type of thing - mostly based on the word of a browser vendor.
Turns out that a homogeneous AV environment is a not a good idea. Who would have thought?
That's a very broad generalization. Care to provide a citation of all AVs getting up to no good?
ESET NOD32: remote root via vulnerable kernel-mode filter drivers https://googleprojectzero.blogspot.com/2015/06/analysis-and-...
Comodo: code execution vulns in virus scanner https://bugs.chromium.org/p/project-zero/issues/detail?id=76... and installs an insecure web browser and sets it as the default https://bugs.chromium.org/p/project-zero/issues/detail?id=70...
Avast: remote code execution in network traffic filter https://bugs.chromium.org/p/project-zero/issues/detail?id=54...
AVG: installs Chrome extension that leaks your browsing history to anyone who cares to read it https://www.theregister.co.uk/2015/12/29/avg_google_chrome_e...
TrendMicro: remote file access with SYSTEM privilege https://bugs.chromium.org/p/project-zero/issues/detail?id=77...
Kaspersky: a diverse range vulnerabilities over the years, ranging from remote root vulns (https://googleprojectzero.blogspot.com/2015/09/kaspersky-mo-...) to "merely" making all SSL traffic man-in-the-middleable (https://bugs.chromium.org/p/project-zero/issues/detail?id=97...)
Etc, etc.
From this it's safe to draw a broad generalisation about the state of security in the AV market.
There's too much going on to blame this on stupidity. This has to be intentional.