top 50 comments

sorted by: hot top controversial new old
[–] 376 points 2 years ago* (last edited 2 years ago) (8 children)

You do it because it makes an attacker’s life harder because now I have to find two bugs instead of one.

The entire boot chain of the phone up to the apps you run are verified successively by the component that loads it. A digital signature helps ensure that only trustworthy code ever runs. A bug must be found to bypass these checks to load malware code. For example, a bug in the image code in a web browser might cause loading of code that isn’t checked. This way the malware gets smuggled onto the phone.

This means that if you get hacked via one bug and malware is loaded, the attacker has to work harder to solve the problem of how do I convince the phone to load it again at boot because the code it’s made of isn’t going to be approved code. When you reboot, you are effectively forcing a validation that all the code you have running is authentic, which would exclude the malware. Trick me once sure, can you survive a full pat down? Probably not. It’ll get caught.

Unless I have a second bug to fool the normal code loading systems too, the malware can’t run. You have to go back and trigger the first bug again somehow, which places more strain on the attacker.

  • source
  • hideshow 12 child comments
  • [–] 119 points 2 years ago (1 child)

    Thanks for taking the time to write that out. I found it really helpful.👍

  • source
  • parent
  • hideshow 2 child comments
  • [–] 71 points 2 years ago (5 children)

    I love to talk about computer security. I don’t get the chance often enough.

  • source
  • parent
  • hideshow 7 child comments
  • load more comments (3 replies)
  • [–] 10 points 2 years ago (1 child)

    But that only works for untrusted code escaping a sandbox, right? It does not help with malicious code embedded into legitimate seeming apps. The later vector seems easier, especially on Android, no?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 25 points 2 years ago* (last edited 2 years ago) (4 children)

    I don't really consider a malicious app to be an exploit. In this case, the software is doing exactly what it was designed to do -- malicious activity. It's not being manipulated to perform unintended operations through the exploitation of a software bug. Code signing and secure boot are not effective in the face of intentionally shipping malicious code to end users. It's designed to frustrate actual hackers.

    For malicious-by-design apps, we rely on a central app store that hopefully reduces the number of bad apps in circulation. If you publish malware, eventually you get caught and we know who you are. Sandboxing with a permissions system helps prevent apps from performing actions contrary to the user's interests. E.g. why is my flashlight app asking for my contacts when I pressed 'change color?'

    If you directly exploit your way in, it's harder to know who did this and why because you didn't go through any central vetting or accountability system, and you're not so easily bound by the permissions system. It depends on what your bad guy's goals are, what they want, whom they're targeting. Force your way in the back entrance, crawl through an open window (like a weak security setting), or lie your way in the front door (trojan)? It depends.

    None of it is perfect, but I'm sure OS design experts would love to hear about better solutions if any exist.

  • source
  • parent
  • hideshow 4 child comments
  • load more comments (4 replies)
  • [–] 9 points 2 years ago (1 child)

    I miss my BlackBerry and it's scheduled reboot option

  • source
  • parent
  • hideshow 2 child comments
  • load more comments (4 replies)
    [–] 111 points 2 years ago (13 children)

    Jokes on them, my S22 Ultra restarts in it's own. Even when I don't want it to.

  • source
  • hideshow 16 child comments
  • [–] 8 points 2 years ago

    This is gonna sound odd, but have you cleaned out the USB port lately? Weird stuff happens when pocket lint collects in there. I thought mine had a dead port until I picked out (with a non-conductive toothpick) the lint I didn't realize had accumulated.

  • source
  • parent
  • load more comments (10 replies)
    [–] 68 points 2 years ago* (7 children)

    TL;DR:
    Restarting your phone once a week can help improve performance and security.

    • this is the same for routers and it's commonly known as a power refresh
  • source
  • hideshow 9 child comments
  • [–] 24 points 2 years ago (2 children)
  • [–] 24 points 2 years ago (2 children)

    well, I mean... anything can leak memory. but yeah, enterprise/carrier grade devices are designed to be in continuous use for years and they generally do that pretty well.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 14 points 2 years ago (3 children)

    Even then, some places will reboot on a schedule when nobody should be using it.

    I have some entry level "enterprise" hardware (Mikrotik router and Ubiquiti access point) and I auto-reboot mine weekly. In addition to maintaining performance and minor security wins, it also helps ensure everything csn survive a reboot (e.g. all configurations have persisted to disk).

    It's good practice. Some people brag about continuous uptime, I see it as a liability.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 6 points 2 years ago

    Absolutely. Nothing scarier than rebooting the computer or router that’s been running for 10 years.

    I also enjoy exercising software blue/green rotation weekly. Even if no code changes, have it roll to the alternate infra on an automated schedule. Is a great habit to get into and helps any engineer sleep better. It also results in providing very accurate downtime recovery numbers - not estimates.

  • source
  • parent
  • load more comments (1 reply)
  • load more comments (1 reply)
  • load more comments (5 replies)
    [–] 43 points 2 years ago (3 children)
  • [–] 7 points 2 years ago (1 child)

    TIL, I use GOS and never thought to look, I just see a banner saying there's been updates and I've got "update and restart now", "schedule restart" and "I'll restart myself when ready" (or some such).

  • source
  • parent
  • hideshow 2 child comments
  • [–] 23 points 2 years ago (3 children)

    The main purpose of this is actually security. Because when the device is in BFU (before first unlock) state, it's much harder to gain access to the data (without the correct unlock credentials). During the reboot, the encryption keys are wiped from RAM, making it essentially impossible to access the device, since brute-force unlock attempts are prohibited by Weaver API, which is enforced by the Titan M2 hardware security module. You can read more about this at https://grapheneos.org/faq#encryption

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (3 replies)
  • load more comments (2 replies)
    [–] 32 points 2 years ago (2 children)

    "you do need to restart your phone regularly to rid it of demons"

    typo: "daemons", not "demons".

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 22 points 2 years ago (1 child)

    Samsung phones have an option of scheduled autorestart; I have mine set to restart once every week at a scheduled time.

  • source
  • hideshow 2 child comments
  • [–] 20 points 2 years ago (2 children)

    I remember my old phone had the option to auto reboot and I had it set to like 3am but now I don't see that option on newer phones. My previous phone didn't even have a reboot option I had to shut it down and power it back up

  • source
  • hideshow 4 child comments
  • [–] 13 points 2 years ago* (1 child)

    For Samsung phones. Go to Settings -> Device Care -> Under Performance you will see Auto Optimization -> At the bottom of the page you will see Auto Restart -> Restart on Schedule -> Done.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 19 points 2 years ago

    I use Tasker automation that reminds me to reboot after my phone has been up for awhile. I don't think I'd like an auto reboot feature. I don't even like it when I can't postpone a software update until a time convenient for me.

  • source
  • [–] 15 points 2 years ago (1 child)

    Wait...the NSA did something good. WTF.

  • source
  • hideshow 2 child comments
  • [–] 12 points 2 years ago (3 children)

    My iPhone 13 mini‘s battery is so small that I involuntarily restart it at least once every two weeks

  • source
  • hideshow 3 child comments
  • load more comments (3 replies)
    [–] 9 points 2 years ago (1 child)

    I'm doubtful. I wanna hear more from security experts.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 6 points 2 years ago

    iphones just do weird shit after a while so that you can't go on without a restart. truly smart

  • source
  • load more comments
    view more: next ›