Slashdot Mirror


Ask Slashdot: Linux Security, In Light of NSA Crypto-Subverting Attacks?

New submitter deepdive writes "I have a basic question: What is the privacy/security health of the Linux kernel (and indeed other FOSS OSes) given all the recent stories about the NSA going in and deliberately subverting various parts of the privacy/security sub-systems? Basically, can one still sleep soundly thinking that the most recent latest/greatest Ubuntu/OpenSUSE/what-have-you distro she/he downloaded is still pretty safe?"

105 of 472 comments (clear)

  1. No. by Anonymous Coward · · Score: 4, Funny

    I think there's even a law for this kind of reply...

  2. Not much worry with a source build by msobkow · · Score: 4, Interesting

    The big worry is not building from source, but builds delivered by companies like Ubuntu, which you have absolutely no guarantee are actually built from the same source that they publish. Ditto Microsquishy, iOS, Android, et. al.

    The big concern is back doors built into distributed binaries.

    --
    I do not fail; I succeed at finding out what does not work.
    1. Re:Not much worry with a source build by msobkow · · Score: 4, Interesting

      Another one that concerns me is Chrome, which on Ubuntu insists on unlocking my keystore to access stored passwords. I'd much rather have a browser store it's passwords in it's own keystore, not my user account keystore. After all, once you've granted access to the keystore, any key can be retrieved.

      And, in the case of a browser, you'd never notice that your keys are being uploaded.

      --
      I do not fail; I succeed at finding out what does not work.
    2. Re:Not much worry with a source build by Concerned+Onlooker · · Score: 2

      In the Apple Keychain Access app the access to each key is restricted to a list of applications that are set by the user. You are allowed to grant access of a particular key to all applications, however.

      --
      http://www.rootstrikers.org/
    3. Re:Not much worry with a source build by Zumbs · · Score: 4, Insightful

      Then why do you use Chrome? Pulling stunts like that would make me uninstall a program in a heartbeat ...

      --
      The truth may be out there, but lies are inside your head
    4. Re:Not much worry with a source build by AlphaWolf_HK · · Score: 4, Interesting

      Eventually you have to draw the line somewhere with regard to where you stop trusting. If the Linux kernel sources themselves contained a backdoor, I would be none the wiser, and neither would most of the world. Some of us have very little interest in coding, let alone picking through millions of lines of it to look for that kind of thing. And then of course there's syntactic ways of hiding backdoors that even somebody looking for one might miss.

      --
      Careful with names containing L slashdot.org/~AiphaWolf_HK slashdot.org/~AlphaWoif_HK slashdot.org/~AiphaWoif_HK
    5. Re:Not much worry with a source build by ImdatS · · Score: 2

      Mod up the parent!

      Yes, that's actually my concern all the time. Of course, with open source, you could technically check the source of the system you are using. But then, you'd need to check every line of code, thinking exactly like the NSA (or what-not) in every piece of software you use, including the compiler you use to compile and the compiler compiler, etc, etc.

      Additionally, you'd need to check the source of all the HW-components that come with their own BIOS, including the system's BIOS, networking chip's onboard software, and a lot more. Of course, you could reduce the number of checks if you would write your own code for encryption that sits between your keyboard/mouse, memory, etc - meaning, if you really want to sleep sound, you need to write your own encryption system end-to-end, i.e. from the first input (electricity flowing from .e.g keyboard) to the last output. Even then, I wouldn't be sure if I hadn't forgotten anything in-between...

    6. Re:Not much worry with a source build by WaffleMonster · · Score: 2

      The big worry is not building from source, but builds delivered by companies like Ubuntu, which you have absolutely no guarantee are actually built from the same source that they publish. Ditto Microsquishy, iOS, Android, et. al.

      The big concern is back doors built into distributed binaries.

      So what is the practical difference between a "back door" and a security vulnerability anyway? They both remain hidden until found and they both can easily result in total ownage of the (sub)system.

      History demonstrates "open source" community is not immune from injection of "innocent" security vulneribilities into open source projects by way of human error. I find it illogical to assume intentional vulnerabilities would be detectible in source code where we have failed to detect innocent ones.

      And as for your compiler argument what guarantee do you have the compiler itself is not compromised how do you know epic fail is not being injected into resulting executables during compilation?

      Even if you can compile a compiler attacks have been previously demonstrated which are capable of compromising the additional layer of indirection.

    7. Re:Not much worry with a source build by henryteighth · · Score: 2

      Did you build your own compiler? If not, how can you trust the binaries it produces? Have you dissected your CPU? How do you know it's executing the instructions you want and not quietly running other instructions too? As others have said, you have to draw the line somewhere. Personally, I have no trouble running a binary distribution (not sure why you pick on Ubuntu and not Redhat or Suse or Debian or FreeBSD, but meh)

    8. Re:Not much worry with a source build by M.+Baranczak · · Score: 5, Insightful

      The NSA is a big organization. They do plenty of things that don't violate the Constitution, international treaties, or common sense.

      SELinux is the least of our worries. It's not impossible to hide backdoors or vulnerabilities in an open-source product, but it is pretty difficult. And if the spooks managed to do it, they certainly wouldn't be putting their name on this product, because the people that they're really interested in are even more paranoid than you.

    9. Re:Not much worry with a source build by MaskedSlacker · · Score: 2, Funny

      Or at least, they will have in ten years when the OpenBSD codebase catches up.

    10. Re:Not much worry with a source build by Smallpond · · Score: 4, Interesting

      There was an attempt to backdoor the kernel a few years back. I don't believe the perpetrators were ever revealed.

    11. Re:Not much worry with a source build by rvw · · Score: 5, Insightful

      You do, but if you're that worried, there's always truecrypt and keepassx. If you keep the database in a truecrypt encrypted partition, the NSA can't get at that with any reasonable period of time. You can also ditch the keepassx and just store it as plain text in the encrypted partition, but that's not very convenient.

      Can you be sure that Truecrypt has no backdoors? If so, how?

    12. Re:Not much worry with a source build by SuricouRaven · · Score: 5, Interesting

      Backdooring a CPU wouldn't actually be that difficult. You'd need it to recognise a specific command sequence (128-bits long should do it) when reading memory to trigger the backdoor - that way you could activate it by sending a network packet, or reading external media, or routing traffic. And all the backdoor needs to do is run a simple 'set instruction pointer to immediately after this trigger.' It'd be impossible to defend against short of using an un-backdoored CPU to filter the trigger out, and even then it could be snuck through in an SSL session or a fragmented packet.

      And best of all, it would *never* be detected. The schematics for a CPU are practically impossible to reverse-engineer from the masks, and both schematics and masks are strictly internal company property. Plus the number of people who could understand them in enough detail to spot a backdoor without years of specialist study could probably fit in one conference hall.

    13. Re:Not much worry with a source build by msobkow · · Score: 2

      I don't. I use Firefox because it doesn't ask for access to my default keystore.

      Not that I keep any keys in the default keystore anyhow. I just don't like the behaviour of Chrome in this regard.

      Why would any sane person want to unlock their whole wallet just for a freaking browser?

      --
      I do not fail; I succeed at finding out what does not work.
    14. Re:Not much worry with a source build by gagol · · Score: 2

      I have some network cards, video cards and storage cards that does. All in my home server 12 feet away. Chances are you hace a couple too but may not be aware of them.

      --
      Tomorrow is another day...
    15. Re:Not much worry with a source build by Anonymous Coward · · Score: 2, Interesting

      the 1946 Convention on the Privileges and Immunities of the United Nations, the 1947 agreement between the United Nations and the United States, and the 1961 Vienna Convention on Diplomatic Relations

      from Wikipedia. Found in the first few hits by Google for "wiretapping NSA international treaties", it's really not that hard.

    16. Re:Not much worry with a source build by Dunbal · · Score: 3, Insightful

      I think you're missing the concept of what a back-door actually is. Yeah. Trust your "key chain" app. Your data is safe! If only the NSA had thought of that. Curses!

      --
      Seven puppies were harmed during the making of this post.
    17. Re:Not much worry with a source build by budgenator · · Score: 5, Interesting

      One of our advanatages is that I'm sure the Russians don't want NSA backdoors in Linux, and the NSA doesn't want Russian backdoors in Linux and neither want Chinese Backdoors and simalarly the Chinese want neither NSA or Russian backdoors. After all of this "Spy vs. Spy" Linux is unlikely to have backdoors. If your requirements are great enough that unlikely isn't good enough your probably shit outa luck because nothing will be good enough for you.

      --
      Apocalypse Cancelled, Sorry, No Ticket Refunds
    18. Re:Not much worry with a source build by Anonymous Coward · · Score: 5, Informative

      why do people keep suggesting to use lastpass?

      Seriously!

      You don't want Chrome to have acces to all your keys, but you're quite happy to fucking upload them to some server run by some random fucking mouth breather in some fucking country you don't know.

    19. Re:Not much worry with a source build by pthisis · · Score: 2

      It only unlocks the wallet for the user it's running as, it doesn't have crazy admin privileges.

      If you care about security, you're already running the browser as a restricted user anyway--even if you did stupidly share passphrases between wallets (or accidentally mistype the wrong passphrase into the browser unlock window) it still shouldn't have FS permission to your primary wallet.

      Plus you can run Chromium if you want to be able to audit the source, presuming you don't think someone's Ken Thompson'd chrome into gcc (or CPU microcode).

      --
      rage, rage against the dying of the light
    20. Re:Not much worry with a source build by pthisis · · Score: 2

      It does, though it's configurable. https://code.google.com/p/chromium/wiki/LinuxPasswordStorage has details.

      --
      rage, rage against the dying of the light
    21. Re:Not much worry with a source build by pesho · · Score: 4, Funny

      May be they can agree on one backdoor which they can share like big brothers.

    22. Re:Not much worry with a source build by gweihir · · Score: 2

      Chrome is spyware, what do you expect? Its very purpose is to get all your data.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    23. Re:Not much worry with a source build by Alain+Williams · · Score: 5, Insightful

      What would you do if you where a Chinese or Russian spook and discover a NSA backdoor in Linux ? You could cry foul! to Linus and get it fixed. However: a much more profitable action would be to silently fix it in your own security critical machines and then exploit it as much as possible on your targets in the West.

    24. Re:Not much worry with a source build by bluegutang · · Score: 4, Insightful

      But you'd have to prevent knowledge of the backdoor from leaking. Hundreds of engineers work on each CPU, each group produces and verifies a new CPU design every year or so, there is considerable employee turnover every few years, and nobody has ever reported such a thing. So I find it unlikely.

      Disclaimer: I work as a hardware engineer for a major CPU manufacturer.

  3. If it is off by morcego · · Score: 5, Insightful

    You can sleep soundly if your computer is off and/or unplugged. Otherwise, you should always be on your guard.

    Keep your confidential data behind multiple levels of protection, and preferentially disconnected when you are not using it. Never trust anything that is marketed at 100% safe. There will always be bugs to be exploited, if nothing else.

    A healthy level of paranoia is the best security tool...

    --
    morcego
    1. Re:If it is off by morcego · · Score: 2

      You can sleep soundly if your computer is off and/or unplugged.

      That's the good advice that nobody takes. Putin went one step further and recommended using typewriters for confidential data.

      I'm more on the "never sleep soundly" side of things. Trusting you have a secure system is a good part of the problem. Even a typewriter had flaws.

      --
      morcego
    2. Re:If it is off by symbolset · · Score: 2

      Hopefully manual typewriters. Some electric typewriters have been hacked.

      --
      Help stamp out iliturcy.
  4. Yes. by Anonymous Coward · · Score: 2, Insightful

    You have to trust the integrity of Linus and the core developers.

    If any of them let in such major flaws they would be found out fairly quickly... and that would destroy the reputation of the subsystem leader, and he would be removed.

    Having the entire subsystem subverted would cause bigger problems.. but more likely the entire subsystem would be reverted. This has happened in the past, most recently, the entire changes made for Android were rejected en-mass. Only small, internally compatible changes were accepted, and these went through the usual analysis, and (rather severe) modifications to make them compatible.

    It is possible that this is part of the reason IPsec has never been accepted in the kernel networking code.

  5. Ken Thompson, Anyone? by Jeremiah+Cornelius · · Score: 5, Interesting

    You can not add security, later.

    In Unix systems, there’s a program named “login“. login is the code that takes your username and password, verifies that the password you gave is the correct one for the username you gave, and if so, logs you in to the system.

    For debugging purposes, Thompson put a back-door into “login”. The way he did it was by modifying the C compiler. He took the code pattern for password verification, and embedded it into the C compiler, so that when it saw that pattern, it would actually generate code

    that accepted either the correct password for the username, or Thompson’s special debugging password. In pseudo-Python:

        def compile(code):
            if (looksLikeLoginCode(code)):
                generateLoginWithBackDoor()
            else:
                compileNormally(code)

    With that in the C compiler, any time that anyone compiles login,

    the code generated by the compiler will include Ritchie’s back door.

    Now comes the really clever part. Obviously, if anyone saw code like what’s in that

    example, they’d throw a fit. That’s insanely insecure, and any manager who saw that would immediately demand that it be removed. So, how can you keep the back door, but get rid of the danger of someone noticing it in the source code for the C compiler? You hack the C compiler itself:

        def compile(code):
            if (looksLikeLoginCode(code)):
                generateLoginWithBackDoor(code)
            elif (looksLikeCompilerCode(code)):
                generateCompilerWithBackDoorDetection(code)
            else:
                compileNormally(code)

    What happens here is that you modify the C compiler code so that when it compiles itelf, it inserts the back-door code. So now when the C compiler compiles login, it will insert the back door code; and when it compiles

    the C compiler, it will insert the code that inserts the code into both login and the C compiler.

    Now, you compile the C compiler with itself – getting a C compiler that includes the back-door generation code explicitly. Then you delete the back-door code from the C compiler source. But it’s in the binary. So when you use that binary to produce a new version of the compiler from the source, it will insert the back-door code into

    the new version.

    So you’ve now got a C compiler that inserts back-door code when it compiles itself – and that code appears nowhere in the source code of the compiler. It did exist in the code at one point – but then it got deleted. But because the C compiler is written in C, and always compiled with itself, that means thats each successive new version of the C compiler will pass along the back-door – and it will continue to appear in both login and in the C compiler, without any trace in the source code of either.

    http://scienceblogs.com/goodmath/2007/04/15/strange-loops-dennis-ritchie-a/

    --
    "Flyin' in just a sweet place,
    Never been known to fail..."
    1. Re:Ken Thompson, Anyone? by Jeremiah+Cornelius · · Score: 4, Informative

      Moral

      The moral is obvious. You can't trust code that you did not totally create yourself. (Especially code from companies that employ people like me.) No amount of source-level verification or scrutiny will protect you from using untrusted code. In demonstrating the possibility of this kind of attack, I picked on the C compiler. I could have picked on any program-handling program such as an assembler, a loader, or even hardware microcode. As the level of program gets lower, these bugs will be harder and harder to detect. A well installed microcode bug will be almost impossible to detect.

      http://cm.bell-labs.com/who/ken/trust.html

      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
    2. Re:Ken Thompson, Anyone? by dalias · · Score: 5, Informative

      Fortunately there is an effective counter-measure: http://www.dwheeler.com/trusting-trust/

    3. Re:Ken Thompson, Anyone? by gl4ss · · Score: 3, Interesting

      write your own login, use a different sourced compiler for compiling the compiler..

      anyways, can we stop posting this same story to every fucking security story already? put it in a sig or something.

      --
      world was created 5 seconds before this post as it is.
    4. Re:Ken Thompson, Anyone? by TheRealMindChild · · Score: 2

      icc. Intels c compiler

      --

      "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
    5. Re:Ken Thompson, Anyone? by rvw · · Score: 2

      Fortunately there is an effective counter-measure:

      http://www.dwheeler.com/trusting-trust/

      So you compile the code using two different compilers. How can you be sure that both other compilers don't have a parent compiler that is infected?

    6. Re:Ken Thompson, Anyone? by Anachragnome · · Score: 5, Interesting

      "The moral is obvious. You can't trust code that you did not totally create yourself...."

      I agree, but that doesn't really help us in the real world--writing our own code doesn't reasonably work out for most people. So, what's the solution to your dismal conclusion? Ferret out those that cannot be trusted--doing so is the closest we will ever come to being able to "trust the code".

      So, how does one go about ferreting out those that cannot be trusted? The Occupy Movement had almost figured it out, but wandered around aimlessly with nobody to point a finger at when they should have been naming names.

      The NSA has made it clear that making connections--following the metadata--is often enough to get an investigation started. So why not do the same thing? Turn the whole thing around? Start focusing on their networks. I can suggest a good starting point--the entities that train the "Future Rulers of the World" club. The "Consulting Firms" that are really training and placing their own agents throughout the global community. These firms are the world's real leaders--they have vast funding and no real limitations to who and where they exert influence. In my opinion, they literally decide who runs the world.

      Pay close attention to the people associated with these firms, the inter-relatedness of the firms and the other organizations "Alumni" end up leading. Pay very close attention to the technologies involved and the governments involved.

      Look through the lists of people involved, start researching them and their connections...follow the connections and you start to see the underlying implications of such associations. I'm not just talking the CEO of Redhat (no, Linux is no more secure then Windows), but leaders of countries, including the US and Israel.

      http://en.wikipedia.org/wiki/Boston_Consulting_Group

      http://en.wikipedia.org/wiki/McKinsey_and_Company

      http://en.wikipedia.org/wiki/Bain_%26_Company

      THIS is the 1%. These are the perpetrators of NSA surveillance, to further their needs...NOT yours. People with connections to these firms need to be removed from any position of power, especially government. Their future actions need to be monitored by the rest of society, if for no other reason then to limit their power.

      As George Carlin once put it so well..."It's all just one big Club, and you are not in the fucking club."

    7. Re: Ken Thompson, Anyone? by CockMonster · · Score: 2

      So C/C++ are a government conspiracy of the 60's so they could intercept data from the Internet, which hadn't been invented (or at least only used within military circles) at the time? You're too stupid to be a C/C++ programmer. Stop doing it.

    8. Re:Ken Thompson, Anyone? by Trax3001BBS · · Score: 5, Interesting

      Moral

      The moral is obvious. You can't trust code that you did not totally create yourself..... A well installed microcode bug will be almost impossible to detect.

      http://cm.bell-labs.com/who/ken/trust.html

      You and the submitter in on this one? As the answer is a resounding NO.

      A well installed microcode bug will be almost impossible to detect.

      For people like me that didn't know, microcode can also be known as firmware, bios update
      or "code in a device" http://en.wikipedia.org/wiki/Microcode

      Ken Thompson's Acknowledgment

      I first read of the possibility of such a Trojan horse in an Air Force critique (4) of the security of an early implementation of Multics.

      (4.) Karger, P.A., and Schell, R.R. Multics Security Evaluation: Vulnerability Analysis. ESD-TR-74-193, Vol II, June 1974, p 52.

      So in theory you can't even trust the code you write as your video card could change it.

      --
      If you aren't paranoid yet, just wait

    9. Re:Ken Thompson, Anyone? by Trax3001BBS · · Score: 2

      http://cm.bell-labs.com/who/ken/trust.html">http://cm.bell-labs.com/who/ken/trust.html

      quoting Ken Thompson
        I would like to criticize the press in its handling of the "hackers," the 414 gang
       

      God I guess...
         

      The 414s gained notoriety in the early 1980s as a group of friends and computer hackers who broke into dozens of high-profile computer systems, including ones at Los Alamos National Laboratory, Sloan-Kettering Cancer Center, and Security Pacific Bank.

      They were eventually identified as six teenagers, taking their name after the area code of their hometown of Milwaukee, Wisconsin. Ranging in age from 16 to 22, they met as members of a local Explorer Scout troop. The 414s were investigated and identified by the FBI in 1983. There was widespread media coverage of them at the time, and 17-year-old Neal Patrick, a student at Rufus King High School, emerged as spokesman and "instant celebrity" during the brief frenzy of interest, which included Patrick appearing on the September 5, 1983 cover of Newsweek.
       

      September 5, 1983 cover of Newsweek
        http://mimg.ugo.com/201102/0/6/5/175560/cuts/4c6de9daa1c16-23680n_480x480.jpg

      Text from http://en.wikipedia.org/wiki/The_414s

    10. Re:Ken Thompson, Anyone? by Lumpy · · Score: 5, Insightful

      Maybe modern ones, but if you go back a few generations your chances of it existing drop drastically. so what you do for high security....

      1 - rely on OLDER hardware. Stuff from before the past two administrations would have a significantly higher chance of not having government back doors. Clinton era computers to start with.

      2 - use a completely different architecture. ARM is your best friend here or SPARC. The chances of SPARC having this are insanely small

      3 - Get processors from your countries "enemy" Russians dont use Intel processors for their KGB and Government operations. If they did they would be the biggest morons on the planet. Find out what they use and try to source them through the black or grey market channels.

      Welcome to the new world of underground computer science. Oh and keep your mouths shut. Don't do stupid shit like bragging as to what you have and where you got it. I'd say "hack the planet" but the safest thing is to go off the net and transfer data via offline means for the highest security.

      --
      Do not look at laser with remaining good eye.
    11. Re:Ken Thompson, Anyone? by Jeremiah+Cornelius · · Score: 5, Insightful

      Bingo.

      How many Intel or nVidia employees... How many Broadcom or Qualcom employees need to be placed by NSA, into their otherwise ordinary engineering jobs?

      How many Mossad associated employees? Whoops. I guess that's anti-Semitic. I'd have to ask how many PLA planted engineers, as there's no recognized anti-Sinoism. ;-)

      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
    12. Re:Ken Thompson, Anyone? by Burz · · Score: 2

      A person would have to be absolutely arrogant to trust themselves alone to effect a secure environment. No one is that good, unless we are talking about "secure" systems that are essentially non-functional.

      That's why we have communities of open source developers. Many minds and eyeballs enable a more comprehensive view of security, especially when they are watching changes incrementally accumulate. I think it is much harder to get even subtly surreptitious malware past developers this way.

      The other way, you're either coding a whole OS by yourself and are left with something too simplistic to be useful, or you're relying on proprietary vendors that are now known to be in the business of playing "Oops, we didn't mean to insert that hole... we'll have a patch for you in a couple weeks" on behalf of spies.

    13. Re:Ken Thompson, Anyone? by RabidReindeer · · Score: 4, Insightful

      This argument is much, much too complicated. Plus, it can indeed be tracked down in the compiler binary. Compiling the compiler with an unrelated compiler will remove the malware in the compiler binary. You can use a really slow one for this effort, as you must use it only once.
      In reality, there are more than enough bugs of the "Ping of death" style, which can be used. Read "confessions of a cyber warrior".
      The worst thing Bell Labs brought into this world was the C and C++ languages and the associated programming style. Like char* pointers, uninitialized pointers possible and so on.

      If Bell Labs had no foisted C and C++ on this world for "free", the government would have had to invent something to make their "cyber war space" possible. Wait, Bell Labs WAS the government.

      If that's not enough, a single buffer overflow in firefox or Acrobat reader can trigger something like the Pentium F00F bug, and then they OWN THE CPU. Your stinking sandbox is wholly irrelevant at this time.

      Go figure, sucker. Me, I am a C and C++ software engineering sucker, too.

      Before C, much less C++, there were languages like FORTRAN, COBOL, and PL/1. They were not as rigid about checking types and ranges as Java and Ada, for example. Even some versions of BASIC allowed definition of an "array" that was, in fact, a map of the entire system RAM. And, of course, peek() and poke. PL/1 has actual pointer support built into the language.

      So don't blame C. The problems go way, way back. Some systems and languages were more secure than others, but none of them were all that airtight. The onlu commercial hardware architecture that I know of that approached being REALLY secure was the Intel iAPX 432, which practically gave each stackframe its own private address space. But that one never caught on.

    14. Re:Ken Thompson, Anyone? by Noir+Angellus · · Score: 3, Informative

      Very pretty example, but badly flawed. Thanks to Login being open source, and the abundance of de-compilers available from independent sources, shenanigans such as this can be readily detected by comparing the de-compiled code from the freely available source code and noting significant variations, specifically blocks of additional logic not included in the source. While behaviour like that illustrated would go unnoticed in the closed source (Windows) world, and very likely does, it doesn't wash in the FOSS community. Nice try.

    15. Re:Ken Thompson, Anyone? by HiThere · · Score: 2

      If you're going to play it THAT way, then the exploits go back to assembler and every early digital computer. (Analog computers had different weaknesses.)

      But please remember that early Fortrans (e.g. IBSYS FORTRANII) discouraged using pointers at all. I will grant that they didn't check array bounds, but the location of the array WRT the rest of the program was not guaranteed, and was subject to being changed with different compiler options. I don't know COBOL well enough to really comment, but it's my impression that arbitrary use of pointers was even more difficult in COBOL than in FORTRAN. Don't know about variants like FARGO.

      Ken Thompson's exploit was different in nature, in that it required a more sophisticated compiler.

      P.S.: Many "C-ish" compilers from the early 1970's, e.g. Lifeboat-C for the I8008, came with source code in assembler, and compiled to assembler.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    16. Re:Ken Thompson, Anyone? by Jeremiah+Cornelius · · Score: 3, Informative

      It is not easy to discover vulnerabilities through code examination.

      The easy to discover problems are picked up by source management tools, LINTs and things.

      Functional vulnerability in derived object code is less work-intensive, and generally returns richer results versus man-hours of investment.

      Pen geniuses still "fuzz" binaries, rather than trawl millions of lines of code.

      Think about how Android vulnerabilities are discovered, by Blackhat Briefing presenters. They don't usually delve into the monolithic available sources. Many vulns only make themselves evident, when combined with microcode on devices or in combination with radio stacks, etc.

      Code is used to confirm findings. Sometimes. ;-)

      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
    17. Re:Ken Thompson, Anyone? by smash · · Score: 2

      There's insecure, and there is deliberately and non-obviously malicious.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    18. Re:Ken Thompson, Anyone? by smash · · Score: 2

      I think you misunderstand the premise. You can trust code you yourself write to not be concealing deliberately malicious intent. It still maybe INSECURE, but you can at least be sure of the INTENT of code you write yourself. This isn't the case with third party software.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    19. Re:Ken Thompson, Anyone? by dgatwood · · Score: 2

      Unless the "unrelated compiler" is also compromised. How far down does the rabbit hole go?

      This is why you start by compiling a very simple, basic compiler like PCC using your choice of random, potentially compromised compiler, then use that PCC binary to compile a new copy of PCC. The resulting PCC-compiled PCC binary should be both small enough and simple enough instruction-wise for a few dozen people to feasibly audit it by hand. Use that to then build a verifiably source-clean copy of GCC. Use that, in turn, to build a source-clean copy of LLVM/Clang. And now you have a modern compiler that's almost certainly not generating dirty code.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    20. Re:Ken Thompson, Anyone? by dgatwood · · Score: 2

      The "feature" could be in the microcode for the CPU.

      That's not realistically very likely. Microcode typically never gets updated after the CPU ships, which means that as soon as some critical part of the compiled binary looks slightly different, the microcode won't have the desired effect. It doesn't take a large compiler change to screw that sort of thing up. Even tiny optimization changes would prevent microcode from usefully changing the behavior of a particular binary. The microcode level is just way too low level.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    21. Re:Ken Thompson, Anyone? by thegarbz · · Score: 2

      it doesn't wash in the FOSS community.

      Nice try.

      A laughable comment at best. The FOSS community does not have an army of people running around decompiling binaries just to check to see if it can match compiled code from source. This is significantly less useful than the argument that FOSS doesn't contain back doors because you can look at the source. Just a tip, the vast majority of users don't.

      The vast majority of developers do, but the vast majority of developers don't as I said routinely get up in the morning and decompile published binaries. not the least because of the variances in compiler optimisations reading a decompiled code and comparing it to the source will do you head in without the NSA's help.

    22. Re:Ken Thompson, Anyone? by Mathinker · · Score: 3, Insightful

      Ken Thompson's theoretical attack against the Unix ecosystem was only practical because, at the time, he controlled a major portion of binary distribution and simultaneously a major portion of the information which could be used to defeat the attack, that being compiler technology. Nowadays, there are tons of different, competing compilers and systems for code rewriting, any of which can be used to "return trust" to a particular OS's binary ecosystem (if someone would take the time and effort to actually do it).

      Although I believe Bruce Schneier's information (previously covered in Slashdot) that, probably, any widely used software system available today is practically effortlessly pwnable by the NSA's TAO division, I don't think that the problem of designing hardened systems is an impractical one. It's just going to take a lot of hard, hard work (Schneier's call-to-arms in this regard has already been covered by Slashdot).

    23. Re:Ken Thompson, Anyone? by Etcetera · · Score: 4, Funny

      3 - Get processors from your countries "enemy" Russians dont use Intel processors for their KGB and Government operations. If they did they would be the biggest morons on the planet. Find out what they use and try to source them through the black or grey market channels.

      If your prescription for fixing the issues of low security is to trust the Russian (nee Soviet) Government, I'm pretty sure you're doing it wrong.

    24. Re:Ken Thompson, Anyone? by michelcolman · · Score: 2

      Different compilers produce different code. Some will produce faster and/or smaller code, even with optimisations turned off. Especially (obviously) code compiled for a different CPU. There's no way you'll find a back door by simply comparing the size of the binaries. They will always be different anyway.

    25. Re:Ken Thompson, Anyone? by ron_ivi · · Score: 5, Interesting

      Perhaps he's thinking to configure it so you only have to trust the Russian *or* US government. Dunno how it'd work for compute nodes --- but if you have 1 Russian Firewall in front of one US firewall in front of one Chinese firewall -- it seems you could set up a network where unless all 3 of them collude your combo-firewall is safe.

    26. Re:Ken Thompson, Anyone? by RabidReindeer · · Score: 2

      I don't know that I'd call assembler "exploits", since in assembler you're allowed to do any darn thing you want to. High-level languages exist as much to limit that ability as anything else.

      None of the early FORTRAN implementations I worked with supported pointers as such. But the Primos OS was mostly written in FORTRAN (in fact the instruction set was optimized for FORTRAN), and I think there was a pre-defined integer array whose first element was memory location 0 and each word in that array thus had a 1-to-1 correspondence to a memory address.

      On IBM machines, RAM was byte-addressable, so you would use a character array instead. FORTRAN wasn't a good fit for that but COBOL was. While the language didn't come with a built-in memory map array, it's about 5 lines of assembly language to add one in an external library.

      The early Unix C compilers also generated assembly language. The original C++ generated C, and as an early licensee, at one point I was running C++-to-C-to-assembler-to.aout builds. I never worked with it, but supposedly Xerox had a FORTRAN that allowed inline assembler.

      Regardless of the history, though, there are apples and oranges here. One is an discussion of an exploiting compiler. The other is a discussion of exploitable (but otherwise innocent) languages and runtime environments. Either one is fair game for the maliciously-inclined, but an exploiting compiler is especially insidious, since I can avoid exploits in code I write myself, but have no control over any back doors that a compiler, linker, or system loader might inject.

      Fortunately, modern OS environments are so hellishly complex that specialized exploits are virtually guaranteed to fail in very visible ways on at least a few of the thousands of permutations of systems and work environments in use across the planet. The only practical way to do that sort of exploit is when you are targeting a very specific environment, such as Iranian Windows machines running a certain brand and model of centrifuge. And even then, the unrelated incidental victims are likely to expose it.

    27. Re:Ken Thompson, Anyone? by fuzzywig · · Score: 2

      I'm betting that there's been a increase in people checking both the source of their favourite OSS encryption (et al) software, and checking their compilers in the last week or so.

    28. Re:Ken Thompson, Anyone? by FictionPimp · · Score: 2

      You are advocating security though obscurity?

    29. Re:Ken Thompson, Anyone? by allaunjsilverfox2 · · Score: 3, Interesting

      Maybe modern ones, but if you go back a few generations your chances of it existing drop drastically. so what you do for high security....

      1 - rely on OLDER hardware. Stuff from before the past two administrations would have a significantly higher chance of not having government back doors. Clinton era computers to start with.

      2 - use a completely different architecture. ARM is your best friend here or SPARC. The chances of SPARC having this are insanely small

      3 - Get processors from your countries "enemy" Russians dont use Intel processors for their KGB and Government operations. If they did they would be the biggest morons on the planet. Find out what they use and try to source them through the black or grey market channels.

      Welcome to the new world of underground computer science. Oh and keep your mouths shut. Don't do stupid shit like bragging as to what you have and where you got it. I'd say "hack the planet" but the safest thing is to go off the net and transfer data via offline means for the highest security.

      You forgot a 4th option. If you were TRULY paranoid, you could write your own CPU and emulate in a FPGA. You would also have to design the fpga on a wire wrapped CPU, which would suck, but it's possible.

      --
      Restore the madness of youth's lechery
    30. Re:Ken Thompson, Anyone? by Aaden42 · · Score: 3, Insightful

      1 Russian Firewall in front of one US firewall in front of one Chinese firewall

      So you’re looking for 100% packet loss? Why not just unplug the cord. Would be cheaper, less stuff to patch...

  6. There is no such thing as "Security"... by dryriver · · Score: 3, Insightful

    or "Privacy" anymore. Perhaps there hasn't been for the last decade or so. We just didn't know at the time. ---- Enjoy your 21st Century. As long as people fail to defend their basic rights, there will not be such a thing as "security" or "privacy" again. My 2 Cents...

    --
    Why did the chicken cross the road? Because Elon Musk put an AI chip in its head.
  7. Linux and RdRand by Digana · · Score: 5, Informative

    There was recently a bit of a kerfuffle over RdRand.

    Matt Mackall, kernel hacker and Mercurial lead dev, quit Linux development two years ago because Linus insulted him repeatedly. Linus called Matt a paranoid idiot because Matt would not allow RdRand into the kernel, because it was an Intel CPU instruction for random numbers that could not be audited. Linus thought Matt's paranoia was unwarranted and wanted RdRand due to improved performance. Recently Theodore T'so has undone most of the damage, but call RdRand still exist in Linux. I do not understand exactly if there are lingering issues or not.

    1. Re:Linux and RdRand by Greyfox · · Score: 4, Funny

      Yeah yeah and I'm having to go through the last couple years of E-mails and tell the various paranoid whackos, slightly demented old relatives and that one guy with the tinfoil that they were right and I was wrong. How do you think that makes ME feel?

      --

      I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    2. Re:Linux and RdRand by Greyfox · · Score: 2

      No! It seemed like an ENTIRELY reasonable position, at the time, that there was NO CONCEIVABLE WAY that "they" would be listening to EVERYONE! That would be a COMPLETELY USELESS waste of resources to catch then probably-less-than-a-thousand people who were ACTUAL THREATS to security! People, I might add, who already knew NOT TO USE THE INTERNET for communication! "Mom," I told mom, in a reassuring tone of voice, "go ahead and use the internet. 'They' already know you're not a threat. Their file on you says 'mostly harmless.'" She's gone dark since this story broke. Now I'm going to have to find a motherfucking CAVE somewhere in Florida and send a motherfucking CARRIER PIGEON there with a note that says "Fine, you were right." AND I'm going to have to give tinfoil-hat-guy $20 next time I see him, because if he was right about THAT, then ALL BETS ARE OFF! Now I'm having to rethink my position on ALIEN MIND CONTROL rays! Thank you VERY GODDAMN MUCH, NSA!

      --

      I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  8. Re:AES by Digana · · Score: 5, Informative

    The last time that the NSA weakened an algorithm they recommended was by shortening the key for DES. Snowden confirms that properly implemented crypto still works, and Rijndael (AES) still seems strong. The problem aren't the algorithms, because the mathematics still check out. The thing to fear are the implementations. Any implementation for which we are not free to inspect its source is suspect.

  9. Subversion possible but unlikely and temporary by Todd+Knarr · · Score: 4, Insightful

    It's possible the NSA did something bad to the code, but it's not likely and it won't last.

    For the "not likely" part, code accepted into Linux projects tends to be reviewed. The NSA can't be too obvious about any backdoors or holes they try to put in, or at least one of the reviewers is going to go "Hey, WTF is this? That's not right. Fix it.". and the change will be rejected. That's even more true with the kernel itself where changes go through multiple levels of review before being accepted and the people doing the reviewing pretty much know their stuff. My bet would be that the only thing that might get through would be subtle and exotic modifications to the crypto algorithms themselves to render them less secure than they ought to be.

    And that brings us to the "not going to last" part. Now that the NSA's trickery is known, the crypto experts are going to be looking at crypto implementations. And all the source code for Linux projects is right there to look at. If a weakness were introduced, it's going to be visible to the experts and it'll get fixed.

    That leaves only the standard external points of attack: the NSA getting CAs to issue it valid certificates with false subjects so they can impersonate sites and servers, encryption standards that permit "null" (no encryption) as a valid encryption option allowing the NSA to tweak servers to disable encryption entirely, that sort of thing. There's no technical solution to those, but they're easier to monitor for.

    1. Re:Subversion possible but unlikely and temporary by Todd+Knarr · · Score: 4, Interesting

      That won't even make it through the casual review. Most project maintainers don't like code that's impenetrable. Unless it's a fix for a critical bug that nobody else even has a proposal for a fix for, they're going to take one look at obfuscated code and toss it back with a "No thanks.". Especially if it's coming from a source they don't recognize, because messy complex obfuscated code also tends to be buggy unreliable unmaintainable code and they don't want the headache.

    2. Re:Subversion possible but unlikely and temporary by gweihir · · Score: 2

      Obfuscated code is pretty obvious. There is a large body of conventions you have to follow to get anything into the kernel, precisely to prevent unreadable code. I have looked at a few kernel security patches and they were all clan and clear.

      If you do not follow strong simplicity guidelines, a project the size of the Linux kernel will just fail by eventually becoming unmaintainable.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  10. Pointless Worrying by Luthair · · Score: 3, Insightful

    The NSA doesn't really need to have backdoors written into the systems, they have a lot of exploits in their bag of tricks that they've bought or found. Unfortunately the NSA only needs to find one exploit, but truly secure systems we need to find and fix them all :/

    1. Re:Pointless Worrying by chr1st1anSoldier · · Score: 2

      Also, all they need is to route traffic over their hardware. Sure, you can use SSL and TLS, but I recall an article about the NSA have a majority of the keys from Certificate Authorities. Even if they do not have the correct CA key, I am sure they have a farm of computers ready to brute force crack the key and get the information they need. And no, this doesn't give access to data stored locally on your hard drive, but if you ever upload that data anywhere it can be captured.

    2. Re:Pointless Worrying by SuricouRaven · · Score: 2

      The use of all that power isn't to brute force directly. It's to render possible other attacks that can reduce the key space, like side-channel attacks or known weaknesses in the RNG.

    3. Re:Pointless Worrying by SuricouRaven · · Score: 2

      Specifically the leaks indicate - and this is based largely on speculation - that they have some sort of central database. That means they can collect keys opportunistically (Trojans, interception of cleartext communications containing the key like VM migrations, cracking via advanced mathematics, old-fashioned espionage, secret court orders, backdoors, etc) whenever they get a chance. So when they need to decrypt a communication, there's a chance the key is already in the database - even if they only obtained it years previously and didn't realise at the time it could be useful.

  11. Re:It has never been safe. by 1s44c · · Score: 4, Informative

    Every encryption protocol you use has been sabotaged to be readable by them. You dont really think they will try 200 trillion keys to break your stream do you?
    No. They modified the protocols, (to make them more secure) and of course never explained the changes. They just mandated it.

    Even the almighty NSA with it's insanely high budget can't crack all the encryption. But it does make me wonder if I should avoid everything they recommend.

    I suspect the NSA has developed custom hardware for the more common encryption types. Custom hardware was shown to work extremely well on DES by deep crack. http://en.wikipedia.org/wiki/EFF_DES_cracker

  12. What about the hardware or compiler? by BitterOak · · Score: 4, Insightful

    The big concern is back doors built into distributed binaries.

    And what about the hardware? And how can you be sure the compilers aren't putting a little something extra into the binaries. There are so many places for NSA malware to hide it's scary. Could be in the BIOS, could be in the keyboard or graphics firmware, could be in the kernel placed there by a malicious compiler. Could be added to the kernel if some other trojan horse is allowed to run. And just because the kernel, etc. are open source doesn't mean they have perfect security. The operating system is incredibly complex, and all it takes is one flaw in one piece of code with root privileges (or without if a local privilege escalation vulnerability exists anywhere on the system, which it surely does), and that can be exploited to deliver a payload into the kernel (or BIOS, or something else). Really, if the NSA wants to see what you're doing on your Linux system, rest assured, they can.

    --
    If I can be modded down for being a troll, can I be modded up for being an orc, or a balrog?
  13. Re:AES by cold+fjord · · Score: 4, Informative

    The last time that the NSA weakened an algorithm they recommended was by shortening the key for DES.

    Minor correction: They strengthened the DES algorithm by substituting a new set of S-boxes which protected against an attack that wasn't publicly known at the time. They shortened the key space which made it more susceptible to brute forcing the key. Full strength DES has held up very well against attacks overall until its key length became a problem. It lasted much longer in use than intended.

    I seem to recall that DES was never approved for protecting classified data, but that AES does have that approval.

    --
    much of left-wing thought is a kind of playing with fire by people who don't even know that fire is hot - George Orwell
  14. Re:AES by greenfruitsalad · · Score: 4, Funny

    if the whole world goes for one cipher, then nsa can concentrate on creating and improving a single ASIC design for breaking it. we should be using hundreds of different algorithms. then they'd have to design hundreds of types of ASICs, build 100x more datacentres, increase taxation in USofA to 10x what it is now, yanks would rebel and overthrow that government and then there would be no more evil NSA. simples

  15. Re:AES by Anonymous Coward · · Score: 2, Informative

    The AES was designed by Rijmen and Daemen, who are not working for the NSA (the former for a belgian university, and the other one for ST microelectronics), after a public competition. Every element of its design (which is simple) was justified. If the NSA wanted something they could break, then why not doing it themselves (that was the case of the DES).

    The AES was chosen by the US government because it was apparently secure while fast and easy to implement. The academic crypto community widely considers it secure after more than 10 years of effort to break it (note that twofish does not look less secure, but what makes you think that the NSA could break the AES and not twofish ? In fact nobody can break any of them).

    The point of the AES competition was to provide US companies (i.e. the public) with something secure enough against potential attacks from their competition.

  16. nothing's safe, but there are obvious things to do by hedrick · · Score: 5, Interesting

    No, but there's no reason to think that Linux is worse than anything else, and it's probably easier to fix.

    If I were Linus I'd be putting together a small team of people who have been with Linux for years to begin assessing things. From Gilmour's posting it seems clear that IPsec and VPN functionality will need major change. Other things to audit include crypto libraries, both in Linux and the browsers, and the random number generators.

    But certainly some examination of SELinux and other portions are also needed.

    I don't see how anyone can answer the original question without doing some serious assessment. However I'm a bit skpetical whether this problem can actually be fixed at all. We don't know what things have been subverted, and what level of access the NSA and their equivalents in other countries have had to be code and algorithm design. They probably have access to more resources than the Linux community does.

  17. Re:AES by Threni · · Score: 2

    Is there any particular reason why people don't strengthen AES (or any other symmetric encryption) by just reencrypting 1000 times? Perhaps interleaving each encryption with encrypting with the first 1, then 2 etc. It would make next to no difference for the end user, who's going to decrypt just once, but I imagine it would add a lot more time to the cracking of the encrypted data than increasing the size of the key.

  18. Re:You can't trust any mainstream Linux distro by Noryungi · · Score: 4, Interesting

    I believe you can trust OpenBSD totally but it lacks many of the features and much of the convenience of the main Linux distros. It is rock solid and utterly secure though, and the man pages are actually better than any Linux distro I've ever seen.

    Three points:

    1) See the above discussion: you cannot trust anything that you did not create and compile yourself. With a compiler you wrote yourself. On a machine you created yourself from the ground up, that is not connected to any network in any way. OpenBSD does not make any difference if your compiler or toolchain is compromised.

    2) Speaking of which, I cannot but note that OpenBSD had a little kerfuffle a while back, about a backdoot planted by the FBI in the OS? (Source 1) (Source 2). I am willing to bet that (a) it's perfectly possible (though not likely), (b) if it was done, it was not by the FBI and (c) that the dev @openbsd.org are, right now, taking another long and hard look at the incriminated code.

    3) Finally OpenBSD lacking features and convenience? Care to support that statement? I have a couple of computers running OpenBSD here, and they are just as nice - or even nicer - to use than any Linux. Besides, you don't choose OpenBSD for convenience - you use it for its security. Period.

    The possibly bigger problem is that no matter what OS you use you can't trust SSL's broken certificate system either because the public certificate authorities are corruptible. And before someone says create your own CA, sure, for internal sites, but you can't do that for someone else's website.

    This goes way beyond a simple question of OpenSSL certificates - think OpenSSH and VPN security being compromised, and you will have a small idea of the sh*tstorm brewing right now.

    --
    The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
  19. Re:AES by WaffleMonster · · Score: 4, Insightful

    Is there any particular reason why people don't strengthen AES (or any other symmetric encryption) by just reencrypting 1000 times? Perhaps interleaving each encryption with encrypting with the first 1, then 2 etc. It would make next to no difference for the end user, who's going to decrypt just once, but I imagine it would add a lot more time to the cracking of the encrypted data than increasing the size of the key.

    Exponents are actually what protects information, multiplication just makes people feel good.

  20. Re:OpenBSD by Predius · · Score: 2, Interesting

    Even that's no good if the problem is flaws in the spec rather than how it's implemented by OSs. If the NSA did things correctly they didn't have to muddle with actual Linux/BSD/etc src, they got flaws into the crypto definition itself that reduces the work needed to crack it. The better an OS follows the spec... the easier for the NSA to punch through.

  21. Government? What About Other Bad Guys? by rueger · · Score: 5, Insightful

    We are being told - and some of us suspected as much for a very long time - that the NSA &Co track everything we do, and have the ability de-encrypt much of what we think is secure; whether through brute force, exploits, backdoors, or corporate collusion.

    Surely we should also assume that there are other criminal and/or hacker groups with the resources or skills to gain similar access? Another case of "once they know it can be done, you can't turn back."

    I honestly believe that we're finally at the point where the reasonable assumption is that nothing is secure, and that you should act accordingly.

  22. Re:AES by burne · · Score: 4, Informative

    One Bruce Schneier is a (loud) advocate for increasing the number of rounds in AES. Currently it's set at 16, and he advocates increasing it to much more. His main reason for this is that there's a differential crypto-analysis attack against known plaintext data encrypted with reduced rounds AES implementations. In short: If you know or control some of the encrypted data, you can extract bits of the key by comparing changes between encrypted known data. The bits you gain reduce the keyspace you need to search. AES according to the guidelines isn't vulnerable for this. Yet.

  23. Can you sleep soundly? by cold+fjord · · Score: 5, Insightful

    I think that depends on what keeps you up at night.

    In one of the earlier stories today there was a post making all sorts of claims about compromised software, bad actors, and pointing to this paper: A Cryptographic Evaluation of IPsec. I wonder if anyone bothered to read it?

    IPsec was a great disappointment to us. Given the quality of the people that worked on it and the time that was spent on it, we expected a much better result. We are not alone in this opinion; from various discussions with the people involved, we learned that virtually nobody is satised with the process or the result. The development of IPsec seems to have been burdened by the committee process that it was forced to use, and it shows in the results. Even with all the serious critisisms that we have on IPsec, it is probably the best IP security protocol available at the moment. We have looked at other, functionally similar, protocols in the past (including PPTP [SM98, SM99]) in much the same manner as we have looked at IPsec. None of these protocols come anywhere near their target, but the others manage to miss the mark by a wider margin than IPsec.

    I even saw calls for the equivalent of mole hunts in the opens source software world. What could possibly go wrong?

    Criminals, vandals, and spies have been targeting computers for a very long time. Various types of security problems have been known for 40 years or more, yet they either persist or are reimplemented in interesting new ways with new systems. People make a lot of mistakes in writing software, and managing their systems and sites, and yet the internet overall works reasonably well. Of course it still has boatloads of problems, including both security and privacy issues.

    Frankly I think you have much more to worry about from unpatched buggy software, poor configuration, unmonitored logs, lack of firewalls, crackers or vandals, and the usual problems sites have than from a US national intelligence agency. That is assuming you and 10 of your closes friends from Afghanistan aren't planning to plant bombs in shopping malls, or try to steal the blueprints for the new antitank missiles. Something to keep in mind is that their resources are limited, and they have more important things to do unless you make yourself important for them to look at. If you make yourself important for them to look, a "secure" computer won't stop them. You should probably worry more about ordinary criminal hackers, vandals, and automated probe / hack attacks.

    --
    much of left-wing thought is a kind of playing with fire by people who don't even know that fire is hot - George Orwell
  24. Recall the NSA/FBI OpenBSD story? by Anonymous Coward · · Score: 2, Interesting

    Hmmm - all of a sudden this looks interesting again:

    http://news.cnet.com/8301-31921_3-20025767-281.html

  25. "pretty safe?" by bill_mcgonigle · · Score: 4, Insightful

    Yes, it's "pretty safe". It's not absolutely safe or guaranteed to be safe. But if your other alternative is a hidden-source OS, especially one in US jurisdiction, then OSS is "pretty safe."

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  26. Truecrypt Re:Not much worry with a source build by Anonymous Coward · · Score: 3, Interesting

    Digitial Forensics for Prosecutors presentation suggests Truecrypt has a backdoor.
    http://www.techarp.com/showarticle.aspx?artno=770&pgno=0

    1. Re:Truecrypt Re:Not much worry with a source build by Sean · · Score: 3, Interesting

      Cryptome notes this document is claimed to be a hoax by a Hacker News user.

      http://cryptome.org/2013/09/computer-forensics-2013.pdf

    2. Re:Truecrypt Re:Not much worry with a source build by Trax3001BBS · · Score: 4, Informative

      Digitial Forensics for Prosecutors presentation suggests Truecrypt has a backdoor.
      http://www.techarp.com/showarticle.aspx?artno=770&pgno=0

      The entire link inadvertently explains why cloud storage shouldn't be used, and that mobile devices are your worst enemy.

      The only mention of TrueCrypt is this sentence:
        "Currently available for major software - Microsoft bitlocker,
        FileVault, BestCrypt, TrueCrypt, Etc" (sic)

        It does have these gems

        "The Patriot Act allows for the use of backdoors for counter terrorist investigations"

        The use of backdoors cannot be detected or proven.

        Vendors are legally and commercially prevented from acknowledging their backdoors.
        Defense will not be able to prove their existence.

        The files can be described as "forensically obtained"

      Users of mobile devices and cloud storage sign off on their rights to data scanning.
      There is no opt our option.

      Lots more...

      PDF can be downloaded here:
        http://www.techarp.com/article/LEA/Encryption_Backdoor/Computer_Forensics_for_Prosecutors_(2013)_Part_1.pdf

  27. Re:If it is off - it might get stolen by Chemisor · · Score: 4, Insightful

    10000 laptops are stolen at airports every year. Presumably, they are off when that happens.

    The NSA is not your problem; you are not important enough to be a target. When thinking about security, thieves are your problem. Theft happens, and happens often. Your computer is far more likely to get stolen than to be inflitrated by the NSA. And the solution is to encrypt your hard drive. Without encryption the thief will have access to everything you normally access from the computer - like your bank account. You wouldn't want that, would you? Today's CPUs all have AESNI support, so there is no excuse for not encrypting your laptop's hard drive. Do it today and get some financial peace of mind.

  28. Re:nothing's safe, but there are obvious things to by SuricouRaven · · Score: 2

    The good news is that for linux, this can, in theory, be audited.

    For Windows...no. Not a hope. None. At all. Likewise OSX.

    Which means that any and every government that might possibly have any future dispute with the US is, right now, going over all their Windows servers and desktops in the military. diplomatic and intelligence services to see how much they can replace.

    It'll take months just to write up the reports, and months more to run through the political commitees, and even then it'll be very undiplomatic to openly admit the reason for the switch - but in a year or so, I think we are going to see a lot of governments decide that linux is more 'cost effective' in sensitive roles.

  29. fuck the NSA and US Govt by FudRucker · · Score: 4, Insightful

    they destroyed my trust in anything, i dont trust any operating system and software anymore, i dont trust the internet or any encryption method, the US Govt and all its elements have been proven to be a criminal gang of fascist kleptocratic totalitarian warmongering pigs.

    --
    Politics is Treachery, Religion is Brainwashing
  30. Re:AES by TuringCheck · · Score: 5, Funny

    Pick a government. If you trust the Russians use GOST. If you trust the Japanese use CAMILLA.

    Then use all three of them in sequence and hope it would be quite difficult to have them all cooperate to break your encryption.

  31. Re:If it is off - it might get stolen by Dunbal · · Score: 5, Insightful

    you are not important enough to be a target.

    Wrong. You may become important in the future. So you are important enough to target. They are collecting data on everyone, and holding on to it. They just might not be actively going through all the data from everyone (or they might be, if they have enough computing power). But if it's recorded it doesn't really matter if they do it today or in 20 years. They've got you. "If you give me six lines written by the hand of the most honest of men, I will find something in them which will hang him." --Richelieu

    --
    Seven puppies were harmed during the making of this post.
  32. Re:AES by Anonymous Coward · · Score: 2, Informative

    All crypto algorithms have cracks for reduced round variants. Each round diffuses and mixes the state more--ideally increasing cracking difficulty exponentially.

    Whether a break for N of M rounds is sufficient to lose trust in an algorithm is entirely a judgment call, and others disagree with Bruce regarding AES.

    If you want to crank up the security of an algorithm, you should probably choose those from Dan Bernstein. His algorithms tend to be highly parameterized, to please both the tin foil hat crowd, as well as the hardware whiners trying to minimize the number of gates necessary.

    But choosing a more widely used algorithm is more often preferable. You get the benefit of highly tuned implementations, including tuning which reduces weaknesses. It also reduces application complexity. These things are infinitely more important than the mathematics behind the algorithm, at least for the set of publicly vetted algorithms that meet a minimum standard of acceptability.

    AES is _seems_ less secure than alternatives in large part because it's so visible. More academics are banging away on it. Other alternatives have received less attention, and there may be more serious, undiscovered flaws. Are there other algorithms that are better than AES? No doubt. But you're playing Russian Roulette by trying to pick them.

    Don't forget that AES is derived from Serpent, which is an algorithm invented by some European academic cryptographers unaffiliated (as far as we know) from any government. Also, Bruce himself has published successor algorithms to Twofish. Why not choose one of them instead?

  33. Remember this? by Voline · · Score: 5, Interesting
    Remember this? In December 2010 there was a scandal when a developer who had previously worked on OpenBSD wrote to Theo de Raadt and claimed that the FBI had paid the company he had been working with at the time, NETSEC Inc (since absorbed by Verizon), to insert a backdoor into the OpenBSD IPSEC stack. They particularly pointed to two employees of NETSEC who had worked on OpenBSD's cryptograhpic code, Jason Wright and Angelos Keromytis. In typically open-source fashion, de Raadt published the letter on an OpenBSD mailing list. After the team began a code audit de Raadt wrote,

    "After Jason left, Angelos (who had been working on the ipsec stack alreadyfor 4 years or so, for he was the ARCHITECT and primary developer of the IPSEC stack) accepted a contract at NETSEC and (while travelling around the world) wrote the crypto layer that permits our ipsec stack to hand-off requests to the drivers that Jason worked on. That crypto layer contained the half-assed insecure idea of half-IV that the US govt was pushing at that time. Soon after his contract was over this was ripped out. ...

    "I believe that NETSEC was probably contracted to write backdoors as alleged."

    I'd like to find a more recent report of what they found.

  34. Re:AES by multimediavt · · Score: 2

    The academic crypto community widely considers it secure after more than 10 years of effort to break it (note that twofish does not look less secure, but what makes you think that the NSA could break the AES and not twofish ? In fact nobody can break any of them).

    In fact, you are dumber than you appear. I've said it more than once, encryption is not a magic spell. Trust me, if anyone has the mathematicians and the hardware to break *ANY* encryption it is the NSA. It's been their job for more than 60 years. If you can show me internal NSA documents that prove otherwise, I'll believe you. In the mean time, believe that no encryption algorithm is "secure".

  35. Isn't it really worse than that? by smittyoneeach · · Score: 2

    Isn't the compiler software?
    And doesn't the compiler target an architecture?
    And isn't that architecture rife with microcode you never see?

    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
  36. BIOS loads modules from cards, to boot raid or pxe by raymorris · · Score: 3, Interesting

    The reason you can boot from a raid card or network is because the BIOS loads and runs BIOS modules from those cards. You may be familiar with the Linux kernel, where most of the functionallity is in modules that become part of the kernel. BIOS is the same. One differentiator between a server motherboard and a consumer one is how much BIOS memory it has, to load modules from many different pieces of hardware. I have one machine with at least four different pieces of hardware that include BIOS. MOST of the BIOS on that machine didn't come with the motherboard.

  37. we already do that for QC. All maintainers see all by raymorris · · Score: 4, Interesting

    For the Linux kernel, that's how development is done already, for quality control and bloat reduction. Nobody can commit by themselves, it takes at least three people to get a change into mainline. Each developer has their own copy of the tree into which changes are pulled, so they can see all changes that are made, and who made them.

    For each part of the kernel, there are a number of people particularly interested in that bit who watch it and work on it. For example, the people making NAS and SAN devices and services keep a close eye on the storage subsystems. Myself, I watch the cm storage stack generally, more specifically LVM, and even more specifically snapshots. There are a few dozen people around the world with special interest in that particular part of the code. No backdoors will come in without some of us spotting it. What COULD happen is that some code could come in that isn't quite as secure as it could be.

    It just so happens that I'm a security professional who uses advanced Linux storage systems for a security product called Clonebox, so that's at least one security professional closely watching that part of the code. Thousands of others watch the other parts.

    It's convenient that a lot of the development is done by companies like Netapp, Amazon (S3) and Google. You can bet that when Amazon submits code, Netapp and Google are looking closely at it. When RedHat submits something, Canonical will point out any reasons it shouldn't be accepted.

  38. Re:we already do that for QC. All maintainers see by DF5JT · · Score: 2

    When RedHat submits something, Canonical will point out any reasons it shouldn't be accepted.

    I had a good laugh when I read this.

    Red Hat employs hundreds of software engineers, contributing a lot to the entire Linux ecosystem. Canonical's resources in terms of code contribution are laughable in comparison and being a streamlined business Cacnonical has few, if any, resources to review third party code. They are happy to ride along, but the number of people at Canonical who actually write and read code outside the shiny UI field are hardly those with the expertise to review low level kernel code.

  39. NSA's actions damage their credibility forever by caseih · · Score: 3, Insightful

    Over the years the NSA has contributed what seemed like positive things to computer security in general, and Linux specifically. They have helped correct some algorithms to make them more secure, and implemented things like SELinux.

    However, now that their other actions and intentions have been starkly revealed, any and all things the NSA does (and has done) are now cast into steep doubt. Which is unfortunately because the NSA has a lot of really smart cryptographers and mathematicians that could greatly contribute to information security.

    Now, however, their ability to contribute in any positive way to the open source community, or even to the industry at large, is gone forever. No one will trust them again. A sad loss for them, but also a potential loss for everyone. Nothing will quite be the same from here on out. And in the long run, without the help of smart, honest mathematicians and cryptographers, our security across the board will suffer. It's not the the revelations caused the damage, but that the NSA sabotaged things. Shame on them. Kudos to Snowden for helping us learn the extent of the damage.

  40. Re:AES by michelcolman · · Score: 2

    Hashes have collisions: multipe strings can result in the same hash, although hash designers try to minimise this as much as possible. If you keep hashing the password over and over again, like 5000 times, the resulting number of possible results will get smaller and smaller and therefore the final key, which you use to encrypt the actual file, will be less safe. Not a good idea.