Author Topic: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope  (Read 317050 times)

0 Members and 13 Guests are viewing this topic.

Offline mrpackethead

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #200 on: November 17, 2018, 08:28:43 am »
Of course that assumes they really want to secure it, which I think they probably do.

Anything above the DS1054Z already requires you to open it up and use a JTAG programmer to hack it. Only the base models are hackable with a simple keygen.

That's enough of an impediment to prevent the majority of people from doing it even if the instructions are widely available.

So what is required to have a go to hack it.

I'm thinking a JTAG interface compatible with the CPU it uses so you can dump the flash chip. From there the OS can be analyzed.

From what i read in the bootloader, it seems its running on a Zync SOC, with the Xilinx variant of linux.    If i had that hardware, id use the secure bootloader, so reading the flash won't be particulally helpful as it woudl be AES256 encrypted.     

Did dave do a tear down? would be interesting to know whats actually inside it.

On a quest to find increasingly complicated ways to blink things
 

Offline TheSteve

  • Supporter
  • ****
  • Posts: 3781
  • Country: ca
  • Living the Dream
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #201 on: November 17, 2018, 06:47:16 pm »
Well you won't know until you try it.
VE7FM
 

Offline ResistorRob

  • Regular Contributor
  • *
  • Posts: 115
  • Country: us
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #202 on: November 17, 2018, 08:33:50 pm »
I have a dumb question. Does this do Bode Plots like the Siglent 1104X-e?
For my 10th Birthday I got a Fisher Price oscilloscope!
 

Offline mrpackethead

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #203 on: November 17, 2018, 09:19:43 pm »
 That is true.

I'm heading to the US soon, i might pick one up while i'm thiere, because they are much much cheaper in the USA, than downunder.
On a quest to find increasingly complicated ways to blink things
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17247
  • Country: 00
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #204 on: November 18, 2018, 10:19:50 am »
So what is required to have a go to hack it.

The first thing you need is two 'scopes with different options.

One to figure out the exact chips on the board and the available test/JTAG points, the other to figure out what's different between the two.
 

Offline 0xdeadbeef

  • Super Contributor
  • ***
  • Posts: 1580
  • Country: de
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #205 on: November 18, 2018, 11:03:57 am »
I'm puzzled that the common opinion here seems to be that the mere existence of a JTAG port means that you can read out the flash. Even back in early Atmel 8bit microcontrollers 20 years ago, there were mechanisms to prohibit reading of flash ("fuses"). Every microcontroller nowadays should have means to disable JTAG in production and/or disable read access to RAM and flash through JTAG. If Rigol didn't prohibit reading out the flash in the past, you can choose if this was due to incompetence or a "don't care" policy. Anyway, either can change.

After prohibiting reading out the flash, the next logical step is encrypting firmware images. Sothe bootblock decrypts the image while reading. And since you can't read out the bootblock, you can't access the key for decoding. When an RSA/AES encryption with sufficient key length is used, this approach is pretty much bullet proof.

The only hope then would be to find a weakness in the specific microcontroller to circumvent the flash read protection. The "chip tuning" industry managed to find such flaws in several automotive processors, but obviously this is nothing you can rely on.
Trying is the first step towards failure - Homer J. Simpson
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14022
  • Country: gb
    • Mike's Electric Stuff
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #206 on: November 18, 2018, 11:24:43 am »
I'm puzzled that the common opinion here seems to be that the mere existence of a JTAG port means that you can read out the flash. Even back in early Atmel 8bit microcontrollers 20 years ago, there were mechanisms to prohibit reading of flash ("fuses"). Every microcontroller nowadays should have means to disable JTAG in production and/or disable read access to RAM and flash through JTAG. If Rigol didn't prohibit reading out the flash in the past, you can choose if this was due to incompetence or a "don't care" policy. Anyway, either can change.

After prohibiting reading out the flash, the next logical step is encrypting firmware images. Sothe bootblock decrypts the image while reading. And since you can't read out the bootblock, you can't access the key for decoding. When an RSA/AES encryption with sufficient key length is used, this approach is pretty much bullet proof.

