#
✕ nick:marcan
#asahi · 2021-06-10 15:18
marcanso yeah, hardware NV support adds a whole pile of stuff to make this all possible
#asahi · 2021-06-10 15:18
marcanbut then how are you going to trap stuff like CurrentEL?
#asahi · 2021-06-10 15:17
marcanso in order to do this you need to do stuff like patch the EL1 exception vectors (which is what my hypervisor does...)
#asahi · 2021-06-10 15:17
marcan(as they are considered undefined instructions)
#asahi · 2021-06-10 15:17
marcanEL2-only registers trap to *EL1*
#asahi · 2021-06-10 15:17
marcanARM does not let you trap arbitrary registers
#asahi · 2021-06-10 15:06
marcanthe problem is you can't do that
#asahi · 2021-06-10 15:00
marcanI explicitly boot with intel_iommu=igfx_off though
#asahi · 2021-06-10 14:59
marcanit's not really intended to be possible
#asahi · 2021-06-10 14:59
marcanfaking it would be a ton of work
#asahi · 2021-06-10 14:59
marcanand there is no nesting support
#asahi · 2021-06-10 14:59
marcansorear: right, if you're in EL1 you'd notice
#asahi · 2021-06-10 14:59
marcanit is on my systems
#asahi · 2021-06-10 14:58
marcanarnd: /sys/class/iommu should be there if it's enabled
#asahi · 2021-06-10 14:40
marcan_jannau_: good point, done :)
#asahi · 2021-06-10 14:29
marcanso we should be able to set the untrusted thing there (add a binding if there isn't one)
#asahi · 2021-06-10 14:29
marcanyes
#asahi · 2021-06-10 14:27
marcansven: good :)
#asahi · 2021-06-10 14:24
marcanyou could theoretically backdoor the boot process on the main CPU, but the ARM design makes it very, very hard to do it undetectably (it's very hard to make a secret undetectable hypervisor or something like that)
#asahi · 2021-06-10 14:24
marcanthere is no secret ME or SMM or anything like that where you can hide a backdoor to take over the system
#asahi · 2021-06-10 14:23
marcanall the coprocessors have IOMMUs
#asahi · 2021-06-10 14:23
marcanthe M1 is, as far as security/compartmentalization, miles ahead of anything x86 (except maybe the xbox one)
#asahi · 2021-06-10 14:23
marcanthe internal PCIe port also has an IOMMU
#asahi · 2021-06-10 14:22
marcanyes and I'm going to make sure ours is there and properly configured :)
#asahi · 2021-06-10 14:22
marcan(at least not without some scary sounding explicit parameters)
#asahi · 2021-06-10 14:22
marcanwhich is why I refuse to allow DART bypass for the TB ports in linux
#asahi · 2021-06-10 14:22
marcanyou can trust thunderbolt with your RAM if there is an IOMMU (and the drivers use it properly)
#asahi · 2021-06-10 14:22
marcanthey call it "effaceable storage"
#asahi · 2021-06-10 14:21
marcanit should just wipe the keys
#asahi · 2021-06-10 14:21
marcanbut otherwise yes
#asahi · 2021-06-10 14:21
marcanthe right pin is part of the key too, so you still need to figure out the right pin even if you magically get all the keys out
#asahi · 2021-06-10 14:20
marcanyou cannot trust SSD/HDD vendors on any of this
#asahi · 2021-06-10 14:20
marcanGlanzmann: most storage encryption (the "self-encryption" kind) is garbage and insecure
#asahi · 2021-06-10 14:20
marcanand the anti-rollback ensures the hard limit on attempts
#asahi · 2021-06-10 14:20
marcanso you can't bruteforce the pincodes except on the device itself
#asahi · 2021-06-10 14:19
marcanyou cannot work offline on the encrypted data because the encrypted data is tied to a per-chip key
#asahi · 2021-06-10 14:19
marcanthe phone will self destruct the data after a certain number of attempts
#asahi · 2021-06-10 14:18
marcanthe rollback counter is stored in a secure element which you can't just read/write like a flash
#asahi · 2021-06-10 14:18
marcanGlanzmann: if you try to rollback the flash contents the phone will reject it
#asahi · 2021-06-10 14:17
marcan(obviously this is all assuming no security flaws; security flaws happen but you can try to keep them at bay, and Apple's designs are really good these days)
#asahi · 2021-06-10 14:17
marcanthe FBI tried, Apple said no, they had to give up and ask someone else; that someone else sold the FBU an exploit to open up the phone, then went on to found Corellium
#asahi · 2021-06-10 14:16
marcanhasn't worked in the past
#asahi · 2021-06-10 14:15
marcanwhich is what Apple aims for
#asahi · 2021-06-10 14:15
marcanyou can't make it "impossible" to crack a phone, but you can make it "hard and expensive enough that the FBI will give up"
#asahi · 2021-06-10 14:14
marcanGlanzmann: read apple's platform security guide :-) but there's an external secure element that implements the secure rollback-protected storage
#asahi · 2021-06-10 14:14
marcanbrentr123[m]: the government are not magical, they cannot bypass math and physics
#asahi · 2021-06-10 13:59
marcanit just means we don't need to panic when incompatible updates happen
#asahi · 2021-06-10 13:59
marcaneither way we do intend to support newer versions (which probably have bugfixes etc)
#asahi · 2021-06-10 13:58
marcanI think they usually leave these things forever on their CDN
#asahi · 2021-06-10 13:57
marcan(nothing that can't be done in an installer though)

plus ›