News for hackers. Stuff that matters.
Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by AdmiralAsshat on Thursday July 27, 2017 @10:47AM (#14865789)
I'm not sure how much extra "security" you're really getting out of staying strictly within ChromeOS. Yes, Secure Boot is disabled. However, the ChromeOS partition is still encrypted, and you can manually encrypt any of your crouton chroot environments, so someone looking at the thing still wouldn't be able to peek into the contents. If you're asked, "Why is this in Developer Mode?", you can answer, "I'm a developer."

Additionally, once Developer Mode is enabled, you must hit Ctrl+D to move past the warning screen every time. It is incredibly easy to inadvertently hit Enter or Spacebar, and then have the Chromebook wipe itself and restore to factory settings. I've done it inadvertently myself, and have heard multiple reports of a developer's spouse/child accidentally clicking it, too. Unless a Border Patrol agent knew exactly what they were doing, I'd be willing to bet they'd accidentally wipe it as well.

Finally, while I'm aware that disabling Secure Boot in theory opens you up to an Evil Maid attack, what is the likelihood that border patrol/customs would have a malicious OS on hand, and the know-how to flash it? Worst -case scenario, if you suspect they've tampered with the OS, simply hit Spacebar yourself as soon as you get it back, restore Secure Boot, and then start over from scratch!

As an aside, if you are confined to ChromeOS, I highly recommend Caret as an editor. It's a FOSS, Sublime clone chrome app that works swimmingly on Chromebooks.

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by leggomylibro on Thursday July 27, 2017 @12:38PM (#14866936)
That is a good point, but also a feature in my view. I see my chromebook as a mobile workstation, so more or less everything on it is backed up in a git repository, cloud storage, that sort of thing. ChromeOS automatically restores extensions and installed Android apps, and I usually keep builds of software I use in crouton on separate external flash storage; 16-32GB of internal storage isn't that much when you have to build from sources because ARM binaries are still fairly rare.

So an inadvertent wipe is really just an inconvenience of 30-60 minutes, and if it's a border patrol or TSA agent you can then have fun acting all indignant at how they broke your device and you lost so much work and your boss is gonna kill you and you want to talk to their supervisor right now.

The lack of hardware security is a consideration, but frankly if your device is handled by a malicious actor outside of your control, you're kinda screwed anyways.

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by rkeene2 on Thursday July 27, 2017 @08:01PM (#14870881)
The drive where the OS lives isn't encrypted. Rather it is verified. It uses do-it-yourself to chain every read from the device to a trusted authority. secure boot is how verifies that the kernel (running do-it-yourself) hasn't been tampered with (e.g., to add more trusted authorities or disable verification).

This protection is not just against "evil maids" but any attack that modified the disk in the past. E.g., if the system is compromisd due to a software fault, nothing can persist on disk undetected (like ZFS/bcachefs/BtrFS checksummi preventa bit-rot from being undetected)

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by limeblack on Thursday July 27, 2017 @11:20AM (#14866107)
Link to Caret Text Editor https://chrome.google.com/webstore/detail/caret/fljalecfjcio...

In doesn't show up in Chrome Extensions search as easily as I would hope.

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by mrisoli on Thursday July 27, 2017 @05:08PM (#14869557)
As someone who has an on-off interest in ChromeOS but with little to no knowledge about it, does vim/neovim work? I found some vim version on the chrome web store but it is last updated on 2014 and pinned to 7.4 which was a bit disappointing.
Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by leggomylibro on Thursday July 27, 2017 @07:05PM (#14870518)
Yes and no.

Yes, they work.

No, they don't capture shortcuts like 'ctrl+W' which are handled by ChromeOS.

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by chasote on Thursday July 27, 2017 @10:20PM (#14871428)
There is a chrome extension called Crosh Window that keeps the Chrome shortcuts from coming in. That way things like Ctrl-w in Vim still work. edit: this might just be when going through crouton though. I don't really use the crosh shell except to boot up my chroot.
Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by leggomylibro on Friday July 28, 2017 @08:55AM (#14873878)
Oh cool, I'll have to check that out. Thanks!
Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by rkeene2 on Thursday July 27, 2017 @08:07PM (#14870917)
For some applications, like crosh, pinning the application and then launching it changes the semantics.
Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by chasote on Thursday July 27, 2017 @10:37PM (#14871505)
I see the security argument come up often but have never once heard an anecdote of someone having a security breach or whatever people are scared of happening because their chromebook was in developer mode.

Installing a chroot isn't that difficult, in fact it was actually kind of fun and started me on an incredible tech exploration journey that currently has me learning software development using Vim on a command line only linux distribution. I never would have imagined such a thing a year ago. It is weird thinking having a $140 refurbished acer c720 may have led me on a completely different, exciting life path.

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by geofft on Thursday July 27, 2017 @11:59AM (#14866507)
I think I am misunderstanding you, but isn't paragraph 2 an argument for staying in normal Chrome OS (as this article suggests) instead of enabling developer mode?
Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by AdmiralAsshat on Thursday July 27, 2017 @12:55PM (#14867118)
It is an inconvenience and a danger, yes. But the tradeoff with having crouton is having full access to a Linux environment, with all of the tools and programs that enables. Short of System76/Entroware/Dell XPS Developer Editions, the fact remains that moddable, Intel-series chromebooks are some of the best preconfigured Linux laptops you can buy, once you peel back the ChromeOS layer.

I mentioned above that I think Caret is a great Sublime clone, but I also like having the real SublimeText, with its awesome add-on packages, Git integration, etc. The article's recommendation that you must stick with Android-enabled Chromebooks limits your options, and the only reason the recommendation exists is that he needs some way of getting access to the developer tools--gcc, etc. A crouton chroot gets you there the same way, and I'd argue it's better since the programs are running natively rather than through an emulated Android layer.

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by xuejie on Thursday July 27, 2017 @10:29PM (#14871465)
Just being curious here: to me crouton is also a quite limited Linux environment, for example docker is a no go on crouton, so what advantage do you think that has against android-based solution such as termux?

Maybe a separate Linux install such as GalliumOS can really be called full access Linux environment?

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by AdmiralAsshat on Friday July 28, 2017 @10:31AM (#14874486)
> for example docker is a no go on crouton

Been a few years since I used a chromebook w/crouton, but that wasn't my recollection. In fact I recall a fork of crouton that supported Fedora explicitly stating that it installs via docker.

https://github.com/nmilosev/crouton-fedora

Re:How Chrome OS, Termux, YubiKey and Duo Mobile make for gr... by chiefalchemist on Thursday July 27, 2017 @06:13PM (#14870118)
True. But the other point was to be able to travel (read: not carry on your laptop) with less fear. That's a pretty worthy considered.