Slashdot Mirror


Linux Distributions Storing Wi-Fi Passwords In Plain Text

Bill Dimm writes "An article on Softpedia claims that Linux distributions using NetworkManager are storing Wi-Fi passwords in plain text in /etc by default. The article recommends encrypting the full disk or removing NetworkManager and using a different tool like netctl. Some of the article comments claim the article is FUD. Is this a real problem?"

234 of 341 comments (clear)

  1. NSA DID IT! by CajunArson · · Score: 4, Funny

    Must have been the NSA! I should have known that commit from uberspydude@ftmeade-totallynotNSA.gov was suspicious.

    --
    AntiFA: An abbreviation for Anti First Amendment.
    1. Re:NSA DID IT! by Yakasha · · Score: 1

      Must have been the NSA! I should have known that commit from uberspydude@ftmeade-totallynotNSA.gov was suspicious

      Was he asking you for any laaauunch cooodes?

    2. Re:NSA DID IT! by Bing+Tsher+E · · Score: 2

      Everybody was busy reading the source code. It's elite and all that stuff. Nobody bothered to read the plaintext files in /etc. That would be beneath them.

    3. Re:NSA DID IT! by mikael · · Score: 1

      Everyone knows they were just: 00000000

      --
      Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
  2. KNetworkManager by chill · · Score: 5, Informative

    Simple. Stop using Gnome shit.

    How can I store passphrases associated with encrypted wireless networks?
    The first time KNetworkManager is used, it will try to set up the KDE Wallet (encrypted password storage) to save wireless network passphrases and other passwords. If you choose not to use KWallet, KNetworkManager will store passwords in its configuration files, only readable by the logged in user.

    http://old-en.opensuse.org/Projects/KNetworkManager#Wireless_LAN

    --
    Learning HOW to think is more important than learning WHAT to think.
    1. Re:KNetworkManager by MacDork · · Score: 2, Funny

      It won't matter what you use if you let anyone on your network with an android phone. Oh hai, let's back up everything to teh googles.

    2. Re:KNetworkManager by Anonymous Coward · · Score: 5, Informative

      Are you stupid? NetworkManager is the same underlying component. It will also store passwords in plain text for _system_ connections, where KWallet is unavailable (it is only available after graphical login).

      This is a non-story. Every other operating system not only does exactly the same, they are forced to do the same. Because there is no other way unless you want your Wi-Fi to be offline until you login, and if you do, well, then this problem is not present because NetworkManager will use KWallet OR gnome-wallet, depending on the session you opened.

      The author basically manually checked the "I want to make this connection available to other users" checkbox and then is surprised when the connection is actually made available to other users. Stupidity, plain and simple.

    3. Re:KNetworkManager by Anonymous Coward · · Score: 1

      I really like to know what Gnome as to do with any of this...
      NetworkManager (the daemon) uses connection informations stored under /etc/NetworkManager for wifi connections avaible to all the users of the system.
      It is a functionality independent from the desktop enviroment used.
      You can create them via the desktop applet (after gaining superuser permissions) or by hand by editing the text files as root.
      The password is in cleartext but the configuration files are protected by normal file system permissions.
      So, to get to them someone must get your hard disk; or boot from a usb key; or in some way get root access; and well, if someone gets to do that, the wifi keys are your last problem.
      Now, we could maybe discuss using obfuscation or some sort of system level master password encrytion ecc.
      But it has nothing to do with the fact that GNOME is crap.

      Now, to tell the truth, BOTH GNOME and KDE are tecnically crap; there is reason if after more then ->15 Years- of work we still don't have a viable Linux desktop for the masses: primadonna developers more interested in boosting their childish egos than creating a really usable desktop.
      Primadonnas throwing out untested full-of-bugs crap and then blaming users when they rightly complain about it. (It's Open Source! elevated as the master excuse for doing shitty work).
      "Developers" thinking the main function of a PC is running their pie-in-the-sky "dream desktop"...

    4. Re:KNetworkManager by chill · · Score: 2

      NetworkManager was originally developed by Red Hat and now is hosted by the GNOME project.

      --
      Learning HOW to think is more important than learning WHAT to think.
    5. Re: KNetworkManager by mrclisdue · · Score: 1

      Are you sure it wasn't the nail? cheers,

    6. Re:KNetworkManager by mveloso · · Score: 4, Interesting

      Well actually, you can stash the password in a system-level store, like a keychain, so it's not in plaintext. AFAIK that's what mac os x does.

      They don't have to use plaintext - they could use, say, blowfish. Sure they key would have to be stored somewhere. But anything that isn't plaintext is more work to crack. It's substantially more work to dig a key out of a system and decrypt something than it is to do a

      cat pasword_file

      As someone once said, security is about layers. Sure the password will be unencrypted in RAM - but you don't have to make it easy for people to get it. Is WEP better than no encryption? Sure - the extra 10 minutes may dissuade someone and they'll move on. Plus breaking the encryption means intent, which may be useful if there ever was a court case stemming from the activity.

      There's a big difference between "yeah, i broke the encryption, it was so easy" and "I just sort of stumbled on this network."

    7. Re:KNetworkManager by TheCarp · · Score: 5, Interesting

      I mostly agree, especially about it being a non-story.

      Part of the issue, I think, is conflating a wifi password with other passwords. A wifi password has several properties that set it apart from others.

      For one thing, it is usually shared between devices, even ones used by different people (lets ignore advanced schemes, if you are setting up some manner of authentication none of this applies).

      Secondly, it is only useful within a small geographic location. A website or email password can be used by someone half the world away. A wifi password is only useful within range of your particular access point.

      Thirdly, the exposure is mostly limited. While its true that someone could drive up to your AP and start transmitting child porn, and that could lead to some serious consequences; the real abuses here are only attractive to a limited audience and not something generally useful or generally financially useful.... it doesn't give them access to your accounts, even your email downloads are likely encrypted to him.

      Overall, exploiting this is more work than it is worth much of the time, and if it wasn't, it isn't like it is impossible to add more controls. If you really are paranoid, you can always drop wifi devices onto their own segment that can only talk to a VPN endpoint....shit then you can run the wifi passwordless and use the VPN for protection.

      In any case, this is 99.9% a non-issue.

      --
      "I opened my eyes, and everything went dark again"
    8. Re:KNetworkManager by deviated_prevert · · Score: 5, Informative

      It is not important that the directory /etc is not visible without root over a network connection! What is important is that most people who read this article will now claim that core Linux network managers are insecure,,,LOL

      OF course if you enable remote access to any OS as root then all bets are off. You either make damn sure that whoever has access is trusted or you are stupid, Lets not cloud the article with inconvenient facts like network access to a box as root is not enabled by default and anyone who enables it by default unless they are absolutely stupid or the connection is encrypted and otherwise network secure deserves to get hosed.

      Getting in the habit of not having to have root all the time is the strength of Linux and is why Windows sucks dead horse balls as an unprivileged user under Windows gets plastered with requests for the system password all the time. Whereas most Linux distros have software access privileges set in a sensible way WHICH DOES NOT INCLUDE THE ABILITY TO READ AND WRITE TO PLACES LIKE /usr /etc /var unless you are installing software and people who write software for Linux do not expect to write configurations anywhere except in the home user after an install. If someone writes a program which will send password data from /etc to a honeypot and that program is popular because it makes fart noises or plays poker on the net then as far as I am concerned the users got what the deserve. Same as Windows users that install garbage ware at the drop of a hat so that they can do something like play poker on the net from places like gamerareus.ru or happy_nice_pussgames.ru or bollywoodsy_games_freesongs.in ...as one of my friends seems to have a habit of doing so that he can play games on his WINDOWS laptop.

      THIS WHOLE FREAKING ARTICLE IS MORE BULLSHIT AND FUD to amuse the crowd who come to slashdot to bash away at Linux most of whom do not even know wtf /etc is in the first place!

      If a person that has root wants to enable a login by a passphrase at boot they can or with any linux distro they can choose to only enable network login after a user login EITHER WAY IS SECURE because the place where the passphrase is stored is invisible to the network, unless like I said remote login via root is enabled. Again it comes down to trust, you either trust the user or you do not plain and simple.

      THE ONLY REASON YOU CAN TRUST OSS ON LINUX is because you can see the source and there is nowhere for malware to hide. Anyone that writes and compiles a binary for Linux then does not allow access to the source is on the same level of trust as those who write software for Windows. IT ALL COMES DOWN TO TRUST. Be very suspicious of any software for Linux that requires /root r+w after install. Gnome 2 network manager was flakey and thank heavens they fixed it in Gnome 3 the fact that it wrote network passphrases to a file in /etc was not a security issue unless someone wrote a piece of spyware to discover them and linux users were stupid enough to run it as root. Something which no one here seems to think has actually occurred. If someone argues this then point out the actual malware that Linux users were hosed by...eof and end of story.

      --
      This message was not sent from an iPhone because Peter Sellers really was a deviated prevert without a dime for the call
    9. Re: KNetworkManager by Anonymous Coward · · Score: 3, Informative

      Storing it in the keychain is storing it as plaintext. There is _no_ way to store a secret in a secure way if it's to be used without user interaction or a TPM device.

    10. Re:KNetworkManager by entrigant · · Score: 1

      So...

      cat password_file
      vs
      cat /path/to/my_super_secret_key | gpg --batch --passphrase-fd 0 -d password_file

      The difference just doesn't seem that pronounced to me.

    11. Re: KNetworkManager by Ksevio · · Score: 3, Informative

      You seemed to have missed the point of the parent post. It may not be 100% secure, but it's an extra hurdle someone must go through to get the password. It's not just opening a text file in gedit. The alternative to full security doesn't have to be no security.

    12. Re: KNetworkManager by dns_server · · Score: 3, Interesting

      Obfuscation provides no security, it just looks like it does.
      If the operating system needs to perform a series of steps to turn the encrypted password back into plain text so can an attacker.

    13. Re:KNetworkManager by rev0lt · · Score: 1

      THE ONLY REASON YOU CAN TRUST OSS ON LINUX is because you can see the source and there is nowhere for malware to hide.

      While I do understand what you're saying, either you are a OS wizard or you are _TRUSTING_ that OTHER PEOPLE checked the code for malware. Since this is Slashdot, I'd bet on the latter. Truth is, there are always obscure and not-so-documented parts of every operating system where you don't really know what's happening, specially (in Linux's case) when you have several commercial companies contributing to it. Most modern Linux distros ALLOW the loading of blob's right in the kernel - they call them drivers. And if you think having the source is the proof you need, think again. Just look at the recent arguments about RNG, or a bit further away, the whole "backdoor in OpenBSD's IPSEC" discussion.

      Be very suspicious of any software for Linux that requires /root r+w after install

      Having root +rw is no big problem (I don't like it, but its not suid), since all root-level processes have access to what they want anyway. However, a malicious application may be able to piggyback into sudo to easily gain root access. For that, I'd recommend using an operating system that does not rely on sudo (eg. BSD) :)

      unless someone wrote a piece of spyware to discover them and linux users were stupid enough to run it as root

      Spyware DOES NOT require root privileges. Most distros will run the software spyware wants to spy on with the current user's privileges - this usually includes some parts of X itself, browsers and most of other pieces of software that may handle sensitive information. There is a huge impedance between GUI systems an UNIX permissions system, but no one seems to care. The only reason why we don't have a huge spike in spyware for Linux (or OSX) is because they still don't matter in the big pool of users. And all those "modern vulnerabilites" (social engineering/phishing, CSRF, etc) still work on most*NIX users.

      UNIX operating systems are not about user security, but system security - you may have a heavily "infected" user, but you cannot access or change system wide settings on the machine. The same way, a given user may not be able to interfere with other user's settings (much more "lets sandbox user's crap" than "lets protect users").

      Want to be above average? Sandbox your browser and your applications in different users. As it SHOULD be. And deal with the problems from X for this (not shure if it still requires being run as root, or if its possible to have an ACL on the socket).

    14. Re: KNetworkManager by Ksevio · · Score: 3, Insightful

      That's a common misconception. Obfuscation can provide security is the attacker doesn't have the means to de-obfuscate, isn't smart enough to find it, or doesn't have the time/resources to get it. You shouldn't be fooled into thinking you're fully secure, but that's kind of a moot point when talking about WiFi passwords when the attacker has physical access

    15. Re:KNetworkManager by icebike · · Score: 1

      Simple. Stop using Gnome shit.

      How can I store passphrases associated with encrypted wireless networks?
      The first time KNetworkManager is used, it will try to set up the KDE Wallet (encrypted password storage) to save wireless network passphrases and other passwords. If you choose not to use KWallet, KNetworkManager will store passwords in its configuration files, only readable by the logged in user.

      http://old-en.opensuse.org/Projects/KNetworkManager#Wireless_LAN

      These configuration files are only readable by root on my opensuse box (specifically NOT by the logged in user). NetworkManager uses a privileged back end to read these files. (That's another issue, obsessed over up-thread).

      So realistically, the story is pretty much a bunch of FUD. (In fact, if you read the article they pretty much discredit any of their recommended solutions by pointing out how easy it is to get around them).

      True, if someone gets your laptop and puts in linux boot/recovery CD, they can get at your wifi passwords. But they already have your MACHINE IN HAND, so that war is already lost.

      When you consider how easy it is to crack a wifi password the specter of any one stealing your laptop to get them seems a bit over the top.

      Ok, sure, they should be stored encrypted, but if you wanted that option you could have and / should have chosen to store them in your wallet.
      And in this day and age, you could have and should have used an encrypted hard disk. Either way, there is going to be another password you will need to remember somewhere.

      --
      Sig Battery depleted. Reverting to safe mode.
    16. Re: KNetworkManager by thegarbz · · Score: 1

      This, 1000 times this.

      Obfuscation providing no security is almost turning into an internet meme. I'd argue that all security is obfuscating. Whether you're obfuscating the location of a file forcing the hacker to manually go searching, or obfuscating the method of reading the file forcing a hacker to brute force decryption keys, it's still a form of security.

    17. Re:KNetworkManager by mysidia · · Score: 1

      Well actually, you can stash the password in a system-level store, like a keychain, so it's not in plaintext. AFAIK that's what mac os x does.

      Well... Mac OS X is closed source, so I can't tell you exactly what it does. But since the WiFi is key is presented, without the user having to log in --- I can assure you, that any keys necessary to access the credentials are available, and anyone who can manage to escalate to root access can get them, export them, or even view the Wifi credentials.

      They don't have to use plaintext - they could use, say, blowfish. Sure they key would have to be stored somewhere

      As you should know; the security provided by symmetric cryptography is no better than how strongly you can protect the key.

      And the key must be stored. It's a simple fact that the key must be stored, for without it -- the system could not connect to the network!

      It's substantially more work to dig a key out of a system and decrypt something than it is to do a

      cat pasword_file

      This is not true. It is substantially more work to build the software that has to handle the WiFi credentials, though.

      It's a one-time effort for a hacker to build their tool that does the equivalent of "cat password_file" and distribute it. From that point forward, using the "hacker" tool to cat the credentials is no harder than "cat password_file".

      It is much less effort to build the custom credential dump tool, than the extra effort it took to actually develop the encryption into the software!

    18. Re: KNetworkManager by DrPBacon · · Score: 1

      There are _many_ ways to store information in ways that would take hours, days, weeks, months to decipher. Plaintext is not one of them.

      --
      Spent All My Mod Points
    19. Re: KNetworkManager by DrPBacon · · Score: 1

      Ah yes, the attacker. With his suite of attacking tools for hacking every obfuscation scheme thought up in existence. And that other tool for decrypting multiple layers in one go. Or maybe it's simpler. He looks at the memory. The password will be inevitably held in a string variable somewhere. He's like batman, but not batman.

      --
      Spent All My Mod Points
    20. Re: KNetworkManager by DrPBacon · · Score: 1

      I'd choose multi-layer obfuscation over a P,Q elliptic curve where NIST chooses Q any day.

      --
      Spent All My Mod Points
    21. Re:KNetworkManager by buchanmilne · · Score: 1

      I have used KDE for a long time. My laptop has an embedded 3G card that works better / more easily with NetworkManager/ModemManager than with more traditional (e.g. pppd, wvdial etc.) setups. Thus, I tried KNetworkManager.

      However, I use WiFi networks with both WPA2 Personal, and WPA2 Enterprise, security. I don't mind my WiFi keys for the WPA2 Personal networks being stored somewhere, but I don't want my passwords for WPA2 Enterprise networks stored *anywhere*. Before trying NetworkManager/KNetworkManager, I would have all the WiFi configuration in /etc/wpa_supplicant.conf except the username and password, and run wpa_gui. The first time a specific instance of wpa_supplicant connected to said WiFi network, wpa_gui would pop up a dialog prompting for username and password, and I wouldn't need to enter the same credentials for the lifetime of that wpa_supplicant process (typically longer than the lifetime of the password).

      However, with KNetworkManager, my options are:
      -Store
      -Always Ask

      In the 'Store' case, due to my KDE Wallet settings (including 'close when screensaver starts'), now every time I resume my laptop, I will be prompted to enter my KDE wallet password (longer/more complex than the WPA Enterprise password).

      In the 'Always Ask' case, I am required to enter my password *every* *time* I associate to the the SSID.

      So, maybe it is better than nm-applet (I haven't used nm-applet *that* much) or the Gnome 3 integration (which I only see when trying to help a colleague), but it most definitely isn't better than the old /etc/sysconfig/network-scripts in conjunction with wpa_supplicant approach that I have been using for the past 7 years. On Mandriva (and Mageia), the net_applet tool can do all that configuration anyway, so there really doesn't seem to be any benefit. Of course, systemd will most likely require NetworkManager only at some point. I hope someone fixes NetworkManager to be more sane before then.

      At present, I don't care about having a WiFi network connected before a user is logged in. Surely on a typical laptop, that occurs once a month or so? We have network authentication with cached crendentials, and I can kinit after logging in anyway. If this is really a requirement, using TPM (with all of its failings) would probably be a better approach.

    22. Re: KNetworkManager by Carewolf · · Score: 1

      If the system can decrypt the information automatically and the way it does so is common knowledge (being a standard or the software open source). It will take any attacker just as long to access the information as it takes your system. So you could make it so that it would take months to decrypt, but that would mean rebooting your machine would take months because it needs to do the same thing.

    23. Re: KNetworkManager by DrPBacon · · Score: 1

      I meant more as in human analytical time. If you write some clever code to obfuscate the way you access a file in a way that's elaborate, clever and unpublished, it's going to take a theoretical attacker a pretty long time to work out what the hell kind of bullshit you were doing. I'm not saying it's impossible, but it can easily be not worth the time.

      --
      Spent All My Mod Points
    24. Re: KNetworkManager by lars_stefan_axelsson · · Score: 1

      That's a common misconception. Obfuscation can provide security is the attacker doesn't have the means to de-obfuscate, isn't smart enough to find it, or doesn't have the time/resources to get it.

      But in this day and age of almost exclusively class breaks that's not a realistic threat model as it hinges on the fact that you're the only one that does that particular obfuscation. So getting NetworkManager to do something "better" would be pointless. The attacker would not only have access to that information as it would be spread far and wide, his tools would deobfuscate automagically.

      Obfuscation would work for the likes of the NSA, and then on top of everything else as icing on the cake. For the rest of us, not so much.

      --
      Stefan Axelsson
  3. From a comment there by Anonymous Coward · · Score: 5, Insightful

    While it is true that the passwords are stored as plain text, in order to view the "plain text" one must have root privileges to view the text file.

      I would venture to state that "if" one's system is open enough (a stranger has root privileges) for some unwanted person to view that text file, then one has much more to worry about than the fact that one's wifi password is not encrypted.

      Also, to fix it, one must disable the "Available to All Users" option... thus requiring one to enter one's password for wifi on every login... which is annoying to say the least.

      Personally, I think the issue is pretty much a mountain out of a molehill... because, and again, if to view it, you have to be root, then the whole system is vulnerable and not just the wifi password.

    Which completely ignores security vulnerabilities in Linux, as many advocates do. Still, the relevant point is that for someone to steal your wifi password this way, they're already in position to do much worse.

    1. Re:From a comment there by MacDork · · Score: 3, Insightful

      If someone has physical access to your hardware, they're already in a position to do much worse. Encrypted drive? Let me just load this keylogger into BIOS mmm kay?

    2. Re:From a comment there by gweihir · · Score: 5, Insightful

      No, it does not. Have you actually read the part "" one's system is open enough (a stranger has root privileges) for some unwanted person to view that text file, then one has much more to worry about than the fact that one's wifi password is not encrypted."? Apparently not. As the password has to be available in plain at the authentication time, this nicely sums up, why the password storage is not a problem. But to understand that, you would actually need to have a minimal clue what you are talking about...

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    3. Re:From a comment there by Anonymous Coward · · Score: 1

      Exactly. How is this any different than using the show passphrase checkbox in Windows? It's still real world readable to authorized users. Much ado about nothin' is what this is.

    4. Re:From a comment there by Anonymous Coward · · Score: 1

      If you're using Softpedia as a knowledgeable source, then you've got much bigger problems than you can imagine!

    5. Re:From a comment there by bonehead · · Score: 1

      I would venture to state that "if" one's system is open enough (a stranger has root privileges) for some unwanted person to view that text file, then one has much more to worry about than the fact that one's wifi password is not encrypted.

      This ignores multiuser systems.

      Simply having an account on a multiuser system does not mean I want all admins on that system to have access to my info.

      Worse than that, if you accept that argument as valid, then there is no point in encrypting and/or hashing passwords. Ever. Just store the file in a "safe" place.

    6. Re:From a comment there by amorsen · · Score: 4, Interesting

      You cannot hash wifi passwords. The password needs to be available in plain text form at authentication time. Root can always get to the unencrypted bits, no matter which weird obscuration mechanism you try to use. Even if you require the user to type in an unlock key every time, root can sniff the key.

      Mandatory access control like SELinux or AppArmor can actually provide some security in this case. Sprinkling magic encryption dust cannot.

      --
      Finally! A year of moderation! Ready for 2019?
    7. Re:From a comment there by sunderland56 · · Score: 1

      This ignores multiuser systems.

      Multi-user systems don't need all users to be an administrator.

      Even on a personal machine never used by anyone else, a normal Unix/Linux system won't have administrative rights on the regularly used login account.

    8. Re:From a comment there by MacDork · · Score: 1

      Can't protect the system from a highly funded government entity? Shucks why bother protecting it at all! I would rather it be secure against any idiot with a bootable usb drive even if the NSA could get in.

      Anyone with a usb stick can ruin your shit. There's no magic going on at the NSA. I merely point to them to illustrate the staggering enormity of software available which can defeat the simple "encrypt it" plan from an attacker with root and/or physical access to your box.

      Security theater is security theater. Why waste developers' time implementing a feel good encryption scheme that is hardly better than no encryption at all? I can't imagine this would be a high priority task. Also... Open Source: If it matters so much to you, fix it yourself.

    9. Re:From a comment there by bonehead · · Score: 1

      Multi-user systems don't need all users to be an administrator.

      True.

      But in most organizations of any size, a multi-user system will also be a multi-admin system.

    10. Re:From a comment there by sunderland56 · · Score: 1

      Most corporate sysadmins are in charge of setting up things like wifi access - so they will already know the wifi password.....

    11. Re:From a comment there by Anonymous Coward · · Score: 1

      First rule of computer security: if someone has physical access to your hardware, it's no longer your hardware.

    12. Re:From a comment there by blueg3 · · Score: 3, Insightful

      This.

      This comes up all the time, and people are always shocked and horrified that certain data are stored in plain text. They want instead for magic encryption dust to be sprinkled on things. But often it's the case that there is no reasonable alternative. Data like WiFi passwords have to be available in plain text at the time they are used. If your system is configured so that a WiFi connection should be available to any user (or if it should be connected at boot time, before user login), then it must be available in plain text. If you encrypt it, the same party that would have had access to the plain-text form instead needs access to the encryption key, which means that the encryption is doing nothing.

      There are some design failures that could be improved. User-specific WiFi connections can have their passwords encrypted, but they are often not as well-supported or well-designed as they should be. User-specific networking configuration in general under Linux is not very well supported (to be fair, it's tricky), but it's a good option for any really multi-user system.

      Encrypting the whole disk is certainly an option, as the article points out, but it's solving a different problem. There's tons of plaintext data that your system needs to have access to that's potentially sensitive. That's the nature of the system. You can't realistically encrypt it from the perspective of the "live" system -- the live system would just need the encryption key, too -- but you can encrypt the disk, which encrypts it from an attacker that has access to the powered-off hardware. However, a) this is a much broader protection than solving "WiFi passwords aren't encrypted", b) if an attacker has access to your hardware, realistically, WiFi passwords are the least of your concerns, and c) full-disk encryption can be tricky to do right on laptops, which are the main user of WiFi.

    13. Re:From a comment there by bonehead · · Score: 1

      They will know the company's wifi passwords.

      That doesn't mean they have any business seeing, for example, the home wifi password on an employee's company laptop.

    14. Re:From a comment there by KDN · · Score: 1

      Um, not quite. assuming your taking about WPA or WPA2, the PSK is only needed to build the PMK (Pairwise Master Key). After that is no longer needed. But, if you change the access point or the NIC, you need to build it again. If your worried, go to enterprise mode.

    15. Re:From a comment there by entrigant · · Score: 1

      You just described the evil maid attack. There is a technology designed to protect against that. It's very common in laptops, but hard to find in desktop boards. /. inexplicably hates it. It's that magic TPM chip. Boot time chain of trust is a well researched, well understood, and, when ignorance isn't pushing it out of markets like desktops, a mostly solved problem.

    16. Re:From a comment there by Megol · · Score: 1

      What is sad is that it is 2013 (soon 2014) and the operating systems most used by ordinary people doesn't per default implement fine-grain protection. Now in theory Windows as default is better fitted for doing something like this than a standard Linux installation - but in practice the reverse is true. In the few places where there are some fine grain protection like e.g. Android it's effectively disabled as programmers are lazy and people would be inconvenienced.

    17. Re:From a comment there by intangible · · Score: 3, Informative

      TPM is hated by Slashdot because the mobo manufacturers have a dirty habit of preloading the Microsoft keys and not allowing you any way to remove the Microsoft keys or use your own, effectively making it useless for any real security purpose (beyond vendor lock-in to Microsoft).

      In fact, the ARM Windows RT tablets were required by Microsoft to force Microsoft's TPM SecureBoot keys only.

      Microsoft's dirty tactics and motherboard manufacturers with their head in their ass are the reason TPM is shunned.

    18. Re:From a comment there by MacDork · · Score: 1

      All your software doesn't matter if your keyboard has a wireless transmitter hidden in the cable. If I know your password, I can sit down and log in as you. It would not be hard for a maid to replace your keyboard in your absence.

    19. Re:From a comment there by MacDork · · Score: 1

      Yeah, layered security. You have a six foot thick iron door on the front of your house, right next to your 25mm thick glass window. Good luck with that.

    20. Re:From a comment there by VortexCortex · · Score: 1

      You cannot hash wifi passwords. The password needs to be available in plain text form at authentication time.

      Au Contraire! My cybernetic neural network is an effective hashing function for my wifi password. Not even root users can get at the data when stored distributed across my memory buckets. Of course, this means typing in a password, however it's far more secure. The key is stored divided into parts and accessed via chain of cognitive-space memo-recall triggers, whereby the hash of one spacial entity, "Start of password" results in a few characters being recalled and also points to the next hash to recall. The episodic nature of my somewhat human intellect handles the process transparently.

    21. Re:From a comment there by mysidia · · Score: 1

      Mandatory access control like SELinux or AppArmor can actually provide some security in this case. Sprinkling magic encryption dust cannot.

      Maybe, but this is not the right way. You should switch your wireless authentication to 802.1X with certificate-based authentication, and use a physical smart card, as the machine certificate, for authentication of access to the network: whether WiFi access, or 802.1X wired port security.

    22. Re:From a comment there by buchanmilne · · Score: 1

      c) full-disk encryption can be tricky to do right on laptops, which are the main user of WiFi.

      Why?

      I have been using full (or, full enough, /boot isn't encrypted) disk encryption on my laptops for years. Since my only non-laptop is a workstation in a secure facility, I only did full disk encryption on that a few months after first doing it on my laptop (which is a much bigger security risk than my workstation).

    23. Re:From a comment there by amorsen · · Score: 1

      If you do that, NetworkManager does the right thing.

      Not that I have ever seen an office network configured that way, but I am sure they exist. It must be annoying to have a smart card reader glued to your phone though.

      --
      Finally! A year of moderation! Ready for 2019?
    24. Re:From a comment there by amorsen · · Score: 1

      Fine, just do not click the button to make the connection system-wide. Then NetworkManager works exactly as you want. However, the password is still available in plain text form at authentication time, in the widget where you typed it.

      --
      Finally! A year of moderation! Ready for 2019?
    25. Re:From a comment there by amorsen · · Score: 1

      How are you going to build the Pairwise Master Key at bootup if you do not have the plaintext key? Many (most?) networks have an authentication timeout, so just storing the PMK is not a complete solution.

      --
      Finally! A year of moderation! Ready for 2019?
    26. Re:From a comment there by amorsen · · Score: 1

      I do not agree with you that fine grain protection is disabled in Android. I love that apps show me which permissions they expect. The only thing I want more is to be able to deny them those permissions even when they ask for them. I use third party tools for that, but it is admittedly not the perfect solution.

      --
      Finally! A year of moderation! Ready for 2019?
    27. Re:From a comment there by blueg3 · · Score: 1

      Purging the encryption key from the system when it's in any state other than powered off completely (i.e., sleep and hibernate) is tough, and so it's often not done well. Laptops typically spend a lot of time both in one of these suspended states and also vulnerable to theft (or other unauthorized physical access).

      It's not actually any harder for laptops than for desktops, except that the typical usage and attack model are different.

    28. Re:From a comment there by mysidia · · Score: 1

      It must be annoying to have a smart card reader glued to your phone though.

      There are alternatives to physical smart card readers, such as little Yubikey nano-style USB token "stubs", that provide a hardware authentication token integrated with a USB or micro-usb connector --- with little or no footprint outside the USB connector of the smart phone or laptop.

    29. Re:From a comment there by amorsen · · Score: 1

      Fair enough, let us see if we can get the people complaining about the plain text passwords to buy Yubikeys. It is a sensible choice, for sure.

      --
      Finally! A year of moderation! Ready for 2019?
    30. Re:From a comment there by KDN · · Score: 1

      From what I remember, PMK is all that is needed for WPA2. I don't have my SANS617 books handy, but from what recall, the PMK is built from the SSID, length SSID, AP MAC, Client MAC and PSK and then hashed 4096 times to deter dictionary attacks. On connection request, the PTK is built from the PMK, AP nonce and client nonce.

    31. Re:From a comment there by amorsen · · Score: 1

      You obviously have superior knowledge of this topic. Storing the PMK sounds like an excellent solution. Of course the PMK is still almost as sensitive, but at least it will keep people quiet.

      However, what if there are multiple APs with the same SSID and PSK? In smart modern networks they all pretend to be just a single AP so roaming can be done without rekeying, but what about the less clever networks? Having to retype the key until every AP has been visited could be tedious.

      --
      Finally! A year of moderation! Ready for 2019?
    32. Re:From a comment there by KDN · · Score: 1

      If you have a large place, go with WPA2-Enterprise instead of WPA2-PSK. In enterprise mode, there is no PSK. Every client gets their own PMK when they authenticate. Granted, it assumes all users have ids and passwords, but that should be the case for any large installation. Some clients will have problems when the user password changes. You may need to delete the WLAN entry and then let it be discovered again.

  4. Re:FUD by sideslash · · Score: 5, Funny

    It's anti-Linux [...] -Stallman fan

    Fraudster! You didn't put GNU/Linux.

  5. Security - and a false sense of security by Anonymous Coward · · Score: 2, Insightful

    The OS has to be able to decrypt the password to connect to the wifi network.
    Windows stores the password as an (unencrypted) hex string in the registry. Guess I've gotta go with full-disk encryption then...

    1. Re:Security - and a false sense of security by jones_supa · · Score: 2, Informative

      Windows stores the password as an (unencrypted) hex string in the registry.

      Just to clarify...

      Windows XP stores WiFi passwords unencrypted in registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters

      Windows 6.x stores WiFi passwords in encrypted XML files under hard disk folder %PROGRAMDATA%\Microsoft\Wlansvc\Profiles\Interfaces

    2. Re:Security - and a false sense of security by Anonymous Coward · · Score: 2, Informative

      They are not encrypted. For that it would be necessary to use a user private key. Instead, they are obfuscated with a system key: http://securityxploded.com/wifi-password-secrets.php

      They are trivial to recover.

    3. Re:Security - and a false sense of security by amorsen · · Score: 2

      What exactly does it help that they are encrypted? The system can obviously decrypt them, otherwise it would not be able to use the passwords at all. Therefore the encryption is just obscuration, and it might lead people to apply insufficient protection to the files themselves in the belief that the contents are not sensitive.

      --
      Finally! A year of moderation! Ready for 2019?
    4. Re:Security - and a false sense of security by recoiledsnake · · Score: 1

      From your link:

      One catch here is that you can't just decrypt the password even though you are administrator. To successfully decrypt the password, you have to perform the decryption operation under system context.

      There are many ways to execute the code under SYSTEM context, one of the popular way is to inject the code via remote thread [Reference 2] in system process - LSASS.EXE. But this one is more risky, as any flaw in code can bring down the entire system. Much safer way is to create Windows service as System account and then execute the above decryption code from that service.

      How would encrypting it with a user key help?

      --
      This space for rent.
    5. Re:Security - and a false sense of security by amorsen · · Score: 1

      A casual observer should not have root access to your machine.

      --
      Finally! A year of moderation! Ready for 2019?
    6. Re:Security - and a false sense of security by Bert64 · · Score: 1

      And where is the key to decrypt these encrypted xml files stored?
      By making the storage more complicated your just making it more difficult to debug and/or fix when it breaks, if both the key and encrypted data are available (which they must be in order to connect to the wifi network) then the data can be read. There are already freely available tools to extract the wifi keys from windows machines, obfuscating the key provides exactly zero benefit.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    7. Re:Security - and a false sense of security by blueg3 · · Score: 1

      A casual observer might not know how to decrypt them, which increases security.

      This is just grasping at straws. Your attack model for security should never be, "well, hey, at least it protects against a casual observer".

    8. Re:Security - and a false sense of security by Megol · · Score: 1

      Yes but not all parts of the system need to even be able to access it. Limiting the access means less chance for a bug to expose the password.

    9. Re:Security - and a false sense of security by Megol · · Score: 1

      Nor should any user of the machine. Unix isn't the best model for security related stuff.

    10. Re:Security - and a false sense of security by rev0lt · · Score: 1

      toor is looking at you!

    11. Re:Security - and a false sense of security by Ash-Fox · · Score: 1

      Even with vulnerabilities present you would have some "protection".

      What protection?

      I don't get it. If I have root access, I can get what I need on Linux.

      If I have Administrator access, I can get what I need on Windows too.

      --
      Change is certain; progress is not obligatory.
    12. Re:Security - and a false sense of security by Ash-Fox · · Score: 1

      Not if you don't know the password that was used to symmetrically encrypt the key.

      I created a new user account on my Windows 7 system, it had administrator privileges, much like how root is required to view that wireless password on Linux.

      I then logged into that account, opened the wifi settings, ticked show password and I could view the password just fine. Seems like I got access to it just fine?

      --
      Change is certain; progress is not obligatory.
    13. Re:Security - and a false sense of security by amorsen · · Score: 1

      With SELinux you can run with a completely useless root account if you prefer. Unix security has traditionally been a complete joke, but the Windows low-level design is not particularly better. What would you like instead of Unix? AS/400 or zOS perhaps? I do not think either of them can handle graphical applications, but I could be wrong. Adapting them for widespread client-side use seems challenging.

      --
      Finally! A year of moderation! Ready for 2019?
    14. Re:Security - and a false sense of security by Ash-Fox · · Score: 1

      You have to _encrypt_ the home directories. That was the entire point of the post. It's how NTFS _encryption_ works!

      Which doesn't protect anything under %ProgramData% - like the wireless keys for the system.

      Do note we are talking about protecting the system's wireless network configuration, not user specific ones. In this particular scenario, distros like Ubuntu use keychain store applications that by default ask the user to set a master password to protect all their credentials with, something Windows is currently lacking.

      --
      Change is certain; progress is not obligatory.
  6. NetworkManager sucks ass anyway by Anonymous Coward · · Score: 1

    This is just another lead balloon for the project. Why not use a keyring? Why is it automatically set up to use multicast DNS by default? Why is it so damn hard to configure settings for a DHCP client?

    1. Re:NetworkManager sucks ass anyway by amorsen · · Score: 1

      NetworkManager uses the keyring if you keep the passwords user-only. As soon as you enable the connection to start without any user being logged in, a wallet is useless.

      --
      Finally! A year of moderation! Ready for 2019?
  7. So? by allo · · Score: 1

    Why is my networkmanager applet asking for access on kwallet?

    i guess its only stored plaintext, if you want it to autoconnect globally. And then its required to be plaintext.

  8. It's true -- but only root can read them though. by Anonymous Coward · · Score: 1, Insightful

    The basic fact is true - they are there in plaintext.

    But since only root can read the file, it doesn't mean much in terms of a security hole. If the attacker is already root, they have access to everything on your system anyway.

  9. Not for me... by sce7mjm · · Score: 1

    It says they are stored under /etc/NetworkManager/system-connections

    I have the info for my wired and wireless connections, but he passwords are definitely not stored in there plain-text or otherwise...

    Which leads me to ask where does it store them?

  10. Encrypting the full disk by __aaaipu5720 · · Score: 1

    "Encrypting the full disk"

    Is that something I should be doing? New-ish Linux user here.

    1. Re:Encrypting the full disk by mlts · · Score: 1

      A lot of distributions offer LUKS encryption on bootup. I'd highly recommend going that route.

      As for storing a Wi-Fi key plaintext, I consider it a nonissue because any program that gets root will be able to get the Wi-Fi password anyway, and even if it is obfuscated, there will always have to be a way to de-obfuscate it.

    2. Re:Encrypting the full disk by dbIII · · Score: 1

      Not unless it's one of a series of things that you are doing that have a way to get the stuff you have on that disk if you lose the password, or if losing the lot is a better option than someone else getting access.

    3. Re:Encrypting the full disk by __aaaipu5720 · · Score: 1

      Will I see a significant drop in computer speed or anything by encrypting the disk?

    4. Re:Encrypting the full disk by mlts · · Score: 1

      Not really. Encryption isn't going to be a performance issue on any machine made in the past decade.

  11. Re:My password is printed on the side of my router by 228e2 · · Score: 2

    And thats not the worst part. You can't change your PW, and they only offer WEP.

    --
    Since when does being a Socialist mean 'someone who has a different opinion than me'?
  12. Alternative? by duckgod · · Score: 1

    If the alternative is to put in a password for every fucking thing I do like KDE seems to insist then sure go ahead and steal my Wi-Fi password. In addition there must be more interesting stuff to take if access to my computer was compromised.

    1. Re:Alternative? by chill · · Score: 1

      In KDE the Wallet acts as a central keyring for all your passwords. You only have to enter the password for the Wallet the first time something needs access and it'll handle it from there.

      The first time a program tries to access the Wallet you'll get a "allow / disallow" prompt, but that is it.

      If you're bitching about having to enter a password ONCE after logging in then you don't even belong in the discussion.

      --
      Learning HOW to think is more important than learning WHAT to think.
    2. Re:Alternative? by egcagrac0 · · Score: 3, Insightful

      If you're bitching about having to enter a password ONCE after logging in then you don't even belong in the discussion.

      Slightly off-topic, but - If I entered a password to log in, why do I need to enter another?

    3. Re:Alternative? by higuita · · Score: 1

      because you should have multiple levels of security...
      the password for login should be different from the kwallet... and you should even use several kwallets, one for websites, other for local access machines, vpn or more secured data (bank info and other logins).

      a true wallet will auto-close after some minutes unused and require new auth to open (to prove that you are still the correct owner and not a random user trying to steal some data

      it's the same for executing superuser commands... it asks a password as a security layer... you can also disable it if you want, but is very recommended to confirm that you are really allowed to do that

      it's up to you, but look at windows and how the the "easy to use" and "do not ask anything, assume it's OK" have broken the security several times and helped hackers and virus to take over the systems.

      Remember, there is no "one size fits all" security, but having as much security layers as possible help a little every time

      --
      Higuita
    4. Re:Alternative? by chill · · Score: 1

      Because of an 8-year ivory-tower esoteric debate on the subject.

      https://bugs.kde.org/show_bug.cgi?id=92845

      A possible fix, using PAM. Not sure how specific to OpenSUSE this is.

      http://linux.eregion.de/2013/10/26/kwallet-single-sign-on-at-last/

      --
      Learning HOW to think is more important than learning WHAT to think.
    5. Re:Alternative? by egcagrac0 · · Score: 1

      it's the same for executing superuser commands... it asks a password as a security layer... you can also disable it if you want, but is very recommended to confirm that you are really allowed to do that

      For my personal computer, I consider WiFi networking "working" to be a core function. It should just work when the computer is on. (Yes, before user log in.)

      Not so with a lot of superuser commands - for example, installing software.

      I'll freely admit that I don't see the advantage of the KDE Wallet system, and every time I've tried to interact with it, it's thoroughly pissed me off. I'm glad it works for you.

    6. Re:Alternative? by adolf · · Score: 1

      The same reason you probably have a deadbolt and a regular lock on your front door, and possibly a chain bolt.

      To help keep the honest people honest? Because none of those things are going to stop an attacker armed with a BFH. And none of those things are going to keep windows from turning into doorways when bricks are involved. And none of those things are going to keep a stealthy attacker from picking the locks (unless they're ridiculously high-quality locks) and cutting the chain with a small bicycle tool.

      My house has locks on the doorknobs, and that is all. It's not worth the effort to go far enough to stop a motivated attacker (steel bars/shutters over windows, inside/outside doors).

    7. Re:Alternative? by higuita · · Score: 1

      You can choose to save the wifi for the system (and so not saved in user kwallet) or for user (stored in the user kwallet)... so you can choose what fits tou best

      to understand kwallet think that you store your credit card in it and you have your computer on a public place. The login is just the first way to protect you, even if someone can see your password, to use your CC, you still have to lose your kwallet password, that is only rarely used an so harder to be stolen. It's the samething for firefox master password, kiskis, keepass(x) or the apple keychain... another layer to protect your passwords.

      If do not want to have 2 layers of security, just set a empty password for kwallet.

      --
      Higuita
  13. And the problem is? by Anonymous Coward · · Score: 2, Informative

    I'm sorry that timothy and the submitter are morons without a clue, but in order to auto-connect to a wifi network without entering your password every time, the wifi key HAS to be readable by the system. Theres no POINT in encrypting it if you aren't entering the password EVERY TIME you connect, otherwise the password may be obfuscated but always available in plain text with little work considering you have the source so you know EXACTLY how the system extracts it.

    --BitZtream

    1. Re:And the problem is? by sqlrob · · Score: 1

      Has to be readable yes. Has to be plain text? No.

      If I give you something encrypted with OpesnSSL and a password, you can break it right? After all, you know everything that OpenSSL does. The wifi password, and any other external credential, should be protected at rest. And yes, it can be done securely even with full source access.

    2. Re:And the problem is? by bluefoxlucid · · Score: 1, Informative

      If the system stores an encryption key and a password, it's storing plaintext in an exotic format. If the system is capable of extracting the plaintext without user intervention, then it's storing plaintext in an exotic format. If it's OpenSSL encrypted, and the OpenSSL key is RIGHT THERE NEXT TO IT, it's in plaintext.

    3. Re:And the problem is? by Bert64 · · Score: 1

      If the data (in this case a wifi key) is "protected" then the system can't use it to connect to the wireless network..
      If the system is able to obtain the wifi key, either by reading a file or by decrypting one, then so is an attacker who has root on or physical access to that system.

      If the system can't obtain the key autonomously, then neither can an attacker with access to that system. In this instance the key really is protected, but then the user has to enter either the wifi key itself, or a decryption key for the stored copy whenever they want to connect to the wifi network.

      Encryption only works when your adversaries don't have possession of the key.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  14. Re:My password is printed on the side of my router by macbeth66 · · Score: 1

    I've disabled the FIOS provided wireless access, added two wireless access points ( upstairs and downstairs ), each connected by hardwire to to the router and use whatever protocols and passwords I desire.

  15. Re:It's true -- but only root can read them though by wiredlogic · · Score: 1

    You don't need to have root access if you have physical access to the drive. Mount it, get the password, and then monitor the network activity of your target.

    --
    I am becoming gerund, destroyer of verbs.
  16. Re:That's why Liux isn't 1st choice for security.. by wangmaster · · Score: 2

    OR more appropriately, wifi isn't 1st choice for security.

  17. man chmod by Gothmolly · · Score: 1

    Change the perms so that only root can read them. If something has rooted your box, your wifi password is the least of your problems.

    --
    I want to delete my account but Slashdot doesn't allow it.
  18. Re:It's true -- but only root can read them though by cheros · · Score: 1

    If the attacker is already root, they have access to everything on your system anyway.

    Not quite. Root access means a compromised single host. Access to a list of WiFi passwords means compromising all the WiFi networks the machine in question has been given access to, so you'd still want that encrypted.

    --
    Insert .sig here. Send no money now. Owner may sue, contents will settle. Batteries not included.
  19. This has saved my butt a couple of times :) by wangmaster · · Score: 1

    I've forgotten the WPA passphrases on two of my relatives wifi networks and of course since I set it up for them they never had a clue. Fortunately, the unencrypted networkmanager files were there and made it super easy for me to tell them what their passphrases were :)

    1. Re:This has saved my butt a couple of times :) by egcagrac0 · · Score: 1

      Whenever I set up a network for friends/family/etc, I get a piece of white* electrical tape, and write on it the SSID and passphrase. I usually also suggest that they put this information on the refrigerator, so that if guests come over, they can readily get online.

      Later, when they ask me how to set up their new tablet, I say "go find the router... the information is all written on it."

      I usually get a second piece of tape and write login username and password on it, and stick that on the bottom.

      At the point when an attacker can read the stickers you put on the box, they've already got you anyway.

      *: Yellow works too.

    2. Re:This has saved my butt a couple of times :) by fisted · · Score: 1

      Does light gray work, too?

    3. Re:This has saved my butt a couple of times :) by egcagrac0 · · Score: 1

      Research thus far has provided no conclusive answer to this question.

  20. FUD, I am a fraid by gweihir · · Score: 5, Informative

    Generally, storing passwords on the verifying machine in plain is a really bad idea. This is not the verifying machine. On the supplying machine, you usually do not have a choice but allow access to the plain-text password, how else would it be supplied? Hence, while you can store it encrypted, that encryption must either be automatically reversible (making it pointless) or protected by an additional password the user enters each time (making the storing pointless).

    So, no, these people crying "insecure" do not understand what they are talking about and do not know that either (Dunning-Kruger Effect at work). This particular kind of incompetence has seen an increase with the Snowden-relevations, where people with no clue about IT security, risk evaluation or crypto do "pattern matching" with a list of "bad" things in crypto, like "password stored in plain", "SHA1" and then claim insecurity when the keywords turn up in something. They are basically always wrong, because they do not even begin to understand the specific use of the mechanism. Typically the do not even have beginner-level knowledge, like these cretins here. Otherwise they would have understood that Wi-Fi does not do a challenge response authentication with a shared secret, but a plain, one-way password submission. For these, the password does need to be available in plain or things cannot work. Instead, these idiots cry "insecure".

    The only possible other explanation I have is that these people are NSA shills that try to confuse the issue.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:FUD, I am a fraid by PrimaryConsult · · Score: 1

      I hate it when people say reversible encryption is "pointless". There are a few reason where you might want to let someone look at your configuration file/database/etc (maybe to ask for help), and having to sanitize/restore passwords every time is a pain in the ass. You might also open the file while someone is sitting next to you, forgetting that the password is in plaintext. Most people are honest but if the password is staring them straight in the face it becomes a tempting target.

      It's like saying because a lockpick can open your door, you shouldn't bother having a lock.

      I had this same argument over gaim/pidgin storing passwords in plaintext in its profiles.

    2. Re:FUD, I am a fraid by chill · · Score: 1

      On the supplying machine, you usually do not have a choice but allow access to the plain-text password, how else would it be supplied?

      By an agent, like KNetworkManager, PGP-agent or GnuPG-agent.

      Hence, while you can store it encrypted, that encryption must either be automatically reversible (making it pointless) or protected by an additional password the user enters each time (making the storing pointless).

      No. An additional password isn't pointless. It is the purpose behind the operation of gpg-agent, KNetworkManager, Firefox's master password, LastPass and several other programs.

      Otherwise they would have understood that Wi-Fi does not do a challenge response authentication with a shared secret, but a plain, one-way password submission. For these, the password does need to be available in plain or things cannot work.

      To be pedantic, that is exactly how WPA2-Enterprise works. But almost no one uses that in a home network. You still shouldn't ignore it.

      And the password does not need to be STORED in plaintext, which is the point. Like a PGP key, it exists unencrypted only in RAM and is encrypted when stored.

      --
      Learning HOW to think is more important than learning WHAT to think.
    3. Re:FUD, I am a fraid by bluefoxlucid · · Score: 1, Funny

      Your argument is that the password should be rot13 or base64 encoded.

    4. Re:FUD, I am a fraid by gweihir · · Score: 1

      I hate people that do not read what I wrote. Incidentally, I could not care less what you hate, especially when it has no relation to what I just wrote.

      Your rant is completely unrelated to the problem at hand, and if "the password is staring them straight in the face" they already have root access here and can do whatever they want, including things like starting WiFi automatically. So, no, encryption passwords is not always pointless, but it is almost always the wrong solution, and it very much is here. Your risk management sucks, as it completely mis-analyses the situation. But that is in line with your ego being over-inflated. My take is that you have nothing worthwhile to contribute, but feel a compulsion to give your opinion anyways.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    5. Re:FUD, I am a fraid by gweihir · · Score: 1

      Yea, typical incompetent IT security wannabe. Pathetic, but all too common.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    6. Re:FUD, I am a fraid by gweihir · · Score: 1

      It is pointless for the situation at hand. You are ignoring the work-flow here. Compare both for a typical situation.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    7. Re:FUD, I am a fraid by gweihir · · Score: 1

      Indeed. These amateur "security experts" are almost universally incapable of analyzing or even seeing the surrounding situation. What comes out is a "risk analysis" that has no connection to reality.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    8. Re:FUD, I am a fraid by amorsen · · Score: 1

      No. An additional password isn't pointless. It is the purpose behind the operation of gpg-agent, KNetworkManager, Firefox's master password, LastPass and several other programs.

      NetworkManager uses the system wallet for per-user passwords. If you tell NetworkManager to store the password around so it can connect before user log in, it is hardly surprising that it does exactly that.

      --
      Finally! A year of moderation! Ready for 2019?
    9. Re:FUD, I am a fraid by gweihir · · Score: 1

      And the password does not need to be STORED in plaintext, which is the point. Like a PGP key, it exists unencrypted only in RAM and is encrypted when stored.

      It does not need to be stored encrypted either. Not at all. Your attacker model is completely unrealistic, as you assume an attacker with root access. Against that one you have no chance anyways. Classical amateur-level risk analysis that completely misses the point.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    10. Re:FUD, I am a fraid by gweihir · · Score: 1

      If you are securing commercial infrastructure, you should use VPN with individual public-key authentication anyways. A Wi-Fi password is access control, not secrecy. But I agree that full disk encryption is a very good idea anyways, for this and a number of other reasons.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    11. Re:FUD, I am a fraid by chill · · Score: 1

      I assume an attacker with physical access to the drive thru a Live session or physical drive removal. I also keep drives encrypted to protect data at rest.

      Multiple layers of security are a good thing.

      My risk analysis is just that, *MY* risk analysis. I want the OPTION to not use system WLAN accounts and have to activate the wireless network after login.

      --
      Learning HOW to think is more important than learning WHAT to think.
    12. Re:FUD, I am a fraid by immortalpob · · Score: 1

      Actually there are no lockpicks in this case, we have unbreakable encryption. It is just that in order for a lock to be useful you can't leave your key in it. If you do there is, in fact, no reason to have a lock.

    13. Re:FUD, I am a fraid by immortalpob · · Score: 1

      He is suggesting a solution, use a plaintext file and restrict it to root only. You are just demanding a "better" solution which would require magic.

    14. Re:FUD, I am a fraid by DMUTPeregrine · · Score: 1

      An attacker who has broken into my house shouldn't really have me worried that they might mooch off my WLAN connection. Sure, they might do that, and they might also just steal all my valuables.

      --
      Not a sentence!
    15. Re:FUD, I am a fraid by chill · · Score: 1

      I was thinking more of a coffee shop, train or anywhere else I use (lose) my laptop.

      --
      Learning HOW to think is more important than learning WHAT to think.
    16. Re:FUD, I am a fraid by PrimaryConsult · · Score: 1

      Oh really? So you're telling me because a simple two line library could decode the password (adding negligible overhead to any program implementing it) it's not worth protecting against the very real possibility of shoulder surfing to steal passwords? Tell me, do you advocate against having obfuscated password forms for typing in your passwords as well?

      Methinks you are the incompetent who doesn't understand what the actual purpose of security is.

    17. Re:FUD, I am a fraid by PrimaryConsult · · Score: 1

      I'd argue storing a password in plain text in the config file is leaving the key in the lock. Base 64-ing the password is at least putting the key under a rock in front of the house.

    18. Re:FUD, I am a fraid by DMUTPeregrine · · Score: 2

      The problem is a disconnect in threat models.

      An attacker with physical access can defeat any obfuscation scheme that doesn't require input from the user.
      The point of having a wireless key stored in plaintext (or obfuscated) is so that the computer can connect to that network without input from the user.
      Encrypting the key requires input from the user, so storing the key is effectively pointless. Obfuscating the key doesn't actually do anything to stop anyone with root access. Whatever choice you make you will break either the security or the usability.
      Why break the security? Because the security is minor, in this case. An attacker with physical access to a computer on the site of the wireless network can already compromise the wireless key, eg by using a keylogger, installing malware on the machine to sniff the wireless key from memory as the computer initially connects, and possibly reset the access point's settings, assign a new key, and assign a new key on the client computer (s). etc. An attacker with physical access to a computer off the site of the wireless network (coffee shop, etc) just stole your computer, and is probably going to sell it. If they're determined to attack your network the same issues as above arise.

      So not storing the key requires the user to type it (or a password to decrypt a keyring) when they connect, and provides very little practical security benefit. Anyone who would derive a practical security benefit from encrypting the key would likely derive a much greater security benefit from using a wired connection. The benefits are outweighed by the costs.

      --
      Not a sentence!
  21. FUD by hurwak-feg · · Score: 1

    I would say it is FUD. If it is a company owned computer that is controlled by others, you might risk having your employer having access to your networks. Other than that the biggest risk is theft. If a computer is stolen, you should change all your passwords anyway, including your wireless network passwords. Friends and family that use it would have access to your network anyway. I'll admit to not RTFA, but it sounds like (I am speculating, I could be wrong) the author is parroting some stuff out of a security certification study guide without really considering if it is actually a problem worth writing about. It is possible the author is anti-linux, but I doubt it considering an alternative tools is suggested. If someone is really paranoid, they could always just use a live CD/thumb drive that doesn't store anything. I am leaning towards well meaning FUD.

  22. SSH Keys Also Vulnerable by Bob9113 · · Score: 4, Informative

    It is also common in most Linux distros to store SSH private keys in ~/.ssh, which -- given you need root to read the wifi passwords -- can be accessed just as easily. Access credentials have to be stored in the clear somewhere on a live machine -- in memory during connect if nowhere else. Once you root the box, you get everything.

  23. Wrong. The entire discussion is FUD. by Giblet535 · · Score: 1

    Anyone who connects a GNU/Linux box via wireless network has no concern for security.

  24. Re:Has been for years. by gweihir · · Score: 4, Insightful

    It is secure with regard to the design specification. The client does need to have the plain-text password or it cannot authenticate itself. If you do not want a plain-text password to be available to the entity storing it (and that is what password protection is all about), then you cannot use a mechanism where the plain-text password needs to be supplied. At best this is a Wi-Fi protocol vulnerability.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  25. Nothing changes... by Anonymous Coward · · Score: 1

    The die hard Linux bunch will defend it to their deathbeds. If it was found that Windows was doing the same thing, they'd be lighting torches and sharpening the pitchforks. This is a serious security flaw. Not only does it expose passwords for people's home networks, but businesses and other institutions as well. I love Linux, use it on every laptop I have at home, which means there are several passwords stored on those machines. This is an issue that needs to be addressed and fixed. If disabling NetworkManager and enabling netctl accomplishes it, easy enough.

    1. Re:Nothing changes... by bluefoxlucid · · Score: 3, Informative

      Windows does the same thing. Does it automatically connect to Wifi when it boots?

      We can store them in an exotic form of plaintext, like encrypted with the encryption key in /var, so you can use the encryption key to read the plaintext but we can claim it's "stored encrypted" even though this doesn't add security.

    2. Re:Nothing changes... by Bert64 · · Score: 1

      Windows does pretty much do the same thing...

      They obfuscate the key, but there are plenty of tools available to easily extract them:

      http://www.nirsoft.net/utils/wireless_key.html
      gsecdump can extract wireless keys too...

      Wireless keys must be available in plain text in order to be used, there's no way around this... Windows just tries to obfuscate the data, which achieves no security benefit but serves to unnecessarily increase complexity.
      You could use WPA2 Enterprise instead, so each user has their own private key, so that then only one key becomes compromised.

      Windows actually does much worse things, it stores the passwords of system users in a plain text equivalent form.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  26. Re:It's true -- but only root can read them though by Sarten-X · · Score: 1

    If the attacker has compromised that one system, they could just decrypt the encrypted file.

    --
    You do not have a moral or legal right to do absolutely anything you want.
  27. Reversible encryption by gmuslera · · Score: 1

    The password encryption must be reversible to be used, is not the computer that runs linux the one that must do the validation so can have the luxury of doing one-way encryption, the original password must be provided. The source code already includes how to decrypt that password, and if is salted or uses another information, all the needed information is stored there already. At most, you can do what is already being done by most if not all network managers, only giving access to it to the root user. If someone else have access to your computer with root access and the ability to see files/run programs, then would be easy to obtain it even if is encrypted, but capturing your wifi password won't be the worst that will happen in that scenario.

  28. You're not still counting on WPA2? by drinkypoo · · Score: 1

    I'm using WPA2 to discourage anyone trolling for the most easily abused access points, but if were transmitting my .secret_plans_to_rule_the_world file, I'd be using ipsec as well — to a machine which does not allow any unencrypted connections.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  29. Re:My password is printed on the side of my router by Grishnakh · · Score: 1

    Why do you have two APs? WiFi penetrates to adjacent floors on a typical residential home with no trouble. I have a 3-story (including the basement) house with my AP on the middle floor, and I have no connectivity problems at all. The problem with WiFi is line-of-sight distance; if your house is a giant 6000sf McMansion and is really spread out, you could have a problem, but as long as you're not far away from the AP it should be fine.

  30. Physical access gets wifi access. Okay. by Rob+the+Bold · · Score: 2

    I suppose in general that keeping "secret" things secret seems reasonable. After all, when you login to your wifi network (the first time) the password is usually masked to hide it from shoulder surfers. This does give users the impression that the data is also stored securely.

    From a practical perspective, though, how much of a security risk is this?

    From TFA:

    So anyone who inserts a Live CD Linux distro into your laptop, can view your not-so-secret Wi-Fi password... or steal even more important data!

    Wouldn't it be even easier if someone had access to your laptop to just use it then and there to access your network without rebooting, "stealing" your important data secured by nothing more than a wifi login? They're already in your home or office -- unless they stole your laptop while you were in the restroom at Starbucks -- they could also just plug their own laptop into your router or other network port and get the same thing, couldn't they? (As if your "sensitive documents" aren't just sitting there on the laptop unencrypted anyway.) Or just hang around in network range, sniffing packets and cracking your wifi encryption at their leisure? That wouldn't even require taking the risk of borrowing your computer and raising suspicioins.

    So while storing any authentication data in plain text seems needlessly insecure and sloppy, relying on wifi passwords alone to protect sensitive data is an even worse idea to begin with.

    --
    I am not a crackpot.
  31. Confirmed on a Debian 7.3 machine by shtrom · · Score: 1

    USER@DEBIAN73:/etc$ cat /etc/debian_version
    7.3
    USER@DEBIAN73:/etc$ sudo grep -R WPAKEY *
    [sudo] password for USER: :/etc$ cat /etc/debian_version
    7.3
    USER@DEBIAN73:/etc$ sudo grep -R WPAKEY *
    [sudo] password for USER:
    NetworkManager/system-connections/ESSID:psk=WPAKEY

    This is a bit embarassing...

    Now, can somebody with the WPA key of a network capture traffic to/from other stations?

  32. Re:Solution by dyingtolive · · Score: 2

    Well, and it's NetworkManager. Nothing of value is lost by uninstalling it to begin with.

    --
    Support the EFF and Creative Commons. The war is coming, and they're supporting you...
  33. Wi-Fi passwords are not security features by Theatetus · · Score: 1

    They're (weak) access control features. Secure at the transport level.

    --
    All's true that is mistrusted
    1. Re:Wi-Fi passwords are not security features by KDN · · Score: 1

      WPA2 with enterprise mode and AES transport is pretty secure, assuming the NSA hasn't FUBAR'ed AES. WEP and TKIP I would definitely put out to pasture.

  34. Re:It's true -- but only root can read them though by Grishnakh · · Score: 5, Insightful

    If someone has physical access to your drive, you have much, much worse problems than someone sniffing your WiFi traffic. To do this, someone has trespassed into your house. I'm much more concerned with strangers stomping around my living room than I am about someone sniffing my WiFi traffic.

  35. Re:It's true -- but only root can read them though by Gort65 · · Score: 2

    Not quite. Root access means a compromised single host. Access to a list of WiFi passwords means compromising all the WiFi networks the machine in question has been given access to, so you'd still want that encrypted.

    Sure, but if you're root, then you can quite easily decrypt to find those passwords. This isn't to say that it shouldn't be encrypted (another hurdle, etc), but once you're root, then anything on that machine is fair game, including those WiFi passwords if you're determined enough.

  36. Re:So what? by jones_supa · · Score: 1

    That's not a good excuse. We could still make the damage smaller if he can't steal the WiFi password easily. Especially in a business network that can make an important difference.

  37. Re:My password is printed on the side of my router by wangmaster · · Score: 2

    Dunno what the original poster has but I have a 1600 sq foot house. basement first floor and second floor. 795 sqft rectangular foot print. My wifi access point on the first floor gets a horrid signal in the basement (especially near the corners). My wifi router in the basement doesn't reach the top floor corners.

    This is specific to the 5ghz bandwidth which I use exclusively.

    Yes, custom antennas might help, but wifi routers are cheap (just for reference I have an Asus rt-n56u and a buffalo wzr-hp-ag300h).

    House is built in 1946. There are many situations where a single wifi access point doesn't work, even when you'd think it might.

  38. Re:My password is printed on the side of my router by jawtheshark · · Score: 1
    I also have a three story house and a WAP in the middle. Reception is horrible, horrible, horrible. I think it's all the insulation material (class B house) and the floor heating (a lot of water in the floors) and on top of that the floors are concrete. I now have a second access point, one on the second floor.

    Cellphone reception is also terrible in the middle of my living room. My best bets are turning off Data on my cellphones so that it doesn't try to negotiate quicker speeds.

    I'd really like to know how to improve things. House has been built last year. I expect this to be a common problem in low energy houses.

    --
    Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
  39. It's FAR worse than that! by PvtVoid · · Score: 2

    The reality is far, far worse. Even as a non-root user, if I click on the wireless connection icon on my desktop, select my network under Edit Connections, and click "Show Password", there it is, in pure plaintext!

    Oh, NOES! If my desktop lets me have access to my own network password, where will it end? It might even let me access my own files! Then what? Human sacrifice, dogs and cats living together... mass hysteria!

  40. Re:My password is printed on the side of my router by macbeth66 · · Score: 1

    Why do you have two APs?

    I have steel beams between the first and second floors that seem to interfere with wifi. It could be something else, but since I have the two units and had hardwire between the floors, I use them.

  41. Re:Not a real vulnerability by Vanderhoth · · Score: 1

    Should it at least be hashed? Sure

    I will as soon as I get home, but I have yet to verify if TFA is correct or just FUD for myself.

    Normally passwords should be hashed, but in this case it would be pointless as hashing is used to compare. So I hash my password the first time then if I enter the same password each time its hash value will always be the same as the original, but once hashed the original password is "lost" in that it becomes unknown to the system. The problem is in order for your machine to automatically connect to an access point it needs the password. So either you type it in every time or you store it somewhere where the system can access it. Hashing is one way so if the system can only retrieve a hash of the password not the password itself so a hash can't be used to connect to an access point. You'd still have to enter your password every time or store it.

    As others have pointed out you need root access to view the file, if someone has root access to your machine then you have bigger problems, so it doesn't matter if the password file is encrypted or not. If you wrote your password down and stored it in a bank vault and only the bank manager could retrieve it for you would it matter if people could still walk into the banks lobby? Maybe encrypting it would be a good extra step just in case, but I can't see it being a necessity.

  42. You need the plaintext password by KDN · · Score: 1
    If you are using the WPA with PSK (Pre Shared Key), you need the plain text pre shared key to generate the PMK (Pairwise Master Key). Once you have the PMK, you really don't need the pre shared key. But if you change the access point or change the NIC on your machine you will need it to generate the PMK over again. If you are concerned, go to WPA enterprise mode with the Radius challenge response.

    Speaking of PSK security, you are using the mimimal PSK length of 20 (or was it 22?) characters to ensure security, right?

  43. So what? by Bert64 · · Score: 1

    So you store the password in plain text, so what?
    The password needs to be available in plain text form in order to be used, so even if you store it encrypted you must also store the key so that the system is able to retrieve it so at best all you do is make it slightly more difficult to extract the key.
    For other systems there are freely available tools to extract the wifi keys anyway...

    The only secure way to do it, is to encrypt the wifi key using the user's login password... MacOS can do this, but then your system won't connect to wireless until after you've logged in so this is a very uncommon configuration to use.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  44. Stored Credentials are bad by mlwmohawk · · Score: 1

    As bad as it sounds, NetworkManager is probably doing almost the right thing. There is no way to safely encrypt a password so that it may be used for access to another system without requiring another password.The only thing that you can do is use the permission structure of the OS to protect the password. (As they have done)

    Now, they could have "scrambled" or encrypted the password with a known key. That will prevent the slim chance that a "casual" intruder with root access will get your password, however, any moderately intent intruder who can gain root access will, by design, be able to reverse the password mutation. You can't MD5 or SHA the passwords because you *need* them to gain access to the external system.

    I had this fight at a company a while back about accessing Windows servers and storing their credentials, I ended up base64 the creds into a database row or an encrypted database. You needed a password to open the database, so they were safe, but management didn't want to be able to "see" the password once they did. It wasn't real security, but it shut them up.

    NetworkManager needs to do something similarly stupid so that stupid people don't say stupid things about a stupid problem. If you can't trust your computer to store your password, then don't trust your computer to store your password. duh!

  45. NetworkMangler by DaveAtFraud · · Score: 1

    I removed NetworkMangler from all my systems except my laptop. It does come in handy when connecting to WiFi hotspots when I'm not at home. Keeping it on a server with a static network connection is just inviting trouble.

    Cheers,
    Dave

    --
    They that can give up essential liberty to obtain a little temporary safety deserve neither safety nor liberty.
    Ben
  46. Re:My password is printed on the side of my router by PNutts · · Score: 2, Funny

    Why do you have two APs? WiFi penetrates to adjacent floors on a typical residential home with no trouble. I have a 3-story (including the basement) house with my AP on the middle floor, and I have no connectivity problems at all. The problem with WiFi is line-of-sight distance; if your house is a giant 6000sf McMansion and is really spread out, you could have a problem, but as long as you're not far away from the AP it should be fine.

    Sorry, you brought theory to a practical fight.

  47. Only readable by root on my Debian Stable pc by mrflash818 · · Score: 3, Informative

    Only readable by root on my Debian Stable workstation:

    robert@debian:/etc/NetworkManager/system-connections$ ls -latr
    total 16
    drwxr-xr-x 5 root root 4096 May 20 2013 ..
    -rw------- 1 root root 329 May 21 2013 geophile.net
    -rw------- 1 root root 399 Jul 4 13:22 Auto geophile.net
    drwxr-xr-x 2 root root 4096 Jul 4 13:22 .
    robert@debian:/etc/NetworkManager/system-connections$ cat geophile.net
    cat: geophile.net: Permission denied
    robert@debian:/etc/NetworkManager/system-connections$

    --
    Uh, Linux geek since 1999.
  48. What? by ArchieBunker · · Score: 1

    None of you know what you are talking about.

    --
    Only the State obtains its revenue by coercion. - Murray Rothbard
    1. Re:What? by game+kid · · Score: 4, Informative

      FiOS user here, and indeed they do not know.

      When they brought and installed the router, they pointed out the password label, and I asked if the password could be changed, and they said yes. Sure enough, I changed it when they left, and changed the WEP to WPA2 as well via the router's "web" interface. The result is probably not secure (NSA aside), but GP and GGP are still worthy of Rep. Joe Wilson's attention.

      --
      You can hold down the "B" button for continuous firing.
  49. Re:That's why Liux isn't 1st choice for security.. by bluefoxlucid · · Score: 4, Informative

    If you want the system to use a wifi connection as its primary--to boot and enable wifi, or to allow all users to enable wifi--the wifi connection must store the password in plaintext.

    Think like this: You get a wire, plug in an RJ-45, and tell the system to enable that on boot. When you boot, you're online.

    Now, if you use wifi, to do this, you have two options. The first is for a user to log in, connect to wifi, and store the password encrypted in keyring. The next user logs in (after the first logs off, or after a reboot) and, not knowing the password, can't use the network on that machine. The second option is to store that password in plaintext, accessible by a system level service (or, alternately, by all users). At boot, the system service enables the network connection; any user with access rights to enable or disable the network connection can send a message to the service to do so, and the service will read the password from disk.

    In the second scenario, if you create an encryption key and encrypt the password, you need to store the key in plaintext. An attacker would get the key and use it to decrypt the password in the same way as he'd obtain the plaintext password, so technically you are still storing plaintext--just in a different format involving multiple files. It's not encrypted until it's separated from the key. An encrypted e-mail is encrypted because only the sender and recipient have the key--the sender usually generates a session key and encrypts that with a public key, so usually no longer has the key after sending it. A third party would have an encrypted blob and no key. If you encrypted the e-mail and stored a private key to decrypt it on the same system, protected by a password stored in a text file on the same system, then administrative access gives you full access to everything--essentially, the message is stored in plaintext. That's a stretch; but if your system fundamentally functions such that it must store some data, and stores that data and an encryption key "to encrypt it", you're storing plaintext--the "encrypted" data is never transported, and the key is just theater.

    So this isn't an example of poor security; it's an example of "the only way to accomplish this particular goal".

  50. Re:My password is printed on the side of my router by chill · · Score: 2

    I have two APs.

    One for 2.4 GHz b/g/n devices that can't really be upgraded. Older phones, Chromebooks, tablets and my bathroom scale.

    The other is for 2.4 GHz/5 GHz 802.11ac devices that HAVE been upgraded and use the extra bandwidth, like for streaming HD video or transferring large files to a server.

    I keep them on separate channels.

    --
    Learning HOW to think is more important than learning WHAT to think.
  51. Ssh keys can be encrypted. You have a choice by Anonymous Coward · · Score: 1

    I think the article is complaining that you do not have a choice. I think the counter-argument (that you need root so they own you anyway) is not legitimate. In this day and age, no passwords should be stored in plaintext.

  52. netctl doesn't encrypt it either by SteveAyre · · Score: 2

    That 'encrypted' key is no such thing. The passphrase you enter is used as input to a key-derivation algorithm. The value stored by netctl is the output of that algorithm. The interesting thing is that you can use that passphrase *as* the password too. So netctl is no more secure than NetworkManager storing it in a file on disk. The only thing it protects is someone knowing that the passphrase is BatteryHorseStaple - it doesn't protect your network at all.

    The configuration file's permissions are sufficient to hide it from other users but not from physical access, as TFA notes you can encrypt your disk to protect that.

    Or use a keyring, which NetworkManager does support. That will store it truly encrypted. The configuration files are just a simple fallback mechanism for when that isn't available.

  53. Nope. I'm OK. by PPH · · Score: 4, Funny

    No passwords stored as plaintext on my system's disk. Only on the yellow post-it stuck to the display.

    --
    Have gnu, will travel.
  54. Re:It's true -- but only root can read them though by Boltronics · · Score: 1

    Then as root just install a key logger?

    Either the WiFi password is decrypted with a user password (eg. local machine account log-in password), or the WiFi password is supplied directly by the user. No problem.

    --
    It's GNU/Linux dammit!
  55. Re:My password is printed on the side of my router by GIL_Dude · · Score: 1

    I have two access points as well. House is a two-story, 2,590 square feet. Cable access is at one end of the house and the main router is there as well. At the far end of the house, the signal has to go through several walls, a washer and dryer, and a staircase to get to the Chromecast plugged in behind the TV against the outer wall. It is about 1 bar and I am not about to try to use it like that as it will likely stutter and degrade. So I pulled wire to that end of the house and there is a second router (in simple bridge mode) there. As a bonus, I now have coverage in the upstairs master bedroom / bathroom where there was basically no signal before. BTW, this isn't a single router / brand issue. I have used about 7 or 8 different routers - all sorts of brands from Linksys, Netgear, Buffalo, etc. and they all had the same issue getting to the other end of the house.

  56. Re:So what? by egcagrac0 · · Score: 1

    A business network should be using per-user WiFi authentication (like WPA-Enterprise), already avoiding this problem.

  57. only root can read it in Wicd by FudRucker · · Score: 1
    --
    Politics is Treachery, Religion is Brainwashing
  58. Re:Solution by amorsen · · Score: 1

    Asking for the impossible does not help anyone. Publicizing the lack of response just makes you look like an ass. Particularly if you manage to go public on a forum full of technically knowledgeable people like Slashdot. (Yeah right).

    --
    Finally! A year of moderation! Ready for 2019?
  59. Re:My password is printed on the side of my router by Culture20 · · Score: 1, Funny

    (class B house)

    Well there's your problem. You should be living in a class M environment.

  60. Re:Er by bonehead · · Score: 2

    As an admin, there are plenty of ways I can, if I choose, keep my data from being viewable by my fellow admins.

    Yes, it takes a bit of extra work, but it's entirely doable.....

  61. Encryption Encryption Encryption by ajyand · · Score: 1

    The article points to a deeper problem that exists with all unencrypted disks. What if the hardware gets into wrong hands? With encrypted disks you're never in urgency of changing all the passwords of bank cards, devices, online accounts stored on your system, in case the hardware is compromised. Encryption also protects your sensitive data to a great degree. I recommend all partitions to be made encrypted during the initial setup of the system.

  62. Re:It's true -- but only root can read them though by DarkOx · · Score: 1

    I does even if you do encrypt them. Think!

    If you are going to store the passwords in an encrypted format you need to have the key somewhere the user who owns the wifi passwords can read to decrypt them. In which case someone who has root can read the key and use it to decrypt the passwords.

    You might make the key something like the users password itself, but that has implications too like what happens when the user changes their password. What happens if an alternative password change protocol has to be used because the user forgot their password and the sysadmin must do it? Does the user lose all the stored wireless passwords?

    Generally speaking there isn't much in the way of something you know based schemes that will protect user data from the system administrator and provide single sign on. If you want to have some second password or token that acts as a cipher key for a password wallet that is one thing but there is a usability cost there, the use now has two passwords and if the wallet password is lost the data is probably lost.

    Otherwise its a situation of root can read everyones files, which we knew, or some obfuscation that probably is more a false sense of security than anything. So pretty much the whole complaint is FUD.

    --
    Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
  63. Passwords and automation by Sits · · Score: 4, Interesting

    The issue of passwords being stored unencrypted on media has come up before with Android email passwords, Pidgin passwords and so on. If your attacker can bypass filesystem permissions you are already in a world of pain. One way to mitigate this would be to use a password protected keychain/keyring but this only works if you don't automatically unlock it...

    Say that I want my Windows machine to automatically log in as a user when I turn it on. Because of the way Windows works it needs to be able to unlock my account (almost certainly to be able to unlock credential stores that would be otherwise locked), which means that when I enable Windows auto-login my password is going to be saved into the registry in plain text.

    Perhaps Mac OS X can magically do better? Well not really - OS X XOR's your password with a fixed key and saves into /etc/kcpassword. For an attacker this is not a big hurdle over what Windows does. Unless your password is available OS X would be unable to unlock your keychain and all sorts of things would have to start prompting you if they wished to work.

    If the keys to reverse the encryption are stored alongside the encrypted object you have not gained any more security but are just obfuscating your data - an attacker can simply steal both at the same time, run the decryption algorithm and use the object. To be secure you need to have something your attacker doesn't have access to which is at odds with unattended operation. If you want to have something happen completely unattended (i.e. from power on) fashion you are going to need ALL the information available in a directly usable form at some point and it's going to have to be "unprotected". While saving things like hashes are bit better (as they don't reveal the underlying password which may have been reused elsewhere) someone can still steal the hash and use it as is for accessing that service and in many cases a hash is no good as challenge response is being used to prevent the whole secret from having to be passed.

    I do have one question though - what do OS X and Windows when you save things like WiFi/802.11x passwords that are accessible to every user? To what extent do they try and protect their system "keychains" and wouldn't such protection be obfuscation?

    1. Re:Passwords and automation by Todd+Knarr · · Score: 1

      I do have one question though - what do OS X and Windows when you save things like WiFi/802.11x passwords that are accessible to every user? To what extent do they try and protect their system "keychains" and wouldn't such protection be obfuscation?

      Even if it weren't just obfuscation, it wouldn't matter. If the attacker has access to your machine and your machine automatically authenticates to the network without human intervention, the attacker doesn't need to decrypt your password. He can just access the network as you, since the system's already automatically authenticated and made the network available. Same as if you have shares automatically mounted: anyone who's compromised your machine doesn't need to know the password for them, the system's already taken care of that for them.

  64. Re:Gnome shit by kthreadd · · Score: 1

    SystemD has nothing to do with Gnome, apart from that some Gnome components use it.

  65. Re:It's true -- but only root can read them though by Grishnakh · · Score: 1

    Well we're talking about Linux here, not Windows, so Windows security problems aren't really relevant (though another post here says that Windows does essentially the same thing, storing WiFi passwords unencrypted in the registry).

    But still, if someone on the internet hacks your system and gets your WiFi password, what good does that do them? They have to physically travel to your home to do anything with it. And even there, what is that going to gain them that they don't already have, since they've apparently hacked into your system?

  66. The password can't be encrypted by Todd+Knarr · · Score: 3, Informative

    The problem is that the system needs to be able to use the password to connect to the network, and it needs to do so without human intervention (because there may not be a human at the keyboard to enter a decryption password). So the password can't be stored encrypted in any meaningful way. If it is encrypted then the key or password to decrypt it must be stored in the clear so the system can use it, which is no different from storing the network password in the clear in the first place (any intruder that could get to the first could get to the second too). Better that the system not fool you into thinking that the password's stored more securely than it is.

    The only way to change this is to change the system so that it doesn't connect to the network until after the user's logged in. That though would hose things that run without user intervention, since there's no guarantee that the user would've logged in between the time the system booted and the time the job ran (think automatic reboots, or reboots due to power failure). And since Unix doesn't have the concept of "the" single sole user, there's no guarantee that the user logging in is the one that knows the decryption password. And we won't even discuss systems where directories like /home needed for login are network shares and require the network to be available.

  67. network priority? by Mirar · · Score: 1

    And here I thought that the main problem with NetworkManager is that it can't pick networks on priority, nor do roaming.

    My phone also stores the wifi passwords (if it didn't also mail them to google). If someone gets root access on my machine, I'll just change my wifi passwords. I don't really see the problem - if someone gets root access on my *other* machines, they are already connected to my LAN, which doesn't require a password.

  68. Re:My password is printed on the side of my router by Grishnakh · · Score: 1

    Aha: the 5GHz thing might be your problem. 5GHz has poorer range and is more attenuated by walls than 2.4GHz. I'm only using 2.4, so I'm not seeing these problems.

  69. Re:My password is printed on the side of my router by TooTechy · · Score: 1

    How come the only class with a name is Minshara?

    I guess all UNIX's are Class Y (Demon worlds)

  70. avoid NM by NikeHerc · · Score: 1

    I can't comment on whether NetworkManager stores Wi-Fi passwords in plain text, but I do have some very painful experience with NM in RHEL 6 and I strongly, strongly encourage everyone to avoid using NM. It's buggy and works very, very poorly.

    --
    Circle the wagons and fire inward. Entropy increases without bounds.
  71. Re:My password is printed on the side of my router by TooTechy · · Score: 1

    Trust a WAP to bring theory to a practical fight.

  72. Re:FUD by arth1 · · Score: 3, Insightful

    NetworkManager doesn't follow the Unix philosophy, and was made by and for a younger point-and-drool generation grown up with kitchen sink apps with camel case names and MSDOS configuration files.

    In short, it is an atrocity that does not belong.

    As for storing the password in plaintext, it should not store it at all. The admin should store the credentials, not the app. In a file with read access for only the app that needs it, and no gratuitous root privileges when not needed. This dumbing down to make it easy for users and overuse of root access by apps must stop.

  73. Re:Not a real vulnerability by Bert64 · · Score: 1

    Hashing it would make it unusable... Unless your using an authentication scheme like NTLM, where you simply make the hash the equivalent of plaintext anyway - eliminating any benefits from hashing it.

    You could encrypt it, but then every time you wanted to connect you would need a copy of the decryption key. Either you store the decryption key on the system itself, in which case anyone has root or physical access needs only to work out how to extract the key, or you require that the key be entered every time - in which case you might as well not store the wifi key at all and simply require the user to re-enter that every time instead.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  74. Re:FUD by Gerald · · Score: 3, Interesting

    ...so you're saying Linux needs something like the OS X Keychain?

  75. Re:Gnome shit by Crimey+McBiggles · · Score: 1

    Well, is it not the same people that were behind the changes in Gnome 3 so everything over to tablet mode, udev, and advocating the use of binary configuration files?

    --
    Crimey
  76. Re:PoetterKits by Gary+van+der+Merwe · · Score: 3, Informative

    Lennart Poettering has had nothing to do with NetworkManager: http://www.ohloh.net/p/network-manager/contributors

  77. Re:It's true -- but only root can read them though by Crimey+McBiggles · · Score: 1

    We're talking about operating systems and how they handle security, so I don't think the Windows example is completely out-of-place.

    What if your Wifi password is the same password you use everywhere? I know that's a dumb move, but you'd be surprised how many people suck at using different passwords for each login. Security is like an onion, it's comprised of layers. If you take away one of those layers, you increase the likelihood of an attack.

    --
    Crimey
  78. Re:FUD by houghi · · Score: 1

    If he wants, he can:
    $ nmcli
    Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }
    OPTIONS
    (snip because of lameness filter)

    --
    Don't fight for your country, if your country does not fight for you.
  79. Re:That's why Liux isn't 1st choice for security.. by Qzukk · · Score: 1

    If you want the system to use a wifi connection as its primary--to boot and enable wifi, or to allow all users to enable wifi--the wifi connection must store the password in plaintext.

    Not exactly. wpa_supplicant and most tools that use it store an intermediate hash of the password, since the password is hashed as a step in the process of logging into WPAx-PSK (which everyone is using WPA by now, right? Right?). This isn't perfect, since the hash is still secret and you can just copy the hash to another computer to log in with wpa_supplicant, but good luck figuring out what the plaintext password used to be in order to punch it into some gooey dialog box. Some WPA-EAP variants (generally using CHAP compatible handshakes) can do the same by storing an NT hash.

    See also http://unix.stackexchange.com/questions/74500/wpa-supplicant-store-password-as-hash-wpa-eap-with-phase2-auth-pap

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  80. NetworkManager - portables by whitroth · · Score: 1

    That's the *only* vague use for it. If you're wired, there's absolutely no need for it. On CentOS/RHEL/Scientific Linux, service network start will do perfectly well.

                        mark

  81. Re:It's true -- but only root can read them though by Anonymous Coward · · Score: 1

    Except with it stored unecrypted they don't NEED physical access, they merely need you to follow a few simple instructions [geekzone.co.nz] and download their "free codec" or similar trick.

    Ditto if you store it encrypted so what's the point?

  82. Pure FUD. by Anonymous Coward · · Score: 1

    Oh dears.... if my machine is compromised it can spill my SSID and the password to get there and then the big bad man outside my door can surf child prons and communicate with Al Qaeda and access my completely unsecured internal network 'cause I don't know how to turn my public sharing off on my Windoze machines and...............

    If someone has compromised my system and gotten to my WiFi password I've got much deeper shit going on with my system to be worried about.

    FUD, plain and simple.

  83. Re:It's true -- but only root can read them though by Culture20 · · Score: 1

    Depends on the system. Maybe the user is supposed to have root or physical access to system X, but not access to wifi access point Y from system Z.

  84. Re:FUD by arth1 · · Score: 2

    No, that's exactly what I'm saying it should [b]not[/b[ have. Credentials should never ever be read except exactly when they're needed, nor cached, and applications that use them should not have write access.

    A plain text file is fine, but a process with escalated privileges that reads and writes to it is not.

  85. Re: It's true -- but only root can read them thoug by Anonymous Coward · · Score: 1

    The problem with that logic is that the key can be obtained using the exact same trick (fool the user to run your application) since a shared key can only be obfuscated and not truly encrypted.

  86. Re:Has been for years. by blueg3 · · Score: 1

    There are two alternative designs that are slightly more secure.

    First, usually the WiFi password file is globally-readable. It really only needs to be root-readable, though this makes the network management architecture a little more complicated.

    Second, you can use user-specific WiFi connections, where the password is stored in a database encrypted using the user's login password and decrypted at login time.

  87. Re:How does windows do this then... by KDN · · Score: 1

    I remember someone saying that MS does not store the PSK, but stores the PMK. Assuming neither NIC gets changed, that should be enough. Note: I have not had an opportunity to check this.

  88. Re:My password is printed on the side of my router by Culture20 · · Score: 1

    I'm pretty sure they were all Vulcan names that humans couldn't universally pronounce correctly, so they dumbed them down to just the letter.

  89. Fedora 20 by hackus · · Score: 1

    # cd /etc/sysconfig/network-scripts
    # ls keys-*
    keys-HACKUS
    # cat keys-HACKUS
    WPA_PSK='HACKUSISCOOL'

    http://www.youtube.com/watch?v=6nSKkwzwdW4 :-)

    -Hackus

    --
    Got Geometrodynamics? Awe, too hard to figure out? Too bad.
    1. Re:Fedora 20 by GioMac · · Score: 1

      Beh, on my Fedora 20 box it's encrypted :)

      --
      "It feels like I'm at the Zoo when reading this thread - I'm frightened, but it's interesting" (c)
  90. Re:My password is printed on the side of my router by isorox · · Score: 1

    Why do you have two APs? WiFi penetrates to adjacent floors on a typical residential home with no trouble. I have a 3-story (including the basement) house with my AP on the middle floor, and I have no connectivity problems at all. The problem with WiFi is line-of-sight distance; if your house is a giant 6000sf McMansion and is really spread out, you could have a problem, but as long as you're not far away from the AP it should

    There's your problem. At least you didn't include the word just. If anyone ever tells me "it should just work", I know it's broken.

  91. Re:FUD by skids · · Score: 3, Interesting

    Really the main problem I have with NetWorkManager on a surface UI level is that nobody seemed to deem it necessary to smooth out the case for people who just want to type their password in and NOT have it stored persistantly, just cached until reboot or (optionally) logout from the window manager. If you do not store your creds, it constantly asks you for them whenever it re-attaches to an SSID. Not only that but it stacks up multiple popup windows while you are AFK until your OS is lagging and your taskbar looks like a zip-tie. When you're validating an EAP cert there is NO REASON to do this EVER -- if you are presented with a validated cert from your home AAA server, re-using the creds shiuld be the default behavior.

    The other major problem we have with Linux and Android's WiFi, both with and without NM, is that there are certain types of disassociation events after which the machine should run another DHCP transaction, and it doesn't. Wreaks havoc with dynamic authorization scenarios such as registration portals.

    There is a use-case for utilities like NM -- wpa-supplicant and dhcpd and UI configuration utilities need to be glued together somehow, and if you have ipsec tunnels and l2tp running there is even more to be pasted together. NM does a poor job of it, but at least it does do the job.

  92. I was the AC saying the PEBKAC by Kremmy · · Score: 1

    I'm replying with my account because the slashdot beta doesn't seem to let me link to a post directly, so I can't just remember where I laid replies as an Anonymous Coward.

  93. Re:FUD by Antique+Geekmeister · · Score: 4, Insightful

    Then you don't regularly communicate with remote git, Subversion, CVS, FTP SFTP, FTPS, or HTTPS websites with passwords. Even SSH and SSL key management is vastly improved by having some kind of graceful keychain to unlock, and release, keys as needed. The command line tools are too awkward, even for me, to consistently handle them across a wide range of application I might use in a day.

  94. Why would any self-respecting POSIX geek use NM? by mmell · · Score: 1
    Okay, so you have to hack up the rc sequence just a tad to start messagebus and wifi manually at the end of the sequence (under CentOS, at least, in rc.local) and you have to configure wpa_supplicant. What's the big? DHCP even works. Yay, kiddies!

    Oh you wanted your VPN? Not going into that (too many flavors), but if NetworkManager can do it, so can you with a little research. BONUS: Instead of outright connecting to your workplace, if you manage your VPN manually you can decide what traffic gets routed through your employer's network (think B2B VPN configuration, check with your neighborhood SysAdmin to be sure you're not violating network security policies). Finally - a way to keep wrok and pron separate!

  95. This full disk encryption thing is a red herring by Kremmy · · Score: 1

    Full disk encryption does one thing: adds another password layer.

    The whole idea of it being a solution to the problem is bullshit.

  96. Re:It's true -- but only root can read them though by hairyfeet · · Score: 1

    Actually in some moist delicious irony Windows does NOT store the WiFi unencrypted, the last one that did was WinXP which was depreciated and is all but abandoned by MSFT, the rest? Store it in an encrypted XML file which the system and NOT the user has the keys for so the only way for them to get it would be to somehow corrupt the WiFi password file AND disconnect the session so the user would be forced to re-input the password while they were monitoring.

    And it is very MUCH relevant as I was attempting to point out that a good 9 times out of 10 the weakest link is NOT the operating system, its the user. Apparently you didn't follow the narrative for whatever reason, so I will elaborate. See this how to write a Linux virus in 5 easy steps page? It works the exact same way that pretty much every current bit of malware on Windows, from the "free porn codec" to the security tool and FBI porn bug variants work and that is by fooling the user in order to get them help the malware writer past the defenses.

    Go look at the top 10, hell the top 50 malware infections and guess what? They ALL work the same way, get the user to help lower the defenses. All TFA shows is that once a malware writer gets a Linux user to lower the defenses the system will be that much trivial to pwn, that's all. But at the end of the day the vaunted "Linux security" is worth a bucket of piss against the top 20 malware writers because they all know where the weakest link in the security chain, as those million Android infections show Linux security PEBKAC.

    --
    ACs don't waste your time replying, your posts are never seen by me.
  97. re: stolen hardware by Kremmy · · Score: 1

    When it gets to the point of talking about stolen hardware there is one single thing that people seem to forget: the hardware is probably worth a lot more to the thief than your data. They're more likely to wipe it and resell it unless they were there for your identity to begin with, and for that there are plenty of more reasonable angles of attack.

  98. Re:It's true -- but only root can read them though by Grishnakh · · Score: 1

    the last one that did was WinXP which was depreciated

    Sorry, you can't depreciate WinXP on your tax forms.

    As for your article, it's mostly right, but the problem with malware on Linux (not Android) is that there's too much diversity. One of the comments after that article said it best:

    The security of Linux is always mentioned as a good reason to switch. And in fact, I still agree with that argument. I believe that Linux itself is definitely much more secure (note how these vulnerabilities are in Gnome and KDE, not in Linux itself). There is noticably less malware out for Linux. There are several reasons for that:

      * Linux as the core OS is more secure.
      * There is much more diversity in the potentially more vulnerable desktop environments.
      * Linux has a smaller market share.

    The second point is often overlooked: Whatever works on one version of Linux doesn't work on the other. Linux has a small market share, but those who run Gnome and KDE have an even smaller percentage of that, and so on. And servers, which don't run a desktop component, are very secure indeed.

    Unlike other platforms, with Linux, users could be running several different things. This is more true today than in 2009, when this article was written. Back then, there were only KDE and Gnome2, with others having very little usage. Now, there's KDE, Gnome3, Unity, MATE, Cinnamon, XFCE, and several others (most of this caused by the Unity and Gnome3 dual debacles, forcing people to flee to or create new alternatives). On top of that, there's different distros. So something that might work on one may not work on another. The article's author even mentioned Thunar (the XFCE file manager), as it flags desktop launchers as potential malware; there's nothing stopping other file managers from doing the same thing, and who knows, maybe some do by now.

    Android is a little different since there's only one Android (though it does get some different "skins" from the handset makers, like TouchWiz and HTC Sense) (though it does have a few different versions, not different from Windows with its XP, Vista, 7, and 8). It also has a huge marketshare in mobile phones, unlike desktop Linux which has a rather small marketshare (as best as anyone can tell, since there's no reliable way to count Linux users since it's usually installed after-the-fact, unlike Windows/MacOS). It really isn't worth it for a malware writer to target Linux and hope they get one of the less-savvy users (grandma whose grandson set up her computer with Ubuntu because he was sick of getting called over to fix her Windows computer so often) when they can target the Big Two instead.

  99. WTF /. This is normal by GioMac · · Score: 1

    1. NetworkManager can do both
    2. Passwords are _always_ stored with reversible encryption algorithm
    3. Solution: KDE uses kwallet and f*cks my brain every time i want to connect to my wifi

    --
    "It feels like I'm at the Zoo when reading this thread - I'm frightened, but it's interesting" (c)
  100. Re:My password is printed on the side of my router by Grishnakh · · Score: 2

    Nope, American. I live in the northeast in a 1930-vintage wood-frame house, and my AP is 2.4GHz. I hadn't considered 5GHz or steel beams when I wrote that, which apparently are some significant factors for some people. Not much stucco around here, thankfully (that shit looks horrible), and the houses here all tend to be similar to this one: fairly old and all-wood. The kitchen here is at the opposite end of the house from where my AP is located, so the kitchen appliances aren't really a factor, though I don't notice any problems when I use my laptop in there either. The water heater and boiler are in the basement, so they don't block any places.

  101. This is a real problem by prefec2 · · Score: 1

    NetworkManager and its frontends for Gnome, KDE and other desktops should be improved in a way that the data is stored in database which should be encrypted and only be accessible through a local service for those users who own the keys.

  102. Re: by Darinbob · · Score: 1

    Basically, you first make sure your wi-fi password is not shared with any of your other passwords, and second you make sure you don't allow any fool on your wi-fi access to anything without additional credentials. So then the worst that happens is that someone gets free internet off of you until you tighten up your linux distro security (they fact that they are reading plain text files on your private computer is cause for enough concern already).

  103. Re: by Darinbob · · Score: 1

    Yup, I had to figure out wi-fi password on my mother's computer by browsing the registry (get the big long ugly password instead of the short one, but it worked).

    On the other hand, I don't want my computer doing anything when I'm not on it. Which is why I shut it off every night. At work I shut off wi-fi completely on the laptop, it's pointless and slower than ethernet.

  104. Re: by Darinbob · · Score: 1

    But you crack the password manager once and you've got access to everything. I don't trust the Mac's keychain so I keep passwords either in my head or the vital passwords on an external thumb drive I keep with me. The keychain would only be for non vital stuff, like forum passwords.

  105. Can't reproduce by Erikderzweite · · Score: 1

    Opensuse 13.1, did 'grep [first four letters of my Wi-Fi password] /etc/ -R'. No results. FUD?

  106. Re:FUD by icebike · · Score: 1

    A stack of wrappers is what unix/Linux strives for, its nothing new. At the bottom will be a binary blob, at least for any modern chipset. Unfortunately that's not likely to change any time soon.

    --
    Sig Battery depleted. Reverting to safe mode.
  107. Re:That's why Liux isn't 1st choice for security.. by Qzukk · · Score: 1

    Wat

    Because the answer is "No, it is not possible" for WPA-EAP-PAP, specifically. Read the rest of the question and answer. PAP falls under "some other WPA-EAP variants" in my post.

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  108. Usually, no by l2718 · · Score: 2

    What is your threat model?

    • -- If your main concern is someone remotely accessing your machine while it is connected to the internet, then full-disk encryption is irrelevant. Programs running on your computer must be able to read the disk. Specifically regarding those WiFi passwords the article is trying to scare you with, they are stored in a file which is only readable by the root (=administrator) user. If the "evil" program can read the file, it has already achieved full privileges on your machine, and it reading WiFi passwords is the least of your concerns.
    • -- If, on the other hand, you would like protection against people who physically hold your machine (border guards when leaving/entering countries, or your business competitor who has stolen your machine) then you absolutely need full-disk encryption. Having restrictions on which programs can read a file is no protection against someone who can extract the harddrive from your machine and plug it into theirs (or simply boot your machine from a live-CD), gaining automatic access to every bit of information.

    In short, in order to decide what security you need, you must first formulate your threat model. For a funny take on this see XKCD.

  109. Windows and OS X system wifi passwords by Sits · · Score: 1

    To answer my own question here's what OS X and Windows do with system wide wifi passwords:

    OS X stores the wifi password in the (encrypted) System keychain. The System keychain (System.keychain) is stored in a known location on disk and the material to decrypt it (SystemKey) is also stored in a known location on disk. The permissions on SystemKey file are set to be readable by only root.

    What Windows does varies depending on version. For XP the wifi password is converted into a key and this key is stored directly in the registry unencrypted. For Vista and later the wifi password is encrypted (not turned into a key) with the System's Master Key and saved into XML file inside a known path on disk. To reverse this process offline, you need the particular decrypted Master Key used to encrypt the wifi password. Due to the way that Window's DPAPI works there may be many multiple Master Key's, one of which was the one actually used to encrypt the wifi password. All System Master Key's live under a well known path on disk but are encrypted. To decrypt a System Master Key, data from the SYSTEM and SECURITY registry hives has to be used. Permissions on the aforementioned registry hives and Master Keys is tight so even a "regular" Administrator cannot directly access the underlying files while the system is running and some of the files are marked as hidden (but this is by the by for an offline attack).

  110. Re:/boot needs the decrypt by buchanmilne · · Score: 1

    Unless your boot is "Please enter password to boot up computer" before it can boot the OS.

    Of course it is. Any other FDE is the sprinkling of magic encryption dust kind of FDE. Both initscripts (on RH-style systems) and systemd support this, and have for years.

  111. Re:/boot needs the decrypt by buchanmilne · · Score: 1

    Oh, and that still doesn't answer why laptops are trickier than desktops in this regard.

  112. Re:My password is printed on the side of my router by Carewolf · · Score: 1

    Depends on what your floors are made of. If it is made of concrete the signal is blocked. If you live in a concrete house you often can't even use a cell phone without going to a window and you may need repeaters for wifi in each room unless you can place it in a hall where the signal can reach the rooms through the doors. Concrete is common in modern urban appartments but less so in suburban single home houses.

  113. Re:My password is printed on the side of my router by Carewolf · · Score: 1

    Sorry, you brought theory to a practical fight.

    No, he brought an anecdote. The theory is sound. Wifi can not penetrate concrete.

  114. Not a real problem today. by niftymitch · · Score: 1

    Not a real problem.
    By default there is no read permission except
    by root.

    Not a real problem...
    A stranger must own your machine to grab the phrase.

    Not a real problem.
    Knowing the key to a WiFi link that travels less than
    100 feet in most cases has no value unless your snooping
    device is also within 100 feet.

    Not a real problem.
    Data coming off the WiFi router is not encrypted on links
    that can be snooped on half a continent away.

    Not a real problem.
    If you care, establish a VPN link between you
    and some place you trust.

    Not a real problem.
    If the key was encrypted ... In a family of six the pass phrase needs to
    be shares with at least six. Add the babysitter and key management in
    a home gets to be so much trouble that silly user tricks will make it
    worse.

    --
    Truth is stranger than fiction, but it is because Fiction is obliged to stick to possibilities; Truth isn't. Mark Twain.
  115. network mangler can DIAF by X0563511 · · Score: 1

    NM is a real pain in the ass.

    --
    For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  116. Re:FUD by Pav · · Score: 1

    I think we can all agree that there is nothing approaching a secure and universally acceptable way to handle this problem.

  117. WI PWDS in the clear. by lsatenstein · · Score: 1

    My first opinion is that for the majority of users, our laptops or desktops are personal systems in a non hostile internal environment. If we encrypt the network passwords, a decision would be to decide if a specific group (user) is the owner, and if all the other users are member of that group.
    That way, I could, if encryption became the defacto standard, allow all my enrolled users network access.

    OK, what about hacker programs which somehow are now behind the scenes with privileges. All they need do is join the appropriate group, which would entitle them to network access. (dont want to use a group, use a privileges list via selinux or other means.

    As this security has little to do with the router security, I deep the network passwords a FUD argument.

    --
    Leslie Satenstein Montreal Quebec Canada
  118. Re:My password is printed on the side of my router by DarwinSurvivor · · Score: 1

    Sorry, you brought theory to a practical fight.

    No, he brought an anecdote. The theory is sound. Wifi can not penetrate the rebar in concrete.

    FTFY

  119. Re:My password is printed on the side of my router by Urkki · · Score: 1

    The rebar should not matter much, it has too big holes to stop WiFi frequencies. It's just signal getting weaker when passing through the material. Rebar certainly plays a part in that, but does not stop the signal.