PinePhone Security
#1
I'm wondering if PinePhone has any of the following or is planned to have any of the following:

1) Titan M-like security chip
2) Hardware-backed keystore
3) Verified boot
4) Wifi and Cellular Baseband Isolation IOMMU
5) Device-specific software hardening (like kernel CFI)

Thanks - and feel free to discuss!
  Reply
#2
It doesn't have 1-3 so far as I know, and I think verified boot would need a different cpu if I understand the boot process correctly. See https://linux-sunxi.org/BROM#A64
4 - my cursory understanding is that the cellular is pretty well isolated, with most connection being via USB, and not having memory access. WiFi connects via SDIO so might have DMA. I don't know about IOMMU on the A64. Schematics and A64 docs are in the wiki so you can dig deeper if you know what you're looking for.
5. I don't know what's been done on that front.
  Reply
#3
(02-20-2021, 02:06 PM)wibble Wrote: It doesn't have 1-3 so far as I know, and I think verified boot would need a different cpu if I understand the boot process correctly. See https://linux-sunxi.org/BROM#A64
4 - my cursory understanding is that the cellular is pretty well isolated, with most connection being via USB, and not having memory access. WiFi connects via SDIO so might have DMA. I don't know about IOMMU on the A64. Schematics and A64 docs are in the wiki so you can dig deeper if you know what you're looking for.
5. I don't know what's been done on that front.

Sounds like we have to choose between security & control still Sad
GrapheneOS: security
Pine64 / purism: you actually have access to your own equipment (which the GOS dev seems to think is impossible to have while maintaining security)

However, if #1-5 are fulfilled by a FOSS phone, then I would make the switch considering we cannot know what is hidden in Google's firmware (despite secure boot making it impossible to modify).
  Reply
#4
(03-12-2021, 05:48 AM)TurpentineOS Wrote: ...
However, if #1-5 are fulfilled by a FOSS phone, then I would make the switch considering we cannot know what is hidden in Google's firmware (despite secure boot making it impossible to modify).
I think the software for the pinephone is not trustworthy yet[0]. Even if we accept that the volunteers, who prepare the distros, are doing their best, this is still a general-purpose computer with many options set to undesirable defaults for people looking for "security out of the box". Still, I use it daily because I expect it to be more secure than some alternative, cheaper devices.

[0] I've just found that on my phone systemd-resolve is listening on a port facing the internet and had to fix its settings. I hope someday I will be able to just uninstall it. Smile
  Reply
#5
What's the most secure pinephone OS with working calls right now? And how would you reinstall plasma manjaro if you got a virus or similar?
  Reply
#6
Quote:What's the most secure pinephone OS with working calls right now?


I think that's a really hard question to answer even for experts. Also it depends on your definition of "secure" and use cases.

