Toyota's Sword in Rock situation (that has been pulled out quite a bit by Willem and Greg!)
tl;dr: Toyota started to use cryptographical signatures to block openpilot (and other hacks). Some smart people in the industry hacked the signatures for some cars, but not all cars.
openpilot, in order to control the steering or latitude, needs to be able to man-in-the-middle the steering control messages used by the lane keep assist system. It blocks the original steering control messages and replaces them with its own. This is done by the forward-facing camera, which is also known as the "Forward Recognition Camera" or "Object Recognition Camera" in Toyota vehicles. The camera is responsible for the lane keep assist in Toyota vehicles.
There is a STEERING_LKA
-ish message and more in some new Toyotas that currently has an "authentication code" scheme appended to the end. The algorithm and security system for this "authentication code" is somewhat known for certain vehicles but requires a key that is unique to each vehicle to be extracted or smuggled out of the vehicle (https://icanhack.nl/blog/secoc-key-extraction/). Not all vehicles are able to have their keys extracted with what is currently known. Without the key or knowledge of the system, third parties like comma and users cannot control the vehicle. While vehicles that have had their keys smuggled out are currently working with openpilot.
These cars can run openpilot but are not listed on https://comma.ai/vehicles or CARS.md because comma.ai (the company) understandably doesn't want to own the security key hacking process. Follow the Setup Guide below and you'll have it working.
- 2021-2023 RAV4 Prime
- Upstreamed into openpilot's master branch.
- 2021-2023 Sienna Hybrid
- Upstreamed into openpilot's master branch.
- 2020-2022 Yaris Hybrid (EUDM/JDM/MXDM)
- Memory dump hack works but the key is not in the same address as RAV4 Prime.
- Brute force efforts to find key location successful on both European and Japanese Yaris Hybrid. European user eventually gave up full installation due to unrelated C3 malfunction.
- openpilot working with heavy hacked out branch
- First Continental Radar + Camera setup going and thus first radar controlled ACC vehicle done with. This does not mean longitudinal is controlled by openpilot though.
- Not sold in the USA, but is in Australia, Japan, and Europe
- Only one guy using it in Japan, unfortunately. Help double the population!
- These vehicles have TSS 2.0.
- These vehicles do not use the HSM.
- These all seem to share the commonality of a
version 1 bootloader3 ? on the EPS - Longitudinal
- Some people seem to have it going. It is a work in progress in getting it upstreamed to comma's codebase.
- Resume command spams still works from existing implementation so stop and go without touching is active if openpilot is active.
If you have one of these cars, please stop by the comma Discord's #toyota-security channel - we need more information from people like you.
- 2023 US-made Corolla (VIN starts with
5
)- Uses TSS 3.0 but does not appear to have ECU Security Key or SecOC steps when replacing the forward camera. It's unknown whether it has TSK, and if yes in what form. Maybe they just don't do the pairing thing but hardcode a key. No one knows.
- 2021+ Yaris Cross Hybrid (EUDM/JDM/MXDM)
- Brute force script may work.
- 2021+ GR Yaris (EUDM/JDM/MXDM)
- TSS 2.0
- Brute force script may work.
- Seems externally similar to Yaris Hybrid?
- Would be the first manual transmission.
Car hackers, we need your help with these.
- 2022+ Aygo X (EUDM)4
- 2023+ Aygo X (Euro tech info Lookup)
- 2023+ bz4x4 (Probably the same for sister rebranded Subaru Solterra)
- 2025+ Camry4
- 2023 TMC/JP-made Corolla4
- 2022+ Corolla Cross (USDM, not applicable to Thailand or Brazil)4
- 2023 Corolla Cross Hybrid
- TSS 2.0
- Known to be not working.
- Memory can be dumped but the key is not in visible memory.
- Mentioned in Willem's blog post.
- 2024+ Corolla, All origins.
- 2023+ Crown
- 2024+ Grand Highlander ICE and Hybrid4
- 2024 Highlander ICE and Hybrid
- TSS 2.0
- Known to be not working.
- Memory can be dumped but the key is not in visible memory.
- 02
bootloader3
- 2025+ Highlander ICE and Hybrid4
- 2024+ Mirai4
- 2023+ Prius and Prius Prime4
- 2024+ RAV4 Prime
- TSS 2.0
- Key at least not at the same location as other RAV4 Prime
- Brute force efforts to find key location TBD
- At least code is executed. Unknown what might have changed.
- New 02
bootloader3 seen
- 2024+ RAV4 in Europe (techinfo)
- 2023+ Sequoia (Speculated from being a Tundra with an SUV Body)
- 2024+ Sienna
- TSS 2.0
- Key at least not at the same location as other RAV4 Prime
- Brute force efforts to find key location TBD
- At least code is executed. Unknown what might have changed.
- New 02
bootloader3 seen
- 2024+ Tacoma4
- 2022+ Tundra (Confirmed in commaai/openpilot#27869 (comment))
- 2021+ Venza
- Key at least not at the same location as the RAV4 Prime
- Brute force efforts to find key location TBD
- Has a 02
bootloader3 though from one sample. Strange for this vintage? Maybe another should try.
- 2024+ Lexus GX4
- 2022+ Lexus LS, LX, NX4
- 2023+ Lexus RX, RZ4
- 2024+ Lexus TX4
If your car is not listed above, then there has been no documented information or attempts. Please talk to us at the comma Discord's #toyota-security channel.
- Key Extraction if you don't know the key.
- Key Installation if you know the key.
Note
The key will change if you get a new bumper, because the bumper has distance sensors that use the security key. Instead of applying the existing key to the bumper, they replace the key on all parts of the car. The same goes for many other parts with secoc components.
If you never get into an accident, then the key will never change, unless a Toyota service technician presses a wrong button.
Your car has a security key that Toyota doesn't want you to have.
Follow this guide to run a hardware exploit to extract the key.
AGNOS is the operating system used in C3X. The latest one is needed to run TSK Manager.
1-1. At home, turn on C3X with your phone charger. Ignore the low voltage warning. USB A-to-C cables work well, and USB PD (Power Delivery) sometimes doesn't work. If all fails, you can do this in your car.
1-2. Connect C3X to your Wi-Fi network.
1-3. Don't choose Install openpilot
. Instead, choose Custom Software
with URL commaai/master-ci
The installation takes 10~20 minutes with one or two restarts. This is longer than usual because commaai/master-ci
is not precompiled.
If you're doing this in your car, keep the engine running to keep the 12V battery alive.
1-4. Scroll and accept the EULA, and go through the training.
2-1. Go to your car.
2-2. Connect the harness to your car by following the official Setup Guide: https://comma.ai/setup/comma-3x
2-3. Connect Comma Power (OBD2 connector + long cable) to make sure C3X stays powered on while turning the car on and off. You can remove it later but connect it for now.
2-4. Connect the right-angled OBD-C cable to the harness.
Warning
- The car harness sends a 12V signal instead of the usual 5V. Do not plug in anything other than C3X.
- For connecting C3X to the harness, always use the right-angled OBD-C cable that came with the C3X.
- comma.ai sells it if you need more: https://comma.ai/shop/obd-c-cable
- If you must buy your own, USB-C 3.1 Gen 2 is required.
2-5. Connect the OBD-C cable to C3X to see that it powers on. Turn the car on and off - C3X should remain powered on.
Some cars refer to Not Ready To Drive
mode as IGNITION ON
mode while others refer to it as POWER ON
mode. Regardless of what your car calls it, get on the mode that says Not Ready To Drive
.
Slowly press the POWER
button twice WITHOUT pressing the brake pedal.
- The first press turns on
ACCESSORY
mode. - The second press activates
Not Ready To Drive
mode.
Note
This is the recommended method. See Step 4B for an alternate method.
4A-1. Uninstall openpilot (AGNOS will remain upgraded).
⚙️ > Software
> Uninstall openpilot
> UNINSTALL
> Uninstall
> Confirm
> Confirm
4A-2. Connect C3X to Wi-Fi and install Custom Software
with URL optskug/tskm
to download TSK Manager
.
It will stay at 92% and then 100% for a few minutes as it installs.
4A-3. Run TSK Extractor
. The car may beep and flash LKAS & Power Steering errors.
Tip
Relax. The exploit is safe to run and can't break your car even if you yank the cable.
If you want to quit, turn off the car, unplug C3X, and turn the car back on. Everything will be back to normal.
When you see the output, always scroll to the bottom to see the result and what to do next.
4A-3-1. In case of a known error, it'll tell you to retry.
4A-3-2. In case of an unknown error, it will tell you to send @calvinspark a photo.
The exploit is proven to work but TSK Extractor
GUI is new. Send @calvinspark a photo and then try again.
4A-3-3. If you tried the extractor 3 times for 3 car restarts (=9 times) and still doesn't work, stop and talk to us in #toyota-security.
4A-3-4. If it was successful, it'll tell you to take a photo.
This 32 digit hexadecimal number is your key (second redacted line).
SecOC Key (KEY_4) 0123456789abcdef0123456789abcdef
Congratulations, you have the key now!
As a bonus, the key was installed in /cache/params/SecOCKey
file, and also written in /data/params/d/SecOCKey
file for legacy support.
Warning
It's theoretically possible for someone to remotely hack your car with the key under very specific circumstances. You don't need to protect the key like it's your bank password, but still don't post it on Discord.
4A-4. Exit TSK Extractor
and exit TSK Manager
. C3X will reboot.
4A-5. Either come back home or start the engine so that your 12V battery doesn't die.
4A-6. Don't choose Install openpilot
. Instead, choose Custom Software
with URL commaai/master-ci
Caution
commaai/master-ci
is the only branch from comma.ai that supports TSK vehicles.
If you install a branch without TSK support, openpilot won't be able to drive your car.
Note
Even if you already extracted the key using TSK Manager
, setting up SSH access will help you later with the key installation for legacy fork/branches. It's not hard to do so follow along.
If you want to do just the bare minimum and come back to this later, then skip over to Step 5.
4B-1-1. Set up SSH.
Do this: https://github.com/commaai/openpilot/wiki/SSH#before-you-start
And then do one of these:
- macOS: https://github.com/commaai/openpilot/wiki/SSH#option-2mac---pre-installed-openssh-client-on-macos
- Windows: https://github.com/commaai/openpilot/wiki/SSH#option-2---pre-installed-openssh-client-on-windows-10-and-up
4B-1-2. SSH into the device.
ssh comma@"your Comma IP"
4B-2-1. Navigate to openpilot directory.
cd /data/openpilot
4B-2-2. Clone Willem's secoc Git repository.
git clone https://github.com/I-CAN-hack/secoc
4B-2-3. Navigate to secoc directory.
cd /data/openpilot/secoc
4B-2-4. Kill openpilot process.
pkill -f openpilot
C3X will display a splash screen with Comma logo.
4B-2-5. Run the key extraction script.
./extract_keys.py
Tip
If you restarted C3X, be sure to run pkill -f openpilot
on each C3X restart before running ./extract_keys.py
.
If you see something like this, the key extraction was successful.
comma@comma-71b93b83:/data/openpilot/secoc$ ./extract_keys.py
INFO: connecting to panda 2c0004004450383632311333
Getting application versions...
- APPLICATION_SOFTWARE_IDENTIFICATION (application) b'\x018965B4509100\x00\x00\x00\x00'
- APPLICATION_SOFTWARE_IDENTIFICATION (bootloader) b'\x01!!!!!!!!!!!!!!!!'
Security Access...
- SEED: 36552fe27172c99222eec3a9b9bd1f28
- KEY: b7b55ba16369bba912b7aa4c06e6c35e
- Key OK!
Preparing to upload payload...
- Write data by identifier 0x201 00000000000000000000000000000000
- Write data by identifier 0x202 00000000000000000000000000000000
Upload payload...
- Request download
- Transfer data 0
- Transfer data 1
- Transfer data 2
- Transfer data 3
Verify payload...
- Routine control 0x10f0 OK!
Trigger payload...
Dumping keys...
100%|████████████████████████| 448/448 [00:00<00:00, 14293.36it/s]
ECU_MASTER_KEY 82667ef509b9f07a134aaf89d4973c68
SecOC Key (KEY_4) 0123456789abcdef0123456789abcdef
SecOC key written to param successfully!
comma@comma-71b93b83:/data/openpilot/secoc$
This 32 digit hexadecimal number is your key.
SecOC Key (KEY_4) 0123456789abcdef0123456789abcdef
Archive and don't lose the key so that you don't need to extract it again. Perhaps email it to yourself.
Warning
It's theoretically possible for someone to remotely hack your car with the key under very specific circumstances. You don't need to protect the key like it's your bank password, but still don't post it on Discord.
4B-3-1. If you see any of these error messages
panda.python.uds.MessageTimeoutError: timeout waiting for response
panda.python.uds.InvalidServiceIdError: invalid response service id: 0x50
or similarCan't read application software identification. Please cycle ignition.
Turn off the car, put it back into Not Ready to Drive
mode, and then try again.
Be sure to kill openpilot process if you restarted C3X.
4B-3-2. Unexpected application version!
-
Open the script for editing.
nano -l /data/openpilot/secoc/extract_keys.py
-
Comment out lines 78 and 93 by adding a
#
at the beginning of each line.if app_version not in APPLICATION_VERSIONS: print("Unexpected application version!", app_version) # exit(1)
if bl_version != APPLICATION_VERSIONS[app_version]: print("Unexpected bootloader version!", bl_version) # exit(1)
-
Save and exit the editor (
Ctrl+X
, thenY
, thenEnter
). -
Kill openpilot process and run the script again.
pkill -f openpilot ./extract_keys.py
4B-3-3. Still doesn't work?
Turn off the car, unplug everything, plug them back in, and try again.
4B-4-1. Install the key in /cache/params/SecOCKey
.
Make the installation directory.
sudo mkdir -p /cache/params || true
Give it the correct permissions.
sudo chown comma:comma /cache/params
Install the key.
echo -n "your key here" > /cache/params/SecOCKey
For example,
echo -n "0123456789abcdef0123456789abcdef" > /cache/params/SecOCKey
4B-4-2. Also write it in /data/params/d/SecOCKey
for legacy support.
echo -n "your key here" > /data/params/d/SecOCKey
4B-4-3. Reboot the device.
sudo reboot
Note
If C3X reboots into the 15mph calibration screen, skip to Step 6.
If it says something like Car unrecognized
or Dashcam mode for unsupported car
, continue on Step 5.
5-1. Follow the fingerprinting guide to get the ECU codes: https://github.com/commaai/openpilot/wiki/Fingerprinting
5-2. Add the ECU codes to fingerprints.py
.
-
Open the file for editing.
nano /data/openpilot/selfdrive/car/toyota/fingerprints.py
-
Scroll down to the
CAR.TOYOTA_RAV4_PRIME
section. -
Add your corresponding ECU codes:
}, CAR.TOYOTA_RAV4_PRIME: { (Ecu.engine, 0x700, None): [ b'\x01896634AJ7000\x00\x00\x00\x00', b'\x018966342S7000\x00\x00\x00\x00', ], (Ecu.abs, 0x7b0, None): [ b'\x01F15264284100\x00\x00\x00\x00', b'\x01F15264228300\x00\x00\x00\x00', ], (Ecu.eps, 0x7a1, None): [ b'\x018965B4233100\x00\x00\x00\x00', b'\x018965B4209000\x00\x00\x00\x00', ], (Ecu.fwdRadar, 0x750, 0xf): [ b'\x018821F6201300\x00\x00\x00\x00', b'\x018821F3301400\x00\x00\x00\x00', ], (Ecu.fwdCamera, 0x750, 0x6d): [ b'\x028646F4210100\x00\x00\x00\x008646G3305000\x00\x00\x00\x00', b'\x028646F4205200\x00\x00\x00\x008646G4202000\x00\x00\x00\x00', ],
-
Save and exit the editor (
Ctrl+X
, thenY
, thenEnter
).
5-3. Optionally disable updates, because an update will delete the manually added fingerprints.
- If your fingerprints were upstreamed, then the next update will contain your fingerprints, so don't disable.
- If your fingerprints were not upstreamed, disable.
echo -n "1" > /data/params/d/DisableUpdates
- If you're using FrogPilot, disabling update using the
echo
command causes anupdated
error. Use the settings menu to disable instead.
5-4. Reboot the device.
sudo reboot
If you're able to calibrate and then use openpilot to use the steering wheel (aka "lat support"), you can clean up the cables and put the covers back on.
At this time, commaai/master-ci
branch can't use the gas and brake pedals (aka "long support") on TSK vehicles. Monitor these PRs for long support progress (commaai/opendbc#1385 & commaai/panda#2061). Experimental mode is also not supported.
Comma Power (OBD2 connector + long cable) is optional. It's not necessary for using C3X, but keeping it allows C3X to stay powered on when you turn off the car, which allows you to upload logs and SSH in more easily. If you do this, you'll be in the training set and your specific driving will improve faster than others.
Modern openpilot and its forks have an auto-key-install process that runs on every car start.
This means that uninstalling openpilot or resetting comma no longer uninstalls the security key.
🎉🎉🎉 Gone are the days of key installation. From now on, just install openpilot and go drive, just like non-TSK users! 🎉🎉🎉
You may need to still reinstall the key if
- the key was never installed in
/cache/params/SecOCKey
because you did it the old SSH way and never ranTSK Manager
/TSK Keyboard
, - the installed key in
/cache/params/SecOCKey
was deleted, or - you're using an old fork without the auto-key-installer.
Follow this guide to reinstall the key.
Some forks/branches have TSK Manager
or TSK Keyboard
under Settings.
⚙ > Device
> TSK Manager
/TSK Keyboard
If it's there, use it to type in your key and install, and then reboot.
Redo Step 4B-4. Install the security key & Reboot.
Redo Step 4A. Run the exploit using TSK Manager
.
When you get to Step 4A-3, don't run TSK Extractor
but instead run TSK Keyboard
. Use it to type in your key and install.
Continue to Step 4A-4 and then finish with 4A-5.
Caution
If you have to ask, you're not ready for forks. Using forks present a real danger so do your research and understand what fork you are installing and what it does.
Some forks will brick your C3X.
Most forks are not made for C3X because C3X is less than a year old.
Some forks contain banned code.
Using it will get you banned by the comma.ai company.
Some forks have nudgeless-lane-change.
Simply clicking the turn signal will move your car to the next lane.
Without any checks.
Yes, it will drive into the car next to you.
Some forks play a blood-curdling goat scream at max volume randomly.
Begin your research in Discord #custom-forks
Please do not ask about forks outside of that channel.
If you're new, please start with commaai/master-ci
and use it for two weeks. This is the latest official version with only lateral support. This will give you a good baseline to compare the other forks to.
Then familiarize yourself with the communities through Discord for each fork you are looking to install.
If you acknowledge the warning above and are still looking to try a fork that supports TSK, the following are available to install at your own risk. Keep in mind that these are community maintained and may not stay up to date:
Fork |
Lat: Lateral support
MADS: AOL / MADS / keep-lat-on-after-brakes Long: Longitudinal support |
alexandresato/personal3 (a.k.a SatoPilot) |
Lat: Yes from upstream MADS: Yes from community (MADS from Spektor56) Long: Yes from community (from chrispypatt)
|
sunnypilot/master-new (a.k.a SunnyPilot) SunnyPilot discord |
Lat: Yes from upstream MADS: Yes from community (MADS original author) Long: No
|
chrispypatt/sunnypilot (fork of SunnyPilot) SunnyPilot discord |
Lat: Yes from upstream MADS: Yes from community (MADS from SP) Long: Yes from community (original author) Notes - same as sunnypilot/master-new plus:
|
optskug/SiennaFP (fork of FrogPilot) FrogPilot discord |
Lat: Yes from community (from anrum) MADS: Yes from community (AOL from FP) Long: No
|
Warning
optskug/SiennaFP
is the only FrogPilot fork/branch with TSK support. Do not install the latest FP unless FrogGoesMoo confirmed that it supports TSK vehicles.
If you are installing a fork not included in the list above, find the fork author and ask the following. If you can't find the author, don't install the fork.
- if it's for C3X
- if it supports TSK
- if it contains banned code
- if there's anything to watch out for
In June 2022, comma.ai created a paid vote/crowdfund for making openpilot support Toyota Security. Once they get 500 votes at $100 a vote, they have 6 months to figure it out and open source a solution; Otherwise, a refund will happen and all the money is returned. The current status of that was: 2 .
Vote counts were reported every week or similar and are recorded in this spreadsheet by the community: https://docs.google.com/spreadsheets/d/1GOeN2ph9JLvOlwStZso988YPT-lILl7yZqFW8UPCFZM/edit#gid=0
The result of this vote, even though it has not met its target cost, is a pull request was produced for the RAV4 Prime to be supported in openpilot. It was eventually merged in.
In January, the vote page was taken down. Below is a snapshot.
The last known vote count from community observations:
In addition to their vote system, comma also has/had specific bounties up:
- "$5k if someone cracks it and upstreams RAV4 prime support -geohot (link currently broken)
- Currently locked to Willem for Willem's PR for the RAV4 Prime to merge in completely: commaai/openpilot#32661 (comment)
- Likely paid out.
- We're announcing a bounty for the 2023 Corolla, 2023 Corolla Hybrid, and 2023 Prius. $500 for a working port merged.
The overall community bounty has been canceled for numerous reasons:
https://www.reddit.com/r/Comma_ai/comments/1d5r7xr/comment/l6vjf9e/
Original Sheet: https://docs.google.com/spreadsheets/d/1MKS78_utvbAe74Xv7zszgEnn6JrtBgpgYlVOfoIvLEw/edit#gid=0
In its place are more specific community bounties:
- Tundra Interest Group
"I’ll put up 2k for Tundra alone" - bgill66- Scrubbed / User had bumped to $5k but there was no interest. https://discord.com/channels/469524606043160576/905950538816978974/1259282479257485383
FWIW the outside of the ECU Security Key camera of a Rav4 Prime looks the same as a non-ECU Security Camera of a Corolla or Corolla Hatchback.
2021 Rav4 Prime:
Security Key'd Denso innards: https://discord.com/channels/469524606043160576/905950538816978974/939203494152372274
2020 Corolla/Corolla Hatchback:
A photo teardown of the 2020 Corolla camera (NON ECU SECURITY KEY) innards: https://photos.app.goo.gl/qsBaMFT6PSEs7BFXA
Here's a brief to get anybody going into this ECU Security Key issue up to speed. I'll keep updating this with links to the relevant Discord messages and other stuff as I find them.
Discord links may be linking to the middle of the conversation. Scroll up and down for context.
Many of these Discord links are to a pre-hidden channel named #toyota-security
in the comma.ai Discord. Accessing #toyota-security
on comma.ai Discord requires completing the simple prompt in #join-development
. Otherwise, it is inaccessible. More often than not, the Discord links are to #toyota-security
in the comma.ai Discord, so please complete the prompt.
Most if not all Discord links are to the comma.ai Discord accessible with an invite from https://discord.comma.ai unless otherwise noted. These other Discords include:
- Retropilot (RP): https://discord.gg/GzWegVa.
- Sunnypilot's Openpilot Server (SP): https://discord.gg/TCTvFTKrAV.
- Openpilot Enthusiasts (Formerly "Openpilot community") (OPC): https://discord.gg/rRB7eDKccy
- MoreTorque (MT): https://discord.gg/439DM9KJ4r
- Frogpilot (FP): https://github.com/FrogAi/FrogPilot?tab=readme-ov-file#discord
The activities, actions, and discussions on non-comma.ai Discords are/may not supported by or affiliated with comma.ai (this may even apply even to the comma.ai Discord too). In the case of MoreTorque, comma.ai is strongly opposed to that community/Discord. That said, the ECU Security Key issues affects all and relevant events and information may be there as well.
For Toyota openpilot enthusiasts, the community was very excited for the RAV4 Prime, a high performance Toyota that was going to have "Toyota Safety Sense 2" (TSS2), other awesome Toyota traits such as reliability, utility, and economy, and, new for a Toyota SUV, speed. It is the fastest accelerating real Toyota excluding Lexuses as the Supra, a BMW badged as a Toyota, does not count.
Previously seen TSS2 vehicles have had an architecture where both latitude and longitudinal are both controlled by the front-facing camera. openpilot was able to intercept and control latitude and longitudinal all at the front-facing camera of TSS2 vehicles, promising full openpilot capabilities. No other taps in the CAN of the vehicle were needed to control or block messages for this capability.
The typical process for adding a new TSS2 vehicle is simply creating a fingerprint with reference to the closest similar vehicle and trying it out.
- IOActive experiments with injecting packets to steer a Prius in a widely disseminated and seminal security assessment. Their research around this time also led to them being able to remotely inject through the radio with a FCA vehicle and cause it to steer. In an unwise move, they demonstrated this in the middle of a busy highway. Anyways, not great.
- This is way in the past, but it's important to note that even large slow dinosaurs or turtles move and it's been a few years.
matty#8553 came on Discord as the first user with a RAV4 Prime and a new Comma 2. crazysim#7797 / @nelsonjchen offered to get the RAV4 Prime supported. Some worrying observations were immediately made in a GitHub issue after validating that the hardware was sound and working on another non-Prime TSS2 RAV4 :
- The
STEERING_LKA
CAN message is now 8 bytes in size. Existing TSS2 vehicles had a 5 byteSTEERING_LKA
CAN message.- There is a 4 byte authentication code on the CAN message instead of the simple 1 byte checksum of past Toyotas.
- @nelsonjchen implemented and tried many checksum algorithms to try and create an identical
STEERING_LKA
message to what was seen in Cabana. None of them worked. - @nelsonjchen asked around on many Discords and other well-known users for help. No one was able to help.
- @nelsonjchen notices that the "checksum" is the not the same for messages with the same data. It doesn't seem like a checksum. Maybe some other state is kept somewhere?
- The authentication code messages change between ignitions.
- The messages are different between vehicles.
- The same inputs result in different "checksum"/authentication code outputs.
- @nelsonjchen notices that Toyota filed a patent about message authentication on the CAN bus.
- matty#8553 eventually returned the Comma 2 within the trial period.
- geohot offers to take a look at a RAV4 Prime in-person if someone makes the drive to San Diego
- aka#2674 starts trying to look at the issue on their own RAV4 Prime. aka#2674 is able to capture some traffic of some sort from Toyota's Techstream diagnostic tool of both the CAN bus kind and the server traffic.
- aka#2674 bought another RAV4 Prime camera ($800!) to take a look at and to see how the reprogramming works.
- aka#2674 moved to San Diego area
- James-T1 takes a look at ECU Security in Toyota's TechInfo site. The Sienna and Venza are discovered to be additionally affected vehicles.
- Support for the Camry with TSS 2.5 was added around this time. It did not have ECU Security Key. TSS versioning does not appear to be correlated with ECU Security Key presence.
- Willem Melching of comma.ai took a deeper interest and posted on Discord. He is waiting for parts from affected vehicles to show up on part or junkyard sites for bench analysis.
- The NHTSA had posted a PDF from Toyota about ECU Security Key and how to reconnect an ECU replacement such as a camera and so on using ECU Security Key to a vehicle. In summary, Techstream users must connect to the Techstream backend for keys.
- TheReaper#0283 posts about looking at the issue as part of his day job. TheReaper#0283's day job appears to be reverse engineering and creating an alternative Yaris GR ECU for racing purposes. A diagram and hint that the ECU Security Key implementation is likely an AUTOSAR implementation is provided along with some guidance as to the architecture of the implementation.
- The relevant AUTOSAR documentation the diagram was pulled from is here: https://www.autosar.org/fileadmin/user_upload/standards/classic/4-3/AUTOSAR_SWS_SecureOnboardCommunication.pdf
- @nelsonjchen and many others in the #toyota-lexus community decide to create an additional Firmware Dump milestone bounty as it is generally something that appears to be required. We simply do not know the exact details of the authentication system such that even if we capture the key programming commands, we do not know how to use the values.
- Also known as SecOC.
- Mutley#1114 takes an interest in the issue. Mutley#1114 is able to record a CAN log and observe that Toyota Techstream writes a local XML file to the disk with part of the keys before contacting the backend.
- Daniel Farley#9948 brings in a Yaris GR from New Zealand. It has ECU Security Key. Possible offer of some parts from another rally converted Yaris GR for reverse engineering.
- ayau#2654 and MD1000#7505 work together to take a look at MD1000#7505's 2021 Sienna. It definitely has ECU Security Key.
- geohot, CEO of comma.ai, adds $5000 to the ECU Security Key bounty with some important clean-room stipulations. The bounty at this point is now about $8000 with $3000 from the non-comma.ai portion of the community.
- wocsor#0313 takes an interest in the issue and @nelsonjchen briefs him on the situation and current public observations. wocsor#0313 puts out an open offer to affected owners in the ATL area to spend some time to make some observations with his hardware but unfortunately, no one on the spreadsheet is from around the ATL area.
- We'll message him if and when someone in ATL does appear. Of course, if you have an affected vehicle and are in ATL, please get in contact with us!
-
Comma 3 is released at comma Con.
- At the Comma Team Group Chat, Erich, a prominent Toyota community contributor and community Discord moderator, asked about ECU Security Key:
-
Adeeb: I think we'll just look into it a bit and just kind of understand what the scope of the issue was and we just decided this isn't affecting too many cars yet that's not where we're choosing. We've aggressively chosen in the last year or so to not spend time on specific cars
We've spent almost all of our time doing things that improve everybody's experience with openpilot. Now the comma three's out, maybe we can get back to doing stuff that helps some subset of the users but we've we've really been pushing on the experience that every user sees
Hotz: I'm counting on the community for that one of you out there we put five thousand dollars of commas hard-earned money up.
-
- At the Comma Team Group Chat, Erich, a prominent Toyota community contributor and community Discord moderator, asked about ECU Security Key:
-
@nelsonjchen writes this timeline: https://github.com/commaai/openpilot/discussions/19932#discussioncomment-1123629
- @nelsonjchen asks if aka#2674 may be willing to take pictures of the insides of their spare Rav4 Prime front camera for comparison to a non-ECU Security camera as the exteriors look the same. No immediate response so far.
- EpiJunkie#1220 looked up TechInfo and confirms that the North American Corolla Cross has ECU Security Key
- EpiJunkie#1220 lists parts in a Rav4 Prime that are covered underneath ECU Security Key. Theoretically, dumping the firmware for some of these parts would help shed light on how the system works. Bolded are parts involved with OP latitude.
- ECM
- Hybrid vehicle control ECU
- Forward recognition camera
- No. 2 skid control ECU (brake actuator assembly)
- Rack and pinion power steering gear assembly
- Clearance warning ECU assembly
- Steering sensor
- Central gateway ECU (network gateway ECU)
- Combination meter assembly
- Airbag sensor assembly
- "toyota encryption is a small segment right now. when it comes to corolla or prius we will prioritize" - geohot
- After a small bit of confusion with some jank in Cabana, belm0#9067 determines that the CH-R Hybrid doesn't have ECU Security Key. However, the 2021 Yaris Cross Hybrid does.
- (OPC Discord) kumar#2021 mentions having dumped the Prius EPS firmware with the aid of a local friend in PHX. If the friend were to go for it, @nelsonjchen would have tried to arrange for a affected vehicle to travel to PHX. Unfortunately, the friend declined to help with dumping EPS Firmware from an ECU Security Key vehicle.
- EpiJunkie#1220 lists the steps to get first-hand information on if a model has ECU Security Key on the forward recognition camera from TechInfo.
- Regarding offers by comma to take a look at owners of ECU Security Key vehicles in the SoCal area:
- eggs#7709 looks up the "yaris 2020 hybrid euro model" and it requires an ECU Security Key update when replacing the camera. It is believed that this also applies to the Australian model.
- Ale Sato Brazil SP#5717 tries out OP on a Brazilian Corolla Cross and it works. That model from that region does not have ECU Security Key.
- (OPC Discord) kumar#2021 sees a rather curious message on his head unit. There's an update to improve the Pre-Collision system on his TSS2 Prius?! In TSS2, the camera is very important to PCS. Up to this point, there has not been evidence of a camera update ever happening. If this does involve a camera update, maybe the firmware from the camera can be intercepted. Maybe this issue might affect firmware from an ECU Security Key vehicle as well. Very curious.
- Added @nelsonjchen's firmware dump milestone criteria
- geohot creates a
#toyota-security
channel on Discord and makes a rough plan sketch to try to help the community (this channel is under the Development section of Discord, checkout#join-development
if you don't see it):- list all the ECUs that have the security
- find out what chips are in those ECUs. ideally we find a dumpable one without any hw security features
- dump the firmware!
- understand the algorithm/keys doing the encryption. at this point, openpilot will work if it's rekeyed.
- if possible, break the crypto. at this point, openpilot will just work
- the comma team does have logs of the pairing process and is able to see some xml stuff with some unknown values labeled M1, M2, M3, and so on
- Somebody on RP Discord claims a friend of theirs has used their OP hardware to crack the system with OP working on their 2021 Venza. They wish to stay anonymous/low at this time. They are not interested in releasing their work but could be interested in releasing it for the bounty amounts to be paid to a charity.
- "Alright, here is what I understood from our convo. He said the ecu key is really important at lest the way he is doing. Without that ecu cannot community at all so op has no chance of working obviously. So he overwrite the original key with the new key that he generated in online portal. While the key is being sent to the car he does mitm to grab the handshake and duplicate and use that every time he wants to use op(he said something about hash being encrypted not sure what that was all about) . He also said he using using two panda and arduino. Asked him if he is interested in handing over his progress to comma so they can improve and make it better but he said no for now."
- Added as "Mysterious Stranger" in bounty/interested user spreadsheet.
- Somebody cross posts from RP Discord to comma.ai Discord what the RP Discord user and his mysterious friend claims. Lots of doubt as to veracity as other than the small explanation above, previously known info and not much new info or proof of working was shared.
- The RP Discord user with the mysterious friend leaves all OP communities due to harassment.
- MBrownies#7412 orders a 2021 Sienna ECM ECU to try and dump. Seems to have some history in the past of some electronics repair knowledge
- @nelsonjchen borrowing jokes#4106's TechInfo account sees that the 2022 Toyota Tundra has ECU Security Key on the Forward Recognition Camera
- @nelsonjchen had a talk with wocsor. wocsor has since moved to Colorado. wocsor is still open for taking a look at a ECU Security Key Toyota especially on a weekend. Please hit us up if you're in Colorado.
- MBrownies#7412 starts an attempt to dump the firmware from a 2021 Sienna ECM ECU in #toyota-security.
- MBrownies#7412 says there may be a firmware update for the 2021 Sienna ECM that may be interceptable. IceyJ#0001, the son of a 2021 Sienna owner, appears to be interested in intercepting the firmware with MBrownies#7412's assistance.
- (RP Discord) eRock970#1675 mentions they go through Colorado in their Rav4 Prime to wocsor. wocsor's MITM idea was debunked but he's still game to try something.
- Willem Melching from comma.ai posts a 4 part blog post about his own adventures in hacking a VW golf ECU including dumping and reverse engineering it on his own time.
- IceyJ#0001 is planning to work with MBrownies#7412 on dumping something next month. IceyJ#0001 was delayed a bit by sickness and other issues.
- #toyota-security discusses dumping the flash as seen on the LKAS forward camera
- The Rav4 Hybrid 2022 doesn't work out of the box with fingerprinting. At first glance it looks like the radar changed and security key wasn't added.
- (MT Discord) ryleymcc#4808 creates a #toyota channel in MT Discord and posts a request with offer of help/partnership to skilled hardware developers to develop a Toyota Torque Interceptor. When asked if this was a possible alternative to CAN MITM on Security Key Toyotas and referencing this discussion, ryleymcc#4808 claims it would circumvent all the Security Key issues.
- NOTE: comma.ai strongly disapproves of ryleymcc#4808's work and operations, citing serious safety concerns.
- This approach would likely not fulfill much of the bounty as it is currently specified as it is unlikely to make it into a release branch.
- The Continental Radar on the 2022 Rav4 may indicate a return to Continental for Radars and Cameras. It's possible that some of these ECU Security Key vehicles have Continental Setups and not Denso setups. Further research might need to be done.
- VagueAscent#4842 posts pictures of the internals of a Denso Toyota Security Key Camera. It looks the same as a non-Toyota Security Key camera. This may mean the learnings from practicing dumping of a much cheaper and plentiful non-Security Key Camera may be helpful.
- wocsor#0313 says he heard the Dragonpilot people have cracked ECU Security Key. However, it'll require more hardware and Dragonpilot will be keeping their implentations closed-source.
- zorrobyte#5330 discovers that the Rav4 Prime has the same steering rack as the Rav4 Hybrid. This may mean that the authentication is implemented at the gateway. zorrobyte#5330 suspects the rumored dragonpilot approach may be taking advantage of this and bypassing the gateway.
- MBrownies#7412 says IceyJ#0001, who was going to help try to capture a relevant firmware dump together, has gone MIA.
- wocsor#0313 says that a rack replacement on a Rav4 Prime requires re-keying anyway so maybe the communication here is authenticated anyway. Nevermind.
- IceyJ#0001 returns. He's just been busy with life. Time may be found next weekend.
- zorrobyte#5330 mentions that the key may be able to be force written. This probably means capture without having to swap cameras or something.
- Mutley#1114 re-appears. Will post all info they gathered like key updating, xml, and so on. Asks IceyJ#0001 and MBrownies#7412 to do some logging. Asks if there are FW updates.
- An update is available for "back over protection" and it may be worth capturing.
- Massive Updates on 2022-02-02. Lots of progress all on one day.
- zorrobyte#5330 work on LTA for existing TSS2 vehicles merited a look again at LTA as used on the Rav4 Prime. It doesn't look like it's secured with ECU Security Key! There's no crazy high-entropy checksum. How interesting. This may be a pathway to getting working Latitude or Steering. No work was done for long though.
- In parallel, Mutley#1114 discovered and was able to download the CUW file for a camera update of the 2022 Tundra as the Tundra currently has a recall for the camera due to some issue with the camera causing the parking brake to come on. Unfortunately, the CUW file appears to be obfuscated, at least the binary part. De-obfuscation may still be needed to discover how the signing is done though among other interesting reverse-engineered information. The CUW firmware update for the camera itself is about 34MB.
- Unfortunately, it looks like the obfuscation also applies to the firmware when intercepted over the CAN as well. The camera firmware even though it may be downloaded, may be a dead end.
- MBrownies#7412 doesn't think the LTA command that checks out is at 0x191 on the Prime though.
- @nelsonjchen meets up with matty#8553 to try some stuff. They were not able to disable enough checks in OP to the point that LTA steering mode was attempted. Maybe they'll meet up again. Stock long passthrough appears to work though if we wanted. That means we can probably just focus on lateral and not worry too much about long for now.
- aka#2674 reappears again with an offer to Willem of Comma.ai if he visits San Diego sometime to look at his Rav4 Prime.
- share-and-enjoy#7186 confirms that the 2022 Rav4 Prime still has a Denso camera. Note that is not to say a Continental Camera may not have Security Key but a security key version of a Continental Camera was seen on a New Zealand Yaris GR.
- @nelsonjchen is too busy with work to try the LTA thing and doesn't believe Toyota would leave a gaping hole like that open.
- "new project ... Rav4 prime EPS" - Greg J Hogan of comma.ai who is experienced with firmware analysis
- "Still alive after surgery :)" - Greg J Hogan of comma.ai takes apart an EPS.
- "[ryleymcc#4808] would ship a free TI to anyone who can use it to work around this ECU security [key] problem."
- note: it looks like comma deleted this post, see above's "NOTE: comma.ai strongly disapproves of ryleymcc#4808's work and operations, citing serious safety concerns."
- (RP Discord) wocsor#0313 notes that the MCU on the Rav4 Prime EPS Greg posted appears to be off the shelf and purchasable on DigiKey. However, there may be on-chip security that may need to be defeated and he was unable to locate a datasheet for it so far.
- Huge news. TheReaper#0283 has dumped a Yaris Engine ECU as part of their tuning effort.. @nelsonjchen reached out to a few technical fellows on the spreadsheet. If you're a technical fellow, and are interested, please reach out.
- No progress on looking at the Yaris Engine ECU.
- geohot has mentioned that if a Lexus with the system were bought for comma.ai, it would be cracked or given back to the community if it isn't cracked in 12 weeks.
- The 2023 Corolla has been announced with TSS 3.0 support which may also include adding security key. This may or may not add security key to the Corolla. This might be visible in TechInfo later this summer as 2023 Corollas arrive.
- (RP Discord) The Toyota Sienna Auto-MAAS self driving platform has ECU Security Key on the front camera as well. Of course, no one is going to run OP on that but it's funny to know. It also appears to have a Continental Camera and Radar for PCS.
- The bz4x (and likely its sister the Subaru Solterra) are looked up to have ECU Security Key as well
- geohot produces/announces "Vote for Toyota Security", a more direct way to vote for comma to do Toyota Security. 500 votes of $100 each. Once it reaches the goal and if comma can't accomplish the crack, the money will be refunded.
- Le_potato#1107 tries their hand at looking at the key stuff after some success cracking VW checksums. Seems to be somewhat in tune with car hacking and some of the firmware dumps out there. Le_potato#1107 Looking for a firmware dump file.
- Le_potato#1107 has shared the other half of the Yaris GR ECU out there. If you're a technical fellow, and are interested, please reach out.
- Comma Vote reaches 42 votes, also known as the answer to life, the universe, and everything.
- Erich#4634 discovers that bulk votes are discounted. Comma/Geohot are amused and replies they will honor the unintentional bulk vote discount.
- The bulk vote party spreadsheet is launched for bulk votes contingent on some criteria: https://docs.google.com/spreadsheets/d/1GOeN2ph9JLvOlwStZso988YPT-lILl7yZqFW8UPCFZM/edit#gid=1958149470
- A new counter/badge is produced along-side as well
- 2
- geohot: Bulk votes can be bought in blocks of 10.
CARS.md
, an intermediate source file behind https://comma.ai/vehicles or the vehicle compatibility list on comma's site, is updated with a list of Toyota Security Key vehicles. It has not been pushed to comma's site yet as of July 27, but eventually will.- Toyota posts a video about TSS 3.0. The video description mentions "23 Corolla, 23 Corolla Hatch, 23 Corolla Cross, 23 GR Corolla, 23 Crown, 23 bZ4X". The bZ4X and the Corolla Cross are known released vehicles with Security Key. The others are unknown and as of July 27, 2022, not on TechInfo yet for confirmation.
- Some discussion about how the system works along with a description from AUTOSAR about how a system would work
- Thinkpad4by3#7568 has a great explanation of why TSK is not encryption.
- stevenkoh08#8535 in Singapore asks about the 2022 Toyota Noah. It is likely TSS3 and wonders how to check. stevenkoh08#8535 was a Toyota tech in the past. Looking up repair manuals in a non-NA, non-EU vehicle seems to be a bit of a pain and info might be JP only.
- "no one knows! 😦. without any real teardown of the architecture or setup, there's no telling what a TSK OP setup would need to look like."
- The 2023 Camry Hybrid with TSS2.5 does not appear to have Toyota Security Key. Still unknown for 2023 Corolla with TSS3 though.
- "as soon as we hit 500, we'll buy a rav4 prime thinking it'll actually be pretty easy to crack, apparently some of the ECU tuning people already have" "if the base model corolla has toyota security, we'll buy one" " - geohot . a note is also dropped by adeeb about the popularity of the Corolla Cross
- "oh fine. if we get 300 votes by the end of next week, we'll buy a corolla cross." - geohot
- Probably unrealistic by next week, but just noting this here.
- u/Raskinulas posts on the /r/comma_ai subreddit about wanting to support a T/LSS3 vehicle with a Torque Interceptor. Replies are doubts about u/Raskinulas's capabilities but u/Raskinulas claims to have resources and is referred to the torque-interceptor channel in Discord.
- "we will buy a toyota security car when either: a) we get the 500 votes b) security comes to the corolla, prius, or RAV4 " -geohot
- "there's only one way they are refunded: if we hit vote target and can't crack it. btw i'd bet against toyota security coming to the 3 cheap cars, the chips to do it are expensive and rare" -geohot
- The 2023 Corolla is now on Techinfo. No one has seen behind the paywall yet. 🔒 or 🔓 ? 😓
- The 2023 TMC-made/Japan-made Corollas appears to have Security Key. However the TMMMS/US-made ones do not.
- Examples of pre refresh Corollas show Corolla ICE/gas-only sedans of any trim may be made in the US. Some gas-only sedans, hatchback, and hybrids are made in JP.
- gregjhogan praises Ghidra for something related to "security access seed/key functions!" Unknown if this is specifically related to Toyota or another manufacturer. What is known though? Comma is tackling "security access seed/key functions!".
- Remote starters with no key do exist on Toyota Security vehicles.
- (RP Discord) In which a crew of people work through RE'ing some firmware on an EPS for their VWs.
- Willem Melching formerly of comma posts a picture with "Will it Glitch?" with what appears to be a RAV4 Prime EPS board with many probes on Twitter.
- "Yes! Turns out the Renesas RH850/P1M-E is vulnerable to a similar attack as the RX65... ", cont.
- Cite: https://www.collshade.fr/articles/reneshack/rx_glitch_article.html
- It appears a firmware dump of a relevant Toyota Security Key ECU has been accomplished. It does not meet my criteria for a firmware dump milestone yet as instructions for reproduction are not all present, but the dump does seem to have been accomplished.
- Willem Melching posts a writeup of how to and what to do to get the firmware dumped.
- This meets all my criteria for the firmware dump milestone and I am working on collecting and closing the bounty.
- Greg Hogan posts a screenshot of Ghidra presumably looking at the Rav4 Prime EPS Firmware with some already work done and named functions/fields.
- Sent out "Toyota Security Key Firmware Dump Bounty Gathering Letter"
- The new SecOC/Security Key LTA message is discovered to be at
0x131
. - "SecOC message parsing, MAC truncated to 28 bits looks like AUTOSAR SecOC profile 3 (JASPAR)"
- /u/imgeohot (geohot, presumably?) "Literally the only "locked out" car is a small minority of Toyota's. We offered votes for sale, but we didn't sell many. It's not a OMG they are locked out, it's why would we care it's like 5 obscure cars. Will solve when it comes to Corolla or Prius.". (not sure if geohot knows or acknowledges TSK has arrived to Japanese-made Corollas yet.)
- vybhavab#6727 puts down the $20 to look up a batch of cars for 2023. The "Toyota Sequoia" is only offered in Hybrid and it has TSK.
- "The SecOC implementation is purely software based and the keys are sitting in RAM. Just need to find a convenient way to get them out." - Melching
- Geohot asked about producing a Flexray Harness: Yea, same as Toyota Security, but harder. If a major car platform switches to flexray that’s probably the only way we’ll do it, but afaik flexray is dying. we support CAN-FD
- adeeb: "23 corolla has secoc?"
- "So is looking in there now and unfortunately the procedure for mounting the front camera includes a step 5 that instructs you to update the ecu security key 😒 [for Toyota Aygo X]"
- A comma_ai Twitter Space occured where Comma's Greg talked about TSK for ~10 minutes. Unfortunately, there are no recordings but some recollections.
- "i think greg said reflashing the ecu to disable security might happen first less desirable and clean"
- "i asked if secured corolla/prius would mean comma would take action before the vote quota was met. george didn't seem to care too much and that the votes mattered more."
- "oh, greg mentioned the eps they bought didnt look like it was ever installed in a car lol"
- $480 of the FW Dumping Bounty sent to Willem Melching. Unfortunately, this was less than half of the promised bounty for a firmware dump.. Ko-Fi Link
- "Replace your EPS with one that has never been in a car and the key used for SecOC MAC generation will be 0x11111111111111111111111111111111 openpilot could work as long as you don't re-key, but stock system will not 🤣" -gregjhogan
- 2023 Prius (Standard) has Security Key
- Someone(s) volunteers to try to replace their EPS with a out of the box un-unkey'd EPS to get OP going. Of course, talk is cheap on Twitter and no one can blame that someone if they backout due to cold feet but if it's serious.....
- The message counterpart for that offer on Discord seems to not be there now.
- The 2023 Corolla Hybrid sold in Brazil still seems to be using Denso and does not have Security Key
- salem#4009: Sienna 2021, geohot: "i hear this"
- 2023 Lexus RX Has Security Key
- 2022+ Lexus LX Has Security Key
- Shane from comma announces a $500 bounty for the 2023 Corolla, 2023 Corolla Hybrid, and 2023 Prius. $500 for a working port merged.
- A discussion about security key with comma comes up
- The 2023 Lexus ES has security key from looking at the CAN traffic (Retropilot Discord)
- zorrobyte thinks that it's possible to intercept the camera and control things like Ford. It's very late, I doubt he remembers the Toyota architecture and may be projecting. (OP Community Discord)
- An "emergency start" tool is being sold that organized theft rings can use to hijack and steal Toyota Smart Key system cars such as a Rav4 with just prying access to the headlights. ECU Security Key is described as a recommended response to this.
- Posted in #toyota-security here https://discord.com/channels/469524606043160576/905950538816978974/1092978466720325672
- Posted in #toyota on RP Discord: https://discord.com/channels/660951518014341124/744908622013661204/1092883580365062297
- A discussion on Hacker news (some curmudgeon, but interesting nevertheless): https://news.ycombinator.com/item?id=35452963#35458481
- kylekulhanek#2725 offers up their new 2023 JP-built Corolla Hybrid for testing if it has ECU Security Key or not. However, it seems Toyota has changed the connectors. This one has 16 "pins" (not all populated), compared to the older 12 "pin" connector.
- Hamoud#4585 range-tested the shop and discovered comma actually set a quantity of 500 . trick is, do 1000 quantity for vote, and just subtract the max quantity from 500.
- oremaxis#0107 notes the connector is noted to be physically identical to the harness plug used for Subaru vehicles. oremaxis#0107 physically tests it, but does not start up the (JP?) "Prius MXWH65-AHXHB" (roughly equivalent to a non-PHEV Prius w/e AWD in USDM) since the pinout is different with a Mr. One Subaru harness.
- A 2023 Tundra was hooked up to a C2 and confirmed to have TSK/SecOC.
- @nelsonjchen asks u/LordKing64, a reddit user who produces spreadsheets for those looking to hunt down extremely desirable Toyotas to run a scrape against the ICE 2023 Toyota Corolla to see what percentage of ICE corollas are Japanese-made, which get locked up with TSK.
- It's a snapshot, assuming that it is generalizable for the ICE Corolla through the rest of the model year.
- https://docs.google.com/spreadsheets/d/15FaeZggrsoSizcqARb-eJXpbLFqoYUVtk6s_qFFwSXk/edit#gid=0
- About 1% of ICE Toyotas in the US are produced in Japan across all trims.
- Note: To date, no one has attempted to port OP to the 2023 ICE US-made Corolla.
- More scrapes from /u/LordKing64 produces this spreadsheet of 2023 Corolla origins. . About a quarter of Corollas (not including GR, have TSK on them).
- Oof, even more 2023 ICE JP Corollas
- The 2023 US Corolla does have a different connector.
- Saeed Almansoori#9530 says "Congratulations comma.ai, 4 new cars will be included in OpenPilot toyota LC300 2023 toyota sequoia 2023 toyota tundra 2023 Lexus LX600 2023". A baffling comment is made in #toyota-lexus channel. Three of these vehicles are known to have TSK in the US market.
- Comma staffer vanillagorilla is looking to build a B harness for Toyota that some newer Toyotas such as the Prius or Corolla may have. Looking for a tester.
- GH Issue: commaai/openpilot#28402
- circulartofu bought a EPS ECU for an RX to try and dump it for more torque. While this isn't for TSK, this is someone else trying to dump an EPS.
- "When Geo was hosting the VC last week I brought up the fact that the new Prius has TSK and he wasn't aware of that, so maybe they'll look into getting a 2023/2024 Prius and start taking a crack at it. Cause Alex [alexm (on Discord)] even said they need a new Prius anyways since their old one is worn out." (SP)
- The Grand Highlander and Grand Highlander Hybrid appear to have Toyota Security Key. Thanks to rap_rep_291 on Discord.
- Users in #toyota-security discuss getting keys from dealerships. The aura is that dealership techs know less than us and it's just an annoying thing to do afterwards.
- comma.ai has its periodic social and product convention "comma_con" to announce new products, meet and greet contributors and users, and talk about the future.
-
comma ai | Shipping github.com/commaai/openpilot | Adeeb Shihadeh | COMMA_CON talks | CPO
[23:49.760 --> 23:52.360] \[Audience Question\] Which car brands are the easiest to support [23:52.360 --> 23:53.360] and the hardest to support? [23:53.360 --> 23:55.600] \<cut\> [23:55.600 --> 23:56.760] \<cut\> [23:59.760 --> 24:03.360] Adeeb: So easiest to support, this is really changing now, actually. [24:03.360 --> 24:06.360] The software platforms and the cars, at least for the ADAS, [24:06.360 --> 24:09.360] were pretty stable for about like three, four years. [24:09.360 --> 24:10.760] And we did a lot of this initial work [24:10.760 --> 24:12.360] maybe three, four years ago. [24:12.360 --> 24:13.760] And now we're in this cycle where [24:13.760 --> 24:15.360] Honda, Toyota, Honda, Toyota, Honda, [24:15.360 --> 24:18.160] we're in this cycle where Honda, Toyota, Honda, a lot of them [24:18.160 --> 24:21.080] are changing their platforms right at the same time. [24:21.080 --> 24:23.720] So that's the hard part right now, [24:23.720 --> 24:25.600] is we're getting this influx that [24:25.600 --> 24:27.960] are all different right now. [24:27.960 --> 24:31.400] The hardest ones now are the ones that implement the Autosar [24:31.400 --> 24:33.160] secure onboard communication. [24:33.160 --> 24:34.560] We haven't spent much time on it, [24:34.560 --> 24:36.320] but that'll be a little bit of a project. [24:36.320 --> 24:39.600] It just adds more overhead to porting a car.
-
- The Toyota B Harness seen in the 2023 Corolla and the 2023 Prius go on sale in comma's shop after a tester was located.
- rap_rep_291 on Discord discovers that Vector's (A popular CAN Bus Analyzer and debugging tool) tooling may have SecOC "OEM Security Addons" "free of charge" for some OEMs. Toyota is not mentioned specifically though. Vector stuff is $20k though.
- The Lexus UX 2023 2023 are looked up to not have Security Key.
- oremaxis is trying to hook up the Japanese 2023 Prius with the current comma B Harness. There are missing connections and some issues with the harness relays.
- .malachor reports that Toyota is moving to GTS+ away from TechInfo and that there's some sort of capture or key stuff possibly going on with the newer platform as well.
- Toyota B Harness updated with more wires needed/as seen on Prius 2023
- geohot
- A lexus tuning scene user comes on and asks about the status. No news, but some interest from adjacent fields.
- Apparently there was a firmware update / recall for cameras Corolla and Corolla HV, Corolla Hatchback, Corolla Cross, BZ4X
- Range Check Trick to check vote count no longer works
- A small discussion on that mentions 2023 Toyotas such as a bz4x and 2023 Sienna known to have TSK can have their immobilizers changed by a non-Toyota tool. (OPC Discord)
- Range trick to check votes works again.
- VineTimeLive#2651 paid $25 and looked up a bunch of models after Toyota's paywall. Summary below.
- Highlander 2024, even though it still has TSS 2.5, got TSK . Not unexpected for it being rather oddly the most change prone.
- The 2024 Rav4 still does not have TSK.
- 2024 Lexus TX, has TSK, not big surprise
- There is no longer a differentiation between JP and US 2024 Corollas for TSK. All 2024 corollas have TSK.
- The 2023 ES and 2024 ES does not have TSK, contrary to what others may have reported.
- A small discussion on differences between Toyota Dealership and independent shop access re: TSK and Techstream
- "The local branches don't have the data. Any dealer that wants to swap a secured ECU for repairs has to login through Techstream to get the one specific key for the ECU he is installing at that time. Third party shops have to do the same but they don't even get Techstream Global access. They get case-by-case access if Toyota approves it. (E.g. parts number matching and so forth)"
- A post with a sample of an exchange between Techstream and Toyota servers.
- "interesting how european ecu security key can do offline key writing"
- jakethesnake420420 on Discord believes they see a pattern in the checksum?
- this guy's adventure is interesting abeit unfulfilled, to try to RE and hack their tundra instrument cluster
- https://www.reddit.com/r/embedded/comments/ystc0l/automotive_mcu_instrument_cluster_firmware/ and check user's posts.
- Added more vehicles:
- 2024+ Lexus TX (Speculated from TechInfo lookup)
- 2024+ Lexus GX (Speculated from TechInfo lookup)
- 2024+ Tacoma (Speculated from TechInfo lookup)
- 2024+ Mirai (Speculated from TechInfo lookup)
- Q: I’ll tell my friends, can we spend marketing budget on new Toyota/lexus ecu cracking? :kekw: geohot: no, buy votes
- Willem: "We got code execution in the bootloader over CAN! Still a few issues to work out though, the main application stops working after a few seconds now. EPS part # is 89650-42370, whole steering rack is 44250-42310. 2021+ Rav4 Prime."
- Greg: Can anyone help find a Rav4 prime power steering motor from a wrecked vehicle? Some promising things have been found! I want one that was in a car so it has real keys, and something that we have no fear of bricking or physically destroying.
- Greg: FYI, this means a way to dump the keys over CAN has been found
- geohot asks: What's the most popular car with Toyota security?
- A draft pull request to support the 2021 RAV4 Prime is made. It is very early and has shortcomings.
- It does not have code to dump the keys. Willem is worried it could brick the EPS and it is undertested
- It does have the the code to calculate new Message Authentication Codes (MACs) for the SecOC messages.
- Notably, if merged, comma is currently not yet comfortable adding it to the supported cars list.
-
"I’m working on blog post. Will post that together with the script. (UPDATE: Blog post in March 1)
The risk is not super high, but it’s very inconvenient if the rack needs to be replaced. In the meantime I’ve tested it on a second rack pulled from a crashed vehicle, and it worked fine." - Willem
-
Comma staffer Shane mentions that comma has determined the Corolla radar to be CAN-FD. While not TSK related, there is info that comma has discovered and not released yet.
-
Major Update from former comma staffer Willem Melching:
-
New blog post is out! Extracting the SecOC keys used for securing the CAN Bus on the 2021+ RAV4 Prime. https://icanhack.nl/blog/secoc-key-extraction/
Research started all the way in 2022, but took many evenings of reverse engineering to get code execution.
-
- Extracted the firmware from an ECU, using Fault Injection to bypass the locked debug port.
- Reverse engineered the application code, to understand how SecOC was implemented and find the location of the keys in RAM.
- Reverse engineered the bootloader, to understand how the update procedure works and how we can upload and run shellcode.
- We built a shellcode that extracts the keys from RAM and sends them out over CAN, then reboots the device.
- It is a long read, but it is exactly why this is such a hard problem and there are some serious hurdles to overcome when it comes to extracting the keys.
- An incomplete exerpts of some other information:
- There is a way to extract the SecOC key from the RAV4 Prime without disassembly.
- During the construction of the payload, a secret key must have been extracted from the firmware in order to upload code to the EPS, run it, and extract the key. This isn't correct secure design but it lets third parties like comma.ai and I-CAN-hack to extract the key by uploading temporary code to the EPS to extract the key.
- By not using the "Hardware Security Module" in the firmware, the key can be extracted from memory. Newer cars may use the HSM, which hides the key from memory, and getting the key out from those is an unsolved problem. What are the newer cars is unclear, but the 2023 Corolla Cross they looked at was using the HSM.
- Some people are looking to get the key from their Rav4 Prime
-
-
Discord Followups on comma.ai Discord:
-
hdoublearp on Discord was able to retrieve their SECOC key with Willem's script.
-
hdoublearp report on his collaboration with Willem
-
"There is some progress on the port, thanks to Willem, lateral is working. Still some missing safety features, but the initial issues with the Prime’s new PCM messages are sorted out. Willem had to make some changes to account for gearing difference in the Prime compared to other models. I’ve sent my latest feedback and test scenarios to him, and will continue working with him on it.
-
hdoublearp posts a video. It is a video of an assisted lane change on a RAV4 Prime, a feature that does not exist on TSS2 but does in openpilot.
2619375277588803360.mov
-
-
There is still work to figure out some of the new messages.
-
A second RAV4 Prime by @chrispypatt seems to have come online from Willem's work.
- Spawahh tries to get the tools working on their bz4x. Things are complicated by CAN-FD and other issues. WIP
- etc6849 tries to run the key extraction script on their Tundra from their C2, but is stopped by the firmware check in the script. Still a hello world! There is some apprehension about bricking, possibly.
- tranlocquy bravely comments out past the firmware check on the SecOC key extraction script and the EPS on their 2021 Sienna survives. And purportedly some sort of key is extracted. After putting in their Sienna's firmware and masquerading as a RAV4 Prime, it appears to work!
-
tranlocquy posts a video of openpilot working on the Sienna.
IMG_1898.mov
-
- chaechullee with tranlocquy's guidance manages to dump their keys and get it going on their 2022 Sienna.
- As of this time, longitudinal support is still not present.
- Tundra will be attempted soon
- A 4th Sienna key extraction is in progress.
- Siennas apparently have unsecured longitudinal and it "just works"?!
- bgill66 tries to dump the key on the Tundra; no success and christmas lights. A restart of the truck clears up the warnings. Some sort of v4 bootloader was encounted.
- yipstar tries to dump keys on their 2024 toyota highlander, but is unsuccessful; that said, it does seem to execute code.
- willem: "Hopefully ThisGuy can get the bench setup working [for the tundra eps rack]!"
- Longitudinal might actually still be secured on the Sienna. Resume spam might still work, but longitudinal controlled completely by OP isn't
- Full longitudinal support for the Rav4 Prime (and probably Sienna) is blocked by a lack of understanding of the gas/brake/acc messages. @nelsonjchen suggests the community get good on how to reverse engineer can bus messages. Worry about the signing later.
- More 2023 Rav4 Primes are known to be working, but there may be some issues with some understandings of the messages.
- dpan9738 tries to dump their key from a 2022 Corolla Cross but is unsuccessful. Checksum verification error... . Unknown if HSM is in 2022 Corolla Cross.
- ThisGuy has successfully wired up their C3 to the new and spare Tundra steering rack on their workbench with Willem's help and guidance. While the keys still aren't able to be dumped, there is connectivity and some response.
- ianik66 tries the script on the 2021 Venza after commenting out some checks but an invalid key is returned. Some proposals are done for a memory-dump search that, while unsuccessful on the Tundra, might be successful on the Venza in locating the changes in memory location for the key. Other suggestions are made to improve this search as well.)
- chrispypatt and tranlocquy have started a thread to look for the
ACC_CONTROL
equivalent CAN bus message in their Sienna and Rav4 Prime.- This is required for "Full longitudinal support" or openpilot actually being able to control gas and brake beyond only spamming auto-resume for automatic stop and go for stuff like slowdowns, experimental mode, or traffic lights.
- Existing key dumping script did not work on 2024 Rav4 Prime. nandrews283 is now trying the brute force method and seeing if it would work. A new bootloader is seen and results have not. Unclear comments from willem.
- Greg and Willem recently spoke at a hardware security conference in Santa Clara, CA about their efforts. A recording is currently not available.
- The full support for TSK community bounty is canceled in favor of more focused bounties
- $5k bounty is confirmed to be locked to Willem with the RAV4 Prime
- @nelsonjchen helps GON0822 try to dump the key off their 2022 Yaris Hybrid in Japan. GON0822's English isn't great and it's quite a struggle but GON0822 is preservering. Unfortunately, the key is not located at the same memory address as the RAV4/Sienna. Plans are made for a possible brute force trial though more Western users have not had much success.
- @nelsonjchen misremembers the Venza. Apparently it was bootloader version 2 unlike the RAV4 Prime and Sienna which came out in the same model year. GON0822's Yaris is actually the first bootloader v1 to fail to dump the key.
- According to thehui, the 2024 Sienna fails with the same error as the 2024 RAV4 Prime
- The key from GON0822's 2022 Yaris Hybrid is extracted with a brute-force method. However, dropping in the key into the rav4 prime branch doesn't work for unknown reasons with a forced fingerprint.
- Fixing the key and using a firmware replaced branch doesn't work on GON0822's Yaris Hybrid. Request for assistance
- AleSato comes with with a bunch of suggestions and working latitude is now working on GON0822's Yaris Hybrid! It is the first radar controlled vehicle to work. C3 Gon Yaris-enc.webm
- Update from Willem on RAV4 Prime port upstreaming: "Regarding the Rav4 prime port, I've been quite busy lately."
- (Longitudinal Support on SecOC/TSK vehicles) Regarding the ACC message, if I remember correctly it's split up into the existing message and 0x177. They moved the actual acceleration command to 0x177 which has a SecOC MAC.
- bravo_char has a nice discussion with Willem about SecOC ECUs and that the "Clearance Warning" assembly might be a non-complex ECU to attack for getting the key out. bravo_char is interested in attacking the Tundra Sonar Module as it is only $80 on eBay. Also, Willem says he got a Yaris GR radar, but it is BGA mounted so dumping it was never attempted.
- anrum, a 2023 Rav4 Prime user, announces a porting effort of support to Frogpilot
- Willem & Greg's talk on SecOC is posted. "Hardwear.io USA 2024 : My Car, My Keys: Obtaining CAN Bus SecOC Signing Keys - Willem & Greg"
- A discussion with Willem on why intercepting the key from a key updating process may be infeasible.
- anrum announces a successful port of the changes necessary for the 2021-2023 rav4 prime and 2021 sienna to frogpilot
- tranlocguy attempts separating out the sienna hybrid properly in a fork of anrum's frogpilot
- A small request to some 2022 Sienna owners to send and post firmware versions
- Some thoughts on part swapping very similar vehicles to rekey a vulnerable part instead, probably just wishful thinking
- European/Italian 2020 Yaris Hybrid's Key successfully dumped. Unfortunately, the C3X was buggy and needs to be returned. If it wasn't though, it might have worked...
- A suggestion is made again to try to make a unified patch in a repo for TSK users.
- Willem, Greg, and Robbe wins the DEFCON Car Hacking Village CTF and with it, a Model 3. (X, formerly known as Twitter)
"We did it again!!! We got 1st place in the #defcon32 @CarHackVillage CTF. This year we won a Tesla Model 3, and the whole team has their own Black Badge now 😎. @gregjhogan @robbederks"
- META: GitHub discussions have been shuttered in favor of all discussion going on at Discord. . Please link users to https://github.com/optskug/docs/ for the latest news/history from here on out. Unfortunately, there's no way to make old GitHub links redirect so this is the best that can be done. The old link, for reference is: https://github.com/commaai/openpilot/discussions/19932
- gregjhogan clarifies what the first byte of a UDS firmware version is. It's not a bootloader version?
- "The first byte returned when reading the firmware versions using UDS read data by id isn't part of the version number, it is how many applications are running on the ECU (for example if it has two cores, there may be a separate application running on each core) and it tells you how many you can extract from the rest of the data returned."
- 2023 Sienna confirmed to work
- there is some rough renewed interest in fork support such as frogpilot/sunnypilot
- A small debate in openpilot Enthusiasts about the comma vote system (OPC). Would we have gotten this far without it?
- Willem shows up in #toyota-security
- Asks about TSS3 Toyota Corolla without TSK like the ones made in the USA in 2023. "If somebody makes that port work, I’ll see if I can spend some time on the HSM EPSes. It’s definitely possible to get lateral only on those by just nuking the SecOC checks on the power steering"
- "If somebody wants to finish the rav4 prime port, feel free to take my code and reopen the PR"
- "Probably best to start with the panda safety code. It’s all working now, but comma wanted it cleaned up with some config structs like the Chrysler code"
- "I’m too busy with other projects to work on car ports"
- "Happy to provide feedback"
- Renewed interest from newer driving models being available re-raises the question of merging in support for TSK vehicles into Frogpilot. anrum, the original first porter to Frogpilot reappears. Since the original port, there has sporadic been semi-one-off Sienna and Rav4 fingerprints but nothing unified or upstreamed and numerous disparent HEADs. (FP Discord)
- Work continues on the Frogpilot TSK support upstreaming.
- comma Discord Sept 25 Developer Meeting notes
- Jason Young (jyoung8607), a prominent non-comma.ai openpilot contributor and VW openpilot saint, is wanting to work on moving forward Willem's RAV4 Prime work to be rebased atop current comma openpilot with Willem's guidance (pd0wm) while he is visiting comma.ai's office in San Diego on vacation.
- Approved goal by Adeeb is to have release comma openpilot be able to work with the RAV4 Prime if the key is provided by the user.
- SecOC Key extraction is outside of the scope of this work though and will not be included. In other words, plug-and-play is not to be expected. The are open to seeing if/any UI or workflow might come from the community on this.
- Jason opens a new draft pull request superceding Willem's pull request: commaai/openpilot#33654
- Produced a user group list of working vehicles and users on Jason's request: https://docs.google.com/spreadsheets/d/1sprUteWtCVH6nQ6JfsmX0liIJ58H4nAVWxtAdorfW4c/edit?gid=0#gid=0
- A mainland China/PRC user with a PRC-built 2022 Sienna comes into the Frogpilot Discord. They are able to extract the key but for whatever reason, can't write "Params". Will followup with prescribed reset. User really only speaks Mandarin so the Frogpilot Discord Frogbot's thread auto-translation bot is used. (FP Discord)
- Note: They are also using a Mr. One C3 clone since comma doesn't appear to ship to China from their POV for whatever reason. This complicates debugging and upstreaming to comma's branch is impossible for their vehicle.
- Got it working with Mr One's C3 Clone! (FP Discord)
- Jason has a test branch out for users to try on a new openpilot base. Users may need to reinstall their key. He is looking for reports of successes and failures.
- "Ready for testers! I have a test branch for you (not the one in the PR) that forces the fingerprint to RAV4 Prime. This means it should work even if you have a Sienna, or a RAV4 Prime with a different fingerprint."
- gon0822 asks about Yaris Hybrid support. Yaris has a Continental Radar. Jason answers they might finish support for that as well this week.
-
- Effort is spent to try to preserve and archive share-and-enjoy's very special and self-hacked copy as the git commit reported up to comma does not appear to have prerequsite or necessary changes.
- share-and-enjoy shares their dirty changes and some shocking/amazing discoveries are made
- "The only thing I can think of, it's possible you were extremely lucky with
openpilotLongitudinalControl
and managed to filter the old message which still has [Stop and Go] relevant control bits, and transparent passthrough the new SecOC message with the actual acceleration command." - "LOL that's exactly what you managed to do" "You accidentally made partial long control work "
- The changes are not slated to be merged in but they are at least documented for future follow up work.
- "Just FYI, yes incode was running the same SnG hack as me from tranlocquy. tranlocquy told me how to do it, and actually did it for incode."
- "Now, it does NOT stop at red lights or stop signs, but DOES auto-resume from stop with a lead car."
- "The only thing I can think of, it's possible you were extremely lucky with
-
Jason restates the current merge goals and milestones, quoted below:
- It won't be in dashcam mode, if there's a correctly saved SecOC key, it'll just work
- It will require a non-release branch, just like alpha openpilot longitudinal
- It won't appear in comma.ai/vehicles or CARS.md
- comma will not ship the key retrieval mechanism, you're on your own for that
-
The first of the RAV4 Prime support PRs is merged into the car support repository.
- This was done on the first part of a live stream. There was cake. https://youtube.com/live/ayiIi5hxE38?feature=share
- commaai/openpilot#33654
-
The MY2025 ES300H is one of the few (only so far?) 2025 Lexus vehicles without SecOC/TSK apparently.
-
chrispypatt gets longitudinal control working on their 2021 RAV4 Prime.
Ok so I changed the ACC_CONTROL_2’s ACCEL_CMD to match the ACC_CONTROL’s scaling in the dbc. I just manually edited it for now rather than figuring out how the generation works. I can throw my changes up to my fork tonight.
The good news is it worked 🎉🎉🎉! OP was clearly controlling long. It just doesn’t seem to be fully working. It seemed something was not quite right but I don’t have any experience with OP long so let me know if it is expected when on city streets. Acceleration seemed to not always work, even with no lead car, my rav would not always accelerate up to my set point. Many times I would have to accelerate manually up to the desired speed but then OP would be good about decelerating down for lead cars and stopping at stop lights.
I also noticed at clear and green light stop lights and when cars were a whole block in front of me OP would decelerate.
If I came to a complete stop I always had to hit the gas to get going again. Also rolling up to a red light there was some creep where the car would not come to a complete stop until many times I was in the cross walk.
You can see some of these issues in the attached videos.
- domsz06 and calvinspark are attempting to dump the key from a 2024 Prius. It's not expected to work but they want to try the memory brute force script.
- alesatobrazilsp and gon0822 determine that the Yaris Hybrid in Japan uses the same acceleration command seen in other Toyotas by looking in Cabana for the CAN BUS data. (FP Discord)
- posts pictures of the camera internals for the 2024 Tacoma
- Jason - "Definitely technically possible to back port the work to openpilot 0.8.13.1" (last version of openpilot that supports the comma two and comma two class of devices.)
- Re: openpilot long on R4P and Sienna- Jason: "I don't remember and I'm not in a position to refresh myself right now" "But I haven’t had the time to get back to it to resolve the mutations issue or put more thought into the refactor" [of secOC Long]. The secOC Long support is getting a bit stale.
- por_por.t helps determine on a trip that the EU 2024 RAV4 Hybrid has TSK from looking at the EU equivalent of TechInfo
- Users are still working on porting openpilot long, at least to Frogpilot or their own forks/branches for now, in lieu of working tests.
- dstaley determines that the 2025 US RAV4, unlike the EU 2024 RAV4 Hybrid, does not have TSK from looking at TechInfo
- Ale and GON0822 continue work on Yaris Latitude upstreaming (FP Discord)
- shiver32 confirms that the 2024-2025 Model Year IS 500 does not have ECU Security Key. A lot of interested IS users come on and don't do things but shiver32 pulled through.
- calvinspark is trying to make a GUI dumping and restoration tool for the key.
- calvinspark is talking with sunnypilot developers about his GUI dumping and restoration tool along with integration opportunies and concern. As the sunnypilot fork is one that continuously and properly keeps up with comma's codebase much more frequently than frogpilot, sunnypilot has inherited compatibility and with that, some focus on making the UX for TSK/SecOC users is of great interest. (SP Discord)
- sunnyharbin makes a dedicated channel for the quirks and features needed for sunnypilot support of TSK/SecOC Toyotas (SP Discord)
- satireshepherd was looking for the DBC for a 2024 Corolla or similar. They are the first not ex-comma or comma staff but a community member to have looked at the CANFD traffic on a 2024 Corolla. They are using a comma adapter, but on a Raspberry Pi and CAN-FD shield. Unfortunately, they are the first so there's no precedent and just first mover problems ahead but just noting this here for the log.
- calvinspark creates
optskug/tskm
, a pre-installation GUI extraction/restoration tool for the SecOC key. He is campaigning to have it in various forks and comma openpilot. - The keyboard integration suggestion for SecOC into comma openpilot is rejected.
- After some discussion, the
/cache
is identified as a place to store the key. It is looking good that comma openpilot may accept the process of restoring the key from this location as a proposal. While a "third-party" non-comma key extractor must still be run, this is a major good QOL change. - crispypatt is continuing to develop longitudinal support and just recently rebased and worked on safety. (SP Discord)
- calvinspark notices the shop page for comma votes has been taken down. There has been no statement from comma. Perhaps the inclusion of the Sienna and RAV4 Prime qualified?
- satireshepherd is able to dump the memory on their 2024 Corolla's EPS.
- A discussion breaks out about the status of OP longitudinal control and radar parsing on TSK vehicles.
Footnotes
-
This is an image of the CAN BUS traffic on a RAV4 Prime. The "checksum" for the Lane Keep Assist messages are now very high in entropy, indicative of some sort of signing or encryption being used. ↩
-
As a shameless plug, do you like those real-time updating embedded values from the Google Spreadsheet up there for the bounty and vote tracker? I made cellshield.info for that and other non-security key related uses. Check it out and let me know outside of this discussion if you have any comments! ↩ ↩2 ↩3 ↩4
-
gregjhogan stated that the first byte of a UDS firmware version is not a bootloader version. https://discord.com/channels/469524606043160576/905950538816978974/1273746993394487376
The first byte returned when reading the firmware versions using UDS read data by id isn't part of the version number, it is how many applications are running on the ECU (for example if it has two cores, there may be a separate application running on each core) and it tells you how many you can extract from the rest of the data returned.
-
Speculated from TechInfo lookup. TechInfo lookup is looking at Toyota's Techinfo site (payment required, minimum ~$25) and seeing if replacing the "Object recognition camera" / "Forward recognition camera" requires an ECU Security Key update. https://discord.com/channels/469524606043160576/524327905937850394/894262224552624228 ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14