News for hackers. Stuff that matters.
Re:Termux: terminal emulator and Debian-style userland as an... by jeromenerf on Monday October 23, 2017 @05:34AM (#15531878)
Termux is a great project, may it be for cli lovers, hackers, road warriors ...

However, I have little trust in mobile devices nowadays and I don't feel safe copying private ssh/gpg/vpn/credentials data on them anymore. Planned obsolescence, theft risk, vendor/hardware/firmware issues, general feel of lack of control, ...

As a consequence, I tend to use my smartphone as anonymously as possible, mostly as a camera, an actual phone and 4G modem, tethering via usb/wifi to my laptop. It's simple, it feels safe and obviously it's not as practical.

I'd love postmarketos --or something similar-- to succeed, so I could leverage the privacy/backup strategies I have already set in place on laptops and servers that actually make me feel safe.

Re:Termux: terminal emulator and Debian-style userland as an... by jstimpfle on Monday October 23, 2017 @06:13AM (#15532015)
Make a separate ssh key for your phone with restricted sftp-only access to a phone-specific backup directory on your server.
Re:Termux: terminal emulator and Debian-style userland as an... by hsivonen on Monday October 23, 2017 @10:34AM (#15533435)
What's a good tutorial for restricting sftp access to a particular directory? (Assuming the same host supports ssh login, too.)
Re:Termux: terminal emulator and Debian-style userland as an... by jstimpfle on Monday October 23, 2017 @10:49AM (#15533545)
Assuming openssh-server, look for "internal-sftp" in sshd_config(5). And of course, also google a bit around that.

It's worth pointing out that this will preclude use of rsync and similar tools that require running a server on the remote machine. I'm not aware of robust alternatives so if anyone else knows one please tell me! (and I consider rsync-restricted shells and similar approaches a hack)

Re:Termux: terminal emulator and Debian-style userland as an... by gcoda on Monday October 23, 2017 @07:00PM (#15537639)
how about running OpenSSH inside docker with bind mounts?
Re:Termux: terminal emulator and Debian-style userland as an... by tinix on Tuesday October 24, 2017 @05:11AM (#15540256)
are y'all talking about chroots?
Re:Termux: terminal emulator and Debian-style userland as an... by laggyluke on Monday October 23, 2017 @06:16AM (#15532026)
I have a complete opposite feelings: mobile apps are actually sandboxed, modern phones have secure elements in hardware and the attack surface itself is pretty limited.

On the other hand, there's virtually no sandboxing on your laptop. As software developers, we pull random code from the internet all the time and it's generally trivial to steal every secret that your user has access to (https://xkcd.com/1200/)

Personally I'm not worried about baseband processor (or Intel ME) owning my device. I'm more worried about some random malware installing a keylogger and/or stealing my whole LastPass database. This would be virtually impossible on mobile, but is relatively trivial on laptop.

Re:Termux: terminal emulator and Debian-style userland as an... by jeromenerf on Monday October 23, 2017 @08:27AM (#15532631)
I understand your feeling. I guess one can build "trust" or at least a somewhat "safe" feeling from simplicity, technical arguments, experience of a given evil ...

I "feel safe" running linux or openbsd on a "computer" given that I know only too well how flawed they can be. A mobile device could offer exactly the same feeling, and maybe better objective security characteristics, but unfortunately a "mobile device" doesn't seem to be defined as a "computer" you can single handedly operate but as a mix of short lived dependencies from hardware manufacturers to walled proprietary app stores through network carriers.

I don't dismiss the technical progress that is eventually happening in the mobile area but I think I'll pass as long as something as postmarketos offers what I feel is sustainable.

Re:Termux: terminal emulator and Debian-style userland as an... by johnfocker on Monday October 23, 2017 @07:07AM (#15532229)
True there's no sandboxing by default on a typical linux desktop but I think the key difference between the linux distributions and Android security models is that your linux distribution is supposed to run trusted free software whereas your Android device is probably going to run some proprieatary untrusted apps.

That's why sandboxing is very necessary on Android and not so much on your linux box.

Now I agree you should sanbox everytime you can especially when linux is well capable of it, that's why I use firejail on my desktops so I get all the awesomeness of my favorite distributions AND strong sandboxing with real ease of use. https://firejail.wordpress.com/

One cool trick is to hook "sudo firecfg" in your package manager post operations so whenever you install new software it get sanboxed if a firejail profile is available (which is generally true). There may be a smarter way to do just that though?

That xkcd post makes a very good point indeed (that's why everybody should lock whenever afk, encrypt and use strong passwords of course) But I also think you should also worry about those backdoor issues: https://www.replicant.us/freedom-privacy-security-issues.php https://libreboot.org/faq.html#intel

Re:Termux: terminal emulator and Debian-style userland as an... by realusername on Monday October 23, 2017 @10:58AM (#15533631)
The apps are indeed sandboxed but who knows what everything below is doing. I trust more the maintainer of my distribution than whoever hacked an android rom to commercialize it.
Re:Termux: terminal emulator and Debian-style userland as an... by skbohra123 on Monday October 23, 2017 @06:38AM (#15532111)
You sir, have very misplaced priorities.
Re:Termux: terminal emulator and Debian-style userland as an... by dredmorbius on Monday October 23, 2017 @07:29AM (#15532338)
I'd argue that both risk surfaces are large, not that the priorities are misplaced.

There's little of any electronics I trust much these days.

Re:Termux: terminal emulator and Debian-style userland as an... by shams93 on Monday October 23, 2017 @12:21PM (#15534336)
Well rather than using it on a phone, look at the scenario of using this on a chromebook with android app support. Currently to run crouton to do linux development on a chromebook you have to run in the entire insecure developer mode where you're wide open to attack. Using termux on a chromebook under normal mode you can work without having to compromise your chromeos device's default security setup.