News for hackers. Stuff that matters.
Re:U.S. Navy bans TikTok from government-issued mobile devices by angry_octet on Saturday December 21, 2019 @11:33AM (#21851952)
Doesn't matter, they have it on their personal phone.

App security is so bad that you pretty much need to virtualize the phone and feed it fake sensor data. The whole idea of unrestricted network access is stupid.

Re:U.S. Navy bans TikTok from government-issued mobile devices by SpicyLemonZest on Saturday December 21, 2019 @02:09PM (#21852770)
> App security is so bad that you pretty much need to virtualize the phone and feed it fake sensor data.

Yeah, this is really bizarre to me. I was trying to check on volume levels through walls in my apartment, so I wanted to find some random decibel measuring app and lock it down so I don't have to worry too much about trusting it. But somehow Apple's permission model, which provides a whole pile of privilege switches including mobile data, has no way to completely revoke Internet privileges for an app.

Re:U.S. Navy bans TikTok from government-issued mobile devices by freedomben on Saturday December 21, 2019 @05:49PM (#21853777)
This is one of my favorite things about Android. It's trivial to restrict access using AFWall+ . You can block all access, mobile data access, WiFi access, it any combination thereof on a per app basis. Highly recommend it.
Re:U.S. Navy bans TikTok from government-issued mobile devices by rsanek on Saturday December 21, 2019 @06:21PM (#21853927)
Unfortunately requires root though, which means for the vast majority of Android users this is not an option.
Re:U.S. Navy bans TikTok from government-issued mobile devices by freedomben on Saturday December 21, 2019 @06:31PM (#21853965)
Yes very true. I've been rooting for years so don't usually think about that, but yes you have to be rooted. It's sad that for proper security you have to root your device. I'd love if they built that firewall into Android.

Anticipating a question, the best phones IMHO for rooting are the OnePlus phones and Pixel. Motorola had been good in the past but you have to get a code to unlock the bootloader (which I don't like).

Re:U.S. Navy bans TikTok from government-issued mobile devices by kevin_thibedeau on Saturday December 21, 2019 @08:37PM (#21854551)
NoRootFirewall is much the same. If you can install LineageOS it lets you revoke fine grained permissions without the app knowing.
Re:U.S. Navy bans TikTok from government-issued mobile devices by monoideism on Saturday December 21, 2019 @09:21PM (#21854726)
Plus, regardless of background or technical expertise, rooting your phone dramatically decreases security.

Downvoters: so what security features do you lose and gain when you root your phone? You've weighed the pros and cons, right?

Re:U.S. Navy bans TikTok from government-issued mobile devices by freedomben on Sunday December 22, 2019 @11:32AM (#21858060)
Not a down voter, but I disagree with you.

There's a fantastic example in my sibling post. Rooting gains you the ability to more tightly control network access. That alone is massive for privacy and security.

Obviously you have to run code with lots of permissions, which means you could be highly compromised by a malicious app. The onus on the user is much higher to vet apps. At the end of the day you have to place some trust, even if you don't root. It's a game of balancing tradeoffs.

It's overly simplistic to say that rooting dramatically decreases security regardless of background or technical expertise.

Re:U.S. Navy bans TikTok from government-issued mobile devices by monoideism on Sunday December 22, 2019 @10:55PM (#21861384)
Thanks for answering. I guess now that it's possible to install your own key to verify rooted images in many phones, the problem is somewhat attenuated. Losing verified boot is a major loss.

So yes, that was a bit overly simplistic. I rooted my phones for a number of years before carefully looking at the pros and cons and deciding it was a poor choice for a consumer mobile phone. Obviously, we need root access for our dev machines and servers. But I try to follow the principle of least privilege, and in that case, not clear why root would be needed for a mobile phone.

But I concede that for some use cases, it can be a trade-off.

What other security advantage of rooting can you name besides tighter control of network access? Also, note that there are a few apps that allow some degree of firewall with unrooted phones. I also suspect there's a lot of room for improvement there.

Re:U.S. Navy bans TikTok from government-issued mobile devices by netheril96 on Saturday December 21, 2019 @11:10PM (#21855128)
Maybe I understand you wrongly, but when I open the setting of individual app in iOS, I can revoke both cellular and WiFi access for it.
Re:U.S. Navy bans TikTok from government-issued mobile devices by TYPE_FASTER on Saturday December 21, 2019 @02:49PM (#21853001)
I’ve found blocking an iPhone on my WiFi AP effectively cuts it off from the net. It may have cell, but I think iOS prioritizes the WiFi connection because it’s live to the AP, even though all requests stop there.
Re:U.S. Navy bans TikTok from government-issued mobile devices by Spooky23 on Saturday December 21, 2019 @07:01PM (#21854121)
Why not just turn off cellular data?
Re:U.S. Navy bans TikTok from government-issued mobile devices by manwe150 on Saturday December 21, 2019 @07:58PM (#21854393)
Honest question: but what’s the threat model for wanting an OS to block this? I’ve so far only thought of leaking IP address and Bitcoin mining. But any website already easily has both capabilities (with somewhat arbitrary open sockets after the WebSockets handshake). Is the expectation that an app implementation should have less permissions than an equivalent website and so be the “safer” option?
Re:U.S. Navy bans TikTok from government-issued mobile devices by SpicyLemonZest on Saturday December 21, 2019 @10:10PM (#21854924)
I want to ensure that the app is just locally computing the decibel level, rather than streaming out data about what it's hearing.

I would ideally want websites to also have a "no more network access after your initial load" mode, but as you say that's fundamentally incompatible with modern web development. So I kinda just accept the loss there.

Re:U.S. Navy bans TikTok from government-issued mobile devices by hrktb on Saturday December 21, 2019 @09:13PM (#21854691)
Isn’t it the same as any other access permission ?

For instance is there any specific model behind blocking device location, short of just not wanting to share the info ?

I’d see not wanting an app to send anything related to your device nor that it was even opened to be of the same kind.

Re:U.S. Navy bans TikTok from government-issued mobile devices by aembleton on Sunday December 22, 2019 @07:02PM (#21860527)
Stock Android is the same, but MIUI (Xiaomi skinned Android) does allow you to control which apps have internet access, and whether they can use mobile or wifi networks.
Re:U.S. Navy bans TikTok from government-issued mobile devices by jraby3 on Saturday December 21, 2019 @10:55PM (#21855073)
You can turn off WiFi and then revoke cellular data for a specific app. Not the same thing but still effective, especially if you are only going to use an app once.
Re:U.S. Navy bans TikTok from government-issued mobile devices by thaumasiotes on Saturday December 21, 2019 @11:54AM (#21852091)
> The whole idea of unrestricted network access is stupid.

I've been coming around to a similar idea. I'd like a setup something like this for my desktop:

1. Some devices representing network connections. One or more are "real"; others may be VPNs.

2. Per-application settings governing which network devices, if any, the application may use. Default to none.

For example, the common way to use a VPN is like this:

1. Start your machine. You're connected to the internet, but not yet to the VPN. All of your running software is already using the internet over the unprotected connection.

2. Start the VPN. It will magically do something such that applications wanting to use "the internet" find it instead of the connection they used to find (the one the VPN itself is still using). All of your running software is now using the VPN. Did you want something to use the other connection? Too bad.

I'm sick of the idea that Windows perceives an internet connection somehow, hides it from me, and automatically makes it available to everything that asks for "the internet". But I don't actually know how to do this. Someone is working really, really hard to make sure I don't affect who uses what device.

Re:U.S. Navy bans TikTok from government-issued mobile devices by bradgessler on Saturday December 21, 2019 @01:37PM (#21852624)
Check out https://www.qubes-os.org/

They secure and compartmentalize at the VM-level so you can setup a VM to work only over Tor or VPN, and others to work directly over your own network. You can also restrict access to hardware per VM.

Re:U.S. Navy bans TikTok from government-issued mobile devices by fleminra on Saturday December 21, 2019 @02:32PM (#21852908)
You can have per-application IP routing if you run applications within individual Linux containers. E.g.:

  sudo pflask --netif=macvlan:enp4s0:net0 tmux
Then inside tmux run a VPN client and the sensitive application.
Re:U.S. Navy bans TikTok from government-issued mobile devices by wrkronmiller on Saturday December 21, 2019 @12:26PM (#21852268)
This behavior is a function of Berkeley Sockets style APIs and the nature of routing tables/default routes.
Re:U.S. Navy bans TikTok from government-issued mobile devices by dahfizz on Saturday December 21, 2019 @08:25PM (#21854500)
Reading your comment melts my mind as a Linux user.

You can't just set your vpn connection as the default route? What's even the point if it's not the default route?

Applications (at least on Linux) have no idea what device they are using. They just request a connection to an IP and it's the kernels job to route that request correctly.

Re:U.S. Navy bans TikTok from government-issued mobile devices by nl on Sunday December 22, 2019 @01:41AM (#21855654)
Of course Windows can (and does usually) use a VPN as an active route. The poster just doesn't know what they are talking about.

In particular this sentence is complete nonsense:

I'm sick of the idea that Windows perceives an internet connection somehow, hides it from me, and automatically makes it available to everything that asks for "the internet". But I don't actually know how to do this. Someone is working really, really hard to make sure I don't affect who uses what device.

As usual, MS has pretty decent documentation on this: https://docs.microsoft.com/en-us/windows-hardware/drivers/mo...

I don't particularly like the GUI_centric nature of much of it, but the complaint itself is completely ill-informed.

Re:U.S. Navy bans TikTok from government-issued mobile devices by dahfizz on Sunday December 22, 2019 @10:42PM (#21861346)
I had a feeling that this was just an uninformed user, thank you for clarifying.
Re:U.S. Navy bans TikTok from government-issued mobile devices by thaumasiotes on Monday December 23, 2019 @02:50PM (#21866683)
You've described the same system I just said I didn't want. But I'm uninformed for complaining that I want something different?

> Applications (at least on Linux) have no idea what device they are using. They just request a connection to an IP and it's the kernels job to route that request correctly.

This is a bad idea. I want to connect the application to the device I think it should use. It shouldn't be able to find anything I don't tell it about.

Re:U.S. Navy bans TikTok from government-issued mobile devices by nl on Monday December 23, 2019 @04:57PM (#21867816)
>> Applications (at least on Linux) have no idea what device they are using. They just request a connection to an IP and it's the kernels job to route that request correctly.

> This is a bad idea. I want to connect the application to the device I think it should use. It shouldn't be able to find anything I don't tell it about.

Telling applications about resources is literally what the operating system is for. Both Linux and Windows let you do what you want.

Re:U.S. Navy bans TikTok from government-issued mobile devices by jjhb94 on Saturday December 21, 2019 @12:58PM (#21852427)
Can't you configure this with most firewalls by restricting WAN traffic?
Re:U.S. Navy bans TikTok from government-issued mobile devices by apk-d on Saturday December 21, 2019 @11:56AM (#21852103)
Installing a firewall app and checking the connection log on my Android phone really spooked me. There's a ton of traffic in the background that shouldn't be there. It's absolutely crazy that Android doesn't have a first party firewall or the ability to disable internet access permission per app, but that would impact Google's ad revenue, so of course we can't have that.
Re:U.S. Navy bans TikTok from government-issued mobile devices by Anarch157a on Saturday December 21, 2019 @06:17PM (#21853905)
I don't know if this is a feature of Android or of the alternative ROM I'm using, but I can disable network access on a per app basis.

In my Android Pie based ROM, in Settings / Network & Internet / Data Usage / App data usage I can select any app and disable WiFi, Cellular data or both.

Re:U.S. Navy bans TikTok from government-issued mobile devices by angry_octet on Saturday December 21, 2019 @08:03PM (#21854406)
That must be the custom OS build. Many official builds allow you to disable cellular, though very time consuming.
Re:U.S. Navy bans TikTok from government-issued mobile devices by llampx on Saturday December 21, 2019 @04:30PM (#21853465)
It depends on the OS. Huawei's EMUI has a built-in firewall which can restrict access over Wi-Fi or cellular data to certain apps.
Re:U.S. Navy bans TikTok from government-issued mobile devices by vsviridov on Saturday December 21, 2019 @01:57PM (#21852712)
Settings -> Apps and Notifications -> Data Usage Control
Re:U.S. Navy bans TikTok from government-issued mobile devices by kjaftaedi on Saturday December 21, 2019 @12:50PM (#21852393)
A simple approach is to just ban personal phones while at work.

You can forward your number to a work phone while you're on duty, you don't need to carry a personal device with you.

Re:U.S. Navy bans TikTok from government-issued mobile devices by mattr47 on Saturday December 21, 2019 @01:10PM (#21852491)
That is what all units in USSOCOM do. No personal cell phones, smart watches, etc allowed in the office. Guests have lock boxes outside main entrance to secure their phone.

About once a week security folks wander through the offices looking for phones with some type of detector. God help the person who brought their phone in.

Re:U.S. Navy bans TikTok from government-issued mobile devices by gambiting on Saturday December 21, 2019 @04:51PM (#21853548)
Few years ago I worked at an oil refinery in Scotland, the rules were the same - no personal phones on site, if you were found with one you'd get in deep trouble.
Re:U.S. Navy bans TikTok from government-issued mobile devices by angry_octet on Saturday December 21, 2019 @07:58PM (#21854394)
You may have seen people doing the two minute sprint then?

That's when you check the TOTP code on your phone, put it back on the stack of phones, and race as fast as you can back to your desk to enter the code before it expires.

Re:U.S. Navy bans TikTok from government-issued mobile devices by angry_octet on Monday December 23, 2019 @12:42AM (#21861723)
Please, downvoter, tell me I'm wrong.
Re:U.S. Navy bans TikTok from government-issued mobile devices by ComodoHacker on Saturday December 21, 2019 @02:38PM (#21852940)
Good luck figuring out a sane UI for that for average mobile user.
Re:U.S. Navy bans TikTok from government-issued mobile devices by Spooky23 on Saturday December 21, 2019 @07:04PM (#21854142)
No way. Restricted access to networks is a step back to the Bell System days. Once you open the door, it won’t close.

This is a legal and compliance issue. If you made the marketplace share liability for fraudulent apps, and had meaningful law around the ownership of electronic data, this problem would go poof.

In the US, a piece of paper in a locked drawer requires a warrant to access. Electronic data requires as little as an administrative subpoena

Re:U.S. Navy bans TikTok from government-issued mobile devices by kardos on Saturday December 21, 2019 @02:25PM (#21852865)
How would restricted network access help? If you permit a dodgy app to talk to only one remote endpoint, it can exfiltrate whatever it wants.
Re:U.S. Navy bans TikTok from government-issued mobile devices by angry_octet on Saturday December 21, 2019 @08:00PM (#21854401)
Why would a flashlight app need to talk to the internet at all?

(Advertising.)

Re:U.S. Navy bans TikTok from government-issued mobile devices by ThomPete on Saturday December 21, 2019 @03:21PM (#21853169)
but government issued phones have access to things personal phones don't.