The only hope then would be to find a weakness in the specific microcontroller to circumvent the flash read protection. The "chip tuning" industry managed to find such flaws in several automotive processors, but obviously this is nothing you can rely on.
We're not talking about flash on an MCU here, but a seperate flash chip, which may be accessable using boundary scan port on the device connected to it.
If the flash is connected to an FPGA, you could load a bitstream into the FPGA to read the flash and spit it out serially
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28113
  • Country: nl
    • NCT Developments
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #207 on: November 18, 2018, 11:26:06 am »
After prohibiting reading out the flash, the next logical step is encrypting firmware images. Sothe bootblock decrypts the image while reading. And since you can't read out the bootblock, you can't access the key for decoding. When an RSA/AES encryption with sufficient key length is used, this approach is pretty much bullet proof.
I'm wondering if Rigol is allowed to use AES encryption on the firmware. There might be export restrictions. I'm pretty sure the NSA and similar security agencies will want to examine the firmware for any hidden forms of cyber attack.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17247
  • Country: 00
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #208 on: November 18, 2018, 11:57:52 am »
I'm puzzled that the common opinion here seems to be that the mere existence of a JTAG port means that you can read out the flash. Even back in early Atmel 8bit microcontrollers 20 years ago, there were mechanisms to prohibit reading of flash ("fuses"). Every microcontroller nowadays should have means to disable JTAG in production and/or disable read access to RAM and flash through JTAG. If Rigol didn't prohibit reading out the flash in the past, you can choose if this was due to incompetence or a "don't care" policy. Anyway, either can change.

Sure, but this isn't a fixed-function microcontroller that gets programmed once at the factory.

These devices are firmware upgradable. The chips used on them work by reading their code from an external flash memory chip at power-on and they need a way to rewrite the contents of those chips during upgrades/patches.

The chips aren't potted so the worst case is that you have to solder little wires onto the chip and sniff the data when it boots (it's usually a serial bus, eg. SPI).
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17247
  • Country: 00
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #209 on: November 18, 2018, 12:01:16 pm »
I'm wondering if Rigol is allowed to use AES encryption on the firmware. There might be export restrictions. I'm pretty sure the NSA and similar security agencies will want to examine the firmware for any hidden forms of cyber attack.

I'm sure it would be easier to sniff the Ethernet/USB bus for malicious traffic than try to reverse engineer the firmware.

(Ethernet/USB is the only way an oscilloscope could really "attack" anything)
 

Offline 0xdeadbeef

  • Super Contributor
  • ***
  • Posts: 1580
  • Country: de
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #210 on: November 18, 2018, 12:06:17 pm »
We're not talking about flash on an MCU here, but a seperate flash chip, which may be accessable using boundary scan port on the device connected to it.
If the flash is connected to an FPGA, you could load a bitstream into the FPGA to read the flash and spit it out serially
Ah, OK, in my field of work (automotive/engine control), external flash hasn't been used since ages. So i must admit didn't think of this approach. Still, I would think in the 21st century someone came up with an approach to prevent an attack on the flash, specifically if the device is Linux based and the flash contains a file system. Like you could use an encrypted file system and store the decryption key in protected microcontroller flash or whatever.
Trying is the first step towards failure - Homer J. Simpson
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17247
  • Country: 00
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #211 on: November 18, 2018, 12:44:45 pm »
Like you could use an encrypted file system and store the decryption key in protected microcontroller flash or whatever.

Sure, they could do all that (and more besides)

But it's weird that they didn't put the same level of protection in the DS1000Z as in the DS1000Z 'Plus' models.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28113
  • Country: nl
    • NCT Developments
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #212 on: November 18, 2018, 12:45:06 pm »
I'm wondering if Rigol is allowed to use AES encryption on the firmware. There might be export restrictions. I'm pretty sure the NSA and similar security agencies will want to examine the firmware for any hidden forms of cyber attack.
I'm sure it would be easier to sniff the Ethernet/USB bus for malicious traffic than try to reverse engineer the firmware.
No. Inspecting the firmware is the only way because there might be specific triggers involved. Think about the scope examining a USB stick and network traffic first to look for company names. A crapload of information is broadcasted on networks so there is no need to send anything in order to collect initial data.
« Last Edit: November 18, 2018, 01:08:19 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17247
  • Country: 00
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #213 on: November 18, 2018, 01:27:15 pm »
No. Inspecting the firmware is the only way because there might be specific triggers involved. Think about the scope examining a USB stick and network traffic first to look for company names. A crapload of information is broadcasted on networks so there is no need to send anything in order to collect initial data.

The NSA has no way to broadcast some "typical" traffic at an oscilloscope? :popcorn:

And, (b) If you were a boss at Rigol, would you risk being caught doing something like that? It would be the end of the company.

I think the only way an attack of this sort would be attempted would be on a specific shipment that was destined for a particular company. Keep as low a profile as possible. In that case examining the "public" firmware wouldn't do you any good.

