News for hackers. Stuff that matters.
Re:I Hacked My Car Guides: Creating Custom Firmware by aorth on Tuesday July 19, 2022 @12:37PM (#32154262)
On a related note, factory-installed Toyota display systems can sometimes be locked and require an "ERC" code to unlock. The display in my recently imported car was in Japanese and seemed to be stuck, as none of the buttons or rear camera worked. I learned from Google Translate that it was in some kind of anti-theft lock mode, and after going down the rabbit hole I found out that I could access a secret menu by holding radio power and turning the headlights on and off three times, which revealed a screen displaying the display's serial number and asking for an "ERC" code.

It turns out some fine Internet people have written C# (https://github.com/alexeyfadeev/erc-calculator) and Python (https://github.com/Berks/python_erc) packages to generate these codes. Was really cool to figure this out without having to pay some shady site in Bitcoins! The display is still in Japanese, but at least I can use Bluetooth and the rear camera! Hope that helps someone.

Re:I Hacked My Car Guides: Creating Custom Firmware by alufers on Tuesday July 19, 2022 @07:58AM (#32150302)
My Dacia makes it easy for me :). If you reboot the infotainment system with a USB drive formatted with FAT it will run any commands in the `autorun_bavn/autorun.sh` file with root permissions.

Some people are unlocking more maps in the navigation system by patching files which tell the infotainment application what options you purhased.

Re:I Hacked My Car Guides: Creating Custom Firmware by yrgulation on Tuesday July 19, 2022 @08:17AM (#32150438)
Have you tried the new electric dacia? Wondering if one can just up the torque since it's electric. Would be dangerous, but curious how much faster it can get.
Re:I Hacked My Car Guides: Creating Custom Firmware by lelag on Tuesday July 19, 2022 @08:26AM (#32150519)
For this to be even remotely possible, the infotainment unit would have to have direct access to the CAN bus which is certainly not the case (at least I hope). Most probably, the car expose some feature through an API to the infotainment unit but that would not include any direct control on the car driving operations.
Re:I Hacked My Car Guides: Creating Custom Firmware by bluGill on Tuesday July 19, 2022 @08:49AM (#32150713)
I would expect the radio to have access to a CAN bus. The same diagnostics tool that uses can to read your engine should also be able to read the radio, and the infotainment should have all the ability to display all DTCs and what they mean.

I would expect all controllers with safety critical functions are carefully firewalled so that you cannot do bad things via CAN.

Re:I Hacked My Car Guides: Creating Custom Firmware by adolph on Tuesday July 19, 2022 @12:40PM (#32154331)
It depends on what you mean by critical I guess. comma.ai and OpenPilot uses CAN to perform steering, acceleration and braking (I think).

https://github.com/commaai/openpilot/blob/master/selfdrive/c...

Re:I Hacked My Car Guides: Creating Custom Firmware by jnsaff2 on Tuesday July 19, 2022 @01:51PM (#32155425)
There are usually several can buses in the car. Entertainment (also includes power window buttons, etc I guess) and power-train with a gateway in between those if some of the PT-CAN messages are needed on the entertainment side.
Re:I Hacked My Car Guides: Creating Custom Firmware by npteljes on Wednesday July 20, 2022 @04:39AM (#32163018)
Which Dacia is this if I may ask?
Re:I Hacked My Car Guides: Creating Custom Firmware by alufers on Monday July 25, 2022 @08:01AM (#32223176)
A 2021 Sandero
Re:I Hacked My Car Guides: Creating Custom Firmware by jeroenhd on Tuesday July 19, 2022 @03:59AM (#32148741)
Application development looks remarkably doable: https://programmingwithstyle.com/posts/howihackedmycarpart3/

I don't know how powerful the chip in the car is but I can see someone building quite a competent open source navigation system through Qt and some car APIs, assuming you can get some kind of map storage solution working

Re:I Hacked My Car Guides: Creating Custom Firmware by LadyCailin on Tuesday July 19, 2022 @06:31AM (#32149676)
My experience (datapoint 1, working on ecocar in college a decade ago) was that they are exceedingly defensive revealing info about the CAN message format. It would likely require reverse engineering the protocol in order to make any apps that actually interface with the car somehow. Making a fully standalone app would be possible, but limited in usefulness.
Re:I Hacked My Car Guides: Creating Custom Firmware by bluGill on Tuesday July 19, 2022 @08:57AM (#32150806)
That depends on what you want to do. OBDII diagnostics is legally mandated by law and so not hard to do across all cars. It is minimal information, but enough for most things. If you want anything else it different for each car (not just each manufacture, sometimes sometimes the same car model will have more than one variant).

The information you need isn't impossible to get: the manufactures make this available to third party scan tools, but they assume anyone wanting this information considers paying $100,000 a nominal cost and won't question it. In a previous job (I left in 2010) I had access to this information, but we still spent a lot of time reverse engineering things because the documents were too often wrong.

Re:I Hacked My Car Guides: Creating Custom Firmware by adolph on Tuesday July 19, 2022 @12:29PM (#32154119)
See:

* DBC file is a proprietary format that describes the data over a CAN bus.: http://socialledge.com/sjsu/index.php/DBC_Format

* OpenDBC: democratize access to car decoder rings: https://github.com/commaai/opendbc

Re:I Hacked My Car Guides: Creating Custom Firmware by frosted-flakes on Tuesday July 19, 2022 @12:10PM (#32153804)
OBDII is only required for engine diagnostics, no? I've heard that Tesla cars don't have them, for example.
Re:I Hacked My Car Guides: Creating Custom Firmware by Handytinge on Tuesday August 02, 2022 @05:03AM (#32316547)
It depends what country you're in. My country, the Tesla does have an ODB II port, because it's a requirement for cars sold here. I don't believe that's the case in the US, although those have a CAN port.
Re:I Hacked My Car Guides: Creating Custom Firmware by bluGill on Tuesday July 19, 2022 @02:09PM (#32155704)
It is only required for emissions diagnostics. Which is a small subset of total engine diagnostics, though the most common things to go wrong on an engine affect emissions so for practical purposes it is engine.
Re:I Hacked My Car Guides: Creating Custom Firmware by consp on Tuesday July 19, 2022 @04:25AM (#32148905)
Quite a few people have already done this for the Ford Sync3 infotainment systems which are based on QNX6. You only need to connect a SD reader to the eMMC module on the daughterboard and mount the disk and install ssh. There are a few jigs around which you can buy to make this easier. The root password takes about 30 minutes with hashcat if you have an old model with broken signature checking so you can install a custom update package and install a ssh server that way (you do not need disk access for the digest, updates will get you there).

Depending on where you live, this might be illegal though.

Re:I Hacked My Car Guides: Creating Custom Firmware by tomrod on Tuesday July 19, 2022 @12:58PM (#32154645)
Where would you look to determine this?
Re:I Hacked My Car Guides: Creating Custom Firmware by xnorswap on Tuesday July 19, 2022 @03:48AM (#32148675)
> These values are actually the first AES 128bit CBC example key/iv listed in the NIST document SP800-38A.

I'd love to have a better insight into how exactly this happens. Not that it sounds like it would have been much of an issue even if properly generated keys and IVs were used.

Re:I Hacked My Car Guides: Creating Custom Firmware by nanidin on Tuesday July 19, 2022 @12:12PM (#32153821)
At the end of the day, lack of competent security leadership at Hyundai. In my work with other auto OEM's, there is some kind of security officer assigned to a vehicle model or platform that specifies requirements and that requires formal attestations for things like private key material, SSL cipher suites, process isolation and so forth.

At the other OEM's I have worked with, private key material lives on an HSM controlled by the OEM and all signing/encryption is done by the OEM for production builds.

If they are using example keys from NIST and private keys from published tutorials, then I would not be surprised if they are also using defaults for TLS - for example: allowing TLS 1.0, allowing TLS 1.1, allowing weak cipher suites, etc.

Re:I Hacked My Car Guides: Creating Custom Firmware by Nextgrid on Tuesday July 19, 2022 @08:02AM (#32150323)
My bet is either subcontracting the development to a lowest-bidder with no understanding of the concepts behind the code they're writing, or malicious compliance by an engineer that sees no reason to prevent people from installing custom firmware on their own car but still needed something that "looked" secure to get approved by management.
Re:I Hacked My Car Guides: Creating Custom Firmware by InsomniacL on Tuesday July 19, 2022 @03:50AM (#32148689)
I wonder how you can confirm you don't have jailbroken firmware when buying a second hand vehicle.
Re:I Hacked My Car Guides: Creating Custom Firmware by numpad0 on Tuesday July 19, 2022 @05:56AM (#32149474)
For some reasons, PC and iPhones are only class of devices that allows full system reimaging. Not even most Android devices have facilitations for that.
Re:I Hacked My Car Guides: Creating Custom Firmware by orangepurple on Tuesday July 19, 2022 @09:42AM (#32151281)
What is TeamWin TWRP? What is ODIN?
Re:I Hacked My Car Guides: Creating Custom Firmware by yjftsjthsd-h on Tuesday July 19, 2022 @10:02AM (#32151566)
> What is TeamWin TWRP? What is ODIN?

They're great tools that are available for a tiny fraction of devices, usually only after jumping through hoops, thus failing to invalidate the claim

>> Not even most Android devices have facilitations for that.

(Emphasis mine)

Re:I Hacked My Car Guides: Creating Custom Firmware by jabroni_salad on Tuesday July 19, 2022 @10:18AM (#32151841)
Back when HTC existed you had to fill out a form with the manufacturer for an unlock before you could use anything like that.
Re:I Hacked My Car Guides: Creating Custom Firmware by GOATS- on Tuesday July 19, 2022 @02:08PM (#32155678)
Or wait for tools that could unlock your bootloader. Revolutionary S-OFF anyone?
Re:I Hacked My Car Guides: Creating Custom Firmware by numpad0 on Tuesday July 19, 2022 @02:23PM (#32155884)
If you have to wait 6 months for someone two just suddenly show up and tell you to short TP12 to TP21 within 12 seconds from starting patched leaked tool on your PC, that just don't count on so many levels.
Re:I Hacked My Car Guides: Creating Custom Firmware by GOATS- on Tuesday July 19, 2022 @03:50PM (#32157017)
It wasn't like that for the HTC Desire at least, back in 2011 when I rooted mine I simply ran the Revolutionary utility and it was unlocked.
Re:I Hacked My Car Guides: Creating Custom Firmware by numpad0 on Tuesday July 19, 2022 @07:46PM (#32159469)
And that's not distributed via any of their official channels. That's a hack.

Edit: my intention was there is no official way of doing it, and conveniently forgot to say so in my original comment. That was unfair on my side, sorry.

Re:I Hacked My Car Guides: Creating Custom Firmware by numpad0 on Tuesday July 19, 2022 @02:20PM (#32155854)
"Attachment: [Official][Stock][Leaked]FFR31_b11_r2134_9K432_RedBoot_12.345_20250917.bin.7z (96 MB)" doesn't count.
Re:I Hacked My Car Guides: Creating Custom Firmware by CogitoCogito on Tuesday July 19, 2022 @04:15AM (#32148842)
I feel like I'd actually would value the blog author's car _more_ after the modifications. Well at the moment it would be either neutral or slightly positive (the author has demonstrated what's possible), but if any extra functionality would be added, I'd be a happy camper.
Re:I Hacked My Car Guides: Creating Custom Firmware by fake-name on Tuesday July 19, 2022 @05:22AM (#32149288)
The author's car (where you presumably have some assurance the firmware on the device is what is claimed? Sure.

A random car from a 2nd hand car lot with a mystery custom firmware? Oh hellllllll no.

This only add value if you assume there are no bad actors. I'd bet $100 if this becomes common, 2nd hand car lots will sell access to install creepy tracking firmware on all cars that pass through their hands.

Re:I Hacked My Car Guides: Creating Custom Firmware by CogitoCogito on Tuesday July 19, 2022 @06:12AM (#32149569)
I agree I’d like to made aware of any such changes made by previous owners, but I pretty much consider the makers of the OEM Software as bad actors at this point.
Re:I Hacked My Car Guides: Creating Custom Firmware by Nextgrid on Tuesday July 19, 2022 @06:20AM (#32149623)
> A random car from a 2nd hand car lot with a mystery custom firmware? Oh hellllllll no.

Just like any random car can have a $100 GPS tracker or spy microphone hidden which you won't locate without dismantling the entire car.

If someone wants to spy or be nefarious with a car I can think of many easier & cheaper ways than making custom firmware for the radio.

Re:I Hacked My Car Guides: Creating Custom Firmware by tailspin2019 on Tuesday July 19, 2022 @06:35AM (#32149704)
You often connect your phone to this system though, via cable or Bluetooth, so I can see a pretty simple attack vector here to enable being way more nefarious than just GPS tracking…
Re:I Hacked My Car Guides: Creating Custom Firmware by InsomniacL on Wednesday July 20, 2022 @01:55PM (#32169655)
What's stopping me from uploading custom firmware that:

exfiltrates private information like contacts, SMS,etc..

sends premium rate SMS's/spam contacts

trackers

bitcoin miners

virus

adverts

etc...

Re:I Hacked My Car Guides: Creating Custom Firmware by Cyder on Tuesday July 19, 2022 @08:33AM (#32150585)
Always wanted to do this on my wife's Kia. But the head unit is so slow and the touchscreens die after only a few years so I've got a box of 3 of these bad oems and finally installed an after market unit.
Re:I Hacked My Car Guides: Creating Custom Firmware by blacklion on Tuesday July 19, 2022 @09:15AM (#32150990)
It make car illegal, doesn't it?

I don't speak about vendor's warranty, I'm speaking about road code.

As far as I know, many countries forbids meddling with breaks, lights, engine exhaust system and other systems related to road safety.

I understand, that infotaiment system is not the brakes, but still - many modern car allows to setup ABS and traction control modes via same interface, for example.

Re:I Hacked My Car Guides: Creating Custom Firmware by ocdtrekkie on Tuesday July 19, 2022 @10:49AM (#32152315)
On a lot of cars the infotainment system explicitly doesn't do that because of the security implications. Our 2021 has a lot of non-critical settings in the touchscreen display, and all of the road behavior settings are set on the screen behind the wheel and configured with the arrow keys on the wheel.
Re:I Hacked My Car Guides: Creating Custom Firmware by archi42 on Tuesday July 19, 2022 @10:57AM (#32152430)
Depends on the make. For my 2013 Volvo I can adjust some of the driving assistant configs (e.g. disable blind spot information) and switch the light to left-hand traffic. This won't explode the car, but might be enough control for some malware to cause an accident.
Re:I Hacked My Car Guides: Creating Custom Firmware by NonNefarious on Tuesday July 19, 2022 @01:07PM (#32154780)
What are "car guides?"
Re:I Hacked My Car Guides: Creating Custom Firmware by akeck on Tuesday July 19, 2022 @06:58AM (#32149854)
I've always wondered if a car is still insurable after one loads custom firmware.
Re:I Hacked My Car Guides: Creating Custom Firmware by Nextgrid on Tuesday July 19, 2022 @07:53AM (#32150251)
He's not loading custom firmware on the car - the title is clickbait. In fact, there is no "car" when it comes to firmware - there's not central computer that controls the "car".

There are separate modules that do well-defined tasks and only a few of them would ever be relevant in an insurance/accident scenario (engine/transmission controller, power steering and maybe ABS).

What he's done here is equivalent to installing an aftermarket head unit, something people have been doing for decades. But even editing firmware (or rather the data tables in there - also called "maps") from more "spicy" controllers such as the engine management controller is routinely done by auto tuning shops and in practice the worst that happens is blowing up your engine by pushing it beyond its limits.

Re:I Hacked My Car Guides: Creating Custom Firmware by TedDoesntTalk on Tuesday July 19, 2022 @10:13AM (#32151755)
After-market head units don’t seem to have access to the same data as this factory-installed one. Can after market head units read gas tank levels, battery voltage, door lock statuses (and lock/unlock doors with commands), probably interface with the climate control system, too.
Re:I Hacked My Car Guides: Creating Custom Firmware by 95014_refugee on Tuesday July 19, 2022 @12:58PM (#32154644)
The challenge with doing this with an aftermarket headunit is that you need to cover a meaningful number of different vehicles in order for the feature to be useful to your customer base.

With that said, yes, if you happen to have a suitably common vehicle (e.g. Ford F150).

Re:I Hacked My Car Guides: Creating Custom Firmware by Nextgrid on Tuesday July 19, 2022 @04:16PM (#32157359)
Nothing prevents them from having access - it’s just a matter of reverse-engineering the messages transiting on the various CAN buses the radio has access to.

Zenec for example makes units that are able to display & control HVAC and parking radar on VAG Group (Volkswagen/Audi/Seat/Skoda) vehicles, pulling the data from the CAN bus.

In the authors case he’s reusing existing manufacturer-provided libraries that handle CAN message parsing but there’s no reason you couldn’t do it from scratch with enough effort.

Re:I Hacked My Car Guides: Creating Custom Firmware by silon42 on Tuesday July 19, 2022 @07:38AM (#32150147)
yes... but insurance might be void when you have an accident, if this is discovered (I'd hope it will only matter if there is an electronic problem impacting the accident).
Re:I Hacked My Car Guides: Creating Custom Firmware by johannes1234321 on Tuesday July 19, 2022 @07:45AM (#32150195)
This means you have a (void) insurance contract, but the car isn't insured.