Slashdot Mirror


Microsoft: Windows 10 Devices Open To 'Full Compromise' From Huawei PC Driver (zdnet.com)

According to ZDNet, researchers at Microsoft have discovered a buggy Huawei utility that could have given attackers a cheap way to undermine the security of the Windows kernel. From the report: Microsoft has now detailed how it found a severe local privilege escalation flaw in the Huawei PCManager driver software for its MateBook line of Windows 10 laptops. Thanks to Microsoft's work, the Chinese tech giant patched the flaw in January. As Microsoft researchers explain, third-party kernel drivers are becoming more attractive to attackers as a side-door to attacking the kernel without having to overcome its protections using an expensive zero-day kernel exploit in Windows. The flaw in Huawei's software was detected by new kernel sensors that were implemented in the Windows 10 October 2018 Update, aka version 1809.

The kernel sensors are meant to address the difficulty of detecting malicious code running in the kernel and are designed to detect user-space asynchronous procedure call (APC) code injection from the kernel. Microsoft Defender ATP anti-malware uses these sensors to detect actions caused by kernel code that may inject code into user-mode. Huawei's PCManager triggered Defender ATP alerts on multiple Windows 10 devices, prompting Microsoft to launch an investigation. [...] The investigation led the researcher to the executable MateBookService.exe. Due to a flaw in Huawei's 'watchdog' mechanism for HwOs2Ec10x64.sys, an attacker is able to create a malicious instance of MateBookService.exe to gain elevated privileges. The flaw can be used to make code running with low privileges read and write to other processes or to kernel space, leading to a "full machine compromise."
Long-time Slashdot reader shanen writes: Though the story features Huawei, there doesn't seem to be anything specific to that company there. Just innuendo that you can't trust Chinese companies, eh? "Don't throw your computer into that Chinese briar patch!" Anyway, the sordid reality is that Microsoft is the root of all evils in the Windows platform. If increasing security had been half as important as maximizing profits, then we'd be in a much better world today. All complicated software is buggy, but adding complexity for no good reason is just begging for more problems. Here's a crazy solution approach: Any OS feature that isn't used by a LARGE majority of the users should be REMOVED from the OS. Maybe that isn't strong enough. Maybe the OS should be strictly limited to what absolutely needs to be there. Guard those eggs carefully!

