·5 min read·Automotive Ramblings
Rooting the Cadillac Part 3: Extracting SecOC Keys

Hiya,
I can officially announce I have the first Global B vehicle equipped with openpilot.

Disclaimer: Nothing in this article is advice. I am a professional. Do not attempt this. I am not responsible for you destroying your car. Don’t do it!
Why?
It has been a goal of mine for months… My target vehicle was a 2024 Cadillac Lyriq equipped with Super Cruise.
To be clear, I have come to really admire the Super Cruise system. After analyzing its data I have found its models and tracking to be better than I was expecting. GM really made a good system here. I even A/B tested it against openpilot.
Still though, it’s nice to just have the idea of open source driving… So, over the last 3 months I have been investigating just how feasible it would be.
If you haven’t read Part 1 or Part 2, I suggest reading those first. But the biggest blocker is of course getting the keys needed to do any kind of driving control.
How does Super Cruise work?
Super Cruise has various iterations (it’s almost 10 years old now). How it’s versioned is unclear to me, but the generation on my own vehicle uses a suite of 4 cameras, plus a front camera and various assorted radars. The 4 cameras are processed on a module known as the “Image Processing Module” (IPM), referred to internally as the “ACP3” (as evidenced by its code).
Similar to the radio, it is a dual-CPU architecture with an Infineon TriCore MCU and a Qualcomm SoC. The steering commands and decisions of Super Cruise are orchestrated through this module.



On non-Super Cruise vehicles, the front-view camera itself is the orchestrator (or, on older vehicles, a dedicated Active Safety Control Module).
These details are important because I only managed to extract the keys on my specific target. That probably doesn’t apply to other vehicles, and you should not expect it to.
What do the commands look like?
I mapped it out, and presumably it will be merged into openpilot at some point (but not by me). Take a look. Note I haven’t really ‘verified’ this to any significant extent. Stef did some recent work mapping CAN8 about a few weeks ago.
Where are the keys?
Technically everywhere… Any module that needs to verify (or send) signed messages will have them. So the steering module, the brake module, the gateway, the IPM itself. Modules which don’t need them won’t have them, obviously.
On everything I have seen thus far, those keys have always been in an HSM or some form of TrustZone. So, I’m sorry to say, you won’t find them in normal memory.
On the Super Cruise system the keys are in both the TriCore MCU and the Qualcomm SoC. My focus was on the Qualcomm.
So how the heck did you get them?
Qualcomm has secure boot, but at least on my particular module… it was never programmed. Its omission means you can… in theory… flash anything, and the system still boots.
But wait, isn’t TrustZone signed by Qualcomm?
Yes, but with secure boot off you can disable XPU protection and then simply dump the TrustZone memory. That is the technique I used.
How?
I did not use any exploits. The UFS chip was ripped off the board. I created specialized software to program the chip by repurposing an Easy JTAG (which could not read it), and it was then put back in. The system booted and I simply extracted the keys.


There is no debug harness for this module, so I had to pull the chip. There is probably a better way, but I didn’t see it.
The ‘tricky’ part in this was getting the system to cooperate off the car. For obvious reasons I didn’t do this to my own car (originally).

Will you be releasing any tooling?
No, sorry :(. I can’t gurantee the safety of any of this, so I don’t think its wise.
The Complexity
Even after acquiring the keys, actually getting it to work is… annoying, to say the least.
Normally with openpilot you just hook into the front camera, which is right there at the windshield. But on a Super Cruise vehicle the IPM is the originator of the messages, and the IPM is near the back of the vehicle. So you need a long cable running all the way to the front, and the installation is a lot more complex (on top of needing the keys).
To make that work I designed a custom interception board. The IPM connectors have a lot of pins… The board sits between the car’s harness and the IPM, passes most of them straight through, and adapts Super Cruise to the comma box.


With the interception in place (and the keys), the comma 4 or 3X on your windshield can simply stand in for the IPM.
Special Thanks
I want to thank the comma.ai team, Kevin Pham, and of course Stephanie Howanietz for their efforts in helping out over these last few months.

Signing Off
I am sorry to say this is my last article in the Rooting the Cadillac series :(
I work in software security, and obviously things are a bit crazy right now… I appreciate all of you.
Thanks for reading!