Pages: [1]
Author Topic: ME7.5 8N0906018BP 054-474 after applied LCNLS script, always RSA error  (Read 7888 times)
Khendal
Full Member
***

Karma: +9/-8
Offline Offline

Posts: 226



Hello guys, i'm stuck in this problem... i've got death code already 2 times  Roll Eyes .

I've tried to change also the NLS counter to other address ... from 0x384FF0 to 0x383000 and last one 0x383000 ...always RSA signature failed.

Any solution?

What does ECU FIX do in this case? What checksum it will correct?
How is it possible to disable the RSA check?

Ori file is attach if anyone wanna try  Wink
Logged
Kacza
Full Member
***

Karma: +20/-7
Offline Offline

Posts: 216




You want help is to post the file you modify.
Logged
Khendal
Full Member
***

Karma: +9/-8
Offline Offline

Posts: 226



These are mod file with different NLS counter position...
Logged
nyet
Administrator
Hero Member
*****

Karma: +608/-168
Online Online

Posts: 12271


WWW

These are mod file with different NLS counter position...


none of those are checksummed at all. wtf?
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Khendal
Full Member
***

Karma: +9/-8
Offline Offline

Posts: 226



none of those are checksummed at all. wtf?

Indeed, if i use ME7Check each file say RSA signature failed...

I have tried to checksum the standard address and then tried to flash... got the death code and car didn't start.

So now i don't know which one is secure to flash... Sad
Logged
nyet
Administrator
Hero Member
*****

Karma: +608/-168
Online Online

Posts: 12271


WWW

So why aren't you using ME7Sum to fix the checksums?

I have no idea WTF you are trying to do. Why would a file that you modified but did not fix the checksums for work?

Are you saying this ENTIRE time you never bothered to checksum any of your files?
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Khendal
Full Member
***

Karma: +9/-8
Offline Offline

Posts: 226



First... drink a cup of tea and keep calm !!!  Wink

Then... what did you not understand?

There are a plenty of topics where everyone of you veterans were noob and asked stupid things... so...let us noob also ask stupid things and try to understand things that you now think are stupid.

I repeat.

In this ECU number, i've tried to add LC and NLS with script... i've done check and summ flashed file... for 2 times i got DEATH CODE for this RSA signature problem
From what i read here, the problem should be the NLS counter, and the checksum with rsa problem.

Now:
i post 3-4 file modded with different NLS counter position... with RSA problem in ME7Check ... i've also try to do a tuned file with this ecu number and it say always RSA problem...so at the end...i think this ecu is strange but:

1) i don't know if nls counter-rsa problem need to be resolved before checksum or after checksum (this is why 4 files without CK)
2) i don't know how to disable rsa
3) i want add LC and NLS to this stupid file (i have done already other without problems)
4) we are here to learn not to be judged or offended or treated badly.
5) long ago ... you were like us noob.
« Last Edit: June 20, 2018, 01:52:49 AM by Khendal » Logged
nyet
Administrator
Hero Member
*****

Karma: +608/-168
Online Online

Posts: 12271


WWW

Did you try this?
http://nefariousmotorsports.com/forum/index.php?topic=7794.msg71819#msg71819
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
woj
Hero Member
*****

Karma: +43/-3
Offline Offline

Posts: 500



Curiosity question, I never had to deal with crypto signatures on the ECU, looked at your ME checksum program now a bit (really just a bit). Is this RSA signature thing really like this - you generate a private / public key pair, sign the MD5 hash of the flash with private key, store the signature and public key in the bin, and the ECU checks the signature against this public key? I mean, no proper certificate (chains)?
Logged
nyet
Administrator
Hero Member
*****

Karma: +608/-168
Online Online

Posts: 12271


WWW

I mean, no proper certificate (chains)?

Good point! As far as I can tell, there is no other cert anywhere the ECU can get to, so self-signed certs should work.

But who knows, maybe there is another key floating around somewhere that is checked.

Somebody would have to disassemble the RSA checking code to see if there is a cert chain or another key that is checked to make sure it is signed with an authorized key.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
woj
Hero Member
*****

Karma: +43/-3
Offline Offline

Posts: 500



Every factory bin with the same software has the same signature / key? Or is there some serial number / VIN based diversification?

In any case, it seems / sounds to me like really poor attempt to have some crypto protection as a selling point that was not really well thought through. The way I saw it without going deep - totally pointless. Sadly, this happens in more serious applications, see this one for example: https://www.wired.com/story/us-border-patrol-hasnt-validated-e-passport-data-for-years/
Logged
prj
Hero Member
*****

Karma: +1072/-485
Offline Offline

Posts: 6041



Where the security falls apart is because you can write the area that contains the key, so it's useless.
On ME7 you can write every single sector of the flash. And bootmode is unprotected.

In newer ECU's some or all of these cases are no longer the case.
As for given topic at hand, the NLS counter is put into a place in memory which is used for RSA calculation, thus the RSA calculation fails.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
nyet
Administrator
Hero Member
*****

Karma: +608/-168
Online Online

Posts: 12271


WWW


As for given topic at hand, the NLS counter is put into a place in memory which is used for RSA calculation, thus the RSA calculation fails.

Is there an algorithmic way to figure out what area is unused? I'm assuming (from what I can tell) that the NLS counter is put someplace arbitrary in the heap, so a large malloc(?) may collide with it.

Is there an known unused area or two in the RSS?
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
woj
Hero Member
*****

Karma: +43/-3
Offline Offline

Posts: 500



Where the security falls apart is because you can write the area that contains the key, so it's useless.

Useless when we talk about internal ECU use for what essentially is just another integrity check in this case, pointless as it may be having all the other things in place.

If, however, this was introduced for legal reasons to off-line check / prove tampering with the ECU code, where the scenario is that the software producer has the database of private keys matched to VIN (ranges), then it is not entirely useless. In fact, I cannot imagine any other application for these signatures other than something like this. But at the same time - yeah, right...
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.021 seconds with 16 queries. (Pretty URLs adds 0s, 0q)