Slashdot Mirror


Unspoofable Device Identity Using Flash Memory

wiredmikey writes with a story from Security Week that describes a security silver lining to the inevitable errors that arise in NAND flash chips. By seeking out (or intentionally causing) defects in a given part of the chip, a unique profile can be created for any device using NAND flash which the author says may be obscured, but not reproduced: "[W]e recognize devices (or rather: their flash memory) by their defects. Very much like humans recognize faces: by their defects (or deviations from the 'norm') a bigger nose, a bit too bushy eyebrows, bigger cheeks. The nice twist is that if an attacker manages to read your device identity, he cannot inscribe it into his own device. Yes, he can create errors — like we did. But he cannot control where in the block they occur as this relies solely on microscopic manufacturing defects in the silicon."

145 comments

  1. Argument from ignorance by zero.kalvin · · Score: 4, Insightful

    Just because we don't know a way. That doesn't mean it can't be done.

    1. Re:Argument from ignorance by Anonymous Coward · · Score: 3, Funny

      The paternity test and court-ordered child support, however, is compelling evidence.

    2. Re:Argument from ignorance by Joce640k · · Score: 4, Insightful

      Can't you create a device emulator and emulate the defects?

      --
      No sig today...
    3. Re:Argument from ignorance by Nerdfest · · Score: 1

      This translates to "It can't currently be done cheaply".

    4. Re:Argument from ignorance by someone1234 · · Score: 1

      How cheap is some code that:

      1. reads an existing pattern
      2. outputs that pattern via the known device interface.

      --
      Patents Drive Free Software as Hurricanes Drive Construction Industry
    5. Re:Argument from ignorance by Joce640k · · Score: 4, Insightful

      If it can be done in software then it's cheap...hackers have a lot of spare time.

      --
      No sig today...
    6. Re:Argument from ignorance by oPless · · Score: 1

      Not to mention the restraining order.

    7. Re:Argument from ignorance by JeffSpudrinski · · Score: 2, Insightful

      Very true.

      It's getting almost funny how someone states that something is "unbreakable" or "uncopiable" (remember quantum encryption stories?) and then a few months later, someone finds a workaround, or some previously unthought of method of breaking the security.

      That said, though, relying on random microscopic flaws for unique identity is very clever and would be *extremely difficult* (not impossible) to copy.

      Not saying I can do it, but I'm sure someone...somewhere...will figure out a way.

      Just my $0.02.

      -JJS

    8. Re:Argument from ignorance by Anonymous Coward · · Score: 1, Interesting

      Exactly. the "dongle" manufacturer's claimed this with the "unchangeable" flash serial numbers in CF cards and the usb dongles.. That was gotten around in a very short amount of time. Heck I proved it on one maker that said "it's locked to the CF card".. and I replicated it 100% in that conference room, handing them a copy of their cf card that when installed in the mpeg router it worked.

      Remember... HDCP was "uncrackable" a short time ago... Now it's so cracked that you can download a program for your low end quad core to decrypt 1080p and fpga's that can do it even faster will be around very soon.

    9. Re:Argument from ignorance by Anonymous Coward · · Score: 0

      Thats nice, but
      Laser DVD Stripe never used
      HD Magnetic Strip+ disk read head = never used
      Japanese Ink Spots - Never Used
      Making use of mobile phone - hah uncommon.

      These do the job very well, but as consumers have credit card protection, and the banks make big money
      on card fraud and don't want it fixed. The above solutions cost pennies.

    10. Re:Argument from ignorance by nospam007 · · Score: 1

      Sure, 30 years ago there were floppy copy protection schemes with damaged areas, (uncopyable! they called it) after a couple of weeks somebody had found a way to simulate the damage.
      They never learn.

    11. Re:Argument from ignorance by Abstrackt · · Score: 1

      This translates to "It can't currently be done cheaply".

      So it's reasonably secure for day to day stuff then.

      --
      They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance. - Terry Pratchett
    12. Re:Argument from ignorance by multisync · · Score: 1

      If you have "spare time" you're probably not a hacker.

      --
      I don't care why you're posting AC
    13. Re:Argument from ignorance by Anonymous Coward · · Score: 0

      one thing is for sure, this protection is not new. It was already done with floppy disks back in the early eighties.

  2. Famous last words? by migla · · Score: 4, Funny

    "I'm unspoofable! Not even Zeus himself could spoof me!"

    --
    Some of my favourite people are from th US; Vonnegut, Chomsky, Bill Hicks.
    1. Re:Famous last words? by pegdhcp · · Score: 3, Insightful
      "All this has happened before, and all this will happen again!"

      At first It was mechanical punctures on floppies, then random laser marks on CD, now this...

    2. Re:Famous last words? by dogsbreath · · Score: 1

      "All this has happened before, and all this will happen again!"

      At first It was mechanical punctures on floppies, then random laser marks on CD, now this...

      Yeah, holes punched in floppys. However could that be circumvented? Har har har

      Glad to see there are other old guys around.

    3. Re:Famous last words? by pegdhcp · · Score: 1

      Yea, we are getting older. Most of these kids have never seen a low level format utility that takes one day to format a 20 MB MFM disk.

  3. Unspoofable? by Anonymous Coward · · Score: 5, Insightful

    ...you mean I can't create a simple device that works as a flash drive, but every time the OS requests a bad block, it responds with an entirely fake response that just so happens to match the identity of the spoofed drive? Say, by using any low-cost prototyping board to spoof a USB interface? Or SATA interface?

    1. Re:Unspoofable? by somersault · · Score: 2, Interesting

      wiredmikey writes with a story from Security Week where they admit "we're idiots who don't know anything about computing or, indeed, security"

      These are the sorts of guys that get publishers to buy into moronic DRM schemes..

      --
      which is totally what she said
    2. Re:Unspoofable? by dna_(c)(tm)(r) · · Score: 1

      My first thought was about DRM too, and from there immediately to "it 'll only last for a few days"

    3. Re:Unspoofable? by Thanshin · · Score: 4, Insightful

      And the most retarded part is that just about everyone in any technical community can tell them why the idea is idiotic, useless and dangerous. I mean, there are pretty few things the internet does better than highlight your stupidity; they should learn to use that wonderful virtue.

      Can someone send them a simple email explaining how to first post their new ideas in a tiny forum so children can tell them why it won't work, before talking to the news?

    4. Re:Unspoofable? by tepples · · Score: 4, Informative

      you mean I can't create a simple device [...] by using any low-cost prototyping board to spoof a USB interface? Or SATA interface?

      Markus Jakobsson wrote in the article:

      No need for error-correcting codes; in fact, we will read and write "raw", which is possible since all of this will be done on OS level.

      He's talking about using raw NAND flash without a (hardware) controller, which is more than likely soldered to the motherboard. All USB flash drives have a controller performing error correction, as do all CompactFlash, SD, and Memory Stick memory cards. The only popular consumer flash storage devices that don't have a built-in controller are SmartMedia and xD-Picture cards; the controller for these is inside the camera or the USB card reader.

    5. Re:Unspoofable? by somersault · · Score: 1

      Yeah. I don't know that much about security, but I think having a board on the device to digitally sign data from the drive would be better (public key cryptography type thig). At least that way you couldn't simply copy the device's signature using a program in the machine it's plugged into. If you design it right you'd have to have physical access to the internals of the device to copy its private key.

      --
      which is totally what she said
    6. Re:Unspoofable? by Anonymous Coward · · Score: 0

      Dude! Can you stop already?! We're trying to defeat DRM --- not enhance it.

      Jeez.

    7. Re:Unspoofable? by Anonymous Coward · · Score: 0

      Oh wait... The Wii tried to do what he described (public/private keys) and failed pretty miserably. See old posts at HackMii for details.

    8. Re:Unspoofable? by silanea · · Score: 1

      [...] We're trying to defeat DRM --- not enhance it. [...]

      Those two are the same. Any truly secure DRM renders the protected content unusable, thereby rendering the DRM useless.

      --
      Rudolf Hess edited Mein Kampf. He was the very first grammar nazi.
    9. Re:Unspoofable? by Anonymous Coward · · Score: 0

      I guess they thought they could maybe post to relevant forums asking people to help find the flaws - and probably receive zero feedback as most people can't be bothered helping someone else finesse their project. Alternatively they can form their statement as a challenge - our idea is unbeatable - and let the egos of a million geeks do the work for them. They now have a ton of useful ideas they can test against to improve said product, and all it cost them was a little public humiliation.

    10. Re:Unspoofable? by JasterBobaMereel · · Score: 1

      Can this be emulated - Yes

      Since this relies of flaws in the silicon - it is surely really easy to accidentally change the error profile of a device so it is no longer recognised ...

      This is the flaw in facial recognition as well, to make it so that it does not report false negatives it is easier to fool as well

      --
      Puteulanus fenestra mortis
    11. Re:Unspoofable? by somersault · · Score: 2, Informative

      This isn't so much about DRM as verifying the source of information. Similar technologies are involved, but it's not the same concept. DRM is about obscuring information to all but authorised users, while signing information is about making sure that an authorised source has written a message (or a driver for example), and anyone is free to read it.

      --
      which is totally what she said
    12. Re:Unspoofable? by somersault · · Score: 1

      I wasn't talking about public/private keys for DRM, I was talking about verifying sources of information (information which anyone is free to read). I also implied it would probably be possible to copy the private key if you had physical access to the device. With the Wii or an iPhone or whatever you wouldn't even need to have access to the private key to sign software, you would just need some way of making the device think that all sources are authorised.

      --
      which is totally what she said
    13. Re:Unspoofable? by Thanshin · · Score: 1

      It's a nice theory but if that was the case, wouldn't they get a higher level response by presenting an idea with less obvious flaws?

      Or you mean they didn't have in the vicinity anyone technically able to help them correct some of the most obvious problems.

    14. Re:Unspoofable? by tepples · · Score: 1

      Since this relies of flaws in the silicon - it is surely really easy to accidentally change the error profile of a device so it is no longer recognised

      But who is going to solder in such a TSOP flash chip? In addition, reading the "key" from a device changes its error profile because setting it back to all 1's is an erase, and an erase causes wear. It's like a vinyl record, deteriorating with each play, but that might be exactly what publishers of works of entertainment want.

    15. Re:Unspoofable? by Mitchell314 · · Score: 1

      The next step is to take the content out.

      --
      I read TFA and all I got was this lousy cookie
    16. Re:Unspoofable? by Nadaka · · Score: 2, Funny

      They have been doing that on the PS3 for years.

    17. Re:Unspoofable? by Anonymous Coward · · Score: 0

      He's talking about using raw NAND flash without a (hardware) controller, which is more than likely soldered to the motherboard. All USB flash drives have a controller performing error correction, as do all CompactFlash, SD, and Memory Stick memory cards. The only popular consumer flash storage devices that don't have a built-in controller are SmartMedia and xD-Picture cards; the controller for these is inside the camera or the USB card reader.

      So in other words you need to hack the driver it's using instead of offering substitute hardware?

    18. Re:Unspoofable? by Rich0 · · Score: 1

      Or, you can just offer substitute hardware.

      Either replace the controller with one that reports to the OS what you want it to report, or replace the flash with a circuit that ACTS like flash ram but returns the error profile you want to the controller.

    19. Re:Unspoofable? by Belial6 · · Score: 1

      Obviously reading wouldn't destroy the key because if it did, then the legitimate reader wouldn't be able to read the key either. Of course, even if reading doesn't put enough ware on it to really matter, your point does being up the fact that chips do wear. This is a lock that is eventually going to fail just due to age.

    20. Re:Unspoofable? by Anonymous Coward · · Score: 0

      Ohhh, it runs in the OS! well that makes it completely unspoofable then, because nobody knows how an OS works, so nobody can tamper with it.

    21. Re:Unspoofable? by tftp · · Score: 1

      But who is going to solder in such a TSOP flash chip?

      I can do it for you. Or you can buy an analog of a ZIF socket. None of that is rocket science - there are billions of TS[S]OP chips installed (and safely removed) on this planet. To give you an example, you can use a low temperature alloy that melts in hot water. This way you can install and remove TSOP chips until you die from old age, and the ICs will still work fine. They do that with 1000-ball BGAs at trade shows.

      In addition, reading the "key" from a device changes its error profile because setting it back to all 1's is an erase, and an erase causes wear.

      You'd need to do that "erase-write" cycle many thousand times before a new error shows up. Majority of Flash in the industry has no error correction; it just works - every single bit of it.

  4. Sigh. We can emulate it. by JensR · · Score: 4, Insightful

    So what? We connect another memory device through an FPGA and emulate the error pattern. At least to the extend detected by the software.

    1. Re:Sigh. We can emulate it. by L4t3r4lu5 · · Score: 1

      I get the impression that they would apply a specific "identity creation" process to the NAND chip, and that would bring out the inherit flaws in the chip fab process. You can apply the same process to other silicon, but you won't get the same result.

      You may well be able to emulate it using some awesome hardware, but how is that going to help if this is using your mobile phone internal memory for purchase authentication? You going to carry around your FPGA emulation rig to spoof payment authorisation?

      --
      Finally had enough. Come see us over at https://soylentnews.org/
    2. Re:Sigh. We can emulate it. by Lazareth · · Score: 1

      If the authentication is going over a signal being emitted from your mobile, a piece of software to alter the signal to send a "correct" signal is all you need.

    3. Re:Sigh. We can emulate it. by Peeteriz · · Score: 1

      How is an external device know what defects are in my silicon? The bits flowing through the connector will tell it whatever I want.

    4. Re:Sigh. We can emulate it. by jojoba_oil · · Score: 1

      but how is that going to help if this is using your mobile phone internal memory for purchase authentication?

      There are already systems in place for that: SIM cards and electronic serial numbers. Neither of those require purposefully breaking read-write memory in a way that provides no benefit over simple ROM, and both are just as "unspoofable" as this is. Not to mention that SIMs/ESNs have a much reduced chance of randomly changing the identity.

    5. Re:Sigh. We can emulate it. by tepples · · Score: 1

      How is an external device know what defects are in my silicon?

      The device is not external. Please see my other comment.

    6. Re:Sigh. We can emulate it. by tepples · · Score: 1

      There are already systems in place for that: SIM cards and electronic serial numbers.

      Neither of which will help if you have removed the SIM card in your unlocked smartphone to use it as a PDA.

    7. Re:Sigh. We can emulate it. by jojoba_oil · · Score: 1

      Neither of which will help if you have removed the SIM card in your unlocked smartphone to use it as a PDA.

      With the example of iPhone/iPodTouch, they still have EDID (basically ESN) when no SIM is present... And if you never connect the device to a network, the whole reason for having this kind of ID is moot anyway.

      I don't understand what you're trying to argue here.

    8. Re:Sigh. We can emulate it. by Anonymous Coward · · Score: 0

      You know, there is this technology which can spoof something external to be internal.

    9. Re:Sigh. We can emulate it. by tepples · · Score: 1

      System requirements for the technology that you mention include soldering, and a lot of end users don't have the coordination to solder a TSOP or especially a BGA correctly.

    10. Re:Sigh. We can emulate it. by jojoba_oil · · Score: 1

      System requirements for the technology that you mention include soldering, and a lot of end users don't have the coordination to solder a TSOP or especially a BGA correctly.

      When you say a lot of end users don't, you're implicitly admitting that not all end users don't. So by your own logic there are users who have the coordination to solder correctly. Remind me how this maintains the "unspoofable" part of this "technology" that you seem to be struggling so hard to justify.

      As I said in a comment that you haven't responded to, I don't understand what you're trying to argue.

    11. Re:Sigh. We can emulate it. by tepples · · Score: 1

      So by your own logic there are users who have the coordination to solder correctly.

      There are users who can solder, but the number of them is commercially insignificant, just as the number of people with a gaming PC connected to a TV is commercially insignificant. Providing an unlocking service is already a crime (17 USC 1201 and foreign counterparts).

    12. Re:Sigh. We can emulate it. by AmericanInKiev · · Score: 1

      I hear your point; The flip argument might be that security is never an absolute, but rather a question of the time it takes to break it. (Safes are in fact rated in the hours it takes to breach them).
      One can emulate; however the emulation is often not as time-effective as the real; so I wonder if a reader could not detect the time difference of the emulation?

  5. Emulate? by tagno25 · · Score: 1

    Someone could just create an emulator/interpreter to sit between the chip and the PCB. It reads the input, responds correctly for the emulated chip, and puts it a good or bad space according to what the emulated chip should be.

  6. Why? by jgoemat · · Score: 3, Insightful

    I fail to see the utililty... If the OS can be compromised, this doesn't help at all. If it can't, then why bother?

    1. Re:Why? by amn108 · · Score: 1

      Precisely. And compromising an OS is in fact an expected norm by any self-respecting computer user. It goes together with having the right to f.e. change system files etc. So the second question is valid: why bother? For those with "trusted computing" systems however, it's a whole other mixbag.

    2. Re:Why? by Wonko+the+Sane · · Score: 2, Insightful

      Stop discouraging them! Let them think their scheme is flawless so that they'll actually implement it instead of something stronger.

  7. Easy by Anonymous Coward · · Score: 0

    Given a legitimate device all I have to do is make my device return fake bad sector errors (I'm assuming a file system here) in the same sectors they do and that's just one idea, you can exploit this at few other places alone the line (literally and metaphorically).

  8. Now if. by leuk_he · · Score: 2, Interesting

    The last line in TFA gives the problem in this scheme:

    "If we run a secure boot or a reliable software-based attestation scheme before we ID a device, we know that there is no active malware that may modify the report that results from reading the machine identity. So we know that the reading actually comes from the intended block, and that it was done correctly."

    However if this secure boot thingy is comprimised you can force to read it form a virtualized memory block that contains a forged block. . You can beat this with all secure hardware, but at that point having generic nand memory is not the point, because this "trusted" hardware will/can have a specialized chip that contains a non-tamperable key.

    1. Re:Now if. by JasterBobaMereel · · Score: 1

      The maxim of security is that if you have physical access to the hardware then all security is pointless

      This is why you are always kept one (or more) steps away from the actual hardware in secure systems

      If you can secure clean boot the system then you have physical access and you can manually verify the system so this is unnecessary, if you can't then it is not reliable

      Another solution looking for a problem ....

      --
      Puteulanus fenestra mortis
    2. Re:Now if. by Anonymous Coward · · Score: 0

      However if this secure boot thingy is comprimised you can force to read it form a virtualized memory block that contains a forged block. . You can beat this with all secure hardware, but at that point having generic nand memory is not the point, because this "trusted" hardware will/can have a specialized chip that contains a non-tamperable key.

      True, but there are still some use cases where this scheme seems useful such as credit cards. In that case, the reader has a vested interest in remaining trusted (since the reader's owned by a merchant who will most likely be on the hook for fraudulent purchases) while the chip would contain an identity that the reader wants to verify.

    3. Re:Now if. by leuk_he · · Score: 1

      You are talking about a different kind of trust. TPM is about a architecture that has cryptographic means to protect the integrity.

      Credit card chips have the capability to run in a trusted environment. See Here for a commercial example.

      No need to use nand fingerprinting here. And since card chips have a low amount of nand memory this fingerprinting method might not be reliabable anyway.

    4. Re:Now if. by Amouth · · Score: 2, Informative

      because this "trusted" hardware will/can have a specialized chip that contains a non-tamperable key.

      Its not easy - but TPM has been proven breakable.

      http://hackaday.com/2010/02/09/tpm-crytography-cracked/

      http://www.nzherald.co.nz/technology/news/article.cfm?c_id=5&objectid=10625082

      --
      '...if only "Jumping to a Conclusion" was an event in the Olympics.'
    5. Re:Now if. by leuk_he · · Score: 1

      Sorry. Should have used a different word than "non tamperable". how about Secured by specialized hardware, or fucking hard to break?

  9. Not sure if that'd work... by Sprite_tm · · Score: 4, Interesting

    From what I know of flash, the 'bad bits' aren't repeatedly bad. The bad-sector-swap-out-routine in most flash drives and USB sticks will actually swap out a sector after a single read that can't be ECC-corrected, but that doesn't mean all the bits in the sector can't be written correctly ever again.

    For example, in this article (IEEExplore, so paywalled for you, sorry) a generic NAND flash chip has been tested for bit-error-rates. In the 5K write cycles after an average bit has failed, it only failed to be written correctly 4 times more. That would mean that a single erase-rewrite cycle would write the complete sector without any bit errors 99% of the time: to find 'most' of the bad bits, the sector would have to be rewritten 1000s of times every time the software would want to check the fingerprint.

    Not only would that take a fair amount of time, it would also introduce new failed bits. That would mean the ID of the flash chip can only be checked so many times beffore the complete sector goes bad.

  10. What about the wear-leveling flash controller? by Anonymous Coward · · Score: 0

    I don't understand any of this guy's arguments. First of all he states that we are "desperate" for a way to uniquely identify machines, and that the best way to fight fraud is to put unique IDs on processors. I'm sorry; for what reason are we desperate to expose our identity to every other computer that happens to connect with ours, and are crooks not able to replace their CPUs? Last time I checked, purchasing new hardware also did not require a license or verification of ownership so how this would stop fraud is anyone's guess.

    With regard to the actual flash ID technique, I thought any decent flash device (e.g. all SD cards) would have a wear-leveling controller, which effectively means the physical address is hidden. Even if you were to write "raw from the OS" as he says, the OS does not have raw access in this context. It doesn't even have "raw" physical access to system memory if you consider the funny stuff that memory controllers can do (e.g. ganging, interleaving).

    So if you have a bad block somewhere, the flash controller remembers where it is, but the OS has no practical guarantee unless the device remains untouched, and that eliminates any usefulness for this theory. Maybe I'm missing something obvious here but it seems to me that this suggestion is bunk. To do what he's proposing would require getting past the flash controller to get direct access to the NAND, or be able to put the flash controller into some low-level diagnostic mode to make it give you real physical addresses instead of virtual ones.

  11. How long do you want your ID to last? by jojoba_oil · · Score: 3, Insightful

    So let me get this straight... They "create" an ID by writing and rewriting a bunch of bits until they start failing, then mark the whole block bad. To "read" the identity, they set all bits to 0 and see which ones are stuck at 1 and then set all bits to 1 to see which are stuck at 0. The "bad block" ID area has already been written to thousands of times intentionally. What's going to guarantee that by "reading" the bad block ID (with 2 assignments each time), we won't unintentionally be making the final write to an extra bit or two?

    1. Re:How long do you want your ID to last? by redhog · · Score: 2, Interesting

      That can be fixed by using some kind of error recovery code. But I still don't see the utility of this. It's just a ROM with random content for every device.

      If all you want is random content on my machine that I send multiple times to you, it can be stored in normal undamaged flash and generated in a multitude of ways.

      If all you want is data I can't change, on my general purpose machine, sorry, that's not gonna happen - I can just swap the whole chip (or even the whole machine).

      if all you want is data I can't change, on my machine that you sold me, you can just use ordinary ROM.

      --
      --The knowledge that you are an idiot, is what distinguishes you from one.
    2. Re:How long do you want your ID to last? by thijsh · · Score: 2

      Yeah, this sounds more like unspoofable stupidity...

    3. Re:How long do you want your ID to last? by Lazareth · · Score: 1

      Spoofable. Look at sensational media in general.

    4. Re:How long do you want your ID to last? by hAckz0r · · Score: 1

      Not only that, but the law of entropy demands that new errors will happen just when you need to use it online to pay your mortgage. Now try replacing it? If the premise is that you can't intentionally create an error to match a known pattern then how does one replace a "failed" identity? You simply do it like this http://www.flylogic.net/blog/?p=10 Actually, forcing an error is easy, its getting rid of an unwanted error that is hard, and you can't prevent new errors. In other words, John Doe is toast when a bit changes, but Nation States with deep pockets can become John Doe any time they please.

    5. Re:How long do you want your ID to last? by Anonymous Coward · · Score: 0

      +1

      This (NAND fingerprinting) seems to be a solution looking for a problem.

      Unchangable data? A Dallas Semiconductor ROM with a burned in ID is quite tamper resistant.

      Secure data? Use a SIM card or a smart card. Not many people have the resources to laser off epoxy potting and uncap a chip without setting off a decent chip's tamper detect and zeroizing functions.

      Private key? Most smart cards have a CPU to do signing and decryption on the chip so the private key never leaves the environment.

      Use for DRM? We had devices with unique fingerprints before. Called dongles. And they are easily emulated, or just patched out. The only company that seems to fail to understand this is Steinberg and their eLicense dongles. However due to this, Cubase is ending up closer and closer to being irrelevant to musicians because Acid and Logic do not have this crap, have more features, and tend to be far cheaper. At least a Mac running Logic isn't going to be shut down during a gig by some asshat running past, nipping the USB dongle out, and making a break for it.

  12. What if one more bit goes bad during normal usage. by Anonymous Coward · · Score: 3, Insightful

    What if one more bit goes bad during normal usage..Identity is gone. Any thing tied to it will stop working.."Very much like humans recognize faces: by their defects"..if your son had plastic surgery without your knowledge..you will fail to recognize him?

  13. Re:What if one more bit goes bad during normal usa by jojoba_oil · · Score: 4, Funny

    What if one more bit goes bad during normal usage..Identity is gone. Any thing tied to it will stop working.."Very much like humans recognize faces: by their defects"..if your son had plastic surgery without your knowledge..you will fail to recognize him?

    Especially if that plastic surgery was done unintentionally just by looking at him one time too many.

  14. Doesn't know what spoofing means. by thegarbz · · Score: 4, Insightful

    Spoofing means to make a parody of or mis-represent. Spoofing does not imply that you're duplicating the original device it means that you make others think it's the original device. You don't need to re-create the hardware errors to do this, just intercept the calls which are looking for this hardware ID, and then spoof it.

    This may be an unduplicatable ID, but it is a far cry from unspoofable.

    1. Re:Doesn't know what spoofing means. by vegiVamp · · Score: 1

      In a sense,you're mis-representing your own ID / hardware signature -- just like when you're spoofing a mac address.

      --
      What a depressingly stupid machine.
  15. Seems like.. by airfoobar · · Score: 2, Funny

    Microsoft's Windows activation thing could become even more annoying in the future.

  16. Guess this could be spoofed anyway by LordAzuzu · · Score: 1

    Well, the "device identity verification" is always done by a software.
    Won't take long till it is reversed, and a "patched" executable released,
    so that it always gives the "right answer".

  17. Spoofable as hell by Anonymous Coward · · Score: 0

    Super easy with nano-technology. They can position atoms at will, for fucks sake.

    Spoof my ass.

    1. Re:Spoofable as hell by DrSkwid · · Score: 1

      1d107

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  18. Obscure Security and Marketing Fud? by betasam · · Score: 3, Informative

    Bad blocks are inherent in NAND flash. SLC NAND Flash devices are more reliable (have fewer errors) and costly. MLC NAND Flash devices are less reliable (have more inherent errors) but are affordable and easily available. NAND Flash devices are known to progressively degrade until the number of bad blocks is too high to reliably store data. Inherent errors during manufacturing increase on usage (both read and write.) Most Flash Storage Devices will ultimately become too error-prone to store data. The industry might want to justify inherent errors (and gradually increasing errors) by calling it a fingerprint. They are still searching for techniques to make NAND Flash more reliable.

    The article fails to provide mathematical basis to prove that two NAND flashes cannot have the same bad blocks on manufacturing or at some point of usage thereby obscuring identity. NAND flash controllers are designed to check and resolve errors using known algorithms. Most controllers allow hardware to hide errors while allowing OS device drivers to read the NAND flash medium. The Operating System and the NAND Flash Controller are at least two points were any such fingerprint can be compromised. The Filesystem adds another layer of abstraction. The number of "Real" bad blocks and remaps is usually stored on the NAND Flash. Altering the Bad Block Table is not difficult.

    Hard Disks interestingly have similar failure rates and complex issues like Data remanence which have been studied. I wonder why no one proposed a signature scheme for using errors on Hard Drive Platters to identify them. Computer Forensics for Hard Drives has a longer track record of being studied. Marketing fud can be ignored.

    --
    No Greater Friend, No Greater Enemy! (Lucius Cornelius Sulla)
    1. Re:Obscure Security and Marketing Fud? by Anonymous Coward · · Score: 0

      It is theoretically remotely possible that two nand flashes could have the same bad blocks at manufacturing at at some point of usage, but it's unlikely to the point of absurdity due to the absolutely enormous number of molecules in each chip compared to the many orders of magnitude smaller number of molecules of difference between any two devices it would take to produce a measurable difference in operation. It will always be the case that we can detect differences at a smaller scale than what we can actually physically manufacture (if that were not so, we would not be capable of detecting errors). As a result, no two chips ever actually end up behaving 100% identically (due to sub-microscopic imperfections in the silicon wafer, for example). As long as these differences fall below a certain tolerance, the chip is still considered usable, but that still doesn't mean they aren't measurable.

  19. The Three Stooges by PolygamousRanchKid+ · · Score: 0, Offtopic

    Spoofing means to make a parody of or mis-represent.

    I guess I'm too old, but for me, spoofing meant The Three Stooges : http://en.wikipedia.org/wiki/Three_Stooges

    If they were alive today, they'd be connecting water mains to your Internet tubes, so you would get a splash in your face, when you pull the cable on your DSL.

    Then you would hear, "Oh a wise guy eh? Nyuk, nyuk nyuk!"

    --
    Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
    1. Re:The Three Stooges by wolrahnaes · · Score: 1

      If they were alive today, they'd be connecting water mains to your Internet tubes, so you would get a splash in your face, when you pull the cable on your DSL.

      This post really isn't getting the attention it deserves. The Three Stooges were great and "A Plumbing We Will Go" is possibly one of my favorites.

      --
      I used to get high on life, but I developed a tolerance. Now I need something stronger.
  20. Defeated by Trusted Computing by tepples · · Score: 3, Informative

    The device emulator that you suggest would fail a Trusted Platform Module check. From the article: "run a secure boot or a reliable software-based attestation scheme".

    1. Re:Defeated by Trusted Computing by KiloByte · · Score: 4, Insightful

      If you have a working Treacherous Computing setup that you believe isn't breached, what would you want the technique in the article for? With working TC, you have all of that and more. Without TC, it can be worked around with a simple kernel patch.

      --
      The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
    2. Re:Defeated by Trusted Computing by RichiH · · Score: 1

      Not simple as timing will definitely be used in a scheme like this. Still, it sounds hard, not impossible.

    3. Re:Defeated by Trusted Computing by Joce640k · · Score: 1

      I think the hard part will be getting some quality time alone with the device you're trying to clone.

      Still ... this is just some academic paper. I doubt it will ever be used in practice.

      --
      No sig today...
    4. Re:Defeated by Trusted Computing by Anonymous Coward · · Score: 1, Insightful

      In a virtual machine, time is adjustable too. It can easily run 1000 times slower without the code knowing it.

    5. Re:Defeated by Trusted Computing by leuk_he · · Score: 1

      No... read again. If you run a TPM module (BAD certificate... HP how could you fuck up the certificate on a article on a TPM product... :X :X ) you get:

      " HP-UX Trusted Computing Services (HP-UX TCS) provides software support for hardware-enforced key management "

      Meaning that the TPM provider already providedd some means to create a unique identification, supported by $$$ hardware. HP determines what you can do wiht this id. You don't owe that hardware, HP does. But TPM hardware is required for trusted booting. Why add som cheap software hack is the TPM hardware has this capability. and you cannot apply the cheap software hack to simple software because the environment is not trusted (malware infested or virtualized)

    6. Re:Defeated by Trusted Computing by PremiumCarrion · · Score: 1

      I'm somewhat confused as to why timing would be a problem, typically I believe processors are a little faster than flash memory devices.

    7. Re:Defeated by Trusted Computing by maztuhblastah · · Score: 3, Insightful

      If you have a working Treacherous Computing setup that you believe isn't breached, what would you want the technique in the article for?

      Funding.

    8. Re:Defeated by Trusted Computing by Mitchell314 · · Score: 2, Funny

      Yes it can.

      input "Is this VM running slow? (y/n) ", runningSlow$

      --
      I read TFA and all I got was this lousy cookie
    9. Re:Defeated by Trusted Computing by RichiH · · Score: 1

      I assumed the attack to be done against non-TPM stuff as the technique is useless and the attack scenario different for TPM, anyway.

    10. Re:Defeated by Trusted Computing by RichiH · · Score: 2, Informative

      When you test for specific hardware behavior as a means of authentication, it's always a good idea to include speed measurements & checks in your code. That way, it's harder for the emulator to fake stuff. As this is common practice, an attack against this scheme would need to take care of these tests, as well.

    11. Re:Defeated by Trusted Computing by tftp · · Score: 1

      When you test for specific hardware behavior as a means of authentication, it's always a good idea to include speed measurements & checks in your code. That way, it's harder for the emulator to fake stuff.

      Give me an eval board of a microcontroller with a USB device interface and a week of time, and you will get all of that and more. As matter of fact, I have an AVR32UC3A based board here that I built myself. I can plug it into a PC and it will do whatever the code in the MCU tells it to do, including emulating a mass storage class device with any defects you want. The attacker doesn't even need to order a board built, he can buy one off the shelf.

    12. Re:Defeated by Trusted Computing by Anonymous Coward · · Score: 0

      In that case you can hack a device that is already trusted by the system, that's how the 360's protection was defeated.

    13. Re:Defeated by Trusted Computing by tepples · · Score: 1

      It can easily run 1000 times slower without the code knowing it.

      Does NTP have authentication?

    14. Re:Defeated by Trusted Computing by RichiH · · Score: 1

      Please note that I did not really believe in the defect thing in the first place. I was stating that timing would be an issue. There may be weird command paths that produce unique delays and unless you tested all possible combinations of commands so you can emulate everything, you can't be sure there isn't something left.

      But yah, any random dev board is a good place to start with this.

    15. Re:Defeated by Trusted Computing by DavidTC · · Score: 1

      Indeed, this entire concept is stupid.

      What they mean is that the flash problems can't be replicated. They can trivially be spoofed.

      This is like a copy-protected CD, except in this case it's like the CD is built into a USB-CDROM, so it's even easier to fake.

      Yeah, it sure would be a hassle trying to get another USB-CDROM exactly like that...but, um, if you're faking hardware, you just get some hardware that, duh, says exactly the right things instead of replicating the hardware.

      --
      If corporations are people, aren't stockholders guilty of slavery?
    16. Re:Defeated by Trusted Computing by tftp · · Score: 1

      There may be weird command paths that produce unique delays and unless you tested all possible combinations of commands so you can emulate everything, you can't be sure there isn't something left.

      That would be indeed a somewhat worthy challenge; though the hacker would just run the tool for a day or two and collect all feasible code paths and delays associated with them. That alone wouldn't be a big deal to spoof.

      However in practice a dependency on those "unique delays" is impossible. The average life of an IC on the market is anywhere from 6 months to 1 year. This applies to everything, from external USB Flash (storage and the controller) to internal (parallel or serial) Flash to, as matter of fact, anything else. Nobody is willing to produce obsolete devices, and there is no need to either - they do a decent production run, pay some big bucks for that, and sell the parts until they are all gone. Then a new part is sent to manufacturing.

      Replacement ICs, even though they are [sometimes] functionally identical, will have any number of differences in those "unique delays." So if you originally used some TSQ1234ZS and it's now obsolete, you solder a new TSQ1235ZSG and it's all of a sudden incompatible. This makes an OEM's life very interesting, to put it mildly, even if you just use the part per the datasheet. But if you went insane and decided to bet everything on undocumented features ... did I mention "insane" already? :-)

      And as a side note, typical delays in ICs are pretty small, they are measured in nanoseconds usually. The Flash erase or write cycle is longer, but you can't write just to authenticate. Reading from Flash is pretty fast, around 50 ns if not faster. You need a very accurate clock to measure possible differences between accessing of certain addresses ... and that is possible only if an async device is used (one that tells you when it's done.) Synchronous devices do not tell you anything, they just return the data a bit faster than you are reading. In theory it's possible to probe individual addresses at different speeds and find the delay that is the threshold of data delivery. But that would require a complicated controller, with a DCM probably, or with a clock that is around 1 GHz.

      It's far more practical to use instead a chip that is designed for auth/TPM use. That would be a secure (tamper-proof) microcontroller with a key that is programmed (once) and with some algorithms to generate whatever signatures or encryption you desire. That microcontroller would be in fact reviewed by a competent person to see if it leaks key material through its power pins or RF - and that won't happen with any Flash. And try to beat their 3-pin SOT23 size.

  21. Trusted Computing by tepples · · Score: 1

    a piece of software to alter the signal

    Please see my answer in another comment.

    1. Re:Trusted Computing by Lazareth · · Score: 1

      Oh, I see. So their claim is unattackable because their initial assumption is that no attempt to spoof is being made, thus they are unspoofable. I see the logic. Pass along.

    2. Re:Trusted Computing by r_a_trip · · Score: 1

      What point is using NAND flaws for ID, if they already have an encrypted key on your device in the TPM to which they hold the private key.

      It's a bit like using minoxidil against male hairloss when your testicles have already been surgically removed.

      TPM is currently a very hard to spoof ID mechanism. No need for NAND flaws.

      --
      # touch universe # chmod +rwx universe # ./universe
  22. A problem... by amn108 · · Score: 1

    There are tons of problems with this, not the least of which lies in the fact that if you have a secure boot and trusted environment, you don't really need a NAND chip to read an identity from, you can make do with a file that user cannot remove or alter, i.e. a system file. That's what trusted would mean here. This however presents another problem - amount of users willing to use such a "trusted" system is inversely proportional to how many of these users grok computers. Typically, your mildly paranoid hackers and UNIX minimalists will reject such system on sight because they value their right to introspection and control, while someone like their moms and dads with Windows won't even know or care as long as they can write their Word documents and send email. Then again, the first group goes out of their way to enlighten all other groups on how to grok more IT, including deleting all cookies, which is freely available through Googling, including links to software that does it for you with a click of a button. Making a completely secure identification scheme, if possible, would lead to revolt in the first group (and outright rejection, as mentioned) and an active propaganda with the aim of educating all the other groups against using the method again.

  23. Driver level by SharpFang · · Score: 2, Informative

    Easy to spoof by implementing a flash memory emulation in a microcontroller. A chip that will behave like a flash chip, but in fact provides an extra abstraction layer and simulates faulty areas. Just like HDD controller that remaps faulty sectors to free area at the end of the disk, so from PC viewpoint the disk is fault-free and continuous, doing a similar device (which on top of remapping bad sectors, simulates ones where ones are not present, and makes them look precisely as expected) for flash seems quite easy.

    --
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  24. Controllerless flash by tepples · · Score: 1

    With regard to the actual flash ID technique, I thought any decent flash device (e.g. all SD cards) would have a wear-leveling controller

    Markus Jakobsson wrote in the article:

    No need for error-correcting codes; in fact, we will read and write "raw", which is possible since all of this will be done on OS level.

    It appears he refers to raw NAND flash chips without a dedicated hardware controller in front, soldered directly to the motherboard. These chips don't behave like an SD or CF or SATA or USB device; they're more like xD-Picture cards.

    1. Re:Controllerless flash by Peeteriz · · Score: 1

      It means that I control the hardware (motherboard) which does the identity checking - and for any practical purpose of identification, it means that I can force it to claim that "yes, I have a NAND chip with xxxx pattern" to anyone who wants to identify my harware - say, a software program installer or a networked device. It's just like the processor ID numbers, which were embedded in the silicon and 'unchangeable'.

      It's just like spoofing a hardware dongle - since the consumer OS isn't "trusted", almost anything which goes through it can be spoofed.

      The only way how I imagine this feature somehow working would be someone having a secure/trusted physical device outside of your control, where they ask you to put in your flash-memory, like a chip-card reader.

  25. yeah right by Anonymous Coward · · Score: 0

    This is the kind of DRM that gets spoofed in a week with a highlighter.

  26. Sorry, appliances only. by tepples · · Score: 1

    If all you want is data I can't change, on my general purpose machine, sorry, that's not gonna happen

    Then the major motion picture studios can choose not to sell or rent their works to you if you choose to use only a general-purpose machine. Some major video game developers have made similar decisions.

    1. Re:Sorry, appliances only. by John+Hasler · · Score: 1

      Then the major motion picture studios can choose not to sell or rent their works to you if you choose to use only a general-purpose machine.

      And, of course, no one can live without those movies...

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    2. Re:Sorry, appliances only. by r_a_trip · · Score: 1

      Then the major motion picture studios can choose not to sell or rent their works to you if you choose to use only a general-purpose machine.

      Wrong way around. If the major motion picture studios want to sell or rent their works to someone to get money for it, they better sell what the market wants, not whatever kind of spyware fantasies they themselves entertain.

      It is simple. Make a good product at fair prices and you hit the optimum between sales and copyright infringement. Treat your paying customers as criminals and all you will breed is copyright infringers. The product of copyright infringement, a DRM free copy, has vastly higher use quality than the DRM-ed version.

      No matter what scheme is being dreamt up, if one group is able to lock something, another group is able to unlock it. All it takes is time and determination. DRM is a failed concept. No matter how obscured, the recipient gets both the lock and the key. If this wasn't the case, the customer wouldn't be able to watch the content. All that needs to be done is find out how to emulate the key.

      Look at CSS, AACS, SecuROM, StarForce, XCP, SafeDisc (etc.) as examples of DRM not working.

      --
      # touch universe # chmod +rwx universe # ./universe
    3. Re:Sorry, appliances only. by tepples · · Score: 1

      For one thing, intentionally remaining ignorant of part of the popular culture would make me look like the Area Man Constantly Mentioning He Doesn't Own a Television. For another, even if I don't buy copies of movies, enough other people do that MPAA studios' business model remains sustainable. Once enough things are blocked from general-purpose computers, the economies of scale in making and selling home computers become weaker, and home computers eventually get discontinued in favor of home-priced appliances and business-priced workstations. This arguably happened to set-top home computers in the 1980s, leading to the great console/PC split.

    4. Re:Sorry, appliances only. by tepples · · Score: 1

      If the major motion picture studios want to sell or rent their works to someone to get money for it, they better sell what the market wants, not whatever kind of spyware fantasies they themselves entertain.

      The market has shown its willingness to go along with the spyware fantasies of major publishers of works of entertainment. Look at the popularity of DVD players, BD players, video game consoles, and other video-playing appliances, and the dearth of home theater PCs.

      All that needs to be done is find out how to emulate the key.

      And watch a copyright owner successfully sue to block distribution of the key. Do you remember what happened to Lik Sang?

    5. Re:Sorry, appliances only. by russotto · · Score: 1

      And watch a copyright owner successfully sue to block distribution of the key. Do you remember what happened to Lik Sang?

      One minute you're talking about the market supporting DRM, the next about government force doing so. Which is it?

    6. Re:Sorry, appliances only. by tepples · · Score: 1

      And watch a copyright owner successfully sue to block distribution of the key. Do you remember what happened to Lik Sang?

      One minute you're talking about the market supporting DRM, the next about government force doing so. Which is it?

      What exactly did you mean by "government force doing so"? The United States government didn't force Nintendo, Microsoft, and Sony to add lockouts to all their products, but they did anyway. The market supports DRM, and the electorate supports its government backing by continuing to elect the Republican Party and the Democratic Party to the United States Congress.

    7. Re:Sorry, appliances only. by Eivind+Eklund · · Score: 1

      And then he can choose to download a pirate copy off the Internet. Films, being passive, have the analog hole; games don't.

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
  27. Sounds like ancient DRM by supersat · · Score: 1

    SafeDisc (and older DRM schemes) detected bad sectors on disks, which are hard to duplicate. On the other hand, they've very easy to emulate. This technique sounds very similar, and the fact that they haven't addressed the emulation issue makes me VERY skeptical.

    1. Re:Sounds like ancient DRM by wolrahnaes · · Score: 1

      That was my immediate thought as well. Not only were those systems easy to emulate, they also had the problem that damage would make the disk (or disc) unusable by the application long before it was actually unreadable by screwing up the pattern. As with most content protection, it didn't work and screwed legitimate consumers while not harming pirates at all, yet for some reason the idea keeps coming back with every new data medium.

      --
      I used to get high on life, but I developed a tolerance. Now I need something stronger.
  28. good idea, but... by Anonymous Coward · · Score: 0

    While the idea is good a system is only as strong as it's weakest part. He completely skims over the solutions for reading these keys. Yes the keys themselves can't be replicated reliably in the same format, but it would still be vulnerable to MITM attacks.

    But then again this is often the case with new security technology isn't it, in theory it is flawless and unbreakable if you could only implement the new technology in a system where all the other parts are also secure and unbreakable.

  29. Anonymous Coward by Anonymous Coward · · Score: 0

    Sounds like something that I read many years ago that was being done to 5-1/4 floppies. There was copy protection scheme that catalog the weak bad bits, or sectors, of an original floppy. Making a copy of that original disk would not have the same weak bits thus when the copy protection, during installation, would not find those original weak bits on the new floppy the software would shut down and not install. The method around this copy protection scheme was to copy the floppy thru an analog reading, rather than digital, so that it would copy everything including the positions of the weak bits and pass that on to the new floppy. I forgot the name of the company that made this digital-to-analog pc card.

  30. lol by Charliemopps · · Score: 2, Funny

    Unspoofable? Buahahahaha!

  31. The 80th called by Anonymous Coward · · Score: 0

    And they want their cartridge protection scheme, or band protection scheme, or even their 90th cousin 5 1/4 and 3 1/2 inches protection scheme back. And their little brother from the 00th with CDROM and DVD rom protection back. All of which are crackable if the OS / firmware / driver is tasked to spoof whatever is need to pass the protection.

  32. Why this won't work. by gmarsh · · Score: 2, Informative

    I'm an embedded designer, and I recently created a system which has a raw NAND flash memory chip installed on it. We've manufactured a few hundred of these already, and the majority NAND chips come from the factory with half a dozen bad blocks marked, but I've personally seen a few NAND chips which have *no* bad blocks.

    And devices which do have bad blocks have the blocks marked as bad by programming them, so you can mark any good block as bad if you want. So there's nothing stopping me from buying a few trays of NAND, reading the bad blocks and picking out the few error-free ones, and cloning the NAND chip from one of these supposedly "unclonable because of its bad blocks" devices referred to in the original post - copying bad blocks and all.

    But you don't even have to do that.

    Even devices which *do* have bad blocks may not have hard failures in those blocks, where a bit is completely unable to be programmed or erased. And if you successfully erase a bad block, you've just marked that block as good again. So with enough program/erase cycles, you may be able to successfully make a bad block good again and hold the data you want. If not, move onto the next chip from your tray of NAND and try again.

    And you might not even have to get that 100% right, provided you don't have more than 1 bit of error per sector between the original device and the clone. The ECC will correct that bit error, and the now-cloned device (assuming it uses a proper NAND filesystem) should just encounter the bad sector, move the block and mark the previously-bad block as bad again. At this point, you may only need to buy a few NAND chips instead of a few trays in order to clone any given NAND chip.

    Now as a protection against this last idea, the device could fsck its NAND on boot and set a maximum # of new bad blocks as a tripwire for cloning protection. But if you know what that threshold is, just throw more NAND chips at the problem until you successfully program one below that threshold.

  33. Not another me-too patent please. by Anonymous Coward · · Score: 0

    Really, this just goes to prove the ease with which patents are granted. The same idea has been patented with DRAM. That too has manufacturing variety. And those faults too are not bit for bit reliable, but combined they statistically are unique and reliable. This patent seems to be "like DRAM but with Flash cells.

    (In the DRAM case, the manufacturing variance causes a particular bitpattern after a chip is reset - some bits are more likely to zero than others)

  34. We don't "desperately need" device identity by time961 · · Score: 3, Insightful

    Schemes like this are (as others have observed) pretty common, and don't address the real problem: what we "desperately need" is a trustworthy way of knowing that an automated system is acting in accord with its owner's intent. Alas, that does not seem to be on the horizon.

    I mean, suppose my computer has "secure boot" and "unspoofable identity" and "remote attestation". That's great, if my goal is to prove to the secure server at the other end of the connection that I am running various specific (albeit a priori bug-infested versions) of Windows, drivers, browsers, JVMs, etc. But that's a silly goal, because my adversary is just going to take advantage of it, by running malware on my system that looks like it's acting on my behalf (after all, it has ready access to my unspoofable identity) but is actually transferring the contents of my bank account to the Netherlands Antilles without my knowledge.

    Not to mention the general uselessness of "remote attestation" that a TPM provides: it may be able to attest to your configuration (modulo flaws in your gigabytes of software that enable attestation to be subverted or bypassed), but how on earth is the remote end going to make a meaningful decision based on the identity of hundreds or thousands of components that are attested to? Sure, it can reject known bad (flawed) components, but it's preposterous to imagine that you can know what all the bad components might be. Remote attestation is a plausible way of validating that a machine's configuration is the same as it was when it left a corporate IT department, but for making decisions about arbitrary machines in the hands of arbitrary consumers, it's useless.

    And as for this specific scheme, come on: it might be a way to identify a flash device reliably if you have the hardware in hand, but, as described, it's done in software. That's right, software, which can be made to emulate any particular configuration of bit errors it desires, without there necessarily even being a physical flash device in the picture. Yes, for limited-resource embedded systems, and environments where access timing can be inferred with high accuracy, there are tricks one can use to make such attacks difficult, but for general-purpose PCs connecting over unreliable high-latency networks? Nope... not without mountains of false alarms.

    Make no mistake: trustworthy computing is a hard problem. Unique IDs are fun to research, but not closely related to the solution.

  35. History repeating itself by mobilityguy · · Score: 5, Informative

    This sounds like an early 80s copy-protection scheme that depended on the bad-sector map of the installed hard drive to identify it. It was reliable because only a low-level format would change the pattern, and very few people ever did a low-level format to their drives. The scheme failed when production improved and most drives could be manufactured error-free.

  36. Nice try but by russotto · · Score: 1

    ...I think the authors are oversimplifying way too much.

    OK, you take your flash, write it until it breaks, and use the resulting cells to determine an identity. How do you read it? Write it, then read back which cells aren't written. Uh, wait, if you read it by writing it, won't you cause more failures?

    Furthermore, flash often doesn't fail so cleanly. Some cells will simply not write to 0. However, other times, they will become leaky and read as 0, but then flip back to 1 at some later time. So the apparent device identity may depend on the time between the write and the read, and other factors less controllable.

    Also, I'd wonder how uniform the defects are. It's quite possible that defects in a flash memory block may be much more likely to occur in some parts of a block than others.

    And, emulating it is easy assuming I can use something much faster than flash (e.g. SRAM) to do the emulation.

    1. Re:Nice try but by Anonymous Coward · · Score: 1, Informative
      "It's quite possible that defects in a flash memory block may be much more likely to occur in some parts of a block than others."

      Actually, errors will be more likely to occur in parts of the chip that are geometrically contiguous. The physical pattern that these errors tend to occur in on any individual chip could be likened in some ways to a fingerprint for the chip, with minute width lines of imperfection coiling and spiraling around and through the chip not entirely unlike like striations in marble. No two manufactured chips would ever have the exact same pattern, and to try to reproduce a particular pattern would be costly in the extreme (wholly a matter of trial and error that could quite easily take years, if not decades), because manufacturing tolerances cannot be made equal to or better than the level of detail at which we can observe them (if they were, we could not detect errors in manufacture).

  37. Floppies by phorm · · Score: 1

    Prior to that, they had a similar issues with bad tracks on floppies, and I believe software CD's as well.
    It's not really a new concept, and besides other than DS carts I don't see much software actually being *distributed* on flash, or do they plan on locking the software itself to defects on a given machine?

    1. Re:Floppies by drkim · · Score: 1

      ...I was thinking of the same thing!

      I remember the old floppy scheme. As I recall it there were "soft sectors" that you could write 1/0s to, but would always read back as some random value.

      This could work to verify a certain machine (or user.)

      If there is a master table of which bits on a chip are 'soft' and which are OK for a certain machine, and this chip is in each machine; an interrogator could write and read some memory locations. Only the real machine would have the right bits giving changing data. And each interrogator would be limited to a certain area to test, so in the case of a 'rogue' interrogator, they might learn one area of good and bad bit, but they could not be allowed to learn every one.

      Then they would check with the master table which could tell them if they are talking to the real machine.

  38. "Unspoofable" by Anonymous Coward · · Score: 0

    Just like how HTTP Referrers cannot be spoofed, because the person would need to navigate to exactly the same pages as the target.

  39. er... done before? by dogsbreath · · Score: 4, Interesting

    What they are saying is that this hardware has a unique "biometric" and that can be used to definitively identify true chips/boards from fake. Hmmm...

    First thought that popped up is that this isn't new: floppy disks were "copy protected" using defects punched into the original disk. That didn't work out very well so why would this?

    Second thought was that biometrics have strengths and weaknesses and are not unspoofable. Why would this be any different?

    Several other things come to mind:

    1. If a h/w encoded w/o (write only) serial number is not good enough, why is this better? Is it because it is cheaper? ie: the flash mem is already there so additional gates/circuitry is not required?

    2. What happens if the h/w tech changes? ie: flash mem is no longer cheap and ubiquitous because the whole h/w base has moved to a new technology? In other words, it binds h/w verification, which we want to be a reliable long term solution, to h/w technology which is highly volatile. Probably not a good idea.

    3. There is an assumption that these defects are random. I know from experience that many things we assume to be random are actually patterned and predictable. For example: I have observed DRAM chips that power on with repeatable bit patterns that sometimes vary with production run. Highly consistent, quality controlled production runs tends to remove entropy from the product. Faults and errors occur but within well defined constraints. So... disk drives used to fail within a fairly broad standard deviation from the MTBF but now, in a storage centre with hundreds of drives, I get multiple drive failures almost all at once. The standard deviation is much narrower because the manufacturing process is so well controlled. I used to replace drives when they failed and I was confident that the spares and RAID set redundancy would be sufficient to cover the rebuild time. Now I replace drives before the point in time when I expect failures to start because I can get multiple drive failures within the disk rebuild time. The failures are random but correlated. Go figure. Fortunately, tech change often happens before pre-emptive replacement is required.

    If we base a h/w verification scheme on the randomness of some aspect of a manufactured product then the scheme is bound to the manufacturing process. If you change your process then you change the verification confidence and security. Not good to make these things dependent.

    I think that if there is a need to provide h/w verification then the scheme should be controllable and independent of h/w technology and processes. It should also be able to encode other information with it (er ... it should be extensible). Code a w/o number onto the chip that works like PGP or a cert. Forget about biometrics.

    1. Re:er... done before? by sjames · · Score: 1

      A zillion years ago, I wrote an Int 13h intercept that could emulate floppy errors on an IBM XT. It seemed to be the obvious thing to do.

      Likewise, the solution here will be to emulate the HW errors. The more that depends on the HW "fingerprint", the more motive there will be to create such an intercept for flash chips. Once created, it won't be very expensive.

      That, of course, assumes that you can't just hack the routine that scans for the errors and cause it to report whatever you want it to or that you don't hack the software that calls upon that routine so that it doesn't bother to check at all.

      None of the snakes in my yard are squeaking at the moment, so I'm not going to buy their scheme.

    2. Re:er... done before? by jhantin · · Score: 1

      1. A write-once serial number doesn't prevent an attacker obtaining a brand-new, unimprinted device and cloning the original device's serial number. Which cells in a block of flash memory fail early is entirely a physical process issue, and falls in the general category of intrinsic physical unclonable functions. The entire point of a PUF is that it can't be duplicated; by definition, this means it can't be backed up, customized, or otherwise controlled, only observed.

      2. Using flash memory's bad bits as an IPUF is indeed tied to the technology, but there's no reason an explicit PUF can't be integrated into device design. Yes, these will vary as hardware technology changes, but the principle remains. A hard disk analogue might be reading the remapped-blocks table in a drive's integrated controller -- bad sectors are not generally in the same place on multiple units of the same model.

      3. Elimination of process variation can limit the number of bits of uniqueness obtainable from an IPUF but doesn't invalidate the basic technique. More blocks may have to be tested to destruction to uncover enough bits of physical variation, but part density is also increasing so perhaps this is a push. Disk manufacturing leading to correlated failures in disk arrays is indeed an unfortunate side effect of elimination of process variation, though; I guess we're well past the point of needing to configure arrays to tolerate double failure AND include a hot spare if they have to stay up 24/7.

      --
      ...when you're writing a game...tweak the difficulty of "Easy" to something [your mother] can cope with. -- onion2k
  40. And over time... by aero6dof · · Score: 2, Interesting

    So what happens as you continue to use the flash and new error regions show up?

  41. Mod Parent Up, Please! by Tsar · · Score: 1

    Outstandingly informative post. Thanks for taking the time to share your invaluable knowledge and experience!

  42. if this has a non-tamperable key by YesIAmAScript · · Score: 1

    What do I need the NAND for?

    This whole thing is dumb. If I had a system which already couldn't be tampered, I wouldn't need this NAND thing. And for the NAND, I can read out all the info about the NAND that could possibly be used as a key and then replicate it in a hardware-based emulator that I attach to the board in place of the NAND, leaving the rest of the system in place so it can answer any difficult security questions that are asked.

    The NAND system adds nothing of value because it is replicable. Even if you can make a secure system from it, the rest of the system is doing all the security and the NAND adds nothing.

    --
    http://lkml.org/lkml/2005/8/20/95
  43. I think I heard that before... by Lead+Butthead · · Score: 1

    I think German said the same thing about their Engima machines.

    --
    ELOI, ELOI, LAMA SABACHTHANI!?
  44. Re:What if one more bit goes bad during normal usa by jgoemat · · Score: 1

    They are relying on the fact that once a bit goes bad it will never fix itself, so it doesn't matter much if a few more errors creep in. Let's say

  45. It's a scam! by Anonymous Coward · · Score: 0

    They are just trying to sell stuff that fails QA as useful for something, something everybody was made to be afraid of.