Slashdot Mirror


Why Screen Lockers On X11 Cannot Be Secure

jones_supa writes: One thing we all remember from Windows NT is the security feature requiring the user to press CTRL-ALT-DEL to unlock the workstation (this can still be enabled with a policy setting). The motivation was to make it impossible for other programs to mimic a lock screen, as they couldn't react to the special key combination. Martin Gräßlin from the KDE team takes a look at the lock screen security on X11. On a protocol level, X11 doesn't know anything of screen lockers. Also the X server doesn't know that the screen is locked as it doesn't understand the concept. This means the screen locker can only use the core functionality available to emulate screen locking. That in turn also means that any other client can do the same and prevent the screen locker from working (for example opening a context menu on any window prevents the screen locker from activating). That's quite a bummer: any process connected to the X server can block the screen locker, and even more it could fake your screen locker.

375 comments

  1. Umm..and telnet is insecure. by heavy_metal_drinker · · Score: 5, Insightful

    Flashback from the 90's: Telnet and X11 are inherently insecure - where's the news in that?

    1. Re:Umm..and telnet is insecure. by Penguinisto · · Score: 0

      No kidding... none of the mainline Linux distros use X11 anymore (that I know of), and they don't mention XOrg (X11's descendant) in TFA anywhere.

      --
      Quo usque tandem abutere, Nimbus, patientia nostra?
    2. Re:Umm..and telnet is insecure. by Dog-Cow · · Score: 5, Informative

      Wow. Way to totally misunderstand everything.

      X11(R6) is a protocol.
      XFree86 and XOrg are implementations.

    3. Re:Umm..and telnet is insecure. by CajunArson · · Score: 0

      Can't decide... ultra-dry sarcasm or Aspergers level-10 pedantry that's actually not even factually accurate in the context of the article.

      --
      AntiFA: An abbreviation for Anti First Amendment.
    4. Re:Umm..and telnet is insecure. by Zeromous · · Score: 0

      LOL another trainwreck of a comment from Penguistino!

      --
      ---Up Up Down Down Left Right Left Right B A START
    5. Re:Umm..and telnet is insecure. by Burz · · Score: 1

      Qubes graphics virtualization appears to prevent this attack, since there is no way a VM client can use specific X features (it can only report bitmap deltas to dom0) and it can't force a full-screen window (the user even has to jump through hoops to make that possible).

    6. Re:Umm..and telnet is insecure. by Anonymous Coward · · Score: 0

      Why can't it be both??

    7. Re:Umm..and telnet is insecure. by omnichad · · Score: 2

      XFree86 is a port of X(11). The protocol it uses has also taken the same name.

    8. Re:Umm..and telnet is insecure. by Anonymous Coward · · Score: 0

      I'll take naive mistake over offtopic douchebaggery any day.

    9. Re:Umm..and telnet is insecure. by ihtoit · · Score: 1

      I'll take AC flame war for 200, Alex?

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    10. Re:Umm..and telnet is insecure. by Anonymous Coward · · Score: 0

      Whatever, libtard. I bet you kill babies.

    11. Re:Umm..and telnet is insecure. by blackomegax · · Score: 1

      Awesome. By the time Qubes hits a mainstream OS i'll be dead and buried..

    12. Re:Umm..and telnet is insecure. by Burz · · Score: 1

      Its designed to run Windows 7 as a guest OS.

    13. Re:Umm..and telnet is insecure. by hcs_$reboot · · Score: 1

      The news is that nobody uses telnet anymore (ssh), while X11..

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    14. Re:Umm..and telnet is insecure. by hcs_$reboot · · Score: 1

      Flashback from the 90's: Telnet and X11 are inherently insecure - where's the news in that?

      We're still expecting X12 any time now.

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    15. Re:Umm..and telnet is insecure. by delt0r · · Score: 1

      I was going to say the same thing. We know how insecure X11 is. Don't we? Well i though everyone did.

      --
      If information wants to be free, why does my internet connection cost so much?
    16. Re:Umm..and telnet is insecure. by Zeromous · · Score: 1

      I love you too Penguinisto

      --
      ---Up Up Down Down Left Right Left Right B A START
    17. Re:Umm..and telnet is insecure. by PincushionMan · · Score: 1

      Yes, but only without 3D acceleration. Xen and CubesOS don't support it. Sure, you can browse the web, but anything that requires 3D, like videos and games are not really feasible. Even newer versions of Excel need 3D rendering. Don't even think of running it in a VM (Hypervisors within Hypervisors).

      You'll have more luck 3D-wise with a Hyper-V server combined with Windows new RemoteFX technology. I know that this is unpopular option, and if anyone can set me straight on hypervisors and 3D for Windows guests not running on Windows hypervisors, please do. I've researched KVM, LXD, Jailhouse, or ESX, and of those, only ESX has experimental Windows 3D guest support.

    18. Re:Umm..and telnet is insecure. by Burz · · Score: 1

      Qubes handles video playback just fine even at FHD (although within a frame, to show security context).

      The MS Office website says Excel requires DirectX "for acceleration". IOW, it runs without acceleration if DirectX hardware is not available. Its not something I really notice, given that Excel mainly deals with text on a grid.

      If you really need 3D, Qubes can handle it as long as you supply an additional GPU that behaves well with an IOMMU, such as an Nvidia Quadro. Otherwise, you have to wait for ITL to incorporate GPU virtualization into the Qubes codebase... but virtual GPU tech has only been demonstrated by GPU vendors very recently.

      Granted, 3D is an important feature in PCs today, but the inability to /safely/ incorporate it thus far highlights the kind of negligence that has held sway in the computer industry.

      You'll have more luck 3D-wise with a Hyper-V server combined with Windows new RemoteFX technology. I know that this is unpopular option, and if anyone can set me straight on hypervisors and 3D for Windows guests not running on Windows hypervisors, please do. I've researched KVM, LXD, Jailhouse, or ESX, and of those, only ESX has experimental Windows 3D guest support.

      Most hypervisors are designed for the convenience of users and sysadmins to either run another OS, or better manage server resources... Securing desktop PC features is secondary at best with them.

    19. Re:Umm..and telnet is insecure. by drinkypoo · · Score: 1

      I've researched KVM, LXD, Jailhouse, or ESX, and of those, only ESX has experimental Windows 3D guest support.

      Xen supports VGA passthrough, but it's kind of wacky.

      KVM supports SPICE consoles, which will do video properly, but won't do 3d. Maybe someday.

      Virtualbox claims to have a direct3d/opengl layer, but I've literally never had it work.

      VMware Player and Workstation have a working direct3d/opengl layer. It's good enough for civ iv but not for simcity 4.

      If you want free-as-in-beer virtualization with working 3d, you want vmware player.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  2. So to cicumvent the screen locker... by Viol8 · · Score: 5, Insightful

    ... there has to be a trojan on the system or at least something connected to the X server over the network.

    Hmm. I think by this time your security is already out the window and a borked lock program is the least of your worries.

    1. Re:So to cicumvent the screen locker... by TWX · · Score: 1

      Well, one of the flaws in X11 is how one receives remote screens to your X-server, and if people allow localhost to send screens to the session, then if someone compromises a local unprivileged account they could set up a fake lock screen on an admin's session so that when the admin enters his password they get the text he typed.

      I see how this could be a problem, but given that desktop Linux isn't all that widespread I see bigger problems in arenas that are much more pressing.

      --
      Do not look into laser with remaining eye.
    2. Re:So to cicumvent the screen locker... by Qzukk · · Score: 3, Insightful

      This has been solved by everyone not following tutorials from the 80s asking them to use xhost + to allow everyone everywhere to connect to your display.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    3. Re:So to cicumvent the screen locker... by bondsbw · · Score: 2

      Hmm. I think by this time your security is already out the window and a borked lock program is the least of your worries.

      Just because an application is running on your system doesn't mean it has elevation. But if it pretends to be your lock screen and convinces you to put your password into it, it may be able to gain that elevation.

      --
      All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
    4. Re:So to cicumvent the screen locker... by Anonymous Coward · · Score: 5, Informative

      This was fixed decades ago. Don't issue xhost + and you should be fine. X uses auth tokens that are files in /tmp with mode 600.

    5. Re:So to cicumvent the screen locker... by wiredlogic · · Score: 1

      Sometimes xhost is still necessary when dealing with old hardware. I have a logic analyzer that remote displays using X11R5. It doesn't play nice unless the server has been opened up with xhost.

      --
      I am becoming gerund, destroyer of verbs.
    6. Re:So to cicumvent the screen locker... by Anonymous Coward · · Score: 0

      Well, he also said if a context menu is up it cannot lock. That doesn't require any malicious code or even malicious intent to have that happen.

    7. Re:So to cicumvent the screen locker... by Uecker · · Score: 1

      Exactly. That you should only use ssh to tunnel X and only between trusted hosts is well known. It would be nice if you could run untrusted clients on X (and the X security extension was meant for this), but nobody seems to work on this. This would be vastly more useful IMHO than re-building everything on top of a dumbed down protocol: Wayland.

      The solution the Wayland guys offer for remote desktop: Use RDP. As if this proprietary protocol from Microsoft never had security problems....

      Also, for a different perspective. Look at this:
      http://media.ccc.de/browse/con... ... and don't jump to conclusions based on the title. Just watch and pay attention especially with respect to the comments about security of core X11 vs. Qt. And then maybe don't use KD anymore.

      In my opinion, breaking compatibility with the X protocol would be the biggest strategic blunder Linux community coud do. Even bigger than messing with the GUI in stupid ways exactly when everybody using Windows is frustrated with the GUI

    8. Re:So to cicumvent the screen locker... by goose-incarnated · · Score: 1

      Also, for a different perspective. Look at this: http://media.ccc.de/browse/con... ...

      Because talking head delivering 60 seconds worth of information spread out over 10 minutes is so much better than a readable, grep-able transcript.

      --
      I'm a minority race. Save your vitriol for white people.
    9. Re:So to cicumvent the screen locker... by ilsaloving · · Score: 4, Funny

      Reminds me of my university days...

      When someone walked away for an extended period without locking their terminal, one of us would sneak over and do a quick 'xhost +' and then wait for them to come back.

      Once they sit down and start working again, we would run 2 dozen copies of neko on their terminal, resulting in a mass of little animated kittens chasing their mouse cursor.

      Ah, the lost days of innocent fun.

    10. Re:So to cicumvent the screen locker... by srmalloy · · Score: 1

      ... there has to be a trojan on the system or at least something connected to the X server over the network.

      Not always; sometimes it's just bad design. At a previous job many years ago, I recall being able to demonstrate getting past the screen lock on Perq computers by taking advantage of processing lag -- when you hit the key combination that would bring up the password input to unlock the screen, it would briefly clear the screen lock and show the desktop -- with full access to the computer until the screen lock process updated and showed the password prompt, which blanked the rest of the screen. Doing this repeatedly, you would first open a new shell window, then run a ps -ef command to show the active processes, look up the process for the screen lock, and then do a kill -9 on the screen lock process, which got you back to the desktop. We wrote this up and sent it to Perq, and they went back and altered the screen lock code so that it didn't display the desktop when you hit the unlock key combination.

    11. Re:So to cicumvent the screen locker... by HiThere · · Score: 1

      So what you're saying is that there is old hardware that will only work if you make your system insecure. OK.

      FWIW, I don't consider any system that allows remote sessions to be secure. Period. So you need to isolate such systems. (This isn't an argument that you shouldn't run such systems. Just that you should take precautions.)

      As an aside, I think that allowing compressed files to be expanded with the execute bit set is also a security hazard...just one that's probably worth the cost. In most circumstances. (And hazard isn't the same as hole. Not quite.)

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    12. Re:So to cicumvent the screen locker... by nedlohs · · Score: 3, Funny

      We always just added

      echo "sleep 1" >>$HOME/.bash_profile

      to their .bash_profile (or the equivalent if they were using something other than bash).

      And might have sometimes done:

      cp /bin/sh /somewhere/world/write/readable/sh-[username]
      chmod 4755 /somewhere/world/write/readable/sh-[username]

    13. Re:So to cicumvent the screen locker... by OhSoLaMeow · · Score: 1

      Reminds me of my university days...

      When someone walked away for an extended period without locking their terminal, one of us would sneak over and do a quick 'xhost +' and then wait for them to come back.

      Once they sit down and start working again, we would run 2 dozen copies of neko on their terminal, resulting in a mass of little animated kittens chasing their mouse cursor.

      Ah, the lost days of innocent fun.

      We'd run `xset s 1` so that the screen saver would kick in after one second of inactivity.

      --
      They can take my LifeAlert pendant when they pry it from my cold dead fingers.
    14. Re:So to cicumvent the screen locker... by Anonymous Coward · · Score: 0

      xhole was even more fun. It would make a hole in the window that you clicked in. It was a real hole, if you have focus follows mouse you could control the window that was visible through the hole.

    15. Re:So to cicumvent the screen locker... by complete+loony · · Score: 1

      Sometimes I was far more subtle. I'd start slowly cycling the background color, one RGB increment at a time...

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
    16. Re:So to cicumvent the screen locker... by Anonymous Coward · · Score: 0

      We did something similar during computer lab sessions. Wait for a poor soul to ask the teaching assistant for help with his assignment and bang: full screen semi-nude Claudia Schiffer.

    17. Re:So to cicumvent the screen locker... by thegarbz · · Score: 1

      ... there has to be a trojan on the system or at least something connected to the X server over the network.

      No the problems go far deeper than that. Effectively any program can prevent the screenlocker working accidentally or on purpose. Likewise the screenlocker can prevent any program from working accidentally or on purpose (i.e. open the laptop lid, unlock, and only then the convenient volume buttons will work).

      Best of all the purpose of the lockscreen is to secure the user session while they aren't at the keyboard. I fondly remember back in the day someone showing off the X11 lockscreen and saying that I can't use the computer as him because he locked it. I hit ctrl+alt+backspace which killed the X11 session and automatically restarted it, logged in as the user who was now dumbfounded.

      X11 has always had these problems. The protocol really isn't designed to handle such concepts.

    18. Re:So to cicumvent the screen locker... by Culture20 · · Score: 3, Informative

      Xroach: places animated roaches under their open windows and the roaches scatter when the windows are reduced or closed.

    19. Re:So to cicumvent the screen locker... by Rennt · · Score: 1

      Spoofing a lock screen will only get you the password of the account you've already trojan'd, it can't give you magic root access.

    20. Re:So to cicumvent the screen locker... by parenthephobia · · Score: 1

      Unless you can get an administrator to log in.

    21. Re:So to cicumvent the screen locker... by Rennt · · Score: 1

      Get root to log into X11? Without local access to the administrator and a rubber hose I don't fancy your chances. Of course, that still isn't privilege elevation.

    22. Re:So to cicumvent the screen locker... by Anonymous Coward · · Score: 0

      Systemd, Wayland etc, the death of Linux.

      We use Linux because it is unix like, not because it is linux.

    23. Re:So to cicumvent the screen locker... by maestroX · · Score: 1

      :)
      xmelt, xflip
      old HP-UX had X open by default.

    24. Re:So to cicumvent the screen locker... by Anonymous Coward · · Score: 0

      The article also seems to be ignoring the presence of common extensions to help with this problem, such as MIT-SCREEN-SAVER, DPMS, and SYNC. Admittedly, it does poke at the fact that KDE (and GNOME) is subverting these extensions in favor of developing something proprietary. Strategic use of these extensions could solve most of the problems described. Furthermore, it is somewhat relying on the fact that the new screen lock programs have bugs and do not fail secure.

    25. Re:So to cicumvent the screen locker... by Rakarra · · Score: 1

      As an aside, I think that allowing compressed files to be expanded with the execute bit set is also a security hazard...just one that's probably worth the cost

      I'm generally fine with that, but I am very much against putting '.' in the PATH, as I've seen others do.

    26. Re:So to cicumvent the screen locker... by ilsaloving · · Score: 1

      Ooooooooooh..... That's evil. :)

    27. Re:So to cicumvent the screen locker... by complete+loony · · Score: 1

      I also had a script that would tweak the beep pitch and duration and play the close encounters theme. With the option of using a different xserver for each beep. Combined with a script that would use finger to display a map of the terminals people were connected from, and terminals that were xhost+ when noone was logged in ....

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
    28. Re:So to cicumvent the screen locker... by Anonymous Coward · · Score: 0

      You should be able to do "xhost +ip" - that way you're only vulnerable to attacks coming from the logic analyzer itself.

      Bonus points if you start something like Xephyr, and only "xhost +ip" that display, and not the real one.

  3. Uh, okay? by TWX · · Score: 2, Insightful

    I certainly get the technical explanation. Given that I don't think Deskop Linux will EVER be mainstream, this seems like something we've lived with for an incredibly long time, and doesn't affect very many people or systems.

    If someone wants to fix it, cool, but it's not really going to bother me very much if this behavior continues.

    --
    Do not look into laser with remaining eye.
    1. Re:Uh, okay? by Enry · · Score: 5, Funny

      What? I was assured that THIS was the year of the Linux Desktop!

    2. Re:Uh, okay? by TWX · · Score: 1

      Every year is the year of the Linux desktop. And none of them are.

      --
      Do not look into laser with remaining eye.
    3. Re:Uh, okay? by bondsbw · · Score: 2

      It is. They just failed to mention that it was is a year on Pluto.

      --
      All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
    4. Re:Uh, okay? by GoodNewsJimDotCom · · Score: 2

      It doesn't bode well for Linux that it is also not the year of the Windows Desktop or Apple Desktop. It is the year of the smart phone. The year of the desktop may never return. Desktops are better suited for developers and smart phones are better suited to consumers.

    5. Re:Uh, okay? by mrchaotica · · Score: 1

      It is the year of the Linux desktop! It's just that the Linux in question uses Chrome instead of X11 as its GUI.

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    6. Re:Uh, okay? by Anonymous Coward · · Score: 0

      Given that I don't think Deskop Linux will EVER be mainstream, this seems like something we've lived with for an incredibly long time, and doesn't affect very many people or systems.

      It's a chicken and egg problem. Because these same unprofessional hacks guarantee that Linux desktop will never become mainstream.

      I'm not sure if security concerned enterprise users love to hear that the lock screen is just a taped-on mockup and cannot work properly if a context menu is open.

    7. Re:Uh, okay? by Anonymous Coward · · Score: 0

      I have had a Linux desktop for about the last 10 years, so which one of those was THE year? Can I stop now?

    8. Re:Uh, okay? by jfengel · · Score: 1

      They had to push that back. This is the year of Linux on the Flying Car. We'll get to Linux on the Desktop right after that.

    9. Re:Uh, okay? by Immerman · · Score: 1

      It is! Unfortunately the Desktop is itself rapidly fading in favor of the laptop, and desktop Linux has power management issues that make it substantially less suitable for mobile applications..

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
    10. Re:Uh, okay? by bluefoxlucid · · Score: 1

      What about Steam on Linux, Microsoft charging a yearly subscription for Windows 10*, and nobody wanting to pay to continue using the computer they already bought?

      *Windows 10 upgrades within the first year of release come with a free lifelong subscription until Windows 10 is discontinued. Corporate subscription is per-user on unlimited devices, rather than per-device.

    11. Re:Uh, okay? by Ultra64 · · Score: 1

      Microsoft charging a yearly subscription for Windows 10*

      False.

      http://www.pcgamer.com/microsoft-windows-10-will-not-be-sold-as-a-subscription/

    12. Re:Uh, okay? by TheSunborn · · Score: 1

      No no, that is a misunderstanding. This year is the year of a linux desktop. Not The linux desktop.

    13. Re:Uh, okay? by Lumpy · · Score: 1

      It is. Chrome OS, which is Linux is in wide spread use.

      --
      Do not look at laser with remaining good eye.
    14. Re:Uh, okay? by Aighearach · · Score: 1

      What? I was assured that THIS was the year of the Linux Desktop!

      THIS is the year of the Arduino desktop.

      But I hate that commercial OSS crap, so I'm sticking to roll-your-own AVR boards.

    15. Re:Uh, okay? by Aighearach · · Score: 1

      They use a secure screen locker that integrates into their corporate what-the-what. What they don't do is use the password-protected screen saver that is bundled with the window system as if it was a security device.

    16. Re:Uh, okay? by Kjella · · Score: 2

      It doesn't bode well for Linux that it is also not the year of the Windows Desktop or Apple Desktop. It is the year of the smart phone. The year of the desktop may never return. Desktops are better suited for developers and smart phones are better suited to consumers.

      Developers and a ton of other professionals. If Linux/FLOSS could replace Windows, Office, Outlook/Exchange, Sharepoint and SQL Server that's probably 15 of Microsoft's $26 billion dollar revenue. Open source has not managed to commodify basic business and collaboration tasks, despite so many years of trying. It's not all about smartphones and tablets.

      --
      Live today, because you never know what tomorrow brings
    17. Re:Uh, okay? by Anonymous Coward · · Score: 0

      They had to push that back. This is the year of Linux on the Flying Car. We'll get to Linux on the Desktop right after that.

      So next year is the year of the Linux Jetpack? I want a jetpack, damnit, not a stupid desktop.

    18. Re:Uh, okay? by ihtoit · · Score: 1

      Chrome's an XSA? I thought it was a browser?

      That and what happened to Wayland and Mir as X11 replacements?

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    19. Re:Uh, okay? by greg1104 · · Score: 1

      2015 is actually the year of Linux on the hoverboard.

    20. Re:Uh, okay? by Zontar+The+Mindless · · Score: 1

      Then for you, as it is for me, it's Year Ten of the Linux Desktop.

      --
      Il n'y a pas de Planet B.
    21. Re:Uh, okay? by mrchaotica · · Score: 1

      My point is that the "year of the Linux desktop" won't be because of "normal" Linux, but rather Chrome OS.

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    22. Re:Uh, okay? by delt0r · · Score: 1

      I know this is said in jest...but

      I only use linux desktops. Why do i need to care about what others use? Interoperability should mean we don't need the year of whatever whenever.

      --
      If information wants to be free, why does my internet connection cost so much?
    23. Re:Uh, okay? by frank_adrian314159 · · Score: 1

      You know, I haven't used Outlook in a year and a half. Gmail and Google Calendar seem to be doing fine for me.

      --
      That is all.
    24. Re:Uh, okay? by Anonymous Coward · · Score: 0

      It has succeeded in replacing all of that. People are just ignorant and close-minded and refuse to either look for or even accept that Linux-based alternatives with at equal or better functionality do exist.

      Windows - KDE
      Office - LibreOffice or Google Drive
      Outlook / Exchange - Horde or Kolab or Google Mail/Calendar
      Sharepoint - Confluence and every other Atlassian tool
      SQL Server - Postgresql or any of several enterprise-supported packaged versions, or even Oracle if you want to burn some deep pockets

      There is literally nothing that a Windows server does better, if a company will hire competent sysadmins and replace their Windows staff.

  4. Windows reigns supreme by Anonymous Coward · · Score: 0, Flamebait

    No surprise here. Enjoy your hobby OS.

    1. Re:Windows reigns supreme by Viol8 · · Score: 3, Informative

      Would this be the "hobby" OS that took over running the London Stock Exchange trading platform when Windows couldn't cope?

    2. Re:Windows reigns supreme by Anonymous Coward · · Score: 0

      The error there was mostly a performance problem due to using .NET, not Windows.
      If they went with something like C++ they would be able to reach the required performance, which was the main reason the whole system was dropped, the performance of the stuff they did in C# was abysmal.

    3. Re:Windows reigns supreme by Viol8 · · Score: 4, Informative

      They did go for C++. On Linux. It was more than just issues with .NET.

    4. Re:Windows reigns supreme by jellomizer · · Score: 1

      In terms of a server OS, Linux has good security. The lock screen on X11 in order to keep other out of your logged in session, workstation/desktop usage. It isn't ideal.

      the NT Alt-Ctrl-Del is a Workstation thing. Its security is low level to prevent applications from accessing it.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    5. Re:Windows reigns supreme by phantomfive · · Score: 1

      It was more than just issues with .NET.

      Really? Now I'm interested. What other problems did they have?

      --
      "First they came for the slanderers and i said nothing."
    6. Re:Windows reigns supreme by Anonymous Coward · · Score: 0

      And the vast majority of supercomputers. Windows, not so many. Yep, a hobby OS indeed.

    7. Re:Windows reigns supreme by Anonymous Coward · · Score: 0

      WTF does that have to do with X11 and screen locks?? Do try and stay on topic.

    8. Re:Windows reigns supreme by MrKaos · · Score: 3, Interesting

      It was more than just issues with .NET.

      Really? Now I'm interested. What other problems did they have?

      Messaging systems performance. The closed nature of the windows kernel means it cannot be tuned to the granularity required for performance objectives to be met for the messaging systems. Windows may reign supreme on the desktop, however when it comes to serious computing objectives, it's always the year of the *ix server.

      As for this issue affecting any enterprise systems, many don't have a GUI on their console, so there is no opportunity to troll there either.

      Incidentally, if you want to see a manifestation of this issue on a X11 desktop, pick a program with menus - lets say firefox, position the mouse on the menu so it opens, then leave the cursor on the menu until the screensaver kicks in. After the lock screen kicks in you will be able to interact with the GUI until the task loses focus, then the screen save will lock. It's been around for a while.

      Yep, it's a risk for a desktop, if _insert_convoluted_scenario_here_, however it should still be fixed.

      --
      My ism, it's full of beliefs.
  5. but but by Anonymous Coward · · Score: 0

    linux is mroe secure than anything!!

    1. Re:but but by Anonymous Coward · · Score: 0

      Jawohl comrade! Marx-Engels-Lenin-Stalin-Stallman told me so!

  6. not the point by lister+king+of+smeg · · Score: 3, Insightful

    Isn't the point of a screen locker to keep a person from accessing my computer while I step away for a moment (to go to the bathroom or refill my coffee mug.) not to prevent programs from accessing things?

    --
    ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
    1. Re:not the point by CastrTroy · · Score: 2

      The problem is that if you walk away and think that the screen locker will kick in, and somebody comes by while it is still unlocked, they can run a program that will look the the screen locker when you come back, but in reality will actually just be recording your user name as password so the intruder can use this. They'll get the password, and come back at a time when they have more time to do their dirty work. Ideally, you should lock your computer as soon as you get up, but that's what happens in an ideal world, and security has to work under non-ideal circumstances.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    2. Re:not the point by phantomfive · · Score: 1

      Yes. What you see here is feature envy.

      Windows used to have so many keyloggers (it was really insecure around 1999 and 2000) that they added the ctrl-alt-delete functionality to make sure only the Windows kernel could grab your password when you logged in, not some keylogger. Now these guys are feeling jealous about that.

      I've heard of this as a justification for replacing X11 with Mir/Wayland or whatever, but obviously if this is a desired feature, the solution is to merely add an extra function call to the X11 API rather than rewriting the whole thing. Problem solved, if there is one.

      --
      "First they came for the slanderers and i said nothing."
    3. Re:not the point by Anonymous Coward · · Score: 0

      The point of the screen locker is to keep the screen locked unless the intended user would like to unlock it.

      To the author's point, it seems to have been designed without a threat model in mind. Your attitude - that authenticating the unlocking process/signal is out of scope - displays exactly the same flaw as the thinking behind the original design.

    4. Re:not the point by MadCow42 · · Score: 2

      Example that might make more sense:

      You download a program that appears legit (and may be mostly legit, or be a hacked version of a legit program), and are running it.

      The program senses inactivity, opens a contextual menu on the screen to prevent the REAL screensaver from kicking in, and opens it's own fake screensaver instead.

      When you get back to the computer, it prompts you to input your credentials.

      Voila... it now has your credentials, and can wreak utter havoc and destruction (depending on your permissions).

      --
      I used to have a sig, but I set it free and it never came back.
    5. Re:not the point by Anonymous Coward · · Score: 4, Informative

      What do you mean "think it will kick in"? Activate it when you get up from your desk, period. For Windows it's an easy "winkey+L" combo as you get up from your desk. Done, workstation is secured and locked. That's our company policy anyway, you're supposed to lock your workstation when you step away. A timed lock screen is pointless, stupid and just gets in the way. If your mouse just happens to bounce a little, it'll reset the "inactive screen timeout".

    6. Re: not the point by Teranolist · · Score: 3, Informative

      Thats why you lock your screen manually BEFORE you leave the machine...

    7. Re:not the point by preaction · · Score: 1

      No, X11 was designed without screen locking in mind.

    8. Re:not the point by smash · · Score: 2

      "merely add a function to the X11 API" is the problem. X11 is ancient, full of bloat that no one uses any more and not designed with core concepts in mind that are desirable in a modern operating system. Really, look up some youtube presentations from the Wayland guys - who actually work on X11 and listen to what they have to say regarding the complexity and brain damage in X11. It works, but sometimes, even the guys who maintain it don't know exactly why.

      The X11 display server is a liability and needs to die. It should have been taken out behind the shed and shot about a couple of decades ago. That doesn't mean that "oh noes i will lose my remoting!", that can be implemented in it's replacement via a shim, the same way any X display server works for Windows or Mac.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    9. Re:not the point by Anonymous Coward · · Score: 0

      if you have access to an unattended computer, and time to run an application, you can always install a keyboard logger.

      The problem is leaving the keyboard unattended, not the locking application.

      But even with a screen locker, access to the system means a hardware keylogger can be put into place. So you'e still insecure.

    10. Re:not the point by jythie · · Score: 1

      Pretty much this. Security often involves a trade off, and this type of screen locking performs well for the level of security it was intended to establish.

    11. Re:not the point by spike+hay · · Score: 1

      Good luck ever actually getting rid of it, considering it is what every *nix gui app runs on. Even if the switch to Wayland happens, most people will still be stuck with using XWayland constantly for a decade.

      --
      If you don't understand any of my sayings, come to me in private and I shall take you in my German mouth.
    12. Re:not the point by Todd+Knarr · · Score: 1

      You download a program that appears legit (and may be mostly legit, or be a hacked version of a legit program), and are running it.

      But why would I do that? Almost all the programs I use come from the repository, and to get me to download one they'd have to compromise the repository first (which is possible, but not nearly as easy as just advertising a program for download). The rest are again ones I download from known sources, usually the developers' own official site, and again it's not trivial to compromise those sites.

      The situation you propose only happens in the world of Windows where downloading random software from untrusted/unknown sources is routine. And if you're routinely doing that, you've got more problems than just a way to bypass the screen lock. The best way to avoid shooting yourself in the foot is to not blithely follow instructions but to stop and ask "Wait a minute, why are they asking me to aim a loaded gun at my foot and pull the trigger?". And if after pondering that question you still think following the instructions is a good idea, please report to HR for reassignment as reactor shielding.

    13. Re:not the point by phantomfive · · Score: 1
      Oh, Wayland........maybe after I do systemd, I'll work on a code review of Wayland. :)

      All the same, if some guys can't figure out how their code works, I don't really expect them to go out and do something better in another project. I expect them to make the same mistakes again. Joel makes some good points. He says,

      "when you start from scratch there is absolutely no reason to believe that you are going to do a better job than you did the first time. First of all, you probably don't even have the same programming team that worked on version one, so you don't actually have "more experience". You're just going to make most of the old mistakes again, and introduce some new problems that weren't in the original version. "

      Maybe Wayland will be better, that would be great. Odds are against it though, because of how rewrites usually go.

      --
      "First they came for the slanderers and i said nothing."
    14. Re:not the point by Carewolf · · Score: 1

      If you have a laptop it will usually lock when you close the lid, but as the summary said, if a context menu is open it might be prevented. The same when you click the lock key, if you don't check and see that it really launches and locks the screen, it might be that it is not locked.

    15. Re: not the point by Anonymous Coward · · Score: 0

      Actually, that was added in 1993. It's always been a part of the WinNT kernel. Thanks for playing, though.

    16. Re:not the point by Kaenneth · · Score: 1

      I don't have a Windows key, you insensitive clod.

      (IBM Model M keyboard from 1996)

    17. Re:not the point by jakimfett · · Score: 3, Insightful

      So...what you're saying is "people who aren't security conscious continue to be vulnerable to attacks that exploit their sloppiness and/or lack of attention"?

      Shocker.

      --
      Bits of code, random ramblings: jakimfett.com
    18. Re:not the point by Anonymous Coward · · Score: 0

      No, having a context menu open or anything prevent the screen locker to show up by itself, but if I actively hit a keyboard shortcut to lock the screen, nothing short of preventing the process from starting will stop it.

    19. Re:not the point by codeButcher · · Score: 2

      but in reality will actually just be recording your user name as password so the intruder can use this. They'll get the password, and come back at a time when they have more time to do their dirty work.

      That's why I always first try to unlock with "password123" when I get back from the bathroom break I could no longer postpone.

      --
      Free, as in your money being freed from the confines of your account.
    20. Re:not the point by Creepy · · Score: 1

      Or security at all, really. X11 is vulnerable to packet sniffing as well (which still requires trust on the host). Really, the solution is use X over ssh, which is also how I start all terminal sessions, as well.I personally usually run from a Windows PC using XMing and PuTTY, but I'll occasionally use an actual box (I use a lot of headless boxes and VMs, though).

    21. Re:not the point by rgmoore · · Score: 2

      Even if the switch to Wayland happens, most people will still be stuck with using XWayland constantly for a decade.

      They may be stuck with XWayland for a handful of apps that aren't being updated, but the work to let modern desktop environments run on Wayland instead of X11 is quite far along. Once the basic KDE and GNOME libraries are ported to Wayland, anything that uses those higher level libraries rather than talking directly to X will run under Wayland without needing any intermediary like XWayland. It's possible to log in and run under Wayland rather than X11 today; I have done it on my Fedora box.

      --

      There's no point in questioning authority if you aren't going to listen to the answers.

    22. Re:not the point by lister+king+of+smeg · · Score: 1

      You download a program that appears legit (and may be mostly legit, or be a hacked version of a legit program), and are running it.

      But why would I do that? Almost all the programs I use come from the repository, and to get me to download one they'd have to compromise the repository first (which is possible, but not nearly as easy as just advertising a program for download). The rest are again ones I download from known sources, usually the developers' own official site, and again it's not trivial to compromise those sites.

      The situation you propose only happens in the world of Windows where downloading random software from untrusted/unknown sources is routine. And if you're routinely doing that, you've got more problems than just a way to bypass the screen lock. The best way to avoid shooting yourself in the foot is to not blithely follow instructions but to stop and ask "Wait a minute, why are they asking me to aim a loaded gun at my foot and pull the trigger?". And if after pondering that question you still think following the instructions is a good idea, please report to HR for reassignment as reactor shielding.

      Exactly. I just looked at my programs list installed 99% of non game software came from the repository, the games were installed via steam which is in turn in the repository. the remainder (vmware player, and chrome) is delivered via HTTPS from the official site or from the git repository.

      --
      ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
    23. Re:not the point by mlts · · Score: 3, Interesting

      If someone gets physical access to my machine while I'm away and the screen locker has not activated, regardless of OS I am on, I am screwed. Be it Windows where a utility can be run to hook into the keyboard, OS X and a .kext that flashes a custom ROM to the keyboard so it doubles as a keystroke logger, AIX could have the bootlist modifed to boot from an unauthorized rootvg, Solaris could have the root role moved to all users, and so on.

      Realistically, X-Windows authentication and running rogue clients has been a non-issue since the late 1990s. By default, X is locked down quite tightly, taking an explicit "xhost +" to undo those measures. Even when SSH-ing into a remote machine, by default, the X-windows port is not authorized or forwarded unless both the client and server are explicitly changed to permit this. These days, relatively few applications are X-windows clients, other than legacy stuff. Most enterprise level items (be it an Isilon, VNX, VMWare vSphere, tape silo, and so on) either have a dedicated client, allow SSH in, or have a web page for their configuration. The last time I've used a X-Windows client from a remote machine was running the NetBackup administrative client application from a master server, because it was the most reliable way I could watch what was going on.

      One cannot make light of security holes, but there are things to work on and ones that are too difficult for an attacker to ignore. It takes some explicit commands to force X-windows to allow clients other than from the local machine to connect (including disabling the kernel packet filter or actively allowing connections through it.) So, someone connecting remotely to an X server before xlock activates can be a hole... but it is something extremely hard to take advantage of.

    24. Re:not the point by Anonymous Coward · · Score: 0

      Then you need to hit a few more keys,

      CTRL+ALT+DEL -> ENTER

    25. Re:not the point by Scoth · · Score: 2

      Windows has had the ctrl-alt-del to log in/unlock since literally the first version of Windows NT, 3.1, in 1993. That's a long time to have feature envy, though I suppose it's possible. I generally wonder if the average user is clever enough to understand the implication anyway - if you put up a fake login dialog on Windows just past the ctrl-alt-del, I bet most users would just fill it out and go with it rather than think they're under attack.

    26. Re:not the point by DrXym · · Score: 1
      "the solution is to merely add an extra function call to the X11 API rather than rewriting the whole thing. Problem solved, if there is one."

      X11 is an arcane and largely obsolete framework. The fact it needs so many damned extensions to be any way functional is precisely the reason that developers are keen to get rid of it. It's not secure, it's filled with arcane and obsolete code and it's terribly inefficient both locally and remotely. Fortunately it'll be moved aside and replaced by wayland over the next few years.

    27. Re:not the point by serviscope_minor · · Score: 1

      Well, yes.

      However, that only works if the attacker already has arbitrary local code execution. If they can do that then they can trojan every single program, by diddling with the PATH environment variable and/or pissing with LD_PRELOAD.

      Basically yes, it's a hole but one that only kicks in if you're fucked 6 ways to Sunday already.

      Or if you've done xhost+ and disabled your firewall. But that hasn't been the default in years.

      --
      SJW n. One who posts facts.
    28. Re:not the point by Immerman · · Score: 1

      I don't know - every program that I've ever restarted from scratch has turned out far more powerful and flexible with a far smaller codebase than the original. Lessons learned from the first go-round and all that. With a better understanding of the problem space comes a better ability to address it efficiently.

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
    29. Re:not the point by DrXym · · Score: 1
      "Good luck ever actually getting rid of it, considering it is what every *nix gui app runs on. Even if the switch to Wayland happens, most people will still be stuck with using XWayland constantly for a decade."

      Virtually every *nix app runs over abstraction layers such as QT, GTK, Pango, Cairo etc. Assuming there are wayland backends for these layers then porting isn't as hard as you think. There may be vestigal bits of X to clean up and some edge cases that need more effort (screengrabbers, video players, browser plugins etc.) but porting the majority of apps will just port over. Aside from that, if you *did* have some ancient X app you could still fire up X over wayland just for that.

      X will probably stick around as a core component for a few more years in most dists and then it'll be pushed off to the side as an optional package, available for those who want it but not installed otherwise because it won't be needed.

    30. Re:not the point by Anonymous Coward · · Score: 0

      "From the Wayland guys"?

      I trust their opinions about as much as I trust Steve Ballmers opinions. The second wants to destroy Linux, while the first wants to take away everything that makes X11 better than Windows 95.

    31. Re:not the point by PrimaryConsult · · Score: 1

      Those bluetooth locker programs are handy for this, once your phone / headset / whatever is out of range of your computer the lock screen automatically comes on. Some can also be configured for unlock (though that seems like it would add another possible attack surface).

      I feel like there would be a market for small bt keychain dongles for this exact purpose.

    32. Re:not the point by Anonymous Coward · · Score: 0

      Mah nigga! And if someone tries to put a fake screen locker on your machine, unclip the cord from the keyboard and bash their skull in with it!

    33. Re:not the point by phantomfive · · Score: 1

      You're probably referring to software that was small enough for a single person to understand easily.

      --
      "First they came for the slanderers and i said nothing."
    34. Re:not the point by phantomfive · · Score: 0

      Windows has had the ctrl-alt-del to log in/unlock since literally the first version of Windows NT, 3.1, in 1993.

      In 1993, Windows didn't have an NT kernel.

      --
      "First they came for the slanderers and i said nothing."
    35. Re:not the point by LordLimecat · · Score: 1

      Be it Windows where a utility can be run to hook into the keyboard....OS X and a .kext that flashes a custom ROM to the keyboard so it doubles as a keystroke logger

      Not without admin.

    36. Re:not the point by sjames · · Score: 1

      Of course, I'm betting that if something fakes a screen locker in Windows, the user will obediently enter their user/pass to unlock it anyway. They won't press ctrl-alt-del unless instructed to by the lock screen.

    37. Re:not the point by Anonymous Coward · · Score: 1

      In 1993, Windows NT 3.1 was released. Not to say that the non-NT product line ended at the same time.

      I knew someone who was in some Microsoft Developer Network program back then and he got stacks of new OS release disks all the time, meant to allow application testing. I remember installing those early NT releases just to play around. I think these may have included pre-releases since a goal of MSDN was to get apps read for new OS releases.

      However, I was already having my year of the Linux desktop by then, so I never did anything serious with Windows NT.

      I remember Linux also had magic SysRq keys to do the same SAK (system attention key). But, as the article says, I don't think this ever got integrated into a proper locking protocol for X Windows sessions.

    38. Re:not the point by operagost · · Score: 1

      Security features and policies are two different things. If you can solve a vulnerability with a feature, you do it. Policies are for things that don't have a technological solution, like social engineering. People should lock their workstations, but they don't always. Instead of remarking on how lazy or dumb they are, Microsoft created a solution 22 years ago.

      Also, policy doesn't fix this scenario with a shared computer: a malicious employee, instead of logging off after his shift, runs a fake logon screen malware to collect credentials from other users. Those other users may be privileged or, even if unprivileged, have their identities be used as cover in later attacks.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    39. Re:not the point by Anonymous Coward · · Score: 0

      only happens in the world of Windows

      You mean like the PPA repositories that exist ONLY on Windows? Oh I'm sure nobody uses them right? Heh. Back in reality, people add random repositories all the time. And then some people run into the apt-get update loop when dependencies clash and it exposes the brittle nature of dependency management in Linux - something that only happens on Linux.

      Its always amusing to see how deluded Linux cheerleaders are.

    40. Re:not the point by Anonymous Coward · · Score: 1

      Now everyone knows my password, thank you very much.

    41. Re:not the point by operagost · · Score: 2

      This feature goes back to at least Windows NT 3.5 in 1994, and perhaps even Windows NT 3.1 in 1993. The summary also implies that it always needs to be enabled, which it does not as it is the default when joined to a domain (and I think it is also the default on Enterprise and Server editions).

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    42. Re:not the point by Anonymous Coward · · Score: 0

      Really, look up some youtube presentations from the Wayland guys - who actually work on X11

      It's been obvious since long before Wayland came along that the people who've been working on X recently are completely unsuited for the job. That's not a problem with the software.

    43. Re: not the point by Lumpy · · Score: 2

      Not mine, when I get up the prox card reader sees that I am not near the workstation and instantly locks, it will not even offer an unlock until I am within proximity again.

      Really cheap to put in place less than $10K for the whole company. and increases security 80 fold. Problem is most IT departments are not savvy enough to do it nor convince management that it's more important than a new Jaguar for the Director of marketing. Heck my old Dell laptop supported it.

      --
      Do not look at laser with remaining good eye.
    44. Re:not the point by operagost · · Score: 2
      Windows NT 3.1 didn't have an NT kernel? Color me confused.

      No, scratch that-- color you wrong.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    45. Re:not the point by Anonymous Coward · · Score: 0

      Computer stores gave out OS kernels in 1993?

    46. Re:not the point by phantomfive · · Score: 0

      No, they sold them.

      --
      "First they came for the slanderers and i said nothing."
    47. Re:not the point by phantomfive · · Score: 1

      Yeah, I think you are right.

      Once you have a key logger on your system, securely unlocking the screen is not your biggest problem. (And for that matter, if someone has physical access to your computer, they can put a USB keylogger between the keyboard and the computer).

      --
      "First they came for the slanderers and i said nothing."
    48. Re:not the point by phantomfive · · Score: 1

      Privilege escalation exploits are a dime a dozen. Not even OpenBSD claims to be able to prevent those.

      --
      "First they came for the slanderers and i said nothing."
    49. Re:not the point by Anonymous Coward · · Score: 0

      wrong. well, maybe on OS X, but on Windows it does not require admin privs. This is well demonstrated and not even tricky or difficult: you just use the MS APIs. To make the point, a guy even wrote a trivial app to do this (I forget his name). He was well slandered for daring to point out the insecurity that is Windows.

      But even if you *did* have to have admin privs it wouldn't really matter, it just makes it somewhat trickier. The short of it is, if someone can run arbitrary code in your session you are done.

    50. Re:not the point by Cro+Magnon · · Score: 1

      I don't even have to hit "winkey+L" anymore. I'm supposed to login with my Lincpass card, and when I leave my desk, I take the card out of the slot, and it locks the screen.

      --
      Slow down, cowboy! It has been 4 hours since you last posted. You must wait another few hours.
    51. Re:not the point by Aighearach · · Score: 1

      What you call bloat, I call existing legacy features.

    52. Re:not the point by Aighearach · · Score: 1

      If by obsolete you mean, "the thing actually in use."

    53. Re:not the point by Uecker · · Score: 1

      I don't think so. I am actually much more afraid that we actually get Wayland soon by default, but gradually lose backwards compatibility to rarely used but hard-to-replace applications (and of course network transparency). I seriously do not see that we will gain anything.

    54. Re:not the point by Anonymous Coward · · Score: 0

      Or just bring in a you own laptop, that you have admin on

    55. Re:not the point by ihtoit · · Score: 1

      perhaps some sort of reminder is in order for such people. Like, start sacking people who leave their workstations vulnerable.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    56. Re:not the point by ihtoit · · Score: 1

      BT range is too high. What you need is something with near-contactless verification (RFID), swipe verification (smart card or chip card) or biometrics. That GUARANTEES that an authorised person is in front of the terminal and not just within 30 feet.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    57. Re:not the point by ihtoit · · Score: 1

      July 1993 NT3.1 went RTM.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    58. Re:not the point by ihtoit · · Score: 1

      typical stores in 1993 didn't deal with server/workstation platforms, they dealt with commodity platforms such as the DOS-based Win3.x but more often at that time DOS 6.x or if you were lucky and loaded, RISC OS 3. If you wanted a workstation you would usually go to a big house and have the system built under a maintenance contract and lease both hardware and software.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    59. Re:not the point by Anonymous Coward · · Score: 0

      Example that might make more sense:

      You download a program that appears legit (and may be mostly legit, or be a hacked version of a legit program), and are running it.

      The program senses inactivity, opens a contextual menu on the screen to prevent the REAL screensaver from kicking in, and opens it's own fake screensaver instead.

      When you get back to the computer, it prompts you to input your credentials.

      Voila... it now has your credentials, and can wreak utter havoc and destruction (depending on your permissions).

      None of this will be a problem once systemd-toiletd is implemented, then you'll never have to leave your computer to go to the bathroom. And when systemd-deliveryd is implemented, food won't be an issue either.

    60. Re:not the point by phantomfive · · Score: 1

      Yes, that is exactly my point.

      --
      "First they came for the slanderers and i said nothing."
    61. Re:not the point by Anonymous Coward · · Score: 0

      I use proximity to my phone's bt to lock and unlock my KDE desktop.
      I just activated a context menu and then turned off the bt on my phone.
      The desktop locked as expected so I tried a few more context menus with the same result.

    62. Re:not the point by Anonymous Coward · · Score: 0

      kept checking ... it depends on the context screen
      blank desktop etc a context menu blocks the screen saver from kicking in
      Chrome / FF / OO it doesn't

    63. Re:not the point by Anonymous Coward · · Score: 0

      I beg you never to take a role in my office.

    64. Re:not the point by Anonymous Coward · · Score: 0

      > I bet most users would just fill it out and go with it rather than think they're under attack.

      Yes.

    65. Re:not the point by Anonymous Coward · · Score: 0

      similar on linux, just press ctrl+alt+L

    66. Re:not the point by antdude · · Score: 1

      Well, not everyone remembers to press winkey+L. We do forget once in a while. At my former workplace, it is a 10/ten minutes idle time. :(

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    67. Re:not the point by thegarbz · · Score: 1

      Isn't the point of a screen locker to keep a person from accessing my computer while I step away for a moment (to go to the bathroom or refill my coffee mug.) not to prevent programs from accessing things?

      Indeed but fundamentally if you can't lock out other software from accessing things then you can't prevent other software from responding to user inputs. Several years ago a colleague who for some reason just discovered screen locking was showing off his secure system. I hit ctrl+alt+backspace and the X11 session restarted sans any running application including the screenlocker logged in as the user.

      The piece of software at the time preventing me from accessing the computer as the user was worthless.

    68. Re:not the point by thegarbz · · Score: 1

      So...what you're saying is "people who aren't security conscious continue to be vulnerable to attacks that exploit their sloppiness and/or lack of attention"?

      You joke but think about an un-educated but security conscious example. In windows the OS lock screen reigns supreme. Windows+l, or closing the lid works in every scenario, it doesn't matter if I have full screen video, context menus, a program preventing sleep / screensaver functions the computer will lock on an external event.

      Now you have a linux desktop. Your employees are security conscious but not necessarily smart. The receptionist needs desperately to go to the bathroom, does what she does to lock the screen but it doesn't work. Now do you think that someone will sit there waiting for IT support to tell her why her *worthless lockscreen isn't showing up while needing to go to the bathroom? Of course not.

      Security is always defeated by if it's function is complex / unreliable from an end user point of view. Any security that significantly negatively impacts the user will be met with circumvention attempts.

      *I say worthless because while I haven't used locked screens recently I remember a few years ago I bypassed an Xfree86 lockscreen by force closing the X11 session using ctrl+alt+backspace. The end result is X restarting and dropping me onto the desktop logged in as the user.

    69. Re:not the point by Eythian · · Score: 1

      People aren't perfect all the time, all it takes is one slip-up.

    70. Re:not the point by ihtoit · · Score: 1

      I don't know what I'm doing differently, but on my Windows netbook when I close the lid it tries to hibernate. This fails if there is a file open for editing and changes aren't saved (or there's a frame server running in Virtualdub or something) - the UI sits there waiting with a save file prompt. I've had the battery die after a four hour journey with the thing slowly cooking itself in my leg pocket.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    71. Re:not the point by ihtoit · · Score: 1

      Apple ditched X11 at 10.5, I don't know what they use now but X11 legacy functionality is achieved with a third party app now.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    72. Re:not the point by ihtoit · · Score: 1

      I thought Ubuntu was moving over to Mir in the back end of 2012?
      Or maybe my memory's faulty.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    73. Re:not the point by Anonymous Coward · · Score: 0

      In theory, Ctl-Alt-Del can only be caught by the OS on a Windows system, so it can always be trusted and will never be a Trojan. This has been the concern with Linux for decades now from a physical security perspective.

    74. Re:not the point by ihtoit · · Score: 1

      or OS/2 3.0 and back as far as the NT draft specification in 1989?

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    75. Re:not the point by Anonymous Coward · · Score: 0

      But why would I do that? Almost all the programs I use come from the repository

      *You* wouldn't, but from your response I'm guessing you've never dealt with scientists or other Linux users who have just enough of a clue to be dangerous. I try to tell them that the proper order for choosing install methods is: OS distro repo, source via https and verified if possible, source via http and verified by secondary means (checksum from a third party), rpm/dpkg from a reputable big name company, and lastly, a third party repo from a reputable big name company. Never do third party repos unless you can hold someone accountable.
      But if they're given full sudo rights, what's the first edit? Third party repos from some sketchy site offering bleeding edge versions of software for their version of OS and distro. All the botnet C&C daemons they inadvertently run "come from the repository". I cringe when I think about their personal Linux boxes.

    76. Re:not the point by Anonymous Coward · · Score: 0

      On this kubuntu laptop the screen fails to lock initially, potentially leaving confidential information that was last on screen vulnerable, but the locker kicks in seconds after the machine wakes up again.

    77. Re:not the point by smash · · Score: 1

      ... and this will still be preferable to running full fat X11.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    78. Re:not the point by parenthephobia · · Score: 1

      *I say worthless because while I haven't used locked screens recently I remember a few years ago I bypassed an Xfree86 lockscreen by force closing the X11 session using ctrl+alt+backspace. The end result is X restarting and dropping me onto the desktop logged in as the user.

      I can't believe that this would happen unless the computer is configured to automatically log in, in which case you already don't care about security. In a secure X11 environment it should be that ctrl+alt+backspace leaves you at a login screen. Or does nothing because it's been disabled so that a random passer-by can't throw away all your unsaved changes.

    79. Re:not the point by smash · · Score: 1

      Why are you so paranoid about losing network transparency, when I can do that with an X display manager on my Mac, WIndows, etc. that never even had a native X11 server to start with?

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    80. Re:not the point by smash · · Score: 1

      It's XQuartz, which is open source that they contribute to.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    81. Re:not the point by smash · · Score: 1

      The problem is that the core design of X11 was decided upon about 30 years ago and the computing landscape has moved on significantly. During the past 30 years, there have been thousands of hacks to add new functionality to existing code-paths which are no longer relevant to today's environment - but necessary to be "X11" compatible.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    82. Re:not the point by phantomfive · · Score: 1

      If you're talking about the x11 stipple functions, then they're not a reason to replace X11 either, just ignore them until no one uses them, then remove them. If people are using them, then there's a reason to not remove them.

      Being old is not a reason to replace software. Being new does not make software better.

      Although, if you'd like to tell me how the computing landscape has moved on significantly, I'm sure I'd be entertained to hear it.

      --
      "First they came for the slanderers and i said nothing."
    83. Re:not the point by thegarbz · · Score: 1

      Hibernate != lock.

      Locking a screen maintains all the programs in the background and happens without consideration of what is running. The hibernation process is a bit more like shutting down and standby. Both of them have the same hooks into processes just like the screensaver does. There are ways that programs need to interact with these systems to prevent them from happening so you don't for instance end up with a screensaver in the middle of watching a movie, or hibernate the system while in the middle of a download.

      You may notice that if your laptop hibernates due to low battery it will ALWAYS hibernate, just that hibernating due to closing the lid is not a priority given above apps that would not handle the result gracefully.

    84. Re:not the point by thegarbz · · Score: 1

      Depends if you use the graphical system for login now doesn't it?

      By my experience Ctrl+Alt+Backspace has never logged out the user. It's either restarted X or dropped you back to where you were before typing StartX.

    85. Re:not the point by smash · · Score: 1

      It has moved on in heaps of ways. Clients are far more powerful and capable of far more processing. 3d acceleration has become commodity. Compression, pixmap caching, etc. are now commonplace. Power consumption is a concern. Security is much more of a concern - bundling so much code into the X server, with the level of security access it has is a bad idea.

      You just need to open your eyes and look at well... virtually any other GUI system from the last 10-15 years and see how most of them leave X11 for dead in terms of security, performance, etc.

      The much vaunted "network transparency" of X11, the feature everyone whines that they will lose - is crap and done better by plenty of other software, from VNC to ICA to RDP...

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    86. Re:not the point by Anonymous Coward · · Score: 0

      Sorry, my bad. That was actually a typo, I meant "pissword123".

    87. Re:not the point by benjymouse · · Score: 2

      Yes, that is exactly my point.

      Nice try. But no, you are BSing.

      Scoth: "Windows has had the ctrl-alt-del to log in/unlock since literally the first version of Windows NT, 3.1, in 1993. "

      You: "In 1993, Windows didn't have an NT kernel."

      AC: "In 1993, Windows NT 3.1 was released. Not to say that the non-NT product line ended at the same time."
      (AC factually correct here: Windows NT 3.1 was released in July 1993)

      operaghost: "Windows NT 3.1 didn't have an NT kernel? Color me confused. No, scratch that-- color you wrong."

      You: "Go to a typical computer store in 1993, ask for Windows, and they wouldn't give you an NT kernel."
      (now you try to deflect; why bring in the "typical computer store"? the issue was *Windows NT*)

      So, your claim was that Windows NT didn't have an NT kernel. The TFA was about Windows NT, and Windows NT certainly HAD the NT kernel, it certainly HAD the "attention sequence" Ctrl-Alt-Del, and it certainly WAS released and available.

      And you are dishonest.

      --
      Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
    88. Re:not the point by benjymouse · · Score: 1

      You download a program that appears legit (and may be mostly legit, or be a hacked version of a legit program), and are running it.

      But why would I do that?

      Ok, try this: You browse the Internet using Firefox. Lots of vulnerabilities discovered each month, 4 remote code executions already in 2015. An attacker has infected an add or a legitimate or fringe site you visit. Attack code executes and the attacker now runs his code in your Firefox. The malicious code hooks into X. The code can intercept the lock screen, but it can *also* monitor each and every keystroke entered into ANY other window - including terminal windows - without you noticing it. Lock the screen and unlock it and your password is compromised. Run a sudo in a terminal window and you are pwned!

      How's that?

      --
      Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
    89. Re:not the point by DrXym · · Score: 1
      X is filled with APIs and functionality that no modern desktop has used in years. It requires numerous extensions to support a modern desktop experience but with serious caveats (e.g. compositor's extra latency and issues translating coordinate systems). Every app and widget set avoids X as much as possible by using middleware libraries to avoid this brain damage. Every app is pushing pixmaps around for the most part. Network performance is crippled by the amount of stuff being pushed and the amount of bidirectional messaging that goes into supporting. It has a woeful security model.

      It may be in use but doesn't stop it being obsolete. Fortunately most dists will flip the switch and use wayland over the next year or two. And not before time.

    90. Re:not the point by bingoUV · · Score: 1

      So where resume from hibernate is set to appear with a locked screen, closing the lid means hibernate + lock screen. Closing the lid, to be not "defeated by if it's function is complex / unreliable from an end user point of view"[sic] needs to make sure that hibernate + lock screen "reigns supreme" once lid is closed. But it doesn't. So MS windows isn't any better from your own perspective.

      Same is the case where closing the lid means suspend+lock. Or someone going away from the system after Start -> shutdown, or Start -> shutdown -> restart assuming autologin is not enabled. A short lived bug which you lived with for a long time doesn't make it the expected behaviour rather than a bug.

      And you are wrong about ctrl-alt-backspace not logging out the user from X. In run level 3 + startx, it doesn't log out from the text terminal which started startx, but that is a well known security reason to run in run level 5, where user X session is always logged out unless auto-login is enabled.

      Ever since run-levels stopped being that important, ctrl-alt-backspace has been by default disabled by most distributions. Still *DM login has this security advantage over text login + startx as is well known.

      --
      Bingo Dictionary - Pragmatist, n. A myopic idealist.
    91. Re:not the point by Aighearach · · Score: 1

      Some of us use most of it, and we've been using it the whole time. It isn't obsolete at all, it is the most popular thing. You envision people stopping using it, but that is not the present tense.

    92. Re:not the point by LordLimecat · · Score: 1

      To make the point, a guy even wrote a trivial app to do this (I forget his name). He was well slandered for daring to point out the insecurity that is Windows.

      Gonna need a source on that. I've written joke apps that intercept keystrokes (making them do strange things to screw with people) and they will simply not work if you do not have admin rights. Intercepting anything keyboard or hooking anything requires elevation.

      The short of it is, if someone can run arbitrary code in your session you are done.

      Thats true as regards your personal data, but not as regards the system as a whole. If you're saying "any access to a system = root access", thats a pretty serious claim; I think the people running shared servers might take issue with that as would VMWare, Citrix, and Microsoft.

    93. Re:not the point by Anonymous Coward · · Score: 0

      I don't have a Windows key, you insensitive clod.

      (IBM Model M keyboard from 1996)

      Create a shortcut, set the command to:
      rundll32.exe user32.dll,LockWorkStation
      Attach the shortcut to your task bar. One click locking, problem solved.

    94. Re:not the point by ihtoit · · Score: 1

      +1 informative

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    95. Re:not the point by thegarbz · · Score: 1

      What? You're still comparing a lockout of a device to a scenario where processes need to be physically halted. Stop moving the goalposts and MS is most definitely better.

      And I'm wrong about the run level but I'm right about the runlevel? That is the most amazing argument I've heard all day.

      In any case your argument sounds like Linux locking is just as secure as windows if you impose all these additional handicaps on windows, and then narrow the linux scenario down to one specific configuration.

      And no, runlevel 5 is most definitely NOT the default on many linux distributions. Maybe it is if you pop Ubuntu in, then you have your little victory. Oh wait but that also then depends on which Ubuntu you download. 2 of the 3 distributions intended for computers default to runlevel 2 and stay at that default once the GUI is installed.

    96. Re:not the point by bingoUV · · Score: 1

      You're having to resort to plain lies - what does that suggest?

      I never said you were right about run levels. Actually you didn't mention run levels at all, at least in the post I replied to are any that I remember.

      Run levels strictly were a concept in sys V init. Most distributions don't even use that init any more, so 2 out of 3 distributions using run level 2 is laughable. Clearly you have no clue what you're talking about.

      --
      Bingo Dictionary - Pragmatist, n. A myopic idealist.
    97. Re: not the point by Anonymous Coward · · Score: 0

      He's a Slashdot regular who mods himself up with fuck knows how many accounts he has. The fact that he's dishonest is pretty much part of the game. You want the hivemind's approval, you talk out of your ass and tell them what they want to hear. In this case phantomliar thought that an obscure lie about NT would get him the mod points he couldn't give himself. As usual he was wrong. Think that'll stop him from lying, pointing it out? Look at his posting history. He's been a lying fuckstick since he first registered.

    98. Re:not the point by phantomfive · · Score: 1

      And you are dishonest.

      You're a jerk, and I hate you. Woohoo, insults, I can do them too.

      If you had Windows in 1993, and you pushed ctrl-alt-delete and it brought up your login screen, then you were not normal, and the OS was not an OS many people had. THAT is the truth.

      As an aside, in 1993, more people were running Unix than Windows NT.

      --
      "First they came for the slanderers and i said nothing."
    99. Re:not the point by Uecker · · Score: 1

      Yes, Ubuntu still uses X. Maybe they are using Mir on their phone OS or something?

    100. Re:not the point by Uecker · · Score: 1

      Yes, and isn't great that you can do this?

      But should Linux drop X many applications will stop supporting X properly. They will then not run properly on any X server anymore, neither on Mac, Windows, or Linux or elsewhere. Or in other words, your X server on Windows or Mac OS X is only useful, because there is currently a large ecosystem based around X.

      If Linux switches to Wayland, this ecosystem will be gone. X currently offers compatibility across different architectures, along time (currently, you can still run decades-old X application just fine), and space (network transparency). X as a standard provides as much value as POSIX. Why do you want to break this?

      On the few new Linux-based mobile platforms which currently use Wayland, X compatibilty is alread lost. Just sad.

      And what do we gain if we replace X? Will it be faster? No, Wayland has basically the same design as X: Message passing using a UNIX domain socket and buffer sharing for direct rendering. Performance wise, there is not really anthing to gain. X is bloated? Do you really think a few kilobytes of old and unused rendering code needed for backwards compatibility are bloat? The design of X is unfixable? Nonsense, X was designed from the beginning on to be extensible. It would be very easy to add a special screensaver extension, if really needed.

    101. Re:not the point by ihtoit · · Score: 1

      Mir=X but Mir !=X11

      basic functionality is pretty much the same, but the framework is different enough to be called a new approach to the same problem.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    102. Re:not the point by Anonymous Coward · · Score: 0

      Oh, a console user. No, it will not log you out of the console, because it doesn't know anything about your console.

      If you log in through the GUI, killing the X server (ctrl-alt-backspace), will terminate all connections. GUI programs exit, console programs receive SIGHUP from the xterm they are running in. You are effectively logged out. The desktop manager (XDM/GDM/Slim/whatever) will then restart the server and display the login screen.

      (Sorry, sometimes we forget about the old days of startx and win.com).

    103. Re:not the point by Anonymous Coward · · Score: 0

      Before using that claim, please try the following:

      Mac:
      DISPLAY=remote:0 iTunes

      Windows:
      set DISPLAY=remote:0
      outlook

      Then you will see exactly how much network transparency you really have.

    104. Re:not the point by Anonymous Coward · · Score: 0

      So, you must really love Windows 95. Because those protocols were all you had back then, and it was nowhere near the network transparency that X gives.

      RDP wins on bandwidth, but even simulating network transparency requires some dirty hacks. And last I checked, those dirty hacks didn't work with anything newer than XP.

    105. Re:not the point by Anonymous Coward · · Score: 0

      Fortunately it'll be moved aside and replaced by wayland over the next few years.

      And then the last reason for installing Linux will be gone.

      BSODs was the first reason, but Windows 7 (and even XP) are pretty solid. The other major one is network transparency, which Microsoft still hasn't managed to copy (no, remote desktop is not anywhere near network transparency).

      I still remember the old days when Microsoft fanboys went on and on about that if Linux was ever to succeed on the desktop, it should get rid of all the things that made it better than Windows - such as network transparency. When we didn't listen, some of them went on to start a project to make a Linux desktop comparable to Windows 95, and that project became Wayland.

  7. problem is much deeper than X by Anonymous Coward · · Score: 0

    Yes. But this raises the age old problem which seem to afflict every operating system: protected mode software seems incapable of utilizing protected mode hardware protections. The promise of protected mode (and yes, I date back that far) was that one users processes would be protected from another's. This supposed security issue with X is actually a problem of the OS or kernel: how the hell is a rogue process going to be running on your X server in the first place? Doesn't mean X servers shouldn't also be secure, but that's defense in depth.

    It's like my living room: I can walk around naked because I know nobody else is in there, and I can lock the door. Can we please stop chasing every gee whiz new feature and get operating systems back to being secure.

  8. Screen locker == physical access == ... by Anonymous Coward · · Score: 0

    If you have physical access to the machine, all things are possible -- some little screen locker isn't going to keep you out.

    Too lazy to log in ..

    1. Re:Screen locker == physical access == ... by smash · · Score: 1

      Why is this considered acceptable? Get physical access to my iPhone (for example - Android is probably the same?), good luck getting in.

      Sure, with a PC there's a few things that are a lot more difficult to secure (e.g., the boot process) but throwing hands up in the air and giving up because of physical access is a cop out.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    2. Re:Screen locker == physical access == ... by serviscope_minor · · Score: 1

      Why is this considered acceptable? Get physical access to my iPhone (for example - Android is probably the same?), good luck getting in.

      Huh? This exploit only works if someone has already had access to your unlocked computer long enough to load and run malicious code. It's not like oyu can plonk down someone at a computer wit ha locked screen and have them hack in by being clever.

      And if I had access to your unlocked iPhone, could I not root it or whatever the iPhone cracking is called and install a fake screenlocker too? Or hell, install a custom keyboard app which looks like the normal one but saves all passwords and sends them to the cloud. I might not even need to root it to do that.

      --
      SJW n. One who posts facts.
    3. Re:Screen locker == physical access == ... by Anonymous Coward · · Score: 0

      If you have physical access to the machine, all things are possible -- some little screen locker isn't going to keep you out.

      A security feature can add value even if it alone is not a complete solution. Properly working lock screen is another obstacle for the attacker, which makes him waste more time, which in turn gives more time for the security team to detect the intrusion and arrive at the scene.

    4. Re:Screen locker == physical access == ... by Immerman · · Score: 1

      Only because your phone doesn't have the ability to boot from external media by default. Change that and you grant anyone with a bootable flash card/USB drive total access to your phone. In fact with physical access and a screwdriver they could get around that boot restriction as well - worst case scenario they just have to replace the soldered-on flash drive. The extreme hardware integration that makes a phone such a disposable, non-upgradable consumer item does grant you a measure of security against casual intruders, but don't think that it's any more than an inconvenience to a serious attack.

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
    5. Re:Screen locker == physical access == ... by bobbied · · Score: 1

      Why is this considered acceptable? Get physical access to my iPhone (for example - Android is probably the same?), good luck getting in.

      Sure, with a PC there's a few things that are a lot more difficult to secure (e.g., the boot process) but throwing hands up in the air and giving up because of physical access is a cop out.

      Hand me your Iphone, I'll get in... There ARE ways.

      --
      "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
    6. Re:Screen locker == physical access == ... by omnichad · · Score: 1

      I'd argue that's not really having access to the computer except for re-purposing its hardware. If the boot/data drive is encrypted, you've gained nothing. A lot of smartphones are encrypted by default when a screen locker is enabled. With Windows, CTRL+ALT+DEL plus a secure password is probably enough to keep you out of an encrypted computer in the short term. In Linux, you could probably bypass an X11 lock screen without much trouble without losing access to the decrypted contents.

    7. Re:Screen locker == physical access == ... by phantomfive · · Score: 1

      Yup.

      --
      "First they came for the slanderers and i said nothing."
    8. Re:Screen locker == physical access == ... by Anonymous Coward · · Score: 0

      Yeah, because no one knows how to get in to an IPhone.

      http://www.imore.com/how-to-put-iphone-ipad-recovery-mode

      Oops. That took a 5 second Google search. You should try it.

    9. Re:Screen locker == physical access == ... by smash · · Score: 1

      You're not going to get any of my data that way, which is what is actually important.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    10. Re:Screen locker == physical access == ... by smash · · Score: 1

      Perhaps I should have clarified: attempt to get my data out of it. Of course you can use DFU mode.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    11. Re:Screen locker == physical access == ... by serviscope_minor · · Score: 1

      You're not going to get any of my data that way, which is what is actually important.

      I'm not sure I follow. Surely if I had unlocked access to your phone, I could simply read whatever data was on there? Also, can you install free apps without an additional password? If so what stops me installing a keyboard app trojan?

      Honest question: I don't own an iPhone. If it stops those kind of attacks it would be great to know how.

      --
      SJW n. One who posts facts.
    12. Re:Screen locker == physical access == ... by bobbied · · Score: 1

      I can do that too.... Might take awhile, cost a lot and require disassembly of the device to get to the flash, but if the data is there, there is a way to get access to it. There are devices that "self destruct" when disassembled but I know of no commonly used cell phones with that feature.

      --
      "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
  9. FUD by Flavianoep · · Score: 1, Troll

    ... there has to be a trojan on the system or at least something connected to the X server over the network.

    Hmm. I think by this time your security is already out the window and a borked lock program is the least of your worries.

    Thank you! Now I can be sure that these "news" are just FUD.

    --
    Linux is for people who don't mind RTFM.
    1. Re:FUD by Burz · · Score: 1

      Its not FUD when a malware (or bug) with normal privs can open an avenue for physical attack.

      If a website/MITM tricks your browser into putting up a tiny context menu, it can allow someone to walk up to your computer later and start messing with it.

  10. Already solved! by Qzukk · · Score: 5, Funny

    systemd-screenlockerd saves the day!

    Of course, it requires systemd-moused, systemd-keyboardd, systemd-windowd, systemd-X11d, and finally systemd-logind. Right now there's some compatibility issues that have been in the bug tracker for a year or so, so for best results you should also ditch KDE or gnome and go with systemd-windowd-managerd and systemd-menud. There's a few incompatible apps as well, if you have problems try using systemd-webbrowserd (requires systemd-networkd) and systemd-xtermd (requires systemd-fontd and systemd-shelld). Thunar works fine though for browsing files, as long as they're in the systemd folder.

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
    1. Re:Already solved! by Anonymous Coward · · Score: 1

      Dude, you just made me snort my coffee...

    2. Re:Already solved! by BlackPignouf · · Score: 2

      From Poettering himself :
      http://lists.freedesktop.org/a...

    3. Re:Already solved! by nblender · · Score: 1

      You forgot systemd-moused-pointerd ... Have you tried using systemd-windowd-managerd blind?

    4. Re:Already solved! by Anonymous Coward · · Score: 0

      Look at the date that was posted.....

    5. Re:Already solved! by davydagger · · Score: 2

      check the date: Sun Mar 31 17:22:15

      yeah, just a few hours shy of April 1.

    6. Re:Already solved! by Anonymous Coward · · Score: 0

      It's a little sad that what he meant as a joke seems to become fact.

    7. Re:Already solved! by Anonymous Coward · · Score: 0

      That is amazing and hilarious, right up until I got to this part

      To make this new library exciting to developers we added a couple of new calls that fix long-standing problems in glibc. For example, first of all we added strlcpy() as known from OpenBSD. We also renamed the API call âoecreat()â to âoecreate()â, as modern operating systems do not have the strict limitation on system call name lengths the way UNIX System 7 had.

      Like, yeah...okay, that could work.

    8. Re:Already solved! by Anonymous Coward · · Score: 0

      I came to quote that exact paragraph. Excellent.

    9. Re:Already solved! by delt0r · · Score: 1

      ROTFLOL... I can't even tell my colleagues in the same room why i am laughing. Evil Mac users!

      Oh and init.d FTW.

      --
      If information wants to be free, why does my internet connection cost so much?
  11. physical access by silfen · · Score: 1, Insightful

    Screen lockers protect against physical access; you're welcome to try and get around an X11 lock screen by tapping at the keyboard. Good luck.

    Comparing this to Windows is silly, because Windows doesn't have anything like the X11 protocol. On Windows, running code can disable the screen saver in other ways: patching or replacing DLLs, changing system configuration, etc. No difference from a security point of view.

    1. Re:physical access by Wrath0fb0b · · Score: 4, Informative

      Comparing this to Windows is silly, because Windows doesn't have anything like the X11 protocol. On Windows, running code can disable the screen saver in other ways: patching or replacing DLLs, changing system configuration, etc. No difference from a security point of view.

      I'm no Windows fanboy, but this is just factually incorrect.

      (1) All those operations require elevation, so unless the user has lowered UAC from the default, they will require authentication. I suppose a malicious installer could do that, but it is emphatically incorrect that any running code can effect that change.

      (2) Since 7, when Windows elevates it completely suspends the old 'Desktop' and creates a brand new one for the elevation prompt. If you look closely, you'll realize that all the other 'windows' are actually just a static screenshot of what happened on the unprivileged desktop at the point where the elevation prompt was created.

      So "from a security point of view", on Windows you have a specific privilege required to change the SS that is mediated through a privileged interface where it cannot be snooped/intercepted by unprivileged processes.

      [ Of course, this comparison is also patently unfair -- Windows 7 was written in the 2000s, X11 was written in the 1980s. Expecting them to be comparable in terms of security is pretty ridiculous. ]

    2. Re:physical access by unrtst · · Score: 1

      Screen lockers protect against physical access; you're welcome to try and get around an X11 lock screen by tapping at the keyboard. Good luck.

      1. CTRL+ALT+Backspace
      2. CTRL+ALT+F1, CTRL+ALT+F2, ...
      3. ALT+SYSREQ+F
      4. CTRL+ALT+KP_MULTIPLY

      Maybe you're safe from all those because you disabled all the features that make those work. Are you sure you're safe? Now try "vlock -nas" and see if any of those work.

    3. Re:physical access by Sycraft-fu · · Score: 1

      "Of course, this comparison is also patently unfair -- Windows 7 was written in the 2000s, X11 was written in the 1980s. Expecting them to be comparable in terms of security is pretty ridiculous."

      Which could be a good argument for replacing X. It is rather old technology, perhaps it is time to update it to something newer, rather than clinging to it and claiming it is all one needs.

    4. Re:physical access by Anonymous Coward · · Score: 0

      This is exactly it. My machine is otherwise secure from the network, it has all the ports epoxied, kernel updated, etc.
      What real people want to know is if there's any direct attacks on xlock itself.
      Like fuzzing nice keyboard randomness into the prompt.
      Or even from users logged in with other UID's than your own.
      That's the question.

    5. Re:physical access by Anonymous Coward · · Score: 0

      The security in Windows is provided by Windows itself, not the screen saver. Killing the screen saver just yields a completely blank screen where you need the password to return to your desktop. No app has any way of communicating with the lock screen (i.e. messages, key strokes, etc.).

      The problem with X is that the screen saver is providing the security, which is much more easily circumvented. If you manage to crash somebody's screen saver, you have complete access to their desktop. You can write a trojan that logs keystrokes or even pretends to be the screen saver, and there is no way to prevent it.

      dom

      dom

    6. Re:physical access by Anonymous Coward · · Score: 0

      Well, this is how I usually get into my system when the screen locker is up:
      Ctrl-Alt-F1; killall screenlocker; Ctrl-Alt-F7

      Because the screen locker is nothing but an application running inside X11.

      The implementation I'd really like to see? instead of running a screenlocker application, drop X11 inside screen and kill off access to its ports. That way, terminal 7 drops back to text, and you have to type the password at the login prompt to get back in. At this point, the X11 ports are unblocked, and the session is re-bound to terminal 7.

      This also means that you can do the same thing from your remote session. It gets around funky artefacts of running a screen locker app (like the screen locking while this app's in the background, displaying all your work on-screen until you log back in), while adding some actual security.

      THEN, the next step is to prevent any X11 app from acting as a screen locker, so that if a command login prompt suddenly flashes up, you can alt-tab (or whatever works for your WM of choice) to see if this is a lockout screen or just some malware's attempt to grab your credentials.

    7. Re:physical access by Anonymous Coward · · Score: 0

      Ok... so you hit Ctrl-Alt-F1 and get to a login screen. That does not compromise the logged-in user's data... its X session is still locked, no?

    8. Re:physical access by Anonymous Coward · · Score: 0

      Why would you do this?? Do you weld your case panels on as well?

    9. Re:physical access by unrtst · · Score: 1

      The idea of "CTRL+ALT+F1, CTRL+ALT+F2, ..." is that you may get a local vt that DOES have a logged in session. That's less likely these days, but it used to be very common to login to one of those, then run "startx". If you got back to that, you'd just CTRL+Z then "bg" then start running whatever you want as the user.
      Less shocking, it also means that, if you have a login, you can login, and thus can start doing more stuff. If the machine is hooked up to networked logins (AD, LDAP, etc) such as is common at work, then many people *may* be able to login this way.

      Personally, I like to lock all local consoles and prevent console switching, thus my vlock suggestion. There are others can do that as well and possibly better (physlock?), I'm just familiar with vlock.

    10. Re:physical access by serviscope_minor · · Score: 1

      Which could be a good argument for replacing X. It is rather old technology, perhaps it is time to update it to something newer, rather than clinging to it and claiming it is all one needs.

      Or how about adding a protocol extension to deal with this security problem as has been done a number of times in the past for authentication. I don't understand why X11 seems to get special treatment here.

      Program has security flaw. Response "has it been patched yet"

      X11 has security flaw: we can't possibly patch it we must discard everything and start again.

      There's certainly some things wrong with X11, but this is one which could be solved easily. It could, for example, be done by having a "kill all grabs" command which is available to the window manager.

      --
      SJW n. One who posts facts.
    11. Re:physical access by Anonymous Coward · · Score: 0

      FUCKING $HILL!

    12. Re:physical access by Alomex · · Score: 1

      X11 was written in the 1980s

      Written? More like scratched in crayon in the walls of a padded cell.

      The architecture of X has always been a mess going back to the very beginning. Need proof? the client is on the server and the server is on the client. 'nuf said!

      p.s. notice that you need no elevation for this. This was a common joke back in the pre-security days. You wrote a cool user space application that after a few minutes of inactivity would pop up an xlock clone. The user would then type his/her password and "unlock the screen".

      The application would then create a word readable .pwd file in the user directory which then you could use to mess up the users space, like hiding all files with a message "because you haven't paid your tuition/our logs show you've downloaded too much porn/you've used your entire yearly usenet posting quota".

    13. Re:physical access by WoLpH · · Score: 1

      Actually... I've had the kde screensaver crash on me at some point which effectively unlocked my machine.

      Also, I've seen notifications come through the lock which allowed you to task-switch out of the lock. I believe I once had this on OS X lion as well, although it could have been an earlier version.

    14. Re:physical access by Anonymous Coward · · Score: 0

      WTF is wrong with younger users these days? SysVInit and X11 were good enough for my generation, they're good enough for yours. Stop changing everything FFS.

    15. Re:physical access by Anonymous Coward · · Score: 0

      The architecture of X has always been a mess going back to the very beginning. Need proof? the client is on the server and the server is on the client. 'nuf said!

      Anyone who trots out this drivel can be safely disregarded for any and all purposes.

    16. Re:physical access by Anonymous Coward · · Score: 0

      You were probably the one spending all your bandwidth on usenet porn.

    17. Re:physical access by Anonymous Coward · · Score: 0

      The use of non-standard terminology is the sign of poor architectural design. There are many others, such as the protocol being designed to run on a "thin client" that in the end had to be more powerful than a souped PC at the time while being unable to use any of the local computational resources.

      But I guess you are too busy being an X fanboi to ever critically examine the X innards and see what they got right and what they didn't (the xlock being one example of the latter).

    18. Re:physical access by Anonymous Coward · · Score: 0

      The architecture of X has always been a mess going back to the very beginning. Need proof? the client is on the server and the server is on the client. 'nuf said!

      You are thinking as a sysadmin. Client is the PC and server is the big box behind the double glass doors. However, in software development client/server has a somewhat different meaning: The server is a shared resource, and the clients connect to the server. The shared resource can be a printer (print server), and just as well it can be a display (display server, X11). When different clients connect to the print server, they print different pages. When multiple clients connect to a display server, they display different windows.

      Oh, and btw, print server hardware (e.g. HP JetDirect) is often even smaller than a display server hardware (X terminal). And just as you can sometimes connect three printers to one JetDirect box, you can sometimes connect three monitors to one X terminal. So even a sysadmin should not be surprised that the server is suddenly the small box, that the big machine behind the glass doors connects to - whether for printing or opening windows.

    19. Re:physical access by Anonymous Coward · · Score: 0

      You'd need to point it to localhost:0.1 and would not be used by default by any program and to make that change you'd need elevated privs.

      And you still don't get a password unless you already have an account.

    20. Re:physical access by silfen · · Score: 1

      Well, some X11 screen locking programs have bugs. Possibly there are subtle bugs in the protocol too. But in principle, X11 screen locking is no different from Windows screen locking.

    21. Re:physical access by ihtoit · · Score: 1

      ironically, my application server is this laptop (dual core, oodles of RAM and a VM Manager running as a service) and my 4 thin clients are relatively ancient diskless Pentium 4 desktops with about 64MB-128MB RAM (that none of them will ever max out ever again). Those P4s don't actually do ANY of the grunt-work, that's all done on the laptop. All the P4s do is display the output from the VM sessions running on the laptop. Yes, they're vastly overpowered for thin clients but my PIIs are long since burned out and the PIIIs are busy elsewhere.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    22. Re:physical access by silfen · · Score: 1

      Virtual consoles have nothing to do with X11; they are also safe (you just get a login prompt).

      Killing the X server is also safe, it just goes back to the login screen; it's also disabled on many distributions.

      The rest are X.org-specific debugging keys; they shouldn't be on by default and they have nothing to do with X11 either.

    23. Re:physical access by silfen · · Score: 1

      The idea of "CTRL+ALT+F1, CTRL+ALT+F2, ..." is that you may get a local vt that DOES have a logged in session.

      How is that a problem with X11?

      In any case, some systems simply check when X11 is locked and either lock those virtual consoles themselves, or warn you.

    24. Re:physical access by Anonymous Coward · · Score: 0

      All those operations require elevation, so unless the user has lowered UAC from the default, they will require authentication

      Yes, just like they do on X11. Hence my point: no difference from a security point of view.

      Since 7, when Windows elevates it completely suspends the old 'Desktop' and creates a brand new one for the elevation prompt.

      Yes, just like on X11.

      Windows 7 was written in the 2000s, X11 was written in the 1980s. Expecting them to be comparable in terms of security is pretty ridiculous.

      Yeah: Microsoft's engineers are so incompetent that they can't even design a window system that doesn't need to be rewritten from the ground up every decade or so. Why would you expect them to be able to get security right? I think the only thing we can glean from your response is that you are as much of an idiot as they are.

    25. Re:physical access by Anonymous Coward · · Score: 0

      Windows 7 came out in 2009, but development on Windows NT started 20 years earlier in 1989. It has always had a Secure Attention Sequence (Ctrl+Alt+Del), and password protected screen savers have always run on a secure desktop.

      With X11 development starting in 1986, it's only a few years older than Windows.

      dom

    26. Re:physical access by Anonymous Coward · · Score: 0

      the client is on the server and the server is on the client

      There are many problems with X ... that you can't understand the fact:

      - zero or more client applications can connect to a single display server

      is your problem.

      What do you propose, every application has its own display server (can talk to graphics hardware itself) ?

      So, the MS-DOS-style "every application has drivers for everything (printer, mouse, network card, modem, graphics card) ?

      Would that be "proper terminology" for you?


      Actually, there is NO REASON display-wise you shouldn't be able to do one-to-many:

      client application -> display server 1
                        -> display server 2
                        -> display server 3

      or many-to-one:

      client application 1 ---\
                                v
      client application 2 -> display server 1
                                ^
      client application 3 -----/

      or many-to-many or one-to-one or zero-to-one (display server running, no client applications)
      or one-to-zero (client application displaying to a "null" server)

      All of these things should be possible.

      The fact you cannot grasp simple terminology is your fault.

      Are you still hung up about "primary storage should not be called storage because it is volatile" ?
      looks like everything is broken to you.

      And "/dev/drum is not physically accurate anymore!" so this OS sucks!

      You can even say there is a better architecture and the X model is stupid...but complaining about words
      is fucking stupid. Either:

      1) present a better solution for X naming
      2) present a solution why the X model is broken

      Seriously, that is a fucking stupid thing to gripe about.

      That is like saying "Dubya was a bad president, because W. is a shitty middle name"

      You can't even tell us:

      - what would be a better middle name (or none)
      - why Dubya was a good or bad president (just the middle name is lousy)
      - why it is better or worse for presidents and the press to hide or print their middle names

      That is batshit insane rambling. A straw man you have created, and nothing more.

      Attack something worthwhile if you actually have an argument. You have wasted everyone's time.

  12. Uses QT for screensaver, complains about security by Anonymous Coward · · Score: 5, Informative

    KDE uses QT, a gigantic toolkit, to implement the screen saver. In this case the UI relies on QT Quick.
    Gnome's screensaver has the same problems with GTK.

    Jamie Zawinski, who wrote the standard xscreensaver, has a FAQ page detailing how these are a fundamentally bad idea from a security perspective:
    http://www.jwz.org/xscreensaver/toolkits.html

  13. How to make it work by Anonymous Coward · · Score: 0

    Article is WRONG WRONG WRONG. Screen locker: issue chvt onto another X instance, and spawn a thread that goes into a loop reissuing chvt to hold it there until the unlock password is given.

    1. Re:How to make it work by unrtst · · Score: 2

      Article is WRONG WRONG WRONG. Screen locker: issue chvt onto another X instance, and spawn a thread that goes into a loop reissuing chvt to hold it there until the unlock password is given.

      vlock -asn

      This has been solved for a long time. Not sure why this is really an issue.

    2. Re:How to make it work by fahrbot-bot · · Score: 1

      This has been solved for a long time. Not sure why this is really an issue.

      Because the poster stepped out of a way-back machine and didn't notice ...

      --
      It must have been something you assimilated. . . .
    3. Re:How to make it work by unrtst · · Score: 1

      This has been solved for a long time. Not sure why this is really an issue.

      Because the poster stepped out of a way-back machine and didn't notice ...

      That's one hell of a way-back machine! vlock 1.2 came out in 1998!

  14. this is a mountain out of a mole hill. by nimbius · · Score: 4, Interesting

    Whats being attacked is the unix ethos: do one thing and do it well. Capturing the key sequence to lock and faking the screen, while it may be easier in KDE alongside Systemd, is not easy in fluxbox or awesome. Its the explicit lack of widgets or sprockets or mindless dreck like this, and predefined key sequences that are captured by the window manager first. I use i3lock, which would mean attackers would have to find a way to get into /usr/bin to usurp my locker and at that point i have a far greater degree of concern than just the locker. X Forwarding and shared X in general has always been a security concern. ssh-agent should be avoided and if you have work to do on the server, do it in a tty over ssh. And this is the schism: newschool linux wants a sexy user experience that pops out of the box and is unified. They want the user to obey the vision of their design and use user switching, connection sharing, and fancy clock widgets and X just cant be (nor should it) Microsoft Windows. Old fogeys like myself will deck the halls of localhost when and if we want to. And it will always be on our terms, right down to color, shape, and font. Security will be our concern.

    --
    Good people go to bed earlier.
    1. Re:this is a mountain out of a mole hill. by Anonymous Coward · · Score: 0

      This is unix "ethos":


      The MIT guy did not see any code that handled this case and asked the New Jersey guy how the problem was handled. The New Jersey guy said that the Unix folks were aware of the problem, but the solution was for the system routine to always finish, but sometimes an error code would be returned that signaled that the system routine had failed to complete its action. A correct user program, then, had to check the error code to determine whether to simply try the system routine again. The MIT guy did not like this solution because it was not the right thing

      https://www.dreamsongs.com/RiseOfWorseIsBetter.html

    2. Re:this is a mountain out of a mole hill. by smash · · Score: 1

      X11 no longer does one thing, and it certainly doesn't do it well. It needs to be refactored and split into smaller subsystems built with modern computing requirements in mind.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    3. Re:this is a mountain out of a mole hill. by phantomfive · · Score: 1

      X11 no longer does one thing, and it certainly doesn't do it well.

      X11 received criticisms related to this from the day it was released.

      --
      "First they came for the slanderers and i said nothing."
    4. Re:this is a mountain out of a mole hill. by Aighearach · · Score: 1

      That isn't really new-school, we had those same morons in the 90s. The difference was, all the "year of the linux desktop" crap caused a bunch of corporate funding to implement their schemes, and now they think they're all that matters.

      Thank goodness for open source. Even if they embrace and extend X11, they can't take it from me, they can't extinguish it. We'll always have CLI ways of doing everything important "because servers." So I'll always be able to get by with my clunky old *nix workstation preferences and ancient software.

      I've had the same .Xresources file since the 90s. It has been renamed a few times over the years, but they can have it when they pry it from my cold dead fingers.

    5. Re:this is a mountain out of a mole hill. by evilviper · · Score: 1

      I use i3lock, which would mean attackers would have to find a way to get into /usr/bin to usurp my locker

      Umm... No. Changing your PATH, setting LD_PRELOAD= or one of many other envs, changing Xsesson scripts or your WM's menu entries... Any of those would do just fine.

      You also missed the entire point of the article, that an X11 screen-locker is just a normal user application like any other, a black image over top and only just TRIES to steal focus and input.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  15. Uh-huh...and...? by Anonymous Coward · · Score: 0

    I'm glad this post came about. It's a good exercise two very important things: 1) disable remote X sessions and 2) install packages from trusted sources. There, not a problem but I do agree that the X-server code could use some security auditing and revitalize good, secure coding principles.

  16. Why Computers Cannot Be Secure by Anonymous Coward · · Score: 0

    Fixed that for you.

  17. Yes, point is to keep adversary out. It fails. by Anonymous Coward · · Score: 0

    When you come back from the bathroom, you want to regain access to your own computer. Think about exactly how you do that. Do you press the power button and reboot, and then enter your authentication credentials into a dialog that you know is your login screen, because you know that every step from boot to login, is intended to protect your interests?

    Or do you just give your authentication credentials to whatever program happens to be running and is asking for them, and is thereby assumed to probably be your screen locker?

    Windows users are all computer experts; you pretty much have to be, to get by. One of the first things they learn is that ctrl-alt-delete isn't maskable in user mode, so they are able to use those keys to authenticate the kernel and be sure they aren't being MitMed when they enter their password. X users, on the other hand, don't generally know of a way, when sitting at their keyboard/monitor, to authenticate exactly what software they're communicating with. So if they give their password to a screenlocker, they might be giving their password to anyone or anything.

    Isn't the point of a screen locker to keep a person from accessing my computer

    The fact that you don't want adversarial persons accessing your stuff, suggests that X screen lockers aren't the right tool for you.

    1. Re:Yes, point is to keep adversary out. It fails. by Anonymous Coward · · Score: 0

      One of the first things they learn is that ctrl-alt-delete isn't maskable in user mode

      Most Windows users have not learned this, and for the ones that have it most certainly was not one of the first things they learned about Windows.

    2. Re:Yes, point is to keep adversary out. It fails. by Anonymous Coward · · Score: 0

      When you come back from the bathroom, you want to regain access to your own computer. Think about exactly how you do that. Do you press the power button and reboot, and then enter your authentication credentials into a dialog that you know is your login screen, because you know that every step from boot to login, is intended to protect your interests?

      If you're gone a short enough amount of time, it shouldn't be possible to compromise the X11 screen lock prompt any more than the Windows lock prompt. But, given enough time, both are inherently insecure if the person has physical access to the machine.

      Or do you just give your authentication credentials to whatever program happens to be running and is asking for them, and is thereby assumed to probably be your screen locker?

      You're stuck there anyways because you can never be sure someone didn't reboot the system, run a keylogger designed to act like the lock screen, and then send your password and reboot the machine. Really, if you're paranoid enough, you never leave your computer alone.

      Windows users are all computer experts; you pretty much have to be, to get by. One of the first things they learn is that ctrl-alt-delete isn't maskable in user mode, so they are able to use those keys to authenticate the kernel and be sure they aren't being MitMed when they enter their password.

      Whether it's user mode per se or not, there are tools to change the behavior of ctrl-alt-delete. Besides that, if someone has already bypassed the lock screen and pwned the system, you're already pretty much too late to worry about them then installing and running a fake lock screen. Honestly, they can just install a keyboard kernel sniffer at that point.

      X users, on the other hand, don't generally know of a way, when sitting at their keyboard/monitor, to authenticate exactly what software they're communicating with. So if they give their password to a screenlocker, they might be giving their password to anyone or anything.

      Read above. It's the exact same scenario as with Windows. If the system is already pwned and a malicious app may be running, you're already too late.

      Isn't the point of a screen locker to keep a person from accessing my computer

      Within certain limited bounds. In fact, what you're more discussing is the ctrl-alt-delete function and really the issue of the initial login prompt on a shared system. That's the major vector for password sniffing. Once you're already logged in and only away a short while, you presume a certain level of confidence that the machine wasn't compromised while you were away. But, again, if the system was already compromised or is so easily compromised, you've already lost.

      The fact that you don't want adversarial persons accessing your stuff, suggests that X screen lockers aren't the right tool for you.

      If I don't want sufficiently adversarial persons to access my stuff, I keep my stuff on me at all times and sleep very lightly. Baring that, I have to put a lot of trust that vendors patch bugs quickly, installed apps aren't inherently malicious, and that people don't have the real desire to hack my computer physically.

      PS - The other major thing is that Ctrl-Alt-Delete was originally a DOS-ism that had more to do with dealing with misbehaving, yet not malicious, programs and trying to regain some level of control. That it was later co-opted as a security system doesn't change the point that it isn't inherently a security feature and is quite possibly co-optable if one has kernel access--a fact that sadly is too readily reachable once you have Windows access because UAC is still too opaque and users can't reasonable defend against it. Now, this would possibly c

    3. Re:Yes, point is to keep adversary out. It fails. by Dahan · · Score: 1

      When you come back from the bathroom, you want to regain access to your own computer. Think about exactly how you do that. Do you press the power button and reboot, and then enter your authentication credentials into a dialog that you know is your login screen, because you know that every step from boot to login, is intended to protect your interests?

      You're stuck there anyways because you can never be sure someone didn't reboot the system, run a keylogger designed to act like the lock screen, and then send your password and reboot the machine.

      As the guy you're replying to said, "you know that every step from boot to login, is intended to protect your interests." If you're concerned about someone rebooting the system and running some malware, you should make use of the various features designed to mitigate against that. All PCs these days let you password-protect the BIOS settings, so if you've configured it to only boot from the HD, it's not as simple as an attacker putting in a CD or plugging in a USB flash drive with their keylogger. And for even more protection, you can get a computer with more "enterprisey" features, such as a physical case lock and a chassis intrusion detection switch. If the attacker thinks they'll just open the box up and do a quick hard drive swap or something like that, that's not gonna work. And these days, there's also UEFI Secure Boot. Sure, there are ways to attack all of this, but a BIOS password plus case lock is sufficient for the vast majority of people. If you need more than that, you should probably focus on keeping intruders from getting access to your computer in the first place.

      Whether it's user mode per se or not, there are tools to change the behavior of ctrl-alt-delete.

      As far as I can tell, that's just a utility that changes the options that are already available in Windows--they're normally controlled via Group Policy. It's not actually running any new code, it's just changing behavior in a way that MS has already allowed. It actually is possible to write your own code that runs when the user presses Ctrl+Alt+Del though; it's called a custom GINA DLL. Of course, if an intruder already has Admin access to install their GINA DLL, it's already too late... The point of Ctrl+Alt+Del is to thwart malware running as an unprivileged user.

      PS - The other major thing is that Ctrl-Alt-Delete was originally a DOS-ism that had more to do with dealing with misbehaving, yet not malicious, programs and trying to regain some level of control.

      That key combo was selected because no application uses it. Other than that, there's no relation to its use in DOS. Bill Gates has said that he (or Microsoft in general) had wanted a dedicated key for it, but IBM (which was a major keyboard manufacturer at the time) didn't want to add a key for MS. I guess MS eventually had enough clout to get everyone to add the Windows and Context Menu keys, but it wasn't worth changing Ctrl+Alt+Del to use the new keys.

  18. The 90s called... by marcello_dl · · Score: 1

    They want their lockscreen back.

    Come on, this is 2015!
    People nowadays think that typing into a CLI is low level hacking!
    Real men don't lock the screen anymore, they CTRL-ALT-Fn to the first available login prompt, go away, and CTRL ALT F7 back to their session when they return.

    Pussies!

    --
    ---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
    1. Re:The 90s called... by Karrham · · Score: 1

      What about somebody knows about Ctrl+Alt+F7? This method can be used against dummies only.

  19. What? by Anonymous Coward · · Score: 0

    What's a screen locker?

  20. This isn't just a slow news day... by Anonymous Coward · · Score: 0

    Slashdot has stagnated so badly that we're actually having a discussion on why screensavers aren't good security, even in Linux. Surely you jest! Next you'll tell me that running everything as root is a bad idea.

    Can you have such a slow news day that time actually starts flowing in reverse? The "that screenlocker is secure enough" argument was pretty much over any time someone pranked the supposedly locked lab PC of another comp-sci student and I'm guessing that was LOOOONG before my time.

  21. What about Mac OS X? by Anonymous Coward · · Score: 0

    Am I missing something or it is the same for Mac OS X? It also doesn't require an "uninterceptable" key combination to get to enter the password when the computer is locked.

  22. WTF are you on about? by Anonymous Coward · · Score: 0

    One thing we all remember from Windows NT is the security feature requiring the user to press CTRL-ALT-DEL to unlock the workstation (this can still be enabled with a policy setting). ...yeah, that is certain something that is no longer used.

    1. Re:WTF are you on about? by Anonymous Coward · · Score: 0

      A lot of corporate settings still use it. You can enable it right away yourself with netplwiz.exe: go to the Advanced tab and select "Require users to press CTRL-ALT-DEL".

  23. pay for my M$ (try our new windows only $100 per y by Anonymous Coward · · Score: 0

    pay for my M$ (try our new windows only $100 per year per system) If you don't pay your system will go into limited mode also secure boot is now windows locked any other way can't be done due to the DMCA.

  24. If it's accessing your X server, it's elevated ple by raymorris · · Score: 2

    If it has access to draw windows in your X session, it's elevated plenty - it can also log keystrokes at that point.

  25. open source is trash. by Anonymous Coward · · Score: 0

    wake up, people!

  26. Do not run as root & close remote sessions by Anonymous Coward · · Score: 0

    Why is this even an issue? Lock down your system as hard as you need for the security level the situation requires and close out remote and root sessions/instances before leaving the desk.

    You should do this anyway, on any machine, regardless of a stupid screen locker.

    Anyone who trusts a screen locker to protect their data and systems should have access to neither.

  27. Linux users don't need screen lockers by Anonymous Coward · · Score: 0

    Linux users don't lock their screen, they simply trust that noone else can figure out how to do anything unwanted with their highly customized desktop environment without a few weeks worth of trial & error (+ research & forensics).

    Or they just switch to TTY and improvise a fun one-line to keep visitors entertained for a while. Don't know... maybe:

    while true; do DISPLAY=:0 xset dpms force off; done exit

    That ought to do it. I FIXED X11!!!!!11111

  28. Here's an idea by Anonymous Coward · · Score: 0

    Here's an idea. When not using your computer, log out. If not using your computer for a long time, log out and shutdown.

  29. Linux rules the desktop, which is in your pocket by raymorris · · Score: 3, Insightful

    The year of the Linux desktop was several years ago. Most new computing devices run Linux, and fit in your pocket.

  30. Let this be a lesson... by ggraham412 · · Score: 1

    Let this be a lesson to all of the architects out there who have a tendency to over-generalize, even to the point of abstracting away useful features.

  31. SystemD to the rescue! by Billly+Gates · · Score: 0

    It can do the gui and port forwarding for you.

    Just comes with a shirt startup daemon

  32. Re:If it's accessing your X server, it's elevated by bondsbw · · Score: 2

    I'm not familiar with writing apps for X, but are you saying that every program that displays a window in X can log all keystrokes including in windows that are not associated with that program?

    If so, I'm staying away from X for now on.

    If not, I'm not sure what your point is. The malicious application would need to display a fake lock screen, convincing enough to fool the user, before the user would type in their credentials. Only then would that app be able to elevate.

    --
    All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
  33. Collection of wrong by Anonymous Coward · · Score: 0

    When I saw the headline, I thought "yeah, nothing new there". But then the article goes on to not mention any of the known problems (I don't remember any specific problems, though) and instead invent a whole bunch of non-existing problems.

    The first vulnerability is with their own code. Ok, fine, he's probably right on that one.

    Then he goes on to post an example program that can prevent your screen saver from kicking in, if you run the example program first. An easier way would be to disable the screen saver, and that doesn't require downloading malicious code.

    The next one is allowing other users access to your screen. I.e. the bad old xhost +localhost, which as been recommended against for the last 20 years. And if you do it anyway, expect 120 xeyes windows to pop up pretty soon. As long as you don't open this, there IS the MIT-MAGIC-COOKIE preventing random users from accessing your display. He then goes on to mention SSH, with the comment "If you don’t control the remote side it could mean that the client you start is modified", which is the reason that SSH comes with X11 forwarding turned off by default, and you don't enable it when connecting to servers you don't control.

    You don't need to involve screen locking at all, if you random people access to your screen/mouse/keyboard, someone could easily run a key logger.

    So yeah, if you override the built in security, it won't be secure.

    The rest of the article simply takes it from a misinformed article about locking on X11 to being a Wayland ad. The problem with that is that this Wayland ad is also sending the message that "Wayland is so bad we need to lie about the competition".

    1. Re:Collection of wrong by PPH · · Score: 1

      And if you do it anyway, expect 120 xeyes windows to pop up pretty soon.

      xroach FTW!

      --
      Have gnu, will travel.
    2. Re:Collection of wrong by phantomfive · · Score: 1

      Then he goes on to post an example program that can prevent your screen saver from kicking in, if you run the example program first. An easier way would be to disable the screen saver, and that doesn't require downloading malicious code.

      Good point.

      --
      "First they came for the slanderers and i said nothing."
  34. STOP TRYING TO REPLACE X11 already. by Anonymous Coward · · Score: 0

    Xorg works PERFECTLY FINE, there is NO REASON to use another windowing environment on *NIX machines EVER. FUCK hardware acceleration, FUCK Wayland and FUCK YOU!

  35. Re:Uses QT for screensaver, complains about securi by Anonymous Coward · · Score: 0

    Jamie Zawinski has been wrong before, too, but in this case it's not even wrong. What we're talking about is the X protocol being fundamentally flawed; it's really pretty irrelevant what screen locker is being used.

    Also, this has been known for years and it's been discussed to death already as part of the insanity surrounding Wayland's development.

  36. Re:pay for my M$ (try our new windows only $100 pe by Anonymous Coward · · Score: 0

    2001 called, they don't even want YOU back.

  37. Uh. by serviscope_minor · · Score: 1

    Uh.

    Why can't I have my screen locker have a passive grab on Ctrl+Alt+Delete or shift+altgr+control+` or whatever, using XGrabKey. That way if someone else installs a screenlock faker then I'll know because it won't respond to the magic key presses.

    The thing is on Windows it never worked as well as it ought to. The reason is that if the screen said something like:

    "pls entar u r passwordz to login"
    [ password box ]
    [OK]

    "pls wate wile redirecting to http://scamsite.ru/yourbank"

    "Pls entar u r bank passwrd thx"

    an appalingly large number of people would have dilligently followed those steps. the ctrl+alt+delete thing was fine but required more knowledge than 99.9% of users had.

    Oh and the active grab thing: if you ever hear a wayland dev tout that as a problem, please kick them in the nuts because it XFree86 USED to have a feature for killing grabs from a keystroke, until the fuckers who went on to develop Wayland decided we didn't really need it because "it would only be needed if a program is buggy". Well, no fucking shit hotshot.

    --
    SJW n. One who posts facts.
  38. Re:If it's accessing your X server, it's elevated by vux984 · · Score: 2

    Are you familiar with the traditional attack

    Computer somewhere running some OS.
    Regular authorized but non-priviledged user logs in and runs regular non-priviledged user-space application "program that looks like lock screen" and then leaves computer.

    Another coworker, or perhaps an administrator walks up to use the computer; types in his credentials... and the app saves them...

    Windows solution to the attack implemented decade(s) ago:

    real windows desktop lock screen can only be unlocked with ctrl-alt-delete which user-land non-priviledged apps can't intercept.
    train users never to login to a computer unless they hit ctrl-alt-delete to unlock it first.

  39. Re:If it's accessing your X server, it's elevated by goarilla · · Score: 1

    I'm not familiar with writing apps for X, but are you saying that every program that displays a window in X can log all keystrokes including in windows that are not associated with that program?

    Well try this:
    - Find the id of your window of interest (xwininfo).
    - Attach to it with xev -id $id

    Now that you know ... Ctrl-Alt-Backspace zaps X.

  40. Xscreensaver by gringer · · Score: 5, Interesting

    Jamie Zawinski has another explanation why screensavers on KDE can't be secure:

    Like GNOME, KDE also decided to invent their own screen saver framework from scratch instead of simply using xscreensaver.

    And Unity:

    Guess what, they did it again! Ubuntu Unity's screen-locking framework is yet another rewrite, and it is completely broken, bug-ridden and insecure. At this time I don't have any information on how to turn it off and use xscreensaver instead. If you do, let me know.

    He also has a writeup on toolkits, discussing why locking and unlocking is a hard problem, especially when accessibility features are required.

    --
    Ask me about repetitive DNA
    1. Re:Xscreensaver by Anonymous Coward · · Score: 0

      Why is Jamie Zawinski the only one who can write a good screensaver? What makes his code bug-free and not anyone else's? No, let's scratch those questions, because Jamie Zawinski is completely irrelevant to the topic.

      Why is security a problem for a client program of the display manager and not a problem for the display manager? Why is security a problem for everyone who wants to try to write a screen saver?

      Everyone knows that X11 was never designed to be secure. Jamie Zawinski thinks that he is the only one who can work around this problem. Either we need to start working on our Jamie Zawinski shortage, or maybe — just maybe — the concept of "if it runs, it's secure" is 30 years out of date, and the thing handling input and output should not depend entirely on the coding skills of its clients for security.

    2. Re:Xscreensaver by gringer · · Score: 1

      He's already basically responded to this in the toolkit discussion. Anyone else could write a secure screen locker, but to do that properly you need to understand the code of all the libraries being used:

      That's why I implemented the unlock dialog using only Xlib: not because I think Xlib is a good way to write user interfaces, but because I think this was the safest way. The amount of code in Xlib is very small, and has been extensively security audited. It is very unlikely that there are crashing bugs lurking in Xlib itself. The same cannot be said for larger, more featureful libraries. So, by making minimal use of Xlib (the dialog box is drawn using only the lowest level text-printing and rectangle-drawing routines) we can keep the code path short and auditable.

      I am as close to certain as I can be that there is no action a user can take on their input devices that will cause the current Xlib-based lock dialog in xscreensaver to unlock. That's because it's a small amount of code that I have stared at and tested for a very long time. It is a small enough piece of code that I (believe I) know every possible path through it.

      Introduce N layers of widget library, general text field handling, compose processing, input methods, I18N... and all bets are off. Who knows what bugs wait lurking in there; who knows which particular combinations of which libraries are a security-bug timebomb.

      Let me put that another way:

      The GTK and GNOME libraries have never been security-audited to the extent that their maintainers would be willing to make the claim, "under no circumstances will this library ever crash."

      One can, within a reasonable doubt, make that claim about libc, or even about Xlib, but not about anything the size of GTK. It's just too big to be sure. This is not a criticism of GTK or GNOME or their authors: it's simply a truth about any piece of software of that size.

      --
      Ask me about repetitive DNA
    3. Re:Xscreensaver by Anonymous Coward · · Score: 0

      This argument is basically that large software projects cannot be secure. It is bullshit. You did not even consider the question -- why are you letting jwz do your thinking for you?

      Is security something that the screensaver should handle, or the display manager?

      Really I think this issue is pretty clear-cut, and jwz's solution is right for the context of X11-exists-and-must-be-dealt-with, or would be if he limited himself to saying that it's tough to get right instead of insisting that no other solution could be secure. And if his assertion is that one can't have a screen lock that uses an i18n library or that doesn't look like butt then it's pretty fucking obvious why people keep trying to improve on his work.

      The fundamental issue is that X11 was never designed with security in mind. If X11 is the only display manager possible in Unix then jwz might have a point. Might. Because his point is pretty stupid. That is to say, it's reactionary, false, absolutist, shallow-minded, and caters to an obsolete/shrinking view of software and Unix. However, since TFA is about trying to avoid this type of mistake in an entirely different piece of software, what jwz thinks about GTK is really fucking irrelevant.

      If you disagree, please address why security is something that should be handled by screensavers, instead of the display manager.

    4. Re:Xscreensaver by gringer · · Score: 1

      why are you letting jwz do your thinking for you?

      An alternative, related question, why are you saying things without references?

      I don't have a good knowledge of the intricacies of screen locking and controlling input devices, so I have to refer to others who I consider to share my general view point, but who appear to be more knowledgeable in a particular area. This is a very common approach in research, and separates out the people who have their own theories based purely on anecdotal evidence from the people who build on the theories and evidence of other research.

      My observation is that almost every program has bugs, and the number of bugs increase (in a non-linear fashion) with the size of a project. Bugs in software that deals with authentication are particularly serious, because a bug may be exploitable to give someone privileges that they would otherwise not have (see toolkit discussion).

      If you disagree, please address why security is something that should be handled by screensavers, instead of the display manager.

      I don't feel that I need to do this, because it has already been addressed in the toolkit discussion. You're giving off the impression that you haven't actually read the toolkit discussion. Please provide some other evidence why the arguments put forward by JWZ are incorrect (preferably something other than "he is a pretentious idiot, so he's wrong"). Anyway, because you're giving this impression, I feel it necessary to post more of that discussion here:

      So, you want xscreensaver to invoke the "unlock dialog" program and wait for a response. The unlocker would use a GUI toolkit, and would be linked against the various security libraries. Perhaps the way it would work is that it would print either "yes" or "no" on stdout, depending on whether a password was correctly entered. Were it to crash, the daemon would take that that to mean "no"...

      In fact, this approach would actually reduce the number of libraries (and thus, lines of code) in the daemon itself, since the daemon would not need to link against things like PAM and crypto. That's a good thing.

      So that doesn't sound hard so far, except that the xscreensaver daemon has the keyboard grabbed. It's pretty important that it hold that grab, because otherwise keystrokes tend to go "through" the xscreensaver window and reach random desktop windows underneath.

      This [raises] the question of, how do the keystrokes get to the unlock dialog at all? That's a difficult question. Understanding how to do that right requires a lot of knowledge about X (which I have) but also probably a lot of knowledge about foreign-language input methods and screen readers and other accessibility-ware (which I do not have.) ...

      In the current system, where the same process is the creator of both the screen-blanking window and the unlock dialog, this is not a problem: that process gets all the events it wants. But when they are in different processes, we need a way for the keyboard and mouse events to get to the process driving the unlock dialog. So you'd like to transfer the grabs from the xscreensaver daemon to the unlock dialog, and then transfer them back afterward. Unfortunately, there is no way to transfer grabs atomically in X. ...

      Another possibility is for the xscreensaver daemon to keep its grabs, meaning that all keyboard and mouse events would go to it; but then for it to use XSendEvent() to generate synthetic events on the lock dialog window. That is, the xscreensaver daemon would read a KeyPress, and then would simulate an exact duplicate of that KeyPress on the lock dialog window.

      [arguments against this: Applications can tell the difference between real and synthetic events, so might reject synthetic events as a security measure. Input methods need to be embedded in the dialog, rather than as a separate window] ...

      In Summary

      Making the xscreensaver

      --
      Ask me about repetitive DNA
    5. Re:Xscreensaver by Anonymous Coward · · Score: 0

      I am pounding my head against the table. Yes, I read what jwz has to say, several times. You and some other moron keep posting it as if it were relevant. It's not.

      You're looking at X11 and saying, this is how jwz says that screensavers should behave under X11 in order to be secure. Good. Great. Wonderful. Remove the X11 part of the equation, because that's what we're fucking talking about. Does it make sense that writing a screensaver should be so fraught with security concerns that only jwz can do it?

      Answer: it does not make sense. It makes no sense whatsoever. Any display manager wanting to replace X11/Xorg should have a built-in concept of what locking the screen means. Screensavers should only be responsible for drawing pretty pictures on the screen.

      You're giving off the impression that you not only haven't read TFA but that you have no idea what is being discussed, except that it uses some of the same words that jwz uses. This is not a question about libraries. This is not a question of bugs. This is not a question about jwz or anything he has written. This is only incidentally about the actual implementation of X11. The topic at hand is a nuance of display manager design, especially as applies to the development of Wayland.

      If you disagree, please address why security is something that should be handled by screensavers, instead of the display manager.

      I don't feel that I need to do this, because it has already been addressed in the toolkit discussion.

      It has not. What jwz is talking about and what TFA is talking about use many of the same words but are not addressing the same topic. I'm getting really tired of repeating this, so maybe you'll do me the favor of reading what I wrote until you understand it. Then, maybe you can contribute some of your own thoughts on the matter to this discussion.

  41. Re:If it's accessing your X server, it's elevated by RightwingNutjob · · Score: 1

    Here's the problem: if you care about security to the point where screen locks are serious business, you've gotten yourself into a contradictory set of requirements: both trusted and untrusted users have physical access to and execution priveleges on a terminal. If you really suspect that your users are untrustworthy enough to steal credentials in this way, the answer is to not have a screenlock at all but to push the security barrier further into the system. The terminal is dumb and has no security model, but to access and/or interact with your proprietary information, the user types credentials into your own custom coded application or web form through a browser and it logs him out after N minutes and requires reentry of the credentials. He's not allowed to run any code on your system, and all the directories, executables and shell scripts that are run in the course of interactring with the terminal are marked 755 or 744 as appropriate so that he can't modify them, and the tmp dir resides in a ramdisk that gets wiped between sessions. Then it doesn't matter if everything is permitted over the X11 protocol, because there is no way to spoof anything from that untrusted terminal. Physical security goes a long way in obviating risks from software vulnerabilities, where practical. And if the data being guarded is sufficiently important, it will be made to be perceived as practical.

  42. Re:If it's accessing your X server, it's elevated by JesseMcDonald · · Score: 5, Informative

    I'm not familiar with writing apps for X, but are you saying that every program that displays a window in X can log all keystrokes including in windows that are not associated with that program?

    Yes. This isn't just X, by the way; it's a common design across most operating systems. Any client can register to receive keyboard and mouse input regardless of the current focus, unless another client has already "grabbed" the input device. This is how things like global keybindings are typically implemented. Windows used for password entry (including lock screens) can grab the keyboard to prevent other programs from listening in. The problem is that this only works if no other program has already grabbed the keyboard.

    Secure input handling is one of the many reasons why everyone is eventually planning to switch to Wayland. Under Wayland, only the compositor has access to the raw input or the ability to inject simulated input events. The compositor manages any global keybindings and forwards the remaining events exclusively to the active window.

    --
    "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
  43. Re:Linux rules the desktop, which is in your pocke by omnichad · · Score: 1

    If you consider micro-HDMI output and bluetooth keyboard support a "desktop" then I guess nobody will stop you.

  44. Linux rules the desktop, which is in your pocket by Anonymous Coward · · Score: 0

    Interesting. I never knew real work could be done on a phone. I guess I've been doing my job wrong for years now. Just think of all the time I could have saved by removing 98% of my visual workspace, as well as my full size keyboard and mouse! Maybe I should just move my workflow into the cloud too!

  45. Re:If it's accessing your X server, it's elevated by operagost · · Score: 2

    Security standards like PCI DSS assume that, yes, your users are untrustworthy or, at best, naive.

    --

    Gamingmuseum.com: Give your 3D accelerator a rest.
  46. Re:Linux rules the desktop, which is in your pocke by Anonymous Coward · · Score: 0

    So, the success of desktop Linux is in turning an OS into a spying device for an advertising company with a cute name. Come to think of it, all their servers run Linux too. Way to fucking go !

  47. It is still there.. by toonces33 · · Score: 1

    They have prettied it up quite a bit, but the underlying protocol is still there. I can run X applications on my Ubuntu 14.04 box, and they display just like they used to 20 years ago. The colors are a bit different, but the basic protocol is still there.

  48. so don't use lock screens by slashdime · · Score: 1

    I may be wrong but this applies to the lock screen/screensaver, not the login screen.

    One can use the "switch user" option to leave their X session open and bring them back to the login screen.

  49. Re:If it's accessing your X server, it's elevated by Lumpy · · Score: 1

    Yeah that doesnt work.

    If it's sitting there on what looks like a normal login they will not hit CTL-ALT-DEL they will just type away. Hell it's hard to not get users to open up every single attachment no matter where it comes from or to not click on every pop up window they get.

    --
    Do not look at laser with remaining good eye.
  50. Technically flawed article by Anonymous Coward · · Score: 0

    It's called XGrabKeyboard, and xlock and most (all?) ssh-agent guis already do this. You can detect if the grab failed, and refuse to proceed in such situations. And if the grab is ripped from you, you get an event. which you can at least use to display a big angry error. it almost never happens unless there is a rather poorly behaved app running on your desktop.

    Spoofing a lock screen is trivially possible on X11. It's possible on Windows using a driver, but it's not trivial. Supplying a challenge image on the lock screen helps with the security quite a bit, but it is not standard practice for home desktops. And only a few UNIX-savvy businesses bother to establish such a requirement.

    X over the network is not secure. so don't even try it if you give a crap about your password. It's not secure even tunneled over SSH, because it's not secure in multiuser environments.

  51. Re:If it's accessing your X server, it's elevated by Anonymous Coward · · Score: 0

    Secure input handling is one of the many reasons why everyone is eventually planning to switch to Wayland.

    Right - because inventing a whole new windowing system is easier than creating an X extension to add the necessary functionality.

  52. Re: If it's accessing your X server, it's elevated by bondsbw · · Score: 1

    But my assumption was that some control in the other window already has keyboard focus.

    --
    All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
  53. Between consumers and developers by tepples · · Score: 1

    Desktops are better suited for developers and smart phones are better suited to consumers.

    Then what's better for people in the middle? They're not "developers" because they are not directly involved in the production of computer programs, but they're not "consumers" because they do not exclusively view works created by others. Besides, schoolchildren are "developers" in training now that "introduction to computer science" has been added to high school curricula.

    1. Re:Between consumers and developers by MrKaos · · Score: 1

      Desktops are better suited for developers and smart phones are better suited to consumers.

      Then what's better for people in the middle?

      A Vic20 with a 4K ram expansion and a cassette interface.

      --
      My ism, it's full of beliefs.
  54. Locking Windows without a Windows key by tepples · · Score: 1

    On this PC (Windows 8.1 with Classic Shell), it's Ctrl+Esc (opens Start), Alt+U (opens Shut Down menu), Down, Down, Enter. It's probably similar for Windows 7. Which operating system is your PC running?

    1. Re:Locking Windows without a Windows key by ihtoit · · Score: 1

      7 HP here, it's CTRL-ALT-DEL then ENTER to lock. There are other options like switch user, log off, restart or shut down, but the two-hit combo locks it. Takes but a second to perform this series, why are people finding it so hard to secure their workstations when they step off?

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  55. Rosy by Anonymous Coward · · Score: 0

    Sure are a lot of rose tinted articles about Windows on /. lately...

  56. Re:If it's accessing your X server, it's elevated by Xylantiel · · Score: 1

    The lock screen and the login screen are different things in X. Typically on X ctrl-alt-backspace will kill the X server and give you a fresh login screen. I always thought that the assumption is that propagating this behavior from login to unlock has too many gotchas to be worthwhile. In an environment where security is essential, you should always log out instead of locking and hit ctrl-alt-backspace before you log back in.

  57. Re:Linux rules the desktop, which is in your pocke by TWX · · Score: 1

    "Linux" is already something of a 'cute' name, a man named Linus applied his name to his reimplemented UNIX-type kernel...

    --
    Do not look into laser with remaining eye.
  58. Re:Uses QT for screensaver, complains about securi by Anonymous Coward · · Score: 4, Informative

    Jamie Zawinski has been wrong before, too, but in this case it's not even wrong. What we're talking about is the X protocol being fundamentally flawed; it's really pretty irrelevant what screen locker is being used.

    And yet Jamie's xscreensaver hasn't been shown to be insecure by this guy. He's only proven what jwz said which is that a lockscreen using a toolkit on top of X11 is insecure.

  59. Is it really down to AC to point out... by Anonymous Coward · · Score: 0

    Nobody above or TFA by the sounds of it (but I haven't read it) has mentioned the real attack vector - not unlock, but login.

    On a shared computer (uni PC room, hot desk, library etc), a valid (but malicious) user logs in, and launches a login look-a-like, then walks away and collects the credentials of unsuspecting users. When a user tries to log it, it could give them an error or log itself out and return them (confused) to the real log in, whatever - you've got their creds.

    No comprise or trojan needed (apart from the deliberate one).

    So always hit CTRL-ALT-DEL before logging into Windows, even if the login screen is already there. On a Linux box this is most likely to reboot the box - but that's fine too, as it gets you to a known good state (assume again no comprise, and you trust the admins).

    But clusters of shared use Linux boxes are unusual outside CS departments - I wonder what they do about this actually? Getting caught is quite likely, so who is stupid enough to try it? Students.

  60. Let me get this straight... by davek · · Score: 3, Interesting

    Let me get this straight. In order to exploit this vulnerability, an attacker must:
      * gain login access to your system via SSH
      * hope you turned on X11 forwarding
      * be root or your user
      * hope you've disabled access control with `xhost +`
      * be able to run a fake screen locker program to get your password to the system he's already completely compromised

    Yes, someone could still stop by your desk and put in the fake screen locker while you were getting coffee, but if you got up and didn't lock your machine, that's on you, not X11.
    I'll file this one under "good enough" security.

    --
    6th Street Radio @ddombrowsky
    1. Re:Let me get this straight... by Anonymous Coward · · Score: 0

      Yes, someone could still stop by your desk and put in the fake screen locker while you were getting coffee, but if you got up and didn't lock your machine, that's on you, not X11.

      It doesn't matter if you lock your computer. Physical access means they can own you if they want to.

      Keyboard lock really just prevents pranksters from setting your background to <insert boy band> while you're getting coffee. But if your co-workers are hardcore, they'll just use a custom USB dongle to root your machine and set your background to the Justin Bieber while it's still locked.

    2. Re:Let me get this straight... by delt0r · · Score: 1

      QTF. Yea that is all they have ever done. I am surprised by how many people think "its secure cus it runs linux". Good God no. Security is hard when you have a well defined thread model. Many times you don't even have that.

      --
      If information wants to be free, why does my internet connection cost so much?
    3. Re:Let me get this straight... by delt0r · · Score: 1

      threat model... treat model. Not thread. There is no thread.

      --
      If information wants to be free, why does my internet connection cost so much?
  61. Re:If it's accessing your X server, it's elevated by HiThere · · Score: 1

    Naive is a version of untrustworthy. Ask your Nigerian Banker.

    --

    I think we've pushed this "anyone can grow up to be president" thing too far.
  62. iirc by Anonymous Coward · · Score: 0

    In Windows 98 you could press ctrl-alt-del and kill the screen saver process, even if IT was password protected.

    Talking about screen locking done right.........

  63. Re:If it's accessing your X server, it's elevated by Aighearach · · Score: 1

    Yeah, I wrote a custom lock screen for X in 2000 for an internet kiosk, and I grabbed the pointer and there was no problem. In my case of course it was controlled by a bill acceptor, not a password.

    The basic misunderstanding here is the idea that the screen lock in old X was designed for security, and usable as such; it was just a screensaver with a password, it wasn't intended as a security device and people who needed a security device just used one. It is open source, we're not locked out, we're not forced to use the provided default tool.

    TFS claims they "can't" be secure because... linux didn't copy windows. Well, geeeeeeeeeeeeeee. If I'd used windows for my kiosk, it would not have increased security. And even here, it would not be easy to integrate a custom setup with the windows feature, so I wouldn't have been able to actually use it; it wouldn't have provided the claimed security.

  64. Re:If it's accessing your X server, it's elevated by Aighearach · · Score: 2

    You're tricking yourself into security theater. You can't intercept an actual ctrl-alt-del, but you can read the ctrl and alt keys, and just unlock your fake lock a couple seconds later. For bonus points, as soon as they press ctrl-alt you change the pointer to an hourglass, and wait an extra second, that way even if they're slow they have time to press del. No windows user is going to be surprised or alarmed by 2 seconds of lag. Their brain will probably hold them in a sort of pause mode anyways, because they're so used to waiting to be allowed to continue.

    And the more often they have to press a magic key combination, the more robotic it becomes and the less attention they will pay. Also, even if something looks slightly off, they've been taught that this magic key protects them in this situation, so they won't worry much.

  65. Short Version by T.E.D. · · Score: 1

    The good news is, on X11 platforms, anyone can write their own lock screen program.

    The bad news is, on X11 platforms, anyone can write their own lock screen program.

  66. Re:Linux rules the desktop, which is in your pocke by Aighearach · · Score: 1

    I know you never heard of the OTG standard, but you don't have buy a special cable to try it out. Just cut open the micro USB cable and solder the unused pin to the ground pin, and now you can use that cable to attach standard USB keyboards, etc. to your portable linux device.

    See also: http://en.wikipedia.org/wiki/U...

    Not sure what your point was about the HDMI, that is what all modern screens expect.

  67. Re:Linux rules the desktop, which is in your pocke by omnichad · · Score: 1

    Great idea. Now you can have either a keyboard OR power. I have an OTG cable. It's useless for anything but a quick use.

  68. Re:If it's accessing your X server, it's elevated by countach · · Score: 1

    That's great, but if the terminal you're logging in with is compromised by the old fake login, then all your keystrokes into your super trusted proprietary app or browser session can be logged and then your passwords into THAT system are now compromised, not to mention screen grabbers which might have sucked down whatever secrets you were trying to keep. Your theory about supposedly "pushing security further into the system" is a mere placebo. There is nothing inherently more secure about a browser than about an operating system.

  69. Re:If it's accessing your X server, it's elevated by countach · · Score: 1

    Oh, and if you think a dumb terminal solves it, firstly these days terminals are never dumb. Even dumb terminals (does anybody still actually buy them?) probably run something like Linux underneath.

    And if you can find a truly dumb terminal and solve all those problems, then you can stick a little thumb drive sized linux server between the ethernet port of the terminal and the rest of the network. Then it can put up the fake login screen whenever it wants, and at other times just pass through the packets.

    This could be solved by requiring the terminal to use encryption with the key securely input into the terminal, but who is actually using such a scheme? I doubt anybody is.

  70. Re:If it's accessing your X server, it's elevated by ihtoit · · Score: 1

    even those that don't display a window but relies on user input has the potential to be a keylogger or have one as part functionality. Word processors, for one. The desktop manager, for an example of the latter.

    If you don't want keystrokes to be logged, unplug your keyboard.

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  71. Re:If it's accessing your X server, it's elevated by amorsen · · Score: 1

    Of course the screen lock in X was a security device; back when X was designed most workstations were shared.

    XScreenSaver has some atrocious code to work around the deficiencies in X. Most of the time it succeeds.

    --
    Finally! A year of moderation! Ready for 2019?
  72. Re:Linux rules the desktop, which is in your pocke by ihtoit · · Score: 1

    the stock Nokia Lumia 610 has Mobile Office which is a necessarily stripped but still fully functional port of MS Office for desktop.

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  73. Re:If it's accessing your X server, it's elevated by RightwingNutjob · · Score: 1

    Exactly. You need to control the hardware with physical security, or none of your fancy software solutions are valid. And yeah, then you have to worry about vendors, and where the factories are, and do you pay your security guards enough.

  74. Re:If it's accessing your X server, it's elevated by JesseMcDonald · · Score: 1

    What exactly would you propose to add? This isn't a matter of implementing new functionality, but rather removing fundamental misfeatures. Any change to address this issue is going to end up breaking existing applications which depend on the original input behavior.

    In any case this is hardly the only reason to switch to Wayland. It's just one of many areas which highlights the drawbacks of trying to tack modern best practices on top of an aging framework. Better to adopt a clean and modern design as the base and confine the hackish workarounds needed to support older clients to a separate compatibility layer.

    --
    "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
  75. Broken applications can appear over screen locker by Anonymous Coward · · Score: 0

    Since X screensaver/locker is just an ordinary full screen window on top of all other windows, there is nothing preventing applications from creating windows that will appear over it, even by accident. I've seen some apps behaving like that. For example kadu, an instant messaging app, has/had this bug where it will show new message balloons/notifications over xscreensaver exposing your private communication.

  76. Re: If it's accessing your X server, it's elevated by JesseMcDonald · · Score: 2

    Some other window most likely does have the keyboard focus, but that's not the same as grabbing the keyboard. Having the focus doesn't prevent input events from also being delivered to other windows, it just tells the non-focused windows to ignore the events. Integrity and privacy for both input and output is a hard problem and something very few windowing systems manage to get right. The solutions tend to involve some degree of inconvenience for the user.

    --
    "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
  77. Re:If it's accessing your X server, it's elevated by complete+loony · · Score: 1

    Crippleware on Windows always used to amuse me. Oh you've disabled the button because I haven't paid? [poke]...[poke]... There now it's enabled again. Oh, you forgot to check if it should be enabled when processing the click event? Tough.

    --
    09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
  78. Re:If it's accessing your X server, it's elevated by psmears · · Score: 1

    You're tricking yourself into security theater. You can't intercept an actual ctrl-alt-del, but you can read the ctrl and alt keys, and just unlock your fake lock a couple seconds later.

    This. Or the fact that there are registry entries that allow remapping of any key to any other, including (as far as I remember) the Ctrl, Alt and Del keys. The "security" of Ctrl+Alt+Del has always been over-hyped :-)

  79. Funny.... by Anonymous Coward · · Score: 0

    Out of about 300 computers at work half have Windows 7 (which isn't bad, really) and the other half use linux.
    All- repeat ALL of our security issues come from the Windows side.
    In the three months I have been there I have had to completely redo 15 or 16 Windows systems due to malware, plus the few dozen that our automated tools were able to clean up.

    I have replaced 2 old linux machines (P3 era) and a number of ancient servers have been retired and replaced with VMs.
    The linux stuff gets replaced when the HARDWARE quits.
    The Windows stuff doesn't last long enough for the hardware to die.

    Screenlockers are far from the biggest worry!

  80. Re:If it's accessing your X server, it's elevated by Swistak · · Score: 1

    It's. You've obviously never seen X.Org's code. Belive me it is.

  81. Back in the day... by technothrasher · · Score: 1

    Reminds me of the good old days of the early 90's, when you could just keep typing in the xdm password field until the buffer overflowed and it would dump you into a root shell.

  82. Re:If it's accessing your X server, it's elevated by disambiguated · · Score: 3, Insightful

    The basic misunderstanding here is the idea that the screen lock in old X was designed for security, and usable as such; it was just a screensaver with a password

    What use is a screensaver with a password that isn't designed for security? Why is the password even there? So it looks secure? Lets just admit it was poorly designed from a security standpoint. That's fine, most stuff designed at that time was not secure. MS-DOS had no security at all. Pointing out that NT occasionally has some good ideas is not an indictment against Unix.

  83. Re: If it's accessing your X server, it's elevated by Anonymous Coward · · Score: 0

    Except the moment they complete the ctrl-alt-del combination, the system will handle it and do whatever it normally would under such conditions (eg switch focus to regular lock screen, launch task manager, bring up UI with lock/taskmgr/change password options etc). Your custom malicious login screen can't prevent that, which is the whole point of the ctrl-alt-del requirement.

  84. Re:Linux rules the desktop, which is in your pocke by Anonymous Coward · · Score: 0

    Most new computing devices run Linux, and fit in your pocket.

    This is false. Linux is popular, yes, but it's not running on "most new computing devices" by a long shot.

  85. Re:If it's accessing your X server, it's elevated by serviscope_minor · · Score: 1

    What exactly would you propose to add? This isn't a matter of implementing new functionality, but rather removing fundamental misfeatures. Any change to address this issue is going to end up breaking existing applications which depend on the original input behavior.

    Oh how about a new protocol extension that allows one designated program to receive all keyboard inputs regardless of any other grabs. The X11 server can keep on pretending that the other grabbers still have such a grab.

    Look: X11 works on Windows even though windows can apparently REALLY gab the keyboard. X11 will we are told work on Wayland too despite the fact that wayland can apparently REALLY grab they keyboard. Do you really think it couldn't be extended to do that itself?

    --
    SJW n. One who posts facts.
  86. In 2014, 1 billion Android, 160 million PCs by raymorris · · Score: 1

    In 2014, there 1.3 billion mobile devices sold. 82% of those run Android, so just over 1 billion Android devices. Over the same time period, 160 million PCs were sold.

  87. Re:If it's accessing your X server, it's elevated by Jeremi · · Score: 1

    Crippleware on Windows always used to amuse me. Oh you've disabled the button because I haven't paid? [poke]...[poke]... There now it's enabled again. Oh, you forgot to check if it should be enabled when processing the click event? Tough.

    If you're going to pirate the software, you might as well go ahead and pirate the full version; then you won't have to poke at it.

    OTOH, if you're going to legitimately use the software, you ought to pay for it.

    --


    I don't care if it's 90,000 hectares. That lake was not my doing.
  88. Wouldn't Wayland fix this problem? by unixisc · · Score: 1

    For one thing, not having direct remote access, and another, since it's totally independent of X, they could put in either that same key combination of CNTL-ALT-DEL or something similar - CNTL-ALT-ESC to lock the screen.

  89. Re:Uses QT for screensaver, complains about securi by Anonymous Coward · · Score: 0

    What part of "X has problems at the protocol level" did you not understand?

  90. Re:If it's accessing your X server, it's elevated by JesseMcDonald · · Score: 1

    Oh how about a new protocol extension that allows one designated program to receive all keyboard inputs regardless of any other grabs. The X11 server can keep on pretending that the other grabbers still have such a grab.

    I'm not really sure how creating yet another way for a "designated program" to monitor input events is supposed to address the problem that any X11 client can monitor keyboard events on any window in the absence of a grab, unless you intend to rewrite all existing software to grab the keyboard on receiving input focus, and force all the desktop environments to implement support for the extension and move their global keybindings into a specially designated client. At that point you might was well switch to a system designed for secure I/O from day one—like Wayland.

    Look: X11 works on Windows even though windows can apparently REALLY gab the keyboard. X11 will we are told work on Wayland too despite the fact that wayland can apparently REALLY grab they keyboard. Do you really think it couldn't be extended to do that itself?

    It's no different with a rootless X server on Windows. Input received by any X window can be observed by any X client, unless one client grabs the input. XWayland will probably work the same way, with native Wayland clients secure from each other and from X11 clients but no isolation between X11 clients and no support for grabbing input directed at non-X11 windows. XWayland is meant as a shim between the Wayland compositor and ordinary X clients; it doesn't support external window managers and isn't expected to host a full X11 desktop environment. You wouldn't run something like a screen locker as an X11 client under XWayland. It wouldn't be secure, for the same reasons that screen lockers aren't secure under X11 now, and similar compatibility problems would occur if you tried to implement the Wayland input model with X11 extensions.

    It's easy to implement the insecure X11 model on top of a secure system. The reverse is much more difficult.

    --
    "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
  91. Re:Uses QT for screensaver, complains about securi by Anonymous Coward · · Score: 0

    Then show an actual exploit against xscreensaver. Put up or shut up.

  92. Re:If it's accessing your X server, it's elevated by Anonymous Coward · · Score: 0

    Won't they be a bit confused by the task manager window or the fullscreen options screens that inevitably pop up upon issuing such commands on windows?

  93. Re:If it's accessing your X server, it's elevated by parenthephobia · · Score: 3, Informative

    Your façade rather falls apart when they actually do press "del", I think.

  94. Re:If it's accessing your X server, it's elevated by skids · · Score: 1

    Lockscreens in general only exist to satisfy PHBs and annoy the user. If you really cannot trust the physical security of your office environment for more than 10 minutes, you probably should not be trusting it for even 1 minute and be locking your system through other means.

  95. Re:If it's accessing your X server, it's elevated by skids · · Score: 1

    Supposing there is no way to close it faster than it renders, sure they will be confused, but most will just blow it off as just another windows UI flub, close it, and enter their password.

  96. Re:Uses QT for screensaver, complains about securi by Anonymous Coward · · Score: 0

    That's the whole point of the article. You don't need an exploit, X11 is not secure. Anything else can prevent the screensaver from locking the screen (by e.g. opening a menu) and then fake the real unlock screen. Like in the source code given in TFA.

    Look, the guy at the top saying "Well duh, telnet isn't secure either," has a valid point. X11 was never designed to be secure, which is one reason why it does the things that it does. This has nothing in particular to do with screensavers, less to do with any specific screensavers, and absolutely nothing to do with Jamie Zawinski's prejudices about large software projects being inherently insecure.

    This article is saying that one of the things that we've learned in the 30 years since the X11 protocol was written is that display managers should have the concept of security baked in. Handling input should probably not be a free-for-all, and the mechanism for handling screen locking should probably not be the exact same mechanism used for pop-up messages (i.e. put a window on top and grab all input). It's also not the case that an exploit against xscreensaver would be an argument for or against either the use of widget libraries or any security concerns involved in display manager design.

    If it helps you can think that you won the argument by virtue of there being no exploits against xscreensaver. Then you can be happy by winning with non sequiturs arguments that no one else is even having.

  97. So all people have to do by iamacat · · Score: 1

    Is install Linux on your "Windows NT" workstation and emulate Ctrl-Alt-Del login screen? Or insert a little keylogger between keyboard and computer's USB port? Or hide a little camera in light fixture of the ceiling to snoop on your password? Or just to a little old fashioned shoulder surfing?

    Best realize that your password is vulnerable to a determined attacker and practice defense in depth.

  98. X11 has lots of things to be improved... by Casandro · · Score: 1

    ...but you _can_ make secure screen lockers on it, you just need to use it raw and not use bloated frameworks. It's been done for years.

    There is nothing wrong about considering to replace X11, however the current crowd of desktop developers probably won't make it much better. Instead of learning from modern operating systems like Plan 9 and using language neutral file system based interfaces, systems like Wayland still are stuck in the past requiring dynamically linked libraries as API interfaces.

  99. Re:If it's accessing your X server, it's elevated by benjymouse · · Score: 3, Informative

    I'm not familiar with writing apps for X, but are you saying that every program that displays a window in X can log all keystrokes including in windows that are not associated with that program?

    Yes. This isn't just X, by the way; it's a common design across most operating systems. Any client can register to receive keyboard and mouse input regardless of the current focus, unless another client has already "grabbed" the input device.

    Except in Windows. Since Vista user interface privilege isolation prevents unauthorized processes from grabbing keyboard/mouse events or sending messages to windows owned by another process, even if that process is running as the same user. To be allowed to grab keyboard/mouse, the process must have declared that intent in the manifest *and* it must have been launched from an installed location (program files or windows system). Furthermore, such hooking/messaging is also masked out at the intrinsic level by UAC - specifically by integrity levels. A lower integrity process is simply not allowed - manifest or not - to send messages or install keyboard/mouse hooks at a higher integrity level process.

    X is especially bad in this regard, as it does not even protect against shatter attacks and eavesdropping on windows from *another users* processes. If you elevate to root - e.g. sudo from a terminal window - any other process can *still* eavesdrop on keyboard events.

    --
    Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
  100. Re:If it's accessing your X server, it's elevated by Aighearach · · Score: 1

    The same reason I have a locking desk drawer with a wimpy lock that a professional thief could easily defeat: it keeps co-workers from gaining casual access.

    The same reason I lock my car doors, and it generally prevents theft. They can still break the window or use other access techniques; my car is not actually secured. I wouldn't leave something important in it though, like a HD full of confidential customer information.

    So even a not-fully-secured workstation benefits from casual access control. But thinking it is secure might prevent the creation of more secure systems to store confidential data.

    Knowing the real level of security achieved is vital to assessing how your processes meet your security needs.

  101. Re:If it's accessing your X server, it's elevated by serviscope_minor · · Score: 1

    First bear in mind the attacker has local code execution. If they can put up a fake screengrabber, it's just a logout/reboot away from running a trojaned compositor (if you use Wayland), a trojaned screenlocker (if you use X) and on either system without even a reboot, a trojaned browser, terminal, ssh program and so on and so forth. So to say this is a serious flaw with X is hyperbole.

    The next case is that you also claim Wayland is secure. Therefore X11 running on Wayland is secure. Therefore in that case X11 is being run in a secure manner. I claim that if that is the case, then X11 could very easily be secured, because it's eassy to see it in operation nowrunning in a way that the additional insecuritu doesn't break things.

    I'm not really sure how creating yet another way for a "designated program" to monitor input events is supposed to address the problem that any X11 client can monitor keyboard events on any window in the absence of a grab, unless you intend to rewrite all existing software to grab the keyboard on receiving input focus, and force all the desktop environments to implement support for the extension and move their global keybindings into a specially designated client. At that point you might was well switch to a system designed for secure I/O from day oneâ"like Wayland.

    OK, I'm lightly lost so I'm going to swing back to the original point.

    First there's the one about server grabs which prevent other windows from opening. Well, you could easily have a protocol extension that allows only one connected client to bring up windows anyway. The continuation of the grab could either be faked to the grabber, or killed outright (the latter feature---killing grabs---was removed from Xorg by the wayland people because they decided we didn't need it!). Let's say it's first come, first serve, so that the first client to request this feature is the only one to get it. Or the screenlocker could get that command. This requires the WM and screenlocker to be run on boot before a trojan, but as I pointed out, if the system is that deeply trojanned anyway, then this is all pointless.

    That requires some rewriting to whichever screenlockers you want to add the feature to, hardly a major undertaking since there's about 3 in common use and a few, more obscure, ones.

    The other problem---a designated screen lock key combo. Well, if the screen locker has a passive grab on ctrl-alt-delete, then the fake screenlocker can't grab that, so that already works.


    It's easy to implement the insecure X11 model on top of a secure system. The reverse is much more difficult.

    Why? Why not have exactly the same security model? You haven't explained, only asserted, that your chosen security feature couldn't be easily available under X.

    In fact when it comes to locking things down, there are things like the X security protocol, which blocks untrusted programs from executing various protocol commands. This already exists and could (I haven't checked if it does) easily block things like receiving events from a window on another connection, reparenting or redirecting a window on another connection, diddling with the global keymap and so on.

    Anyway if there's unsanboxed local code execution, you're basically screwed on any system.

    --
    SJW n. One who posts facts.
  102. Re:If it's accessing your X server, it's elevated by pop+ebp · · Score: 1

    Actually, even before Vista, the requirement to press Ctrl-Alt-Del before you entered your password solved the rogue screensaver problem nicely.

    No ordinary process can intercept the key combination and when pressed, takes you to a secure desktop that ordinary program cannot draw on so they cannot fake the password screen.

  103. Re:If it's accessing your X server, it's elevated by pop+ebp · · Score: 2

    But when you do actually press the Del key, the real password dialog appears, and it is on a secure desktop (the "Winlogon" desktop) that can't be manipulated by your rogue program. Your window would be seen only after the user entered their password once, which would look quite suspicious.

  104. Re:If it's accessing your X server, it's elevated by vux984 · · Score: 1

    This

    Actually. No. Not this.

    Or the fact that there are registry entries that allow remapping of any key to any other, including (as far as I remember) the Ctrl, Alt and Del keys. The "security" of Ctrl+Alt+Del has always been over-hyped :-)

    Yes, you can install a keyboard driver, usb filter driver, or adjust the keyboard scan code map in the registry to disable the keys. (And that's not in HKEY current user.)

    You aren't going to be tampering with or installing of ANY of that from user land. And if you have root... you can just install a keylogger be done with it. Why bother with dorky fake lock screens?

  105. Re:If it's accessing your X server, it's elevated by psmears · · Score: 1

    You aren't going to be tampering with or installing of ANY of that from user land.

    I think you're confusing the user vs administrator distinction with the userland-vs-kernel-mode distinction... but never mind...

    And if you have root... you can just install a keylogger be done with it. Why bother with dorky fake lock screens?

    What I'm saying is that the "Ctrl+Alt+Del protects your password" claim is overblown; the suggestions you give only amplify that, as they are even more ways to circumvent it...

  106. Re:If it's accessing your X server, it's elevated by vux984 · · Score: 1

    I think you're confusing the user vs administrator distinction with the userland-vs-kernel-mode distinction... but never mind...

    Deliberately conflating, but not confused.

    What I'm saying is that the "Ctrl+Alt+Del protects your password" claim is overblown; the suggestions you give only amplify that, as they are even more ways to circumvent it...

    But none of them are trivial to do. Especially if I am not already an administrator on the system.

    I can trivially run a program to throw up a screen that looks like the login screen on a PC at work. TRIVIALLY.

    the "Ctrl+Alt+Del protects your password" claim is overblown

    Its like door locks. Nobody anywhere claims they make your house secure, but it does stop people from being able to literally just wander into your house.

    In the real world door locks prove to be highly effective at keeping people out of places. From hotel supply closets and building electrical rooms to the bosses office to your bathroom stall while your taking a crap.

    Nobody here is arguing ctrl-alt-delete is some magical super thing, its just a door lock. But its enough of a hassle to get around, that its plenty to stop all kinds of casual intrusions and mischief.

    Ctl-Alt-Delete is the same way.

  107. Re:If it's accessing your X server, it's elevated by psmears · · Score: 1

    Deliberately conflating, but not confused.

    It's hard to tell the difference from here ;-)

    I can trivially run a program to throw up a screen that looks like the login screen on a PC at work. TRIVIALLY.

    Adding a registry entry to remap keys is pretty trivial, too... as, for that matter, is running a different OS which doesn't treat Ctrl+Alt+Del in a special way! Thus any extra security provided is minimal. Which is fine - as you say, security doesn't have to be perfect in order to be useful - but in my view overselling the effectiveness of a measure is counterproductive.

    Nobody here is arguing ctrl-alt-delete is some magical super thing,

    Alas that is exactly what Microsoft claimed for years (possibly still claim?)...

  108. Re:If it's accessing your X server, it's elevated by vux984 · · Score: 1

    Adding a registry entry to remap keys is pretty trivial, too.

    You need to be an administrator to do that. That makes it pretty non-trivial.

    is running a different OS which doesn't treat Ctrl+Alt+Del in a special way

    Now your suggesting what exactly? That the attacker is going to throw in a linux live CD, boot it, run his 'fake login screen' that looks like the usual windows screen?

    Ok... yes I guess that is a theoretically possible attack; although you'd probably get caught as soon as the user isn't actually able to log-in and IT gets called in...

    Usually the fake login screen attacks "fail" with a you got your password wrong message, and then quietly disappear and throw the -real- lock screen up so the unwitting user tries again... gets in to what he expects and assumes he must have fat fingered his password.

  109. Re:If it's accessing your X server, it's elevated by Anonymous Coward · · Score: 0

    BTW: I changed my screensaver password to not be my login password. That kind of avoids some implications of this.

  110. Fake the lockscreen? by allo · · Score: 1

    Why is it a fake?
    Assume i have gnome-screensaver, kscreensaver and xlock installed. now i use one of them to lock the screen. do all the others now cry, because the used one is a fake to them?

  111. Re:Linux rules the desktop, which is in your pocke by Anonymous Coward · · Score: 0

    I'd hardly call that Linux. And I'd hardly call that a desktop either.

    Android / Linux is the most bastardized form of Linux there has ever existed. It is atrocious.

  112. Re:If it's accessing your X server, it's elevated by psmears · · Score: 1

    Adding a registry entry to remap keys is pretty trivial, too.

    You need to be an administrator to do that. That makes it pretty non-trivial.

    It would, except that users having Admin access is much more common on Windows systems. (Being an Administrator on Windows does not (in theory, at least) have the complete "game over" privileges that "root" traditionally does on Unix-based systems, so there are still further privilege levels to be escalated to.)

    is running a different OS which doesn't treat Ctrl+Alt+Del in a special way

    Now your suggesting what exactly? That the attacker is going to throw in a linux live CD, boot it, run his 'fake login screen' that looks like the usual windows screen?

    Ok... yes I guess that is a theoretically possible attack; although you'd probably get caught as soon as the user isn't actually able to log-in and IT gets called in...

    Why would IT get called in? After the user's entered their password, you just display a simulated BSOD and then reboot into the genuine OS; no user will be remotely suprised ;-)