112 comments

  1. Not sure if it’s a “flaw” by UnknowingFool · · Score: 5, Insightful

    Personally I’m highly suspicious of Huawei and I don’t think this was a flaw. “Intended design” is what I suspect is a better description.

    --
    Well, there's spam egg sausage and spam, that's not got much spam in it.
    1. Re:Not sure if it’s a “flaw” by Gravis+Zero · · Score: 1, Redundant

      Well it certainly doesn't help their argument of having "no backdoors" in their 5G equipment.

      --
      Anons need not reply. Questions end with a question mark.
    2. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      Personally I’m highly suspicious of <company> and I don’t think this was a flaw. “Intended design” is what I suspect is a better description.

      "Any sufficiently advanced incompetence is indistinguishable from malice."

    3. Re:Not sure if it’s a “flaw” by Tablizer · · Score: 1

      It would be fair to apply Hanlon's razor. Companies are quite often sloppy with security.

    4. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      Fortunately, a helpful slashdot post was included in the article summary, addressing that issue and telling you what your opinion should be.

    5. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      Personally i'm highly suspicious of Microsoft and don't think this was a flaw. "Ease of access for NSA/International Police" is what i suspect is a better description.
      *dons tinfoil hat*

    6. Re:Not sure if it’s a “flaw” by shanen · · Score: 5, Interesting

      It would be fair to apply Hanlon's razor. Companies are quite often sloppy with security.

      For additional context, "Never attribute to malice that which is adequately explained by stupidity." https://en.wikipedia.org/wiki/... just references "human behavior".

      It isn't clear if you [Tabilizer] mean Microsoft, Huawei, or any just company that does something so stupid it seems malicious. Like Boeing in today's news.

      As regards the narrow topic of fake vulnerabilities versus real mistakes, in previous variations of this topic I have suggested some of the desired features a planned security attack should have. Being implemented in visible code is NOT one of them. If the vulnerability can be discovered (as this one was), then only fools would rely on security by obscurity.

      (1) "Security by obscurity" is widely regarded as a dead horse.

      (2) Does anyone regard Huawei's engineers as a bunch of fools who would try to ride a dead horse?

      We cannot completely rule out the possibility that it was a deliberately implanted flaw. In such a case, it would only be natural to limit the development team, increasing the likelihood of a "flaw in the flaw". In this story, a "flaw in the flaw" that led to detection. However it would be extremely foolish if Huawei had not subjected the code to careful scrutiny by a large team of experts, because Huawei knows that ALL of its code is going to get expert scrutiny.

      BtW, I believe that most of the desired design-level features to support effective security breaches would be to create ways for attack code to be added only when needed and in ways that would cause the attack code to disappear if any suspicion was aroused.

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    7. Re:Not sure if it’s a “flaw” by Tablizer · · Score: 1

      We cannot completely rule out the possibility that it was a deliberately implanted flaw.

      I don't dispute that. It's about not making intentional malice the default assumption without more solid evidence.

    8. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      Byteboiz money-grubbers wanted chi.com business ... now they understand the chi.comz are furiously dealing out "the business". What did you expect BOSCO ... a treatise on Randish econ ? Dumb money-grubbing libertoon Quisling fucks .....

    9. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      Exactly.

    10. Re: Not sure if it’s a “flaw” by astrofurter · · Score: 1

      Why not instead apply the Silicon Valley Razor?

      "Never attribute to incompetence that which can be sufficiently explained by malice."

      Yes, I know Huawei is not based in Silly Valley. Nevertheless I suspect the Razor is valid in their case too.

    11. Re:Not sure if it’s a “flaw” by shanen · · Score: 1

      Still not clear about your references. There is not much context before your initial brief comment, and you didn't provide more in your reply to my extracted sentence (on the scope of "adequately").

      The original bizarrely moderated comment was certainly not helpful, though you accepted the Subject: as relevant. I regard it as merely a pale acceptance of the possibly misleading headline.

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    12. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      No... it was run a watch-dog and the programmers didn't understand the security impact. These things happen often, but of course when it's a Chinese company that makes the mistake, you editorialize it and use with the old Yellow Peril arguments. By the way, they patched the bug very quickly, which is more than can be said often about Apple and Microsoft themselves. So who should you be suspicious of, exactly?

    13. Re:Not sure if it’s a “flaw” by Vlad_the_Inhaler · · Score: 1

      Well, I was less than entirely convinced by that comment of yours which made it to the story description, in particular because Microsoft had added some security functionality which immediately flagged the problem.
      The other main commercial OS is Apple and they avoid this kind of problem by providing the hardware themselves. That is not an option for Microsoft.
      Linux is moving away from non-GPL'd modules, a decision - which like Microsoft's here - is partially mandated by security considerations.

      --
      Mielipiteet omiani - Opinions personal, facts suspect.
    14. Re:Not sure if it’s a “flaw” by shanen · · Score: 1

      I'm not even sure how much of the original story description was based on my original submission, though I could research it. Pretty sure the original version must exist somewhere...

      However my original impression when I saw the story was basically "You could say this about any serious security flaw, but they are playing up the Huawei name, either for cflickbait or propaganda." My later comment is a more clear analysis of my position, and I'm sure that one wasn't edited, though I could have messed it up in haste.

      As in I have to run now...

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    15. Re:Not sure if it’s a “flaw” by Freischutz · · Score: 1

      Personally I’m highly suspicious of Huawei and I don’t think this was a flaw. “Intended design” is what I suspect is a better description.

      I could make the exact same claim for every flaw in Microsoft Windows, Google Android and Apple iOS, those are “Intended design” to make it easy for the NSA to spy on the rest of the world.

    16. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      I don't dispute that. It's about not making intentional malice the default assumption without more solid evidence.

      When it comes to politics, which Huawei is a big part of in China, that is a flawed assumption. It's all about plausible deniability.

    17. Re:Not sure if it’s a “flaw” by BlackOverflow · · Score: 2

      I watched the whole video you linked and nowhere in it was the CIA mentioned.

    18. Re:Not sure if it’s a “flaw” by AmiMoJo · · Score: 0

      My post was not serious, it was mocking people who wish to ban Huawei hardware on the flimsiest of evidence, or no evidence at all.

      It's actually a trend now, e.g. people repeatedly claim that Google sells all your personal data, emails, photos, files etc. to the lowest bidder, despite there being no evidence, considerable evidence to the contrary, and it being illegal.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    19. Re: Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      Except, of course, that part about Huawei being completely subservient to the Chinese government. No conspiracy needed when is a law.

    20. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      The fact that they patched it very quickly its self is suspicious.

    21. Re:Not sure if it’s a “flaw” by Cajun+Hell · · Score: 1

      I didn't watch it, but I suspect the Freemasons weren't mentioned either. WTF is the world coming to, that people could be so blind?!

      --
      "Believe me!" -- Donald Trump
    22. Re:Not sure if it’s a “flaw” by dissy · · Score: 2

      Does anyone regard Huawei's engineers as a bunch of fools who would try to ride a dead horse?

      Well, yes :P
      But seriously though, I agree this is almost certainly just a mistake/flaw.

      One thing I have noticed time and time again, people/teams that are strong at designing hardware are generally utter garbage at designing software, and people/ teams that are strong at designing software are generally utter garbage at anything hardware.

      Each of those is a vast superset of knowledge, skills, and many subsets that are highly specialized in their own right.
      It is the exception instead of the rule to find a well suited team of teams with excellent hardware designers, excellent programmers, and excellent translation between them.

      Fortunately for many cases we have enough standardized abstraction these days to keep our complex and integrated systems from toppling over more often than not. But there are plenty of situations that isn't as true.

      I don't have any Huawei made computers, so can't say if this "PCManager" named driver would be one of these or not, but if it really is at the level akin to a set of chipset/motherboard/bios drivers then odds are very high that this wasn't malice, but a result of either their hardware people attempting to write code with expected results, or programmers that are incompetent in their own right.

      If on the other hand this software is more akin to typical bloatware crap OEMs seem to love pre-installing, odds are still high it was the result of incompetence, but arguably for a task that wasn't required in the first place, let alone that ended up happening.
      This is a completely different complaint of course than accusing them of maliciousness but a valid complaint still (IMHO)

      Lastly, I can't tell if Tabilizer meant Microsoft either, but I don't think this result is wrong on their end in any way, especially as some other people here have claimed.

      Kernel drivers having access to the kernel isn't a flaw.
      Kernel drivers being limited or restricted is also not a flaw, but a design choice.
      A choice I don't even fault them for making, even if such segmentation was my own preference, which for the record I'm not sure would be.

      For me I think I'd prefer to choose what drivers to trust based on me using them or not, rather than live with the consequences of that level of segmentation in the kernel and all of the slowdowns and limitations that would come with it.

    23. Re:Not sure if it’s a “flaw” by shanen · · Score: 2

      Complicated comment, but I think I mostly agree with you. I do think you could have made a couple of points more clearly.

      Some parts of your comment are actually related to a longish comment I just wrote about "Clippy", so help me gawd. Essentially I'm saying the OS should stay out of my way. Clippy's mortal sin was the opposite, since Clippy was constantly getting in the way, but the underlying idea was actually a good one.

      I would say that what we have now is the worst of all possible worlds. We have just a few gigantic OSes packed with obscure features that most of us never need. However because those features are embedded at the OS level, whatever security vulnerabilities those features contain are EVERYWHERE. Perhaps I'm stretching the metaphor, but Mother Nature doesn't work that way, and she has billions of years of experience in really complicated programming (with DNA).

      (Currently reading The Gene by Siddhartha Mukherjee, and have already read enough to recommend it rather strongly.)

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    24. Re:Not sure if it’s a “flaw” by Anonymous Coward · · Score: 0

      Is the source post of the bug in stackoverflow.com already identified? Or was it just a bug in a open source library which was copied into their binary-only driver? All the closed source chinese code I have seen contain blatant ripoffs and copies from all over the internet.

    25. Re:Not sure if it’s a “flaw” by Tablizer · · Score: 1

      So politicians are presumed liars until proven innocent because they lie more often than not?

      Okay, I guess that's actually a reasonable statistical assumption.

  2. Only OS Functions by Anonymous Coward · · Score: 0

    A sound law, only modules that are allowed to run in OS space by default, by law, should only be modules that allow 'operating systems functions only', all other modules by law, should be optional for the user to use. Optional and by default off, anything that spies on the user and transmit data off the computer, any modules that access the internet for any kind of software installs, all network access and that includes user choice as to what connections are allowed, any application add on modules that are not core operating system specific should be banned as being anti-competitive and a corruption of the term Operating System.

    For any program to call itself an Operating System and to be recognised as such by the public must be purely an operating system, on top of which the user chooses which applications they will run. Force companies to drop the term 'Operating System' when it ceases to be one, as a result of added applications, invasions of privacy apps, forced software install apps, hard drive analysis and data deletion apps, any module, that is not operating system specific should be banned, it is by law false advertising.

    1. Re: Only OS Functions by crdotson · · Score: 1

      Yes, they called it âoeWindows NT 3.5â and it was a microkernel OS. There are performance implications to having everything run in userspace.

    2. Re: Only OS Functions by Anonymous Coward · · Score: 0

      I recall 3.51 having a configurator to get the OS to a C4 security rating.

      That was a fun OS to 'grow up' on.

  3. Re:yeah well... by Anonymous Coward · · Score: 0

    So, like a Big-3 car then.

  4. Security. by Anonymous Coward · · Score: 0

    According to ZDNet, researchers at Microsoft have discovered a buggy Huawei utility that could have given attackers a cheap way to undermine the security of the Windows kernel.

    What is that? I did not know the Windows kernel HAD security to begin with.

    LOL MicroFail

    1. Re:Security. by gweihir · · Score: 1

      It has some reduced and basically compromised nebulous idea of security. Nothing like what much older systems offer.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  5. Windows 10 Compromised by Default by rtb61 · · Score: 2, Insightful

    Wait up there, Windows 10 is compromised by default. It includes software that invades your privacy, analyses your data and your internet access and does not inform you what it sends and specifically purposefully has been done in a way to block users for turning it off reliably (they shit cunts routinely turn it back on, purposefully). It forces the install of programs without user choice and that includes altering defaults, running advertisements and basically turning over control of that 'NOT-personal computer', to a blatantly corrupt for profit corporation, as a conspiracy between that 'CUNT' corporation and the equally corrupt USA government.

    --
    Chaos - everything, everywhere, everywhen
    1. Re:Windows 10 Compromised by Default by Anonymous Coward · · Score: 0

      I imagine Christmas at your house is giving pinecone artwork, eating pork fat, beating your kids, assfucking the wife, and then praying to Jebus for your guns and ammo.

    2. Re:Windows 10 Compromised by Default by Aighearach · · Score: 3, Interesting

      Those things are all features that Windows users intentionally choose.

      It doesn't excuse Huawei backdooring them without their permission. And it doesn't excuse "Long-time Slashdot reader shanen" for defending the practice with a bunch of weak propaganda.

      Their software is dangerous, their hardware is even more dangerous. I don't run Windows, but I sure as hell don't want their hardware or software on networks that my data has to traverse.

    3. Re:Windows 10 Compromised by Default by Anonymous Coward · · Score: 2, Interesting

      Windows 10 is *the* reason I finally switched to Linux for my home PC.

      Unfortunately, I can't fully escape it. All the tax software applications that run on your local PC and allow you to keep control of your files (so your tax return isn't stored on a third-party server for 7 years), run exclusively on Windows or Mac. I need such software, and for something as important as taxes I don't feel comfortable relying on WINE, so I will have a windows 10 laptop for that purpose next year.

      Also, we use windows 10 at work.

      But at least here, on my home PC, at least here I can win one small victory against Microsoft's invasive practices.

    4. Re:Windows 10 Compromised by Default by shanen · · Score: 1

      Never receiving a mod point, I can only add "Mod this up".

      However, that is also biased because I think I wrote roughly the same thing, but less well. I certainly think I've seen evidence to support it even beyond my paranoia.

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    5. Re:Windows 10 Compromised by Default by Anonymous Coward · · Score: 0

      This proves that the Windows Mandatory Access Control (MAC) system doesn't really work. On any system with MAC (SELinux, AppArmor, Tomoyo...) these type of exploits are not possible.

    6. Re:Windows 10 Compromised by Default by Anonymous Coward · · Score: 0

      "Long-time Slashdot reader shanen" is a bit of a weirdo... If you look through his comment and journal history, you will see...

    7. Re: Windows 10 Compromised by Default by Anonymous Coward · · Score: 0

      It works because this is caught and fixed?

    8. Re:Windows 10 Compromised by Default by Anonymous Coward · · Score: 0

      Why don't you have a Mac for that purpose? It's a hell of a lot more secure than Windows.

    9. Re:Windows 10 Compromised by Default by Anonymous Coward · · Score: 0

      So if you hate MS so bad.
      Why not run Windows 10 in a VM under Linux, that way your precious tax shit is only accessed once a year by you.
      Or you could burn the resulting tax files onto - oh maybe a CD, DVD, SSD, NAS or a fucking cassette tape. Keep the critical personal files off the laptop
      shit what a fool.

    10. Re:Windows 10 Compromised by Default by shanen · · Score: 1

      Project much? Total ignorance of Microsoft's marketing?

      Or just another case of having nothing to say, you insist on saying nothing?

      Go ahead. Please try to write something to convince me you have sufficient intellectual integrity to engage in an actual discussion of computer security.

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    11. Re:Windows 10 Compromised by Default by e0b521bb9d0246d0b619 · · Score: 1

      You're the one making bullshit conspiracy theorist claims that make you sound like a Stallman sockpuppet, so I think the onus is on you to prove you understand computer security, as opposed to being online Linux fanboy #10554546.

    12. Re:Windows 10 Compromised by Default by Vlad_the_Inhaler · · Score: 1

      I run virtually everything on my Linux machine - just some tax stuff on Windows 7 - but recently came across a flaw in that approach. I have to read PDFs, sent in by a variety of people who produce them in several different ways. My PDF reader of choice - Okular - failed to read many of the PDFs correctly, something I only discovered after pushing them onto a stick and looking them using Acrobat Reader under Win 7.
      Yes, I'm aware that this problem was created by Adobe. They created a safe document format years ago, unicorns were frolicking in the grass and all was fine. Then they started adding features, some of which were badly thought out and downright dangerous. Open Source Acrobat Reader clones did not necessarily implement these new features, this made them safer in the security sense and people pretty much stopped using the Reader under Linux. Adobe stopped updating it. afaik (and I have looked) there is nothing available for Linux which actually reads PDFs utilising some of the bells and whistles available.

      --
      Mielipiteet omiani - Opinions personal, facts suspect.
    13. Re:Windows 10 Compromised by Default by bluefoxlucid · · Score: 1

      Computer security is difficult. Everything that's a flaw is exploitable--to some degree.

      Plurality voting allows us to run clones. A 44% candidate is a winner because the other two mains split the vote 44-32-24. We can exploit this: 44% can have a friend run as a clone of 56%, who only needs to take a bit over 13% of the vote to make 44% win.

      Majority-runoff and Instant Runoff Voting suffer a more-complex flaw exemplified in Bulington, Vermont's 2009 Mayoral election. Given candidates A and B, whereas candidate C has the qualities favored by some B voters opposite those qualities for which they reject A, candidate C will take votes from B and take many fewer votes from A. That means in A vs. B you can have candidate B win; and indeed in B vs. C candidate B wins (being more favored by those voters who favor A). When you run A-B-C, however, Candidate B has very few votes, so is eliminated.

      By constructing this in such a manner, when Candidate B typically wins and candidate C does not receive a 50% majority, you eliminate Candidate B and forfeit the race to Candidate A. In an A vs. B race, B wins; by adding C, you change the winner from B to A. This requires some campaign finesse on the part of C, unless it's a matter of straight political ideology (in Burlington, A and B were liberals, with A being the progressive; C was a conservative, and so the conservatives moved from the more moderate liberal to their favored, knocking out the moderate. Liberals vote liberal, so moved to the progressive, defeating the conservative).

      Notice that this isn't about integrity of the ballots, about electronic voting systems (there are some heavy considerations in using electronic voting systems), or whatnot. This isn't about whether you moved to a universal vote-by-mail setup and didn't bother to ask if Oregon's election board will ever be corrupt enough to manipulate the signature scanners or steam open envelopes and run their print-on-demand ballot maker to duplicate ballots after the USPS reports they've been properly received. It's pure manipulation of the voting rule.

      Flaws. Systems have flaws.

      Tideman's Alternative. Tideman's Alternative resists the flaws in majority-runoff and IRV above. It's immune to everything...practically.

      In an election with 40% hard-right, 29% conservative, and 31% liberal voters, with Unified Majority using a nonpartisan blanket primary operated by single transferable vote and a general operated on Tideman's Alternative, the Moderate Conservative wins. There are 69% conservatives; but they stand with the Liberals on not liking the Hard Right candidate.

      Remove the 40% hard-right and you get a Moderate Liberal. Remove the liberals OR the moderate conservatives and you get the Hard Right candidate. Every vote counts.

      One problem: burying.

      To bury the Moderate Conservative, the Hard Right voters have to vote HR>Progressive>MR>ML. They have to rank the Progressive their second choice. This is because Tideman's will identify the Smith Set and then eliminate everyone else; then it identifies the candidate with the fewest votes and eliminates that candidate. That tabulation repeats until the Smith Set is one candidate.

      Burying fails if 30% of the Hard Right voters rank in this manner. Further, the failure can lead to the Progressive getting elected, or to the Moderate Liberal. Think about the Never-Trump Republicans who voted Hillary: in a Bernie-Hillary-Rubio-Trump race, the Trump voters would be voting Trump>Bernie>Rubio>Hillary. If Trump doesn't have sufficient votes to win, the Hillary>Bernie votes are liable to compound to produce a Bernie Sanders victory, where natural voting would produce a Marco Rubio victory.

      This flaw is even harder to control when using the Schwartz Set instead of the Smith Set, although it may be a bit more fragile and prone to give a random result when a large percentage of voters attempt to manipulate the system in the same way. Considering

    14. Re:Windows 10 Compromised by Default by DigressivePoser · · Score: 2

      and for something as important as taxes I don't feel comfortable relying on WINE, so I will have a windows 10 laptop for that purpose next year.

      I run a Windows 10 VM on my Linux Mint system. Works just fine with my H&R Block tax software. Also use that VM to keep track of my finances with Microsoft Money. The nice thing about that is that both Windows 10 and Money don't cost anything. It's all legal. Money is free from Microsoft and Windows 10 lets you use it without "activating" it. Just some subtle nags and limited customization. If there are major features disabled, I haven't come across them yet.

      Also have non-activated Windows 10 on a separate hard drive I dual boot into for those apps that need full system performance - like games and Photoshop.

    15. Re:Windows 10 Compromised by Default by shanen · · Score: 1

      Your transition from computer security to voting systems is too rough and I am unable to follow why you think it is relevant in that form, notwithstanding the long explanation.

      Are you trying to say that users should not be allowed to vote for the features they want (because voting is complicated)? If so, then I just wrote a long comment about that topic (of the users' selections of features and functions). Search for "Clippy", so help me gawd.

      I'll just summarize it briefly here: Your OS should be rather aloof from what you are doing. The OS should help the applications configure themselves to do what you want to do, and your computer configuration should basically be limited to the things you are doing or that you are sufficiently likely to want to do. In the borderline cases, it should ask you. For example, if there is a feature that most people use but which you have not used in a (sufficiently) long time, then the OS should ask you if it can remove that feature from the application. (Or applications, if it is a feature used by many of them.) If you want to do something that you haven't done before, you should even be able to ask the OS for help.

      The security implications are that individual configurations would vary much more widely. The targets for critical bugs should be as few as possible and protected carefully, even though there would be more targets for less serious bugs.

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    16. Re:Windows 10 Compromised by Default by bluefoxlucid · · Score: 1

      Are you trying to say that users should not be allowed to vote for the features they want

      No, I'm using vote tallying rules as an example of systems which we can manipulate, e.g. by adding candidates and adjusting campaign strategy. The point of adding candidate C isn't for C to win; it's to make candidate B lose so candidate A wins.

      Systems aren't built to be insecure; they just get that way, mainly by negligence. Diligence still produces insecure systems, but the flaws are harder to find, less frequent, and often difficult or impossible to exploit for controlled outcomes.

      I can design a more-secure OS; implementing it is doable, but somewhat complex; and then your application software has to implement capabilities models for the OS to apply because it can't know what any given software should and should not do (e.g. Gimp should not attempt to read Firefox's password database).

      if there is a feature that most people use but which you have not used in a (sufficiently) long time, then the OS should ask you if it can remove that feature from the application. (Or applications, if it is a feature used by many of them.)

      The application would need to expose information about that application code and feature. If it's not used, the code path isn't activated; but then, the code path could be activated by it being loaded, so it looks like it's in use. Each bit of code not used is never executed, but how often do you use the cosine function in JavaScript? You can't really track all that effectively, or know if you're removing a critical component.

      In short: all of that has to be managed by the application itself, as the OS doesn't know anything about how applications actually work.

      Folks have explored other methods of behavioral analysis.

    17. Re:Windows 10 Compromised by Default by Aighearach · · Score: 1

      Please try to write something to convince me you have sufficient intellectual integrity to engage in an actual discussion of computer security.

      No thank you.

      I intentionally phrase my comments to be abrasive to people who judge the person, instead of the idea. It is a form of IP protection that works entirely by mutual consent; People who are not authorized to consider the ideas I stated, or implied, are denied understanding. By themselves.

      I have no motivation to convince you of anything about myself other than that I'm a flawed messenger. And that is enough to reserve knowledge and understanding to the you from being able to understand my point. You're physically restrained from doing that; you can only defend yourself.

    18. Re:Windows 10 Compromised by Default by shanen · · Score: 1

      I'm pretty sure that one part of your position could be stated more clearly based on Godel's Incompleteness Theorem. The statements in question are the security characteristics and properties of the system, and the OS itself would be regarded as the sufficiently complicated language. By applying the theorem, you know that there are always statements about the system and parts of the system that you cannot prove, which means you cannot know if the security statements are true or not, but you also know that you can extend the new system to prove those statements. The catch is that the new and extended system now allows for the expression of new statements (still about the security of the system) that cannot be proven.

      Essentially I am arguing that the race condition should be avoided by limiting the size of the critical parts of the system. The OS can be regarded as the basket with all of your eggs in it. That basket needs to be carefully guarded, but the more eggs in the basket, the harder it is to be sure all of the eggs are still okay.

      The last part of your comment seems to be partly a misunderstanding of my position, but it is also true that I didn't say everything about it. Of course the system shouldn't offer the removal of features that are being used without the users' awareness. Part of the problem here is that people cannot even keep track of what is going on in any complicated black-box OS. However, the OS can make those recommendations at a relatively high level. It might be better to think of it as a kind of optimization problem, and the goal is to increase security by optimizing away some of the features that include hidden dangers.

      However the "dangerous" assumption of my suggestion is that it assumes you can partition the features and functions cleanly enough. The OS would need to keep track of all of the dependencies and be ready to install (or reinstall) code that becomes necessary later on. As mapped to your comment, of course the applications will have the responsibility for invoking certain functions, but the OS must still have a high level of control over the features and functions that pose threats.

      Again the font example is relatively easy to work with. You may have erased the last document that uses a particular font and the OS can determine that there is no need for that font on your system. On that basis, it might remove some unneeded fonts. But then you may receive a document that uses a font you no longer have, and now the OS needs to obtain and reinstall that font again (on behalf of the applications that can use that document).

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    19. Re:Windows 10 Compromised by Default by bluefoxlucid · · Score: 1

      You're still describing a lot of code at rest that isn't doing anything, and your solution is to take the at-rest code away, then re-introduce it whenever it's called. There won't be a thorough evaluation of that re-introduction, and it's a new place to plant modified code. Nothing's changed except how many dialogues the user has to occasionally click through without the technical expertise to know whether or not there's a threat.

    20. Re:Windows 10 Compromised by Default by shanen · · Score: 1

      Still don't seem to be communicating effectively... Mostly I'm focusing on increasing the difficulty of the targeting for the attackers. The monolithic approach basically insures every part of the OS is always there and ready to be attacked. Diversity is a good thing, while uniformity is basically a standing invitation for the Warhol worms...

      --
      Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
    21. Re:Windows 10 Compromised by Default by bluefoxlucid · · Score: 1

      The monolithic approach basically insures every part of the OS is always there and ready to be attacked

      That's not actually true.

      Your attack surface is only what is exposed to attack. If you have nvidia device drivers loaded into memory but you don't have an nvidia video card, you can't trip a security vulnerability in the nvidia device driver because any calls to video operations will go through the Intel or AMD drivers.

      To make a piece of code vulnerable to attack, that code has to first run. Unused code can't expose security vulnerabilities; a vulnerability can jump to unused code if it's already taken control of program flow, but that's a different beast (usually the target is libc, e.g. jumping to system() or execve() to download and then execute a remote shell).

      Simply removing software that isn't being used doesn't remove attack surface. If you install every service in the world but only actually run your e-mail server with TLS 1.3 using RSA-AES-GCM, you can't be attacked through an HTTP server, and you can't be attacked by a TLS 1.1 downgrade vulnerability to weak DES--even though your libraries are loaded and fully-ready to support TLS 1.1 with 40-bit DES. The software's configured to not use the DES code or TLS 1.1, and the protocol vulnerability that allows MITM to downgrade TLS 1.1 doesn't work on TLS 1.2 or TLS 1.3.

      I know: in the real world, we can open things with hammers, and the fact that something is present makes it a useful tool. Computers are different in that they can actually be perfectly-impenetrable, as you need a mathematically-constrained method to manipulate them (this is true of everything in the world, but you can't set a variable that says "STRENGTH = INFINITE" so a ginormous hammer won't break through your wall). The fact that a thing is right in front of you doesn't mean you can actually touch it. Installing Microsoft Office so you can use Microsoft Word doesn't expose you to flaws unique to Microsoft PowerPoint--you have to actually run PowerPoint to get hacked through PowerPoint, even though Office loads up the whole suite and only calls the filters to open Word documents because that's what you're doing.

      The monoculture--the fact that the piece being attacked is the same piece everywhere--does make for broad vulnerability. The BSD TCP/IP stack, Linux TCP/IP stack, and Microsoft TCP/IP stack are all different code, so an attack that hijacks kernel memory on one probably won't work on the others.

  6. Is anybody else woke? by Anonymous Coward · · Score: 0

    I'm so woke I'm stoked. I'm so woke I have morning wood all day long.

  7. Re: Huawei product are top notch by Anonymous Coward · · Score: 0

    LOL MicroShill...

    Nothing MicroShit makes is better than anything Apple makes, and I do not that much like Apple or their modern crappy, overpriced, defective-by-design SHIT. Microsoft is WAY worse, bad as Apple has gotten.

  8. Microsoft has been improving their security postur by clay_buster · · Score: 4, Insightful

    None of your comments have anything to do with the problem that Microsoft found. The folks in Redmond have put a lot of work into Windows 10 security while trying to retain the current partner ecosystem and backwards compatibility.

  9. Flawed assumption by xonen · · Score: 3, Interesting

    Here's a crazy solution approach: Any OS feature that isn't used by a LARGE majority of the users should be REMOVED from the OS. Maybe that isn't strong enough. Maybe the OS should be strictly limited to what absolutely needs to be there. Guard those eggs carefully!

    While this looks to make sense at first sight, it is flawed.

    Suppose there are a 100 functions that less than 5% of the users use. Removing each of them will only affect 5% of the users. Removing all of them might affect nearly 100% of them users, as each of them needs another feature to work.

    I do agree on MS' bad reputation when it comes to security, but even that was not the root cause here. Their driver approval process needs might need more attention.

    Or maybe something absurd as, say, open-source drivers? Ideally the whole kernel and driver stack would be OS. Maybe in the future law will require such, for safety and accountability. They can keep their other junk like office closed afaic.

    --
    A glitch a day keeps the bugs away.
    1. Re:Flawed assumption by Anonymous Coward · · Score: 0

      Its not just flawed its letting the errorists win.

    2. Re:Flawed assumption by Anonymous Coward · · Score: 0

      While this looks to make sense at first sight, it is flawed.

      It doesn't, indeed, make any sense. That's why:

      does LARGE majority of the users use hardware COM ports? If not, shall we remove support for them from the OS?

      or, I hope, better visualization of your words: does LARGE majority of the users use any particular model of a printer supported by the OS? If not, shall we remove support for each and every printer just because it is not used by the large majority?

  10. Either way, driver are a problem. Virtualization by raymorris · · Score: 5, Insightful

    Malice, negligence or just "shit happens", low-level hardware drivers are a problem. The protection is pretty much the same no matter how the vulnerability got there.

    Hardware drivers and the kernel require powerful capabilities - and are responsible for ENFORCING security policy. Since they control security, they can't be controlled by it.

    At one point people developed the idea of the microkernel as a theoretical way of reducing the attack surface. In practice, that evolved into virtualization - the hardware drivers being separate from the application software, to the extent of being two separate operating systems. Virtualization gives a good layer of security (though nothing is perfect).

    Another good solution is exemplified by USB 2.0, where the hardware driver is stored within the hardware itself, as firmware, and totally separate from the operating system. The OS trusted driver needs only be a generic driver that an talk to that class of hardware via a standard interface protocol.

    Thunderbolt goes the opposite way, exposing your PCI-E bus to externally connected devices, giving them the same level of trust as internal parts.

  11. Microkernels by MightyMartian · · Score: 1, Insightful

    Microkernels are looking better all the time.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
    1. Re:Microkernels by ArchieBunker · · Score: 1

      Why were they looked down in the first place?

      --
      Only the State obtains its revenue by coercion. - Murray Rothbard
    2. Re:Microkernels by grep+-v+'.*'+* · · Score: 1

      Microkernels are looking better all the time.

      Really?? Microkernels are just Microaggressions to a Monolithic Kernel, which is doing the best that it can with what it's given. Why are you so eagerly supporting bullies?


      /sarc, if you didn't notice.

      --
      If the universe is someone's simulation -- does that mean the stars are just stuck pixels?
  12. yea no by bhcompy · · Score: 1

    Any OS feature that isn't used by a LARGE majority of the users should be REMOVED from the OS

    Good one. How about, instead, people who don't have use cases that require a very flexible OS should stick to iOS?

    1. Re:yea no by Anonymous Coward · · Score: 0

      Any OS feature that isn't used by a LARGE majority of the users should be REMOVED from the OS

      Good one. How about, instead, people who don't have use cases that require a very flexible OS should stick to iOS?

      I actually like the approach VxWorks, the Linux Kernel, or heck Windows embedded had, the last time I used it. Include what you need, leave out what you don't. In the case of something like Windows that is likely really hard to do, but, well, Microsoft get's paid well. Also having effectively some variations in components in windows installs could only help overall security, since it would be harder to create viruses or worms that target all versions.

  13. Less freedom is good by Waccoon · · Score: 2

    Long-time Slashdot reader shanen writes:
    Any OS feature that isn't used by a LARGE majority of the users should be REMOVED from the OS.

    Yeah... fuck you. Every piece of software is being gimped like crazy to cater to the lowest common denominator, and features I need are being wiped out every day in the name of improving my experience. Microsoft already requires signed drivers, so whatever happened here is purely a political problem, not a technical one.

    If Huawei is installing some stupid "helper" that fucks up the machine, I won't buy a Huawei. I'll build the machine myself and use an OEM copy of Windows, just as I have been doing for the last 20+ years. The last thing I want is for Microsoft to lock down the system even more to ensure I have even less control of my machine.

    For the record, I stopped upgrading at Win7. I won't touch Win10 with a barge pole.

    1. Re:Less freedom is good by AmiMoJo · · Score: 2

      Signed drivers are a good thing, they stop random malware installing drivers on your system. Defence in depth.

      They actually improve the quality of some products too. For example if you want to make a new USB widget you have a choice: custom driver that has to be signed and requires a UAC prompt to install/update, or use one of the build in drivers like WinUSB or HID. That encourages manufacturers not to make their own crap drivers.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  14. Re: Either way, driver are a problem. Virtualizati by Anonymous Coward · · Score: 0

    Mod this comment to 100000

    The problem is half assed OS design.

    Drivers are dangerous.

  15. So better than by Anonymous Coward · · Score: 0

    Adobe Flash by about 10 and Cisco by about 100 times I guess.

  16. Re:Microkernels looked down on by aberglas · · Score: 1

    Because they are slightly less efficient. Maybe 10%.

    And nobody would tolerate a computer that is 10% slower just because that is secure.

  17. If increasing security had been half ... by grep+-v+'.*'+* · · Score: 1

    If increasing security had been half as important as maximizing profits

    FIRST you make it work, THEN you make it faster, and ONLY THEN you fix the security.

    Right? You get first / early to market your product and you make it faster and better as people accept and purchase it. Once you've got a large enough customer base who "can't live without it" you hit them up for the security charges. If you had done that at the beginning, it would have cost more and been released later to the detriment of sales.

    Besides, if you'd really wanted security you would have purchased a different product in the first place. If "all bugs are shallow given enough eyes", then "no bugs exist if no one's looking" -- and it's CHEAPER that way, too.

    --
    If the universe is someone's simulation -- does that mean the stars are just stuck pixels?
    1. Re:If increasing security had been half ... by Anonymous Coward · · Score: 0

      You hit the nail on the head! People assume MS just wants to write shitty software, but the reality is that people want to buy shitty software so MS makes it.

      MS already had a version of Unix when the came out with DOS. Of course people chose DOS, because who wants the overhead of a multi-user OS on a *personal* compter, right? So then MS came out with OS/2. Nobody wanted that either. So then MS came out with Windows NT. But nobody wanted that either. It took 20 years for MS to convince people to stop running DOS!

      That is, DOS 1.0 shipped in 1981 and parts of it ran in WinME, until it was replaced by WinXP in 2001. WinXP is actually the same kernel as WinNT, but it wasn't until XP that its marketshare overtook the DOS-based OSes.

      dom

  18. The SOP for Boeing by Anonymous Coward · · Score: 0

    FIRST you make it work,
    THEN you make it faster,

    and ONLY THEN you fix the security.

    You, Sir, must have been working for Boeing !!

  19. Re:Either way, driver are a problem. Virtualizatio by Anonymous Coward · · Score: 0

    That's not how USB 2.0 works. The "hardware driver" is not stored within the hardware itself.

  20. Re:Microkernels looked down on by Anonymous Coward · · Score: 1

    Microkernels provide some isolation to mitigate the problem, but they don't provide total security.

    The driver for the crappy USB multi-function device is a separate process from the filesystem driver process, so it's safe, right? Just imagine that a bug in the crappy USB device's UI allows you to send commands to the device that trigger a bug in the filesystem driver that manifests a code injection vulnerability. Now you are running code in the filesystem driver so it's game over. You can read and write every file on disk, or substitute your own!

    Really one of the biggest problems is that hardware companies are mostly shit at writing software, and device drivers are the hardest kind of software to write. They have to interact with low-level OS APIs that are designed to be high-performance rather than high-level abstractions. They have to be multi-threaded, reentrant, or whatever else is required to be scalable on multi-core systems because nobody wants 15 cores to be idle while the single-threaded network driver processes requests for all the other cores.

    dom

  21. Oh just fuck off by Anonymous Coward · · Score: 1

    Users did NOT choose for Microsoft to unilaterally fuck over the software stack to fuck over their captive audience.
    How stupid do you think we are?

  22. VMware and Cisco anyone? by LostMyBeaver · · Score: 2

    Please feel free to visit the latest Linux Kernel tree (or any for several years) and audit the code for the included ESXi drivers (memory management and network specifically) as well as the Cisco VIC network and SCSI driver code.

    It took me an average of 3 minutes between finding attack vectors thanks to VMware's half-assed code that should have been completely rewritten years ago. Now, if you can't find a vulnerability using the ESXi drivers in the Linux code base, you probably shouldn't be allowed near a computer.

    The Cisco VIC adapter code is so much better... you not only can find endless numbers of vulnerabilities, but you can actually upload entire new operating systems to the VIC adapters in nearly all Cisco servers (especially HyperFlex) and you can even change the boot firmware by disabling authenticity checks in the driver code. The end result being that you could easily permanently place undetectable backdoors that would require hardware replacement to correct into the VIC adapter.

    Even better... as a bonus, I'm quite confident that it is possible on VMware from a guest machine using VMFEX network adapters with Cisco VICs, it should be possible to change the hardware firmware of the VIC adapters ... which include entire built-in processors for SCSI and RDMA... so that you could pretend to be one of the VMs and communicate to anywhere you want and even issue SCSI requests to the SAN directly over network protocols that can't be monitored on Cisco switches.

    None of this is intentional... it's all because no one takes the time to clean up after their own messes.

    1. Re:VMware and Cisco anyone? by AmiMoJo · · Score: 2

      Did you report those vulnerabilities to anyone? VMware has an email address (security@vmware.com) you can use. Are there any CVEs we can look at?

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    2. Re:VMware and Cisco anyone? by Anonymous Coward · · Score: 1

      Well, I do databases and high-level back-end dev for a living. If I saw the code I doubt I'd find vulns as you claim to be able to, in the same way you wouldn't have the first clue how to tune a DB. Should I not be allowed near a computer?

      But then you didn't post links to the relevant bugs you claim to have found so go on, it'll only take you 3 minutes to find one, so post us a couple. It'll be very quick so go on, actually show us the goods instead of blagging.
      captcha: mistrust

  23. Re:Either way, driver are a problem. Virtualizatio by gweihir · · Score: 1

    Indeed. Drivers are trusted. That means they can break your security and there is nothing that can be done about it. As to malice, that seems highly unlikely, as this issue would have been better hidden. In particular, the attacker would have made sure these "sensors" do not detect it. A placed backdoor loses most of its worth after it has been found. No, this is just a regular screw-up that stems from the fact that the world still has not learned that software is hard and that people doing it well need talent, expensive and intense education and experience and that nothing else will serve. Getting more cheaper coders will just allow you to produce more errors in less time.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  24. Re:Microkernels looked down on by jrumney · · Score: 1

    Instead we run anti-virus to hopefully catch some of the problems that might slip through the insecurities. How much overhead is that you ask?

  25. This is No Accident by Anonymous Coward · · Score: 1

    The engineers at Huawei know exactly what they're doing, they just didn't hide it well enough this time. The purpose of this "flawed" driver can be none other than to provide a hacking capability that is as widely distributed as Huawei phones, since every one of their phones wherever it ends up in the world will have the "flaw". Of course, anybody with half a brain and any importance should now be avoiding Huawei hardware like the plague. When the Department of Defense, the CIA, the NSA and GHCQ tell you that Huawei hardware has backdoors and will be used to spy on you, maybe that's worth listening to? What distinguishes Chinese hardware hacking is their greed and low level of respect for their adversaries. Sure, by baking the compromise into every board you produce it gets as widely distributed as possible, but it also massively increases the chance, practically to a certainty, that it will be found. This is why more sophisticated Western intelligence agencies engage in tailored operations instead, compromising only those specific pieces of hardware that are on their way to intended targets. The benefit is two fold. First, you don't have a lot of noise to filter out to get at the signal, because only interesting targets are monitored, and second the low numbers of compromised devices reduces the chance that the modifications will be discovered and even if they are discovered the targets are likely to simply destroy or discard the devices because nobody likes to admit that they have been hacked and nobody else can corroborate the discovery because not every device has the hacking hardware burned in.

  26. Re:yeah well... by Anonymous Coward · · Score: 0

    or Chrysler. I saw one blowing smoke at the highway here in Europe when they were rare.

  27. This one was easy to find by Anonymous Coward · · Score: 0

    Probably by design. After all, it was the only code section with English comments.

    No sense in looking any further, problem solved. All good now.

  28. Open source by Errol+backfiring · · Score: 1

    Or maybe something absurd as, say, open-source drivers?

    Well, if you call it a MATEbook, I expect it to run Linux with the MATE desktop environment.

    --
    Nae king! Nae laird! Nae yurrupiean pressedent! We willna be fooled again!
  29. Re:Either way, driver are a problem. Virtualizatio by Vlad_the_Inhaler · · Score: 2

    As to malice, that seems highly unlikely, as this issue would have been better hidden. In particular, the attacker would have made sure these "sensors" do not detect it.

    I have to point out that the "sensors" were new, so malice is still an option. Of course there were beta versions of Windows Update 1809 before the actual update came out, a true malicious operator would have had time to attempt an update to the driver to at least hide the side-door.
    fwiw, I'll vote for a screwup.

    --
    Mielipiteet omiani - Opinions personal, facts suspect.
  30. Public masturbation of 5388043 by shanen · · Score: 1

    Z^-1

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  31. Re:Either way, driver are a problem. Virtualizatio by gweihir · · Score: 1

    Huawei will have access to all previews and likely is part of a select small group that gets them even earlier, so that is not a very strong argument. As malicious actors can be incompetent too, it is not a worthless argument, just weak. But Hanlon's Razor has stood the test of time and is usually right.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  32. You installed a driver for your latest thumb drive by raymorris · · Score: 0

    So you're the guy who fell for it and downloaded the "driver" for the thumb drive you bought?

    USB devices present themselves to the OS as one of 21 classes, such as:

    01 Audio Speaker, microphone, sound card, MIDI
    02 Communications Modem, Serial, Ethernet
    03 Human interface device (HID) Keyboard, mouse
    05 Physical Interface Device (PID) Force feedback joystick
    06 Image (PTP/MTP) Webcam, scanner
    08 Mass storage (MSC or UMS) USB flash drive, memory card reader, digital audio player

    Note "storage device" doesn't distinguish between a flash drive and a spinning disk. The OS tells the USB device "store these bytes" or "play this sound". The OS has no idea how the hardware actually does that. Firmware within the device knows about the memory chips whatever hardware is involved.

    If you lookup which chips devices can use to implement USB, you'll notice all the USB interface chips have flash memory included in the chip. Wonder what that's for? :) That's for storing your hardware driver, within the device.

    The other option for implementing a "USB device" is to use a ft232rl USB to serial converter or similar in your device, then build a serial device. In that case the actual USB device is the USB to serial port, which then has a serial device attached.

  33. Comment to undo moderation by TheRealMindChild · · Score: 1

    Something is broken with the moderation function today

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
  34. Good old QDOS by gotan · · Score: 1

    Why would you want to run more than one program at a time anyway?
    And what moron would want to have more than 640K of memory?

    "Maybe the OS should be strictly limited to what absolutely needs to be there."

    Nowadays people expect their OS to run on a variety of hardware, support all of it, support all kinds of devices plugged into the USB-port at once, do all that with a GUI that allows an image to be dragged from one piece of software to another one with a mouse movement and hides all the gritty details under the hood. Why wouldn't they? That is not only so for PCs running under Windows, but for Linux-machines as well.

    I fully support, that a coffee machine doesn't need to be able to host web pages (although there might be use cases even for that), but a PC/Laptop is a multi-purpose-tool, its value lies in its flexibility, the ability to connect to a variety of periphery and run an even greater variety of software, and the (comparatively) low pricing possible due to not tailoring every PC to the specific needs to its user, but selling everyone the same multi-purpose tool of which most users only use a small subset.

    --
    "By the way if anyone here is in advertising or marketing... kill yourself." -- Bill Hicks
  35. shanen is an R tard by Anonymous Coward · · Score: 0

    Any OS feature that isn't used by a LARGE majority of the users should be REMOVED from the OS.

    third-party kernel drivers are used by nearly all 3rd party hardware manufacturers. So why even bring this up? Is this some kind of systemd dog whistle or what?

  36. Re:Either way, driver are a problem. Virtualizatio by drinkypoo · · Score: 1

    Hardware drivers and the kernel require powerful capabilities - and are responsible for ENFORCING security policy. Since they control security, they can't be controlled by it.

    Can't the drivers be constrained by the combination of MMU and IOMMU?

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  37. The job of a driver is to control data on hardware by raymorris · · Score: 1

    Can a device driver access your hard drive? Yes, that's what the sd and ahci drivers are FOR. If the sd driver couldn't access your block devices, how would anything access them? If the ahci couldn't access your SATA controller, you couldn't use your SATA controller.

    Can device driver's access your network card? Pretty tough to use a network card if drivers can't read it, write it, and otherwise control it.

    So the hardware drivers must, at minimum, have access to and control of your hardware - and therefore all your data.

    Yes if you design a system where (really slow) device drivers run as separate processes, you could use the MMU to limit which *memory* it has access to, but still drivers have control of hardware.

    Here I say "hardware drivers" not to be redundant, but because you CAN have a userspace driver which adds certain *functionality* to be accessed *through* a piece of hardware, which in turn has a hardware driver. A classic example is a modem attached to a serial port. At least from the perspective of the kernel, the hardware is the serial port. That hardware must be controlled by a hardware driver which has full control of the hardware. The hardware driver can accept requests from the userland modem driver. I've written drivers like that before. The userland modem driver doesn't need direct control of hardware, it can go through the serial port driver and any security gates we decide to put in.

  38. nice. by Anonymous Coward · · Score: 0

    Don't you dare to buy Huawei, cos a random driver for obsolete operating system is exploitable.

    Every driver for any Windows is exploitable, and has always been so.

    This article is american lies, trying to discredit a manufacturer that won't implement the american backdoors.

  39. Insert free advert for MICROS~1 by Anonymous Coward · · Score: 0

    Why does this get a whole article on slashdot?

  40. Clippy to the rescue! by shanen · · Score: 1

    Subject: is a joke,but I can only clarify with a thought experiment that Microsoft probably tried and failed to implement. So help me gawd, but I actually think the idea underlying Clippy was not bad. It couldn't be done at the time, and now the entire approach has been tainted. If there were more "real" players at the OS level I think someone would have implemented it by now.

    The OS should be quite aloof from what you want to do. The OS should be primarily a facilitator for applications. At the meta-level, that includes helping users find applications and helping the applications add the features and functions you actually want and need. As much as possible, that should be handled invisibly, by inference.

    For a simple example, if you receive a file with a peculiar font, then the capability for that font should be added to your system without bothering you. The font should be downloaded and installed (or perhaps held in temporary storage with the temporary document if the user prefers that or if the machine has too little memory).

    For a more complicated example, what happens when you want to use a different font? The failed Clippy approach might have involved an intrusive dialog like "I see you've been poking at the font menu for a while in a way that indicates you can't find the font you want. Would you like to add more fonts to your font menu or do you need help finding a specific font?" We can do better now. Let me test my voice dictation to be sure... Yes, it works well enough. I can say "I want a flashy modern font[s] with high[-]impact for [an] advertising brochure" and it is recognized well enough for me to take the initiative. Death to Clippy again! (Can't say that enough.) I don't need Clippy when I know what I want--if the OS could just respond to such statements.

    As I visualize and imagine it, my computer would only have the features I actually use or am highly likely to want to use. Extremist that I am, that would go all the way down to the applications, with the OS helping applications to install the extra features as need arises, or even recommending changes in applications. Not far enough! The OS would configure the new (or upgraded) application to match my previous configuration as much as possible and even guide me to the better ways of doing things that I want to do. And yet I should still be able to insist on doing things differently even if the OS has to work harder to make it possible!

    In my delusion, individual computers would be quite different and there would be very few points of massive attack. Those would obviously be the foci for the security experts...

    Enough dreaming for now. It ain't going to happen because it would cut into the massive profits of the giant corporate cancers. The only real players now are Microsoft and Apple and the google, and I don't see any evidence they are considering such approaches nor any competitive pressures that could change their minds. In this context, Linux is not regarded as a "real player" because there is not enough development money to support the approach (or it would have been implemented already).

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  41. Re:The job of a driver is to control data on hardw by drinkypoo · · Score: 1

    So the hardware drivers must, at minimum, have access to and control of your hardware - and therefore all your data.

    No. Each individual driver needs access to and control of one piece of hardware. You're grossly misstating the case.

    Yes if you design a system where (really slow) device drivers run as separate processes, you could use the MMU to limit which *memory* it has access to, but still drivers have control of hardware.

    Um, yeah, that's what the IOMMU is for. All modern PCs have them.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  42. Which hardware? by raymorris · · Score: 1

    Okay, Mr. Kernel, does the driver kbdray handle a Microsoft Natural keyboard? By the way, that driver is newwer than the kernel.

    Go ahead and take your time answering, I'll wait.
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .

    How can a kernel (from last year) figure out what hardware is supported by a driver (which was written last week)? Where is the code that knows which hardware is supported by that driver?

    The driver knows which hardware it supports! The kernel figures out which driver goes to which hardware by asking the driver. On Linux, for example, udev does the poll. It actually has two methods for asking drivers what hardware they support. The simplest method is udev can call a function within the driver, passing the type and vendor IDs to the driver. The driver then responds yes or no. The other mechanism is the driver can call driver_register, passing it's device_driver structure which includes a list of which hardware it supports.

    I highly recommend before you tell me any more about how we write drivers, you try actually writing one. If you're on Mac, there's one we need. What it needs to do is claim a particular memory segment for itself, then use that memory to - do nothing. That segment has a few bad bits, and should not be used. Very handy on MacBooks with soldered-on RAM.

    If you DO decide to write a simple driver as a learning exercise, here's a little tip:

    > Each individual driver needs access to and control of one piece of hardware.

    Somebody might have TWO audio cards. Or FOUR disks. Maybe even zero SCSI cards. In your code, remember basically everything needs to be a linked list, because you may be handling one, two, twenty, or zero pieces of hardware. Also other drivers may claim the same hardware, so be ready for that.

    1. Re:Which hardware? by drinkypoo · · Score: 1

      My point is that the driver shouldn't be allowed to access memory it doesn't need access to, whether it's on the bus or in the main memory. I'm not trying to tell you about the driver. If Microsoft wants to provide value, that's a place they can get involved.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  43. I not sure that I understand the sentiment by Anonymous Coward · · Score: 0

    I not sure that I understand the sentiment of the article is this in relation to the narrative that Huawei is evil because they complete with Apple?

  44. trust closed by sad_ · · Score: 1

    people have to learn that any piece of closed source software cannot be trusted.
    in case of drivers this is even more so, whatever the design of the OS might be, even if the OS itself is fully OSS, a closed driver takes all those advantages go away.

    --
    On a long enough timeline, the survival rate for everyone drops to zero.
  45. Re:You installed a driver for your latest thumb dr by Anonymous Coward · · Score: 1

    Not the previous AC, but I've actually implemented commercial drivers for USB 2.0.

    This is not how this works.

    There exist generic USB classes, which can be implemented with a generic driver.
    Even for some of these, there might be vendor specific drivers to handle the additional interfaces. (With CDC ACM/ECM (Serial and Ethernet) devices historically often having the interfaces defined as vendor specific anyway, and the driver installation sometimes just configured a generic driver for these, but built-in support in Windows used to be quite weak.)
    There also exist a whole bunch of non-standard devices, which wouldn't work without their relevant driver.

    In any case, there's still a driver involved (possibly from the OS vendor), and bugs there can still bite you (especially since driver logic might not be trivial)

    A device might present a Mass Storage device to allow driver installation (this is done by a bunch of modem dongles).

    Btw, USB 2.0 Mass storage is mostly SCSI over USB.

    If your host lacks a driver for a device class, you won't be able to use the device.

    Of course, the device has its own firmware which controls the USB device controller to communicate with the host, and the internal hardware.

  46. Public masturbation of 97333 by shanen · · Score: 1

    Z^-2

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.