Slashdot Mirror


Researcher Has New Attack For Embedded Devices

tinkertim writes "Computerworld is reporting that a researcher at Juniper has discovered an interesting vulnerability that can be used to compromise ARM and Xscale based electronic devices such as many popular routers and mobile phones. According to the article, the vulnerability would allow hackers to execute code and compromise personal information or re-direct internet traffic at the router level. Juniper plans to demonstrate not only the researcher's discovery, but also how he managed to use a common JTAG developed Boundary Scan to discover the vulnerability at this month's CanSecWest conference in hopes of shifting more of the black hat community to looking at devices instead of software."

86 comments

  1. all you're ARMs by Anonymous Coward · · Score: 0

    Are belong to us?

    1. Re:all you're ARMs by Anonymous Coward · · Score: 0

      Damn straight.

  2. Researcher Has New Attack For DOS by obarel · · Score: 2, Informative

    You can use a debugger to actually see where the code checks for the registration key, and by manipulating the program in a hex editor, you could even make the code skip over the check and run without the key.

    I've just had the greatest idea for my PhD.

    1. Re:Researcher Has New Attack For DOS by pytheron · · Score: 2, Interesting

      Hardly new ! We were doing this way back in the warez scene on the Amiga. Whip out your favorite dissasembler, change a few bne.w instructions to jump to the "it's authenticated!" code. Myself and a colleague even did this on the Palm Pilot. (Anyone remember that monkey that you fed crack pipes to on this ?)

      --
      "I am not bound to please thee with my answers" [William Shakespeare]
    2. Re:Researcher Has New Attack For DOS by HomelessInLaJolla · · Score: 1

      It was called AREXX.

      --
      the NPG electrode was replaced with carbon blac
    3. Re:Researcher Has New Attack For DOS by pytheron · · Score: 1

      hmm.. no. Either devpac or argasm. And I meant the name of the monkey ! (On a side note, the action replay box was fantastic for reverse engineering).

      --
      "I am not bound to please thee with my answers" [William Shakespeare]
    4. Re:Researcher Has New Attack For DOS by obarel · · Score: 1

      The ZX Spectrum had a wonderful piece of hardware called the SpecMate. With a click of a button it would dump the memory image (after the magic "code" had been entered), and then all you do is load the image and you have the game exactly where you left it. This practically breaks any "security" scheme, because it skips the entire loading process.

      I wonder why they don't do the same for modern operating systems - basically storing the entire "context" (memory pages, registers, etc.) and loading it later, maybe on a different machine, to bring you to the exact same point you saved it.

    5. Re:Researcher Has New Attack For DOS by HomelessInLaJolla · · Score: 1

      Are you trying to say the Amiga didn't have AREXX?

      --
      the NPG electrode was replaced with carbon blac
    6. Re:Researcher Has New Attack For DOS by pytheron · · Score: 1

      'course it had AREXX. Just that you wouldn't use it for dissasembling an executable and setting breakpoints etc.

      --
      "I am not bound to please thee with my answers" [William Shakespeare]
    7. Re:Researcher Has New Attack For DOS by Anonymous Coward · · Score: 1

      They do. It's called "hibernate" or "software suspend". That is, except for the different machine part.

    8. Re:Researcher Has New Attack For DOS by walt-sjc · · Score: 1

      And the reason why is because REXX is a scripting language, like Python or Perl. Bill Hawes did a great version of REXX for the Amiga. I scripted a lot of things in it!

    9. Re:Researcher Has New Attack For DOS by jgrahn · · Score: 1

      And the reason why is because REXX is a scripting language, like Python or Perl. Bill Hawes did a great version of REXX for the Amiga. I scripted a lot of things in it!

      Yeah, but unlike Perl and Python, AREXX sucked, from a programming language point of view. It worked as a scripting glue, but I wouldn't want to write a substantial program in that language.

    10. Re:Researcher Has New Attack For DOS by Anonymous Coward · · Score: 1, Insightful

      yah, thats called vmware.

    11. Re:Researcher Has New Attack For DOS by walt-sjc · · Score: 1

      True true, it did suck as a programming language... Perl and AREXX were first developed about the same time, python a little later, and neither perl nor python were available for the Amiga until much later. What set AREXX apart was the IPC mechanism - applications had hooks for it. It allowed separate applications to work together as one. That is something that is still missing for the most part on *nix and Windows (or is a HECK of a lot more complicated.) It made everything scriptable, and allowed everything to talk with each other.

    12. Re:Researcher Has New Attack For DOS by HomelessInLaJolla · · Score: 1

      I've heard of a C compiler written in BASH. The capacity of a programming language to suck depends significantly on the intended application. AREXX would probably work quite well to write a Linuxfromscratch, Amigafromscratch, or AROSfromscratch installer.

      Amiga's mascots have alwasy been sooooooooooo s3xy. =D

      --
      the NPG electrode was replaced with carbon blac
  3. Is the article suggesting by jhfry · · Score: 1

    that Juniper wants the BLACK HAT hackers focusing on their hardware?

    To me that seems bass ackwards. Something seems fishy about the post, perhaps they want White HAT hackers, or maybe they are afraid of the interest of Black Hats but... surely they aren't excited to have people finding holes in their devices and not reporting them?

    --
    Sometimes the best solution is to stop wasting time looking for an easy solution.
    1. Re:Is the article suggesting by ePhil_One · · Score: 2, Insightful
      that Juniper wants the BLACK HAT hackers focusing on their hardware?

      Not on their hardware, but hardware in general. Show folks that those Linksys firewalls aren't as good as the Netscreen product which cost 5x to 100x more. I'm sure they are unreasonably confident in the security of their own product.

      --
      You are in a maze of twisted little posts, all alike.
    2. Re:Is the article suggesting by wytcld · · Score: 1

      On the one hand we have home users behind Linksys firewall/routers. On the other hand we have business users who have better primary firewall hardware (at the cheaper end at least a Linux iptables box) but who have some of the stuff from Linksys and its competitors sitting behind that running wireless in their offices. So is this exploit going to be something that only threatens the former, or is it something that you could embed in a Webpage such that your office user, in pulling it across the Linksys-type wireless access point, compromises the WAP - maybe adding some custom routing rules? The latter would be pretty damn scarey.

      --
      "with their freedom lost all virtue lose" - Milton
    3. Re:Is the article suggesting by Curtman · · Score: 1

      On the one hand we have home users behind Linksys firewall/routers. On the other hand we have business users who have better primary firewall hardware (at the cheaper end at least a Linux iptables box) but who have some of the stuff from Linksys and its competitors sitting behind that running wireless in their offices.

      And then there's us poor schmuck's who bought something like this, and just want to be able to run whatever code we want on it. These folks have done a lot of hacking on the Archos devices, but sadly the current exploits don't seem to work on my AV700.

      Hopefully this will make it easier for me to do what I want with the hardware I paid good money for.
  4. Via JTAG? by Anonymous Coward · · Score: 5, Interesting

    Is this implying that it could be done remotely? The product I work on supports JTAG access via software, but if you can do that, you already own the box. (And have our internal hardware specifications.)

    If it's not remote, then what's the point? I though it was already well-established that if you have physical access to the device you can do anything you want.

    1. Re:Via JTAG? by microbee · · Score: 2, Interesting

      I believe it requires physical access, so it's like "hacking own box". However, vendors typically do not grant full access (read: shell) to customers so very experienced customers (or competitors) could now use this method to get into the black box and find out more internal details.

    2. Re:Via JTAG? by yorgasor · · Score: 4, Insightful

      No, he used JTAG to discover the vulnerability. He will disclose how to take advantage of the vulnerability at the conference. He's just letting other people know they can peek into hardware using the JTAG interface as well.

      --
      Looking for a computer support specialist for your small business? Check out
    3. Re:Via JTAG? by wellingj · · Score: 0, Offtopic

      Nothing to see here folks, move along....

    4. Re:Via JTAG? by Bearhouse · · Score: 1

      Yes...and no. Saying that people should *never* get access to your hardware is not an excuse for not making it as secure as possible. Why design a secure keyboard interface? No point, right? Until you find a hardware keylogger plugged into your keyboard port - probably placed by a 'trusted' co-worker or boss.

    5. Re:Via JTAG? by Rei · · Score: 1

      I'm sure we'll get a remote exploit one of these days. I'm particularly interested in the possibility of RF-induced currents to manipulate registers, busses, caches, etc. One one side of the spectrum, you have your HERF-style weapons, which just put out high power noise to induce currents in systems. The currents are effectively random and tend to just crash machines. However, if you could have reliable, predictable, specific induced currents -- say, taking advantage of the length of particular wires and the angles that they're at relative to you, or the like -- you could make the currents induced in them be much stronger than in their neighbors, and potentially do specific manipulations of the processing stream. What do others think of this concept, in theory?

      --
      Let me check my notes...
    6. Re:Via JTAG? by QuasiEvil · · Score: 2, Insightful

      Difficult at best, impossible in 99.999% of cases. For the most part, in modern high speed digital design, all of the bus path lengths are close to the same for reasons of propagation delay. Also, you don't really want to induce current flow, you want to induce a DC voltage at exactly the right moment. As you'll remember, one of the components of induction is frequency, and you'd need to synchronize your induced peaks with exactly when the device was sampling.

      I'm not saying it's impossible, but it would be a herculean effort to even provide the most basic of anomalies reliably. Plus, well, most of your massive effort could be defeated by the $4 metal case. :)

    7. Re:Via JTAG? by tinkertim · · Score: 1

      Is this implying that it could be done remotely? The product I work on supports JTAG access via software, but if you can do that, you already own the box. (And have our internal hardware specifications.)

      If it's not remote, then what's the point? I though it was already well-established that if you have physical access to the device you can do anything you want.


      The researcher discovered a vulnerability via JTAG, however a Boundary Scan is obviously not needed to use the exploit remotely. A Boundary Scan is what lead to the discovery, but now that its discovered, anyone can do it from anywhere, from what I gathered from TFA.

      If it hadn't been Juniper doing it, I probably would not have submitted TFA because it is a little incoherent and inconsistent.

      My worry is that this exploit becomes a mega dose of Tetra (or, Phish Food), I would hope (and am confident that) this has already been reported , released and patched before being publicised , else Juniper would become food for Visa and Mastercard due to an irresponsible disclosure.

      I think their point is simple. Hardware can have bugs like software, we should be looking at hardware too and not just assume that things like this don't exist. I'm sure there is some commercial benefit for Juniper in all of this, but the intent of the researcher seems to be good natured.

      Take it with a grain of salt. Was interesting enough to warrant sharing :)
    8. Re:Via JTAG? by Rei · · Score: 1

      What makes me think that it's workable is that you can tempest a CPU. Different ops give off different RF, which is detectable even outside the case with good enough equipment. While proper design tends to try and keep bus path lengths the same, the same can't be said about path geometry.

      --
      Let me check my notes...
  5. Long on hype, short on details by russotto · · Score: 2, Insightful

    If the attack involves popping open the router and attaching wires to the JTAG port, I'm not going to worry about it.

    1. Re:Long on hype, short on details by jhfry · · Score: 3, Informative

      I think what it's actually saying is that, by using the jtag to better understand the configuration of the machine, new exploits can be found.

      So it's not exactly an exploit, but a way to discover exploits by targeting issues with the embedded processors as discovered via jtag access to a similar unit.

      --
      Sometimes the best solution is to stop wasting time looking for an easy solution.
    2. Re:Long on hype, short on details by ThisNukes4u · · Score: 1

      TFA is very short on details though, so I guess we'll have to wait 'till Blackhat to find out for certain.

      --
      thisnukes4u.net
    3. Re:Long on hype, short on details by mr_mischief · · Score: 2, Informative

      My original understanding from the quotes was that the guy actually found a possible exploit vector by using JTAG. (I tend to read just the quotes first in articles which are interviews on technical topics -- it's often easier to get a sense of what the subject of the interview is talking about without misinterpretations by reporters.)

      TFA talks about using JTAG itself to run exploits, which I don't care about since physical security is the first layer of any security plan. If someone has better physical access to a router than I do then from a security standpoint it's their router, not mine, no matter who paid for it. At that point, the route is already suspect.

      If it's something about sending malformed network traffic that triggers something to happen at the processor level even if the firmware is solid, then that's an expensive thing to fix.

    4. Re:Long on hype, short on details by HomelessInLaJolla · · Score: 5, Informative

      Jack used JTAG to discover exploits in the hardware. The exploit can, most probably, be taken advantage of from the WAN side using malformed packets and raw payloads.

      The proper trained eye looking at the circuit schematics would have been able to identify the same things--and probably have. The engineers who see the exploits usually take them home and play core wars with their friends. It's the same concept as reverse engineering closed source drivers. The original engineers wrote the closed source implementation and now Jack (at Juniper) is reverse engineering it and finding some interesting twists along the way.

      What do you call a zero day exploit before it's released to the general public and called a zero day exploit? Whatever it's called it has existed since before common home routers have been available at major consumer outlets. It's impossible to think that nobody ever took advantage of it until now.

      --
      the NPG electrode was replaced with carbon blac
    5. Re:Long on hype, short on details by jhfry · · Score: 5, Informative
      The article clearly says that he discovered the exploits while tinkering with JTAG.

      He said he came up with the technique after spending several months cracking open and soldering test equipment onto a range of embedded devices. By taking advantage of ... JTAG (Joint Test Action Group) Jack was able to sneak a peek at the systems' processors and get a close-up look at how they worked. "With every hardware device, there has to be a way for developers to debug the code and all I did was take advantage of that," he said. "As I was digging deeper into the architecture, I saw a couple of subtleties which could allow for some interesting things. So while using the JTAG to debug the processor he noticed a couple of potential exploits.

      The rest of the article goes on to discuss the security implications of leaving the JTAG enabled

      Though some companies are able to cut off the JTAG interface on their products, Jack said it was enabled in 90 percent of the devices he examined. I am certain that this article isn't trying to suggest that hackers break into networks using JTAG... that's just plain dumb. What he is saying, is that because most devices leave their JTAG intact, hackers can debug the code on their processors and find flaws. Essentially reverse engineering the underlying architecture and using that knowledge to exploit it.

      I imagine that Juniper produces some of the 10% of those devices that disable the JTAG on their equipment, that is why they are promoting this in hacker circles.
      --
      Sometimes the best solution is to stop wasting time looking for an easy solution.
    6. Re:Long on hype, short on details by patchvonbraun · · Score: 1
      Good threat models assume that the attacker already has the code. Cryptosystems, for example, are designed
          to assume that the bad guy knows *exactly* how your algorithm works. Other security mechanisms should, and do,
          use the same threat model.

      If the article is about "I used JTAG to dump the code from the CPU, which allowed me to find exploitable flaws",
          it's rather boring.



      If the article is about "I used JTAG to cause the CPU to do something other than the original software intended",
          it's rather boring.



      If, however, the article is about "It turns out that having a JTAG interface makes it possible to remotely
          exploit a system, 'blind'" then I'm very interested.



      Any attack that requires physical access to the box under attack just isn't very interesting. That's why I don't
          bother with BIOS passwords.

    7. Re:Long on hype, short on details by pchan- · · Score: 1

      I imagine that Juniper produces some of the 10% of those devices that disable the JTAG on their equipment, that is why they are promoting this in hacker circles.

      I cracked open (physically) a Juniper packet filter the other day (a 1U box with only an ethernet in, ethernet out, and power). Inside was an Intel-made x86 CPU (I forget which one, but a fairly old one) on a minimal motherboard and a 3.5 inch HD set with a the 2GB clip enabled (the drive was 10GB). The filesystem was FAT16 with no long file names. There was no OS on the FAT partition, though the partition table was screwy and it may be located elsewhere. Anyway, my point was, being a standard Intel CPU, it does not have a JTAG port. However, a determined person with physical access could just as easy grab the binary running on that machine from whereever it is on the drive, or by reading the BIOS chip (which looked like a standard one though I'm guessing that's where the code is stored), or putting in an ICE on the RAM (standard DIMM socket) or on the socketed Intel CPU. They are far from immune.

    8. Re:Long on hype, short on details by scatterbrained · · Score: 1

      Dude, schematics are like TOTALLY so 80's. Most chips are designed using Verilog or VHDL (or systemC, superlog, etc) all text based languages.

      He said he found some architectural weirdnesses using jtag to debug stuff. No biggie. The thing is between some external packets coming in and exploiting an architectural misfeature is a bunch of OS software, so it seems like there should be plenty of opportunities to squash whatever bugs he's going to come up with.

      --
      -- All that's left of me, is slight insanity, whats on the right, I don't know. -- Bob Mould
    9. Re:Long on hype, short on details by HomelessInLaJolla · · Score: 1

      The point being that whatever bugs he's going to come up with have already been known to a priveleged set of people. Squashing those bugs now won't change the fact that exploits have probably been available for years.

      --
      the NPG electrode was replaced with carbon blac
    10. Re:Long on hype, short on details by mr_mischief · · Score: 1

      I think exploitable flaws at the CPU level is still pretty interesting. Being able to trigger those with traffic is much more interesting, though.

  6. Re:Hack vs Crack by Anonymous Coward · · Score: 0

    I think you lost that battle in the 90s, sorry.

  7. Attacking embedded devices. by oman_ · · Score: 3, Informative


    The article doesn't claim that the attack uses the JTAG port. It claims that he used the JTAG port to find some sort of vulnerability. People do this ALL THE TIME.... I do it at work to reverse engineer automotive computers.

    Now it does say that there is some peculiarity of these specific CPUs that makes them vulnerable to an attack of some sort. I hope the peculiarity isn't the presense of the JTAG port. If you assume people won't get your binary code off of a chip because it doesn't have a debug port then you're a fool.

    --
    Rats would be more funny if they could fart.
    1. Re:Attacking embedded devices. by Anonymous Coward · · Score: 0

      I'm sure it's not just the presence of JTAG. That's everywhere. It's not a good attack vector because you normally need physical access to use it, or at least highly privileged software access (e.g. kernel level).

      More likely, he's discovered some sort of flaw in the CPU that allows a privilege escalation attack. I guess he found the bug by exploring the JTAG command set.

      I'll be watching this closely... sounds really interesting. CPU bugs are fun!

    2. Re:Attacking embedded devices. by HomelessInLaJolla · · Score: 1

      CPU bugs are fun Wasn't there one in the first Pentium line?
      --
      the NPG electrode was replaced with carbon blac
    3. Re:Attacking embedded devices. by Anonymous Coward · · Score: 0

      Since the vulnerability is explicitly said to be in Arm and Xscale CPUs, my totally unsupported guess is that there is some issue in how the various operating modes (user, supervisor, IRQ) are handled.

    4. Re:Attacking embedded devices. by SL+Baur · · Score: 1

      Yeah. An unused instruction if executed killed the processor. Ugly bug.

    5. Re:Attacking embedded devices. by HomelessInLaJolla · · Score: 1

      There were at least two, then.

      --
      the NPG electrode was replaced with carbon blac
  8. If you have physical access, you already won. by argent · · Score: 3, Insightful

    About the only part of the software industry that doesn't assume that you've already won if you've got physical access to the box (and getting into a JTAG port kind of implies that) are the folks who still have a dog in the DRM fight... and there's fewer of them every year.

    1. Re:If you have physical access, you already won. by fatphil · · Score: 1

      Nonsense. For example Nokia let you hold Nokia hardware, with TI chipsets, in your hands. They do not want you breaking out of the sandbox that they've set up. If that's not physical access to the device I don't know what is, and there are a billion instances of that in the world.

      --
      Also FatPhil on SoylentNews, id 863
    2. Re:If you have physical access, you already won. by Hal_Porter · · Score: 1

      Exactly. Physical access to a cellphone will do you absolutely no good when it comes to hacking the device. Even if you took the flash chips off the board, changed a few bytes in a programmer and put them back, the phone will detect it and refuse to boot.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    3. Re:If you have physical access, you already won. by fatphil · · Score: 1

      In theory. Often, as this story seems to support, not all possible security is turned on.

      I have just quit a gig at Freescale Semiconductor, and I can assure you that the security capabilities of their mobile platforms are absolutely spot on - you can nail absolutely *everything* down. However, if you want to debug models that have failed in the field, then you need to at ship them with the secure JTAG cranked down to a not-totally-disabled (by e-fuses, no way back) setting. For work at service centres, rather than at FSL's (customers') labs, you need to crank the security several notches. Too secure, and the thing turns into a paperweight if it ever fails.

      --
      Also FatPhil on SoylentNews, id 863
    4. Re:If you have physical access, you already won. by argent · · Score: 1

      For example Nokia let you hold Nokia hardware, with TI chipsets, in your hands. They do not want you breaking out of the sandbox that they've set up.

      Right, like I said, only people who believe they can keep someone from breaking into their own computer think that you can win even when the other guy has physical access. Cellphone manufacturers are a perfect example.

      What keeps people from chipping their own cellphones isn't the technical difficulty of breaking in and unlocking it, it's that the risk of losing support or screwing up is higher than the benefit: the biggest cost of owning a cellphone isn't paying for the phone, it's paying for the service... the carriers front the cost of the phones. So Nokia's real customers... the carriers... are more interested in detecting fraud statistically than about a small fraction of their users taking their phones with them instead of taking the "free" phone when they switch to another service.

    5. Re:If you have physical access, you already won. by Hal_Porter · · Score: 1

      However, if you want to debug models that have failed in the field, then you need to at ship them with the secure JTAG cranked down to a not-totally-disabled (by e-fuses, no way back) setting

      Can't you just require signing something with a very secret key - one that even the original developers don't know - to re enable JTAG? I don't know all the details of the solution, and I wouldn't want to post them if I did, but I know at least some embedded systems ship in a state where both the factory/service centre and the original developers need to be involved to unlock JTAG.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    6. Re:If you have physical access, you already won. by fatphil · · Score: 1

      That's one of the security levels, yes. 3rd level out of the 4, IIRC. Uses a challenge-response to verify the emulator connected to the JTAG is a valid one, so one can't even use a replay attack. It's probably the most sensible level to release hardware at.

      --
      Also FatPhil on SoylentNews, id 863
  9. A line from Moby Dick.... by HotNeedleOfInquiry · · Score: 0

    Ehhhh, you can't fool us; it's the easiest thing in the world for a man to look as if he's got a great secret in him.

    Just tell us, no free publicity.

    --
    "Eve of Destruction", it's not just for old hippies anymore...
  10. Re:Hack vs Crack by Anonymous Coward · · Score: 0

    Wow, I haven't heard anyone going on about that in years. Good show!

  11. Not useful as atack by the_brobdingnagian · · Score: 1

    Maybe this "atack" is not useful to remotely hack into the box. But there are other reasons to hack a device. It could help with reverse engineering for example.

  12. Wii by anss123 · · Score: 1

    Reminds me of a security presentation about how Nintendo had secured the Wii, over the gamecube. Apparently they had changed the physical interface to a JTag like port and changed to password to all capitals. heh.

    1. Re:Wii by fabs64 · · Score: 1

      Have you got a link to this? I'd love to see it.
      The port I think you're referring to is the debug port on the dvd-rom btw, as this is what all the hacks I know of at the moment use.

    2. Re:Wii by antime · · Score: 3, Informative

      This is the presentation, and you can download a video from here.

  13. Re:Hack vs Crack by corsec67 · · Score: 0

    Ok, then what is a No-CD Crack?

    --
    If I have nothing to hide, don't search me
  14. Good God... by mosel-saar-ruwer · · Score: 1


    Juniper plans to demonstrate... at this month's CanSecWest conference in hopes of shifting more of the black hat community to looking at devices instead of software

    My initial reaction was along the lines of, "Good God, I hope they get together with Marvell & JTAG and post some firmware updates before they release the details."

    To do otherwise would strike me as nigh unto criminally negligent.

    Or maybe they're saying that the vulnerability can't be patched in firmware?!? If so, then yikes! [And all the more negligent...]

    1. Re:Good God... by billcopc · · Score: 2, Informative

      Firmware can only do so much. They're basically taking advantage of the JTAG debugging circuitry. It's the kind of thing you use during design, then usually you just strip off the connector/header before shipping. You could completely remove the JTAG and be safe that way, but that means reworking the circuit one last time _without_ debugging functionality, where a lot of things can go wrong and you have no way of tracing them... well, not without pulling out your grand-daddy's digital probe and frequency counter.

      JTAG vulnerabilities are one way that satellite hackers (I refuse to call them "testers") pull decryption keys from dish receivers. You could think of JTAG as the hardware equivalent to a software debugging interrupt, where you can read/write to the bus and send commands to many components of the device.

      --
      -Billco, Fnarg.com
    2. Re:Good God... by Hal_Porter · · Score: 1

      The solution is to have a JTAG disable bit, which software can set but not clear. The bootrom can check for a signed software in flash and set the bit unless it was signed with a debug signature. So when you're in development, you sign with the debug enabled key. When you ship, you sign that with the non debug one. You can use the same trick so that any debug printouts you didn't get a chance to strip out don't actually come out of the pins on the chip too, even though they go almost all the way there so that flipping the bit doesn't change timing.

      This is a simple scheme, but you can see it's already quite hard to hack. The bootrom only needs to know the public part of the key to verify a signature, so the private part can be kept secret. In practice, you'd do something more complex, since you don't trust the developers not to lose USB sticks with the development signed code.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  15. Re:Hack vs Crack by Anonymous Coward · · Score: 0

    I know what a Cracker is... and they are really good with butter!

  16. He is talking out of his ass. by Anonymous Coward · · Score: 0

    JTAG is not accessible remotely so this guy is talking out of his ass.
    You cannot compromise the system unless you have physical access to the JTAG.
    The JTAG cannot be accessed thru ethernet or CAN.

    If the designer is stupid enough to use embedded windows then I would agree that it can be easily compromised but not with the JTAG. If a company wants to protect its code it can read protect the flash and then all you couldn't do anything with the device until you erase the flash. Micronas has an option to disable JTAG and then you have to bring the correct level to certain pins to erase the device which reenables the JTAG.

    It is rather nice to be able to erase the code in a device that you own and do what you want with it. What is wrong with that and why would anyone be stupid enough to think this is compromising anything?

    You compromise something when you attack someone's crap, not when you're playing with your own stuff.

    If you access a device that is not yours in a building that is not yours, then this could be compromising something. It's like someone robbing a bank, nothing to do with JTAG easy access.

    1. Re:He is talking out of his ass. by mlts · · Score: 1

      Agreed.

      If he discovered an attack from the WAN side, that isn't new. People disassemble and scrutinize devices all the time. Most likely, a simple reflash of an updated ROM will take care of this.

      Access to the JTAG contacts on a chip isn't hard to disable either. One can set stuff read-only, or just do like Microsoft did with the Xbox 360, and encase the critical chips in hard epoxy blobs.

  17. iPods? by SleepyHappyDoc · · Score: 1

    Does this mean better iPod hacks are coming? This is mostly over my head, so I don't know if it's even relevant to iPods or similar devices...

    --
    Stasis is death. Embrace change.
  18. lol... SHIFTING into Jtag by Anonymous Coward · · Score: 0

    nice pun if it was intentional...

    as someone who designs jtag into systems I can tell you that alot of implimentations extend the standard and allow you to run bist routines... some even alow you to dump the entire chip content... this is a debug feature. try an extest or sample/preload command.. look, you just owned the IO! at least 20 years ago people were putting embedded fuses into this type of logic to allow these interfaces to be shut down post-debug/design but before being shipped to the field on cryptographic/sensitive chips.

    if there wasn't any physical security component to the protection profile of the target, you didn't really do anything... if there was (say FIPS-140 level 3 or 4 validated), thats something different.

  19. Based on what you just said... by Anonymous Coward · · Score: 0

    > I've just had the greatest idea for my PhD.

    You're going to pirate your PhD!?! :-)

  20. Re:Hack vs Crack by Anonymous Coward · · Score: 0

    Please keep the racial slurs to a minimum...

    I resemble that statement.

  21. JTAG developed Boundary Scan? by vojtech · · Score: 1
    The summary is rather misleading.

    He probably used the JTAG port to take a look and play with the ARM/XScale processors, but not the Boundary Scan part of the port's capabilities. Even the article doesn't mention the Boundary Scan, which is normally used only for testing whether the processor is well and alive.

  22. Not As Smart As He Thinks by WrongSizeGlass · · Score: 0
    FT:

    I'm looking at my microwave oven right now, but I don't think there's much I could do with that," If he was a real chip-head he'd know he could use his microwave for Hot Pockets or pasteurizing yogurt.


    warning: The above post tests positive for sarcasm and should be taken with a pound of salt.
  23. Remote RF interference by Chmcginn · · Score: 1
    The problem would be inducing currents in a particular conductor without inducing currents in the conductors around it. Inside of pratically any device with an IC on it, and attempt to remotely induce current via RF interference is probably going to just crash it, or fry it. It's one thing to try and read off of one particular line (Van Eck phreaking), but it's another to try and replace the signal on that line without frying (or at least rebooting) the entire machine.

    Unless you're talking about trying to 'edit' what's going into a particular IC when you already have access to the board. That I could see... but why not just plug into it, then?

    --
    Have you been touched by his noodly appendage?
  24. Is the answer here? by Anonymous Coward · · Score: 0

    Processor Magazine http://www.processor.com/editorial/article.asp?art icle=articles%2Fp2913%2F54p13%2F54p13.asp&guid=&se archtype=&WordList=&bJumpTo=True is reporting that developers at Steelcape http://www.steelcape.com/has developed a new solution sending data without opening ports on the firewall. Will this work with embedded devices?

    1. Re:Is the answer here? by Anonymous Coward · · Score: 1, Funny

      For the Grammar Nazis and the "I hate idiots who put the entire URL in as the URL text" people...

      Processor Magazine is reporting that developers at Steelcape have developed a new solution [for] sending data without opening ports on the firewall. Will this work with embedded devices?

  25. Oh what the hell? by pair-a-noyd · · Score: 1

    When you JTAG into a device you OWN the device. This is no breakthrough. It's what JTAG was designed to allow you to do. Jeez..

    1. Re:Oh what the hell? by Anonymous Coward · · Score: 0

      How's your slut daughter doing? I haven't fucked her in 2 days. Very unlike her.

  26. No vulnerability here... by Anonymous Coward · · Score: 0

    As I understand, on XScale the JTAG debugger downloads some code into the minicache to interface with the JTAG probe. If an attacker has this kind of physical access to the device the battle is already lost. Having worked on XScale security for a few years, I'm skeptical this guy found any critical vulnerability.

  27. Yes you can jtag remotely by EmbeddedJanitor · · Score: 1
    Sure, no problems.

    You just need to get the victim to open up their unit, solder on some contacts and hook up an ethernet-enabled jtag debugger and plug that into the ethernet without a firewall. Something like: http://users.actrix.co.nz/manningc/lejos_nxt.jpg (a JTAG unit hooked up to a Lego NXT device).

    You'd then be able to debug the device as much as you want without the victim noticing anything.

    --
    Engineering is the art of compromise.
  28. You can disable JTAG on some devices by EmbeddedJanitor · · Score: 1

    On some devices you can disable the JTAG making this attack impossible.

    --
    Engineering is the art of compromise.
  29. Re:Hack vs Crack by BungaDunga · · Score: 1

    It obviously depends on whether you own the game/program in the first place- I'd be willing to bet most people who apply them don't, thus they are "cracks".

  30. Yawnnnn by Anonymous Coward · · Score: 0

    I'll really impress if the author can send a TCP packet through the ethernet port and hack the ARM router. Solder an interface JTAG to the router ARM CPU is (yawn) useless. I might as well hack my machine directly. But then, what the hell for?

  31. ARM/XScale implementation differences by RuleBritannia · · Score: 1

    It's really important to make a distinction between ARM Ltd- who make IP cores implementing the ARM architecture (now at version 7) and XScale which is an Intel implementation of the ARM v4/v5 architecture. Intel has an architecture license to produce products compatible with ARM-derived cores. Any kind of micro-architectural vulnerability is very unlikely to be shared across ARM Ltd and Intel implementations because they share no heritage. So making sweeping statements of vulnerabilities across all ARM-compatible embedded devices is premature and unnecessary

  32. JTAG Is a tool, not an exploit by Anonymous Coward · · Score: 2, Interesting

    Barnaby used the JTAG to determine vulnerabilities in embedded hardware and the RTOS running on it. The vulnerability is not that he used a JTAG, or even that companies leave JTAG ports enabled on hardware (as i've seen clever hardware hackers pin out the chips themselves to re-enable a removed JTAG port). The point of this article, and much of the work barnaby has been doing for the past couple years (http://research.eeye.com/html/advisories/publishe d/AD20060714.html , also previous presentations at cansec, blackhat, and other confs), is that hardware is not safer than software. Hardware has a slightly higher cost of entry into the vulnerability research area, but it also offers a treasure trove of vulnerabilities for those willing to make the jump.

  33. Mod up by HomelessInLaJolla · · Score: 1

    The parent gets it.

    --
    the NPG electrode was replaced with carbon blac