As a user I expect that the security will be similar to a desktop GNU/Linux OS and I already use it daily as an alternative to a feature phone (lucky me, I'm not tied to any android specific programs).


Quote:And how would you reinstall plasma manjaro if you got a virus or similar?
You can read how to install a fresh OS here : https://wiki.pine64.org/wiki/PinePhone_I...structions. Installing should be easy for anyone comfortable with a terminal emulator.
  Reply
#7
It's a linux machine just like any other. Open and awesome!  Your pinephone will be just as secure as your other Linux box because the same person maintains both of them Big Grin  .

IMO,
Operational security is the only security that matters because it can automatically adjust to any hardware / software combo on the fly for free.   Big Grin 
My phone is secure when it's used by me. If I hand it to someone else there is no telling what they will do with it.
At least with the pinephone it's actually a challenge finding software that pillages your privacy like almost every single Android and IOS app available.
EVEN BETTER: I can write a bash script and not need some app store "app".

If there is some systemd process running and you don't like it then just kill and remove it.  It's not like you have to root the thing, hahaha

Cheers!
  Reply
#8
(03-13-2021, 03:41 AM)bosi564 Wrote:
(03-12-2021, 05:48 AM)TurpentineOS Wrote: ...
However, if #1-5 are fulfilled by a FOSS phone, then I would make the switch considering we cannot know what is hidden in Google's firmware (despite secure boot making it impossible to modify).
I think the software for the pinephone is not trustworthy yet[0]. Even if we accept that the volunteers, who prepare the distros, are doing their best, this is still a general-purpose computer with many options set to undesirable defaults for people looking for "security out of the box". Still, I use it daily because I expect it to be more secure than some alternative, cheaper devices.

[0] I've just found that on my phone systemd-resolve is listening on a port facing the internet and had to fix its settings. I hope someday I will be able to just uninstall it. Smile
You don't need to use systemd-resolved. Just disable it, or disable the features you don't like in its config file. I routinely disable LLMNR and similar in systemd-resolved.

(05-27-2021, 08:36 AM)temp0rary Wrote: What's the most secure pinephone OS with working calls right now? And how would you reinstall plasma manjaro if you got a virus or similar?
Compared to every other mobile SoC, SD card has hardware enforced boot priority on Allwinner SoCs. No modifiable code runs prior to booting SD card.

So while secure boot is nice to have, you can just boot a known clean OS to recover eMMC/modem from any malware. No need for root of trust, because no modifiable code can run before your known clean code starts running. True root of trust is whatever is on the SD card itself.
my website: https://xnux.eu
  Reply
#9
(05-30-2021, 11:15 AM)megous Wrote:
(03-13-2021, 03:41 AM)bosi564 Wrote:
(03-12-2021, 05:48 AM)TurpentineOS Wrote: ...
However, if #1-5 are fulfilled by a FOSS phone, then I would make the switch considering we cannot know what is hidden in Google's firmware (despite secure boot making it impossible to modify).
I think the software for the pinephone is not trustworthy yet[0]. Even if we accept that the volunteers, who prepare the distros, are doing their best, this is still a general-purpose computer with many options set to undesirable defaults for people looking for "security out of the box". Still, I use it daily because I expect it to be more secure than some alternative, cheaper devices.

[0] I've just found that on my phone systemd-resolve is listening on a port facing the internet and had to fix its settings. I hope someday I will be able to just uninstall it. Smile
You don't need to use systemd-resolved. Just disable it, or disable the features you don't like in its config file. I routinely disable LLMNR and similar in systemd-resolved.

(05-27-2021, 08:36 AM)temp0rary Wrote: What's the most secure pinephone OS with working calls right now? And how would you reinstall plasma manjaro if you got a virus or similar?
Compared to every other mobile SoC, SD card has hardware enforced boot priority on Allwinner SoCs. No modifiable code runs prior to booting SD card.

So while secure boot is nice to have, you can just boot a known clean OS to recover eMMC/modem from any malware. No need for root of trust, because no modifiable code can run before your known clean code starts running. True root of trust is whatever is on the SD card itself.
[quote pid='95349' dateline='1622394904']
Sweet. I tried mobian... It's the best OS i have tried so far on the pinephone. Smile
[/quote]
  Reply
#10
Good discussion so far. I just made an analogous thread on the Fairphone forum. Whichever FOSS phone gets these security measures first - doesn't matter - then we all win!
https://forum.fairphone.com/t/titan-m-replacement/77148
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone - boot from microSD laserpyramid 5 298 03-06-2024, 06:37 PM
Last Post: aular
  Are you using the Pinephone as your daily driver? jro 157 105,058 02-18-2024, 11:33 PM
Last Post: aular
  2020 PinePhone Manjaro CE EU for sale, name your price astrojuanlu 7 1,520 02-14-2024, 04:51 PM
Last Post: astrojuanlu
  pinephone is not bootble for the box. ijij 1 458 01-19-2024, 01:29 PM
Last Post: fxc
  Multiple issues with the Pinephone MTXP 12 1,936 12-28-2023, 07:55 AM
Last Post: MTXP
  pinephone repair shop shengchieh 0 380 12-26-2023, 02:42 PM
Last Post: shengchieh
  sudo nano file saving pinephone beta edition CharlesGnarley 4 1,476 12-22-2023, 03:44 PM
Last Post: Kevin Kofler
  Can't get Mobian on PinePhone to recognise USB-C docking bar duncan_bayne 9 6,595 12-04-2023, 02:14 AM
Last Post: Peter Gamma
  Pinephone not booting, always vibrating alexander12 7 4,663 11-22-2023, 06:46 PM
Last Post: Scary Guy
  Pinephone on Verizon chachi 3 991 10-09-2023, 11:26 AM
Last Post: alaraajavamma

Forum Jump:


Users browsing this thread: 1 Guest(s)