And, (c) If I were going to do something this risky I'd do it in hardware, not software. Examining the firmware wouldn't give any clues.
« Last Edit: November 18, 2018, 01:31:16 pm by Fungus »
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28113
  • Country: nl
    • NCT Developments
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #214 on: November 18, 2018, 02:43:52 pm »
No. Inspecting the firmware is the only way because there might be specific triggers involved. Think about the scope examining a USB stick and network traffic first to look for company names. A crapload of information is broadcasted on networks so there is no need to send anything in order to collect initial data.
The NSA has no way to broadcast some "typical" traffic at an oscilloscope? :popcorn:

And, (b) If you were a boss at Rigol, would you risk being caught doing something like that? It would be the end of the company.
Doing a firmware analysis is infinitely easier than stabbing around in the blind trying to hit something. And if you are worried about b): Huawei and ZTE still exist.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Online Martin72

  • Super Contributor
  • ***
  • Posts: 6873
  • Country: de
  • Testfield Technician
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #215 on: November 18, 2018, 06:22:53 pm »
Hi there,

Batronix (Germany) sells the MSO5074 for 1069€, a Options Bundle (excluding Bandwith) for 713€ - With a look on the technical data of this newbie, appx 1800€ seems not too expensive.
Compare it with my former favorite, RTB2004, it´s a little bit more than half the price of it (2200€ for 70Mhz plus optionbundle).
Therefore I think I will give the new Rigol a try....or should I wait....
Actual, Batronix offer the 1000Z Models with all Options including, maybe this will happen too for the MSO5000, but when...
I did a request for it by Batronix, also I ask them for the missing HiRes Mode, if there is a Firmware Update in Progress.
First answer, they will ask Rigol…

Martin
"Comparison is the end of happiness and the beginning of dissatisfaction."(Kierkegaard)
Siglent SDS800X HD Deep Review
 

Offline simone.pignatti

  • Frequent Contributor
  • **
  • Posts: 384
  • Country: it
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #216 on: November 18, 2018, 06:47:56 pm »
is anybody interested on the logic channels (adding the logic probe)?
Technical Support
 

Offline 0xdeadbeef

  • Super Contributor
  • ***
  • Posts: 1580
  • Country: de
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #217 on: November 18, 2018, 07:01:03 pm »
I'd wait at least until there's either a free options bundle or it's clear whether there will be a hack. Since 70MHz bandwidth is a bit of a joke and the prizes for the frequency upgrades are crazy.
Besides, given that all other Rigol scopes including the DS7000 currently get all the decoders for free, the MSO5000 line seems less attractive.
E.g. currently the price difference between an MSO5014 with options bundle and a DS7014 with (free) options bundle is less than 600€.

Anyway, while the 8GS/s sample rate is really tempting, I guess you'll be happier with the RTB in the long run. Rigol has a bad history regarding firmware updates etc. and the magnified low voltage scales make it even worse compared to the 10bit sampling of the RTB. I personally hate that both, DS5000 and RTB2000 don't have a probe detection/supply. I mean I could live without probe supply, but a scope without probe detection feels like going back to the middle ages.

Batronix (Germany) sells the MSO5074 for 1069€, a Options Bundle (excluding Bandwith) for 713€ - With a look on the technical data of this newbie, appx 1800€ seems not too expensive.
Compare it with my former favorite, RTB2004, it´s a little bit more than half the price of it (2200€ for 70Mhz plus optionbundle).
Therefore I think I will give the new Rigol a try....or should I wait....
Trying is the first step towards failure - Homer J. Simpson
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17247
  • Country: 00
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #218 on: November 18, 2018, 07:11:42 pm »
Anyway, while the 8GS/s sample rate is really tempting, I guess you'll be happier with the RTB in the long run. Rigol has a bad history regarding firmware updates etc. and the magnified low voltage scales make it even worse compared to the 10bit sampling of the RTB. I personally hate that both, DS5000 and RTB2000 don't have a probe detection/supply. I mean I could live without probe supply, but a scope without probe detection feels like going back to the middle ages.

The lack of probe detection is one of the reasons I think this 'scope might not be too hard to hack, ie. in a professional environment the missing features mean a hacked DS5000 still won't compete with other mid-range Rigol scopes.

It would kill their DS2000 range, yes, but maybe Siglent/Keysight already did that and this is Rigol's Siglent/Keysight killer.

« Last Edit: November 18, 2018, 07:18:16 pm by Fungus »
 

Online Martin72

  • Super Contributor
  • ***
  • Posts: 6873
  • Country: de
  • Testfield Technician
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #219 on: November 18, 2018, 07:36:29 pm »
In our testfield, most of the scopes are from Lecroy with the ability of Auto-Detection.
If I use a suitable probe, it´s a nice feature - Otherwise I´ll set the gain manually, it takes a few seconds more to do that.
Or are there another benefits I don´t know them until now ?
It seems, it´s very important to have this.

@0xdeadbeef :

The RTB is my favorite, but for private actions it´s too expensive ( for me).

Martin

Edit:

Quote
is anybody interested on the logic channels (adding the logic probe)?


I won´t use them even it would be included.
« Last Edit: November 18, 2018, 07:54:35 pm by Martin72 »
"Comparison is the end of happiness and the beginning of dissatisfaction."(Kierkegaard)
Siglent SDS800X HD Deep Review
 

Online Martin72

  • Super Contributor
  • ***
  • Posts: 6873
  • Country: de
  • Testfield Technician
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #220 on: November 18, 2018, 09:01:02 pm »
E.g. currently the price difference between an MSO5014 with options bundle and a DS7014 with (free) options bundle is less than 600€.

Oh, haven´t seen this offer (DSO 7000 with all options for free), did a reply to Batronix a few minutes before with a mark to this - With all options included the price would be hot for the 5000 series.
70Mhz BW I don´t care about it, more important would be the fix of an missing Hi-Res Mode.
Even my Siglent Scope have an enhanced resolution mode, Rigol have to fix it for the 5000/7000 series.
What I like on our LeCroy scopes are the displaying of PWM Signals "slow" and the free choosable measuring gate - I´m curious about it, if the Rigol have this too.



« Last Edit: November 18, 2018, 09:45:06 pm by Martin72 »
"Comparison is the end of happiness and the beginning of dissatisfaction."(Kierkegaard)
Siglent SDS800X HD Deep Review
 

Offline mrpackethead

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #221 on: November 18, 2018, 10:55:14 pm »
After prohibiting reading out the flash, the next logical step is encrypting firmware images. Sothe bootblock decrypts the image while reading. And since you can't read out the bootblock, you can't access the key for decoding. When an RSA/AES encryption with sufficient key length is used, this approach is pretty much bullet proof.
I'm wondering if Rigol is allowed to use AES encryption on the firmware. There might be export restrictions. I'm pretty sure the NSA and similar security agencies will want to examine the firmware for any hidden forms of cyber attack.


AES encryption is a publiclly available algorithm, so, not sure how export restrictions stop anything.   The Xilinx chipset that is running the CPU is made in Taiwan.    The NSA last time i looked did'nt have much power in taiwan.
On a quest to find increasingly complicated ways to blink things
 

Offline mrpackethead

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #222 on: November 18, 2018, 11:01:25 pm »
We're not talking about flash on an MCU here, but a seperate flash chip, which may be accessable using boundary scan port on the device connected to it.
If the flash is connected to an FPGA, you could load a bitstream into the FPGA to read the flash and spit it out serially
Ah, OK, in my field of work (automotive/engine control), external flash hasn't been used since ages. So i must admit didn't think of this approach. Still, I would think in the 21st century someone came up with an approach to prevent an attack on the flash, specifically if the device is Linux based and the flash contains a file system. Like you could use an encrypted file system and store the decryption key in protected microcontroller flash or whatever.

If they have encrypted the data on the flash. ( which is stock standard for how you protect your IP ), then being able to read it,  wont' help you.  You would need the private keys to decode it.   if they are using eFUSEs then they probably have blown the fuse so you cna't read the eFUSE registers either.
On a quest to find increasingly complicated ways to blink things
 

Offline 0xdeadbeef

  • Super Contributor
  • ***
  • Posts: 1580
  • Country: de
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #223 on: November 18, 2018, 11:09:15 pm »
Hm, why would you think that I didn't get what encryption is for? Actually you seem to repeat more or less what I wrote. Sometimes you wonder...

Still, I would think in the 21st century someone came up with an approach to prevent an attack on the flash, specifically if the device is Linux based and the flash contains a file system. Like you could use an encrypted file system and store the decryption key in protected microcontroller flash or whatever.

If they have encrypted the data on the flash. ( which is stock standard for how you protect your IP ), then being able to read it,  wont' help you.  You would need the private keys to decode it.   if they are using eFUSEs then they probably have blown the fuse so you cna't read the eFUSE registers either.
Trying is the first step towards failure - Homer J. Simpson
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17247
  • Country: 00
Re: EEVblog #1146 - New Low Cost Rigol MSO5000 Oscilloscope
« Reply #224 on: November 19, 2018, 12:05:00 am »
If they have encrypted the data on the flash. ( which is stock standard for how you protect your IP ), then being able to read it,  wont' help you.  You would need the private keys to decode it. 

I find no flaws in that logic, but...  is it the case?

« Last Edit: November 19, 2018, 12:22:50 am by Fungus »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf