Slashdot Mirror


Ask Slashdot: Is Non-USB Flash Direct From China Safe?

Dishwasha (125561) writes I recently purchased a couple 128GB MicroSDXC card from a Chinese supplier via Alibaba at 1/5th the price of what is available in the US. I will be putting one in my phone and another in my laptop. A few days after purchased, it occurred to me there may be a potential risk with non-USB flash devices similar to USB firmware issues. Does anybody know if there are any known firmware issues with SD or other non-USB flash cards that could effectively allow a foreign seller/distributor to place malicious software on my Android phone or laptop simply on insertion of the device with autoplay turned off?

112 of 178 comments (clear)

  1. Fake! by Anonymous Coward · · Score: 2, Insightful

    I would almost guarantee for that price it's a fake card. It's a pretty common practice. It's either smaller than it says (Try a write test for the full 128gb) or slower than stated etc. Assuming you have an android phone that has the unauthorized sources turned off by default I would think your relatively safe. I would not say it's not possible of an attack though. To my knowledge there is no such thing as autoplay on android.

    1. Re:Fake! by Stan92057 · · Score: 1

      "It's either smaller than it says"

      lol hell buying from a well known HDD maker will result in the same missing space and speed just not as cheap.

      --
      Jack of all trades,master of none
  2. There will be. by Etherwalk · · Score: 1

    Well, you've just made the suggestion in a public forum monitored (at a very low-level) by multiple intelligence agencies. Some intern will now write it up and toss it up the chain, and if someone can develop such a thing, they will.

    1. Re: There will be. by O('_')O_Bush · · Score: 1

      Puh-lease. This has been an existing vector of attack on companies for at least a decade now, and several high profile breaches from this vector shape current policy in secure areas.

      Old news.

      My advice to OP: treat all USB peripherals (mice, wireless cards, storage, etc) as malicious unless they come from trusted/vetted supply chains. And even then, be suspicious.

      Fortunately for the average consumer, China at a state level is interested in stealing valuable technology and company secrets, not in your personal banking information.

      --
      while(1) attack(People.Sandy);
    2. Re: There will be. by Mashiki · · Score: 2

      My advice to OP: treat all USB peripherals (mice, wireless cards, storage, etc) as malicious unless they come from trusted/vetted supply chains. And even then, be suspicious.

      Sorry, you can't even trust things coming from a trusted and vetted supply chain unless there are massive oversight controls. I've seen knockoffs and other crap come though ingram micro...that was in the 90's.

      --
      Om, nomnomnom...
    3. Re: There will be. by Smerta · · Score: 2
      Absolutely correct.

      Remember that kerfuffle a couple weeks ago about FTDI bricking products that were using counterfeit FTDI USB-serial chips? Some of the product designers were unknowingly using counterfeit chips bought from companies we've all heard of (no, not Alibaba or Ebay...)

    4. Re: There will be. by ihtoit · · Score: 1

      my first 486 came from a very well known manufacturer... with a virus in the BIOS!

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  3. Big risks by Anonymous Coward · · Score: 1

    Yes, there are big risks. That's why you need to write the manufacturers and insist they make a public statement. Then people can call them on their contract failure.
    Also, your phone and laptop are already 0wn3d by the government and the corps.

    1. Re:Big risks by harrkev · · Score: 1

      No. No chance of security problems other than possibly having malware pre-loaded in a file on the drive. If you have auto-play turned off and format the card, it should be just fine.

      Now, it is still likely that it is a fake. It might be very small, very slow, or die a very early death, but that would only endanger your data on there and not your computer itself.

      You may be asking "Why is this the case?" The reason is that the "U" in "USB" stands for "Universal" A USB device could easily present itself as a hub with an Ethernet adapter, keyboard, mouse, and storage all rolled into one. Hell, it could even throw in a virtual MIDI keyboard, scanner, printer, and joystick if it wanted to. From what I understand, this is the crux of the security problems with USB.

      An SD card, on the other hand, is strictly for storage. It uses an interface similar to SPI (Serial Peripheral Interface), and is, in fact, really SPI on some of the slower modes. There is no way for a SD card to pretend to be anything else besides an SD card. People have actually wedged WiFi interfaces into an SD form-factor, but you need drivers for those, which means that you need to either install the driver yourself, or the bad guys have to get the driver into Windows Update -- not likely in either case.

      --
      "-1 Troll" is the apparently the same as "-1 I disagree with you."
    2. Re:Big risks by ihtoit · · Score: 1

      I've seen webcams and Bluetooth SD cards as well, even a composite GPS/storage card (how in the fuck they got a GPS to fit INSIDE an SD form factor with only an inch and a quarter of wire sticking out (the antenna) is anybody's guess...).

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  4. more likely scenarios by Anonymous Coward · · Score: 1

    That scenario is entirely possible, but the more likely scenarios are:
    It could be a smaller device hacked to misreport its size, or
    It has PC based malware waiting to be activated when you connect it to a computer.

  5. "From China"?!? by Anonymous Coward · · Score: 2, Interesting

    "Directly from China" is exactly as safe as "made in China and assembled in the US", which is pretty much your alternative.

    1. Re:"From China"?!? by sansprivacy · · Score: 1

      That's simply not correct. You're talking about China's official exports to the US, which undergo at least *some* routine scrutiny v.s. direct from Joe Blo somewhere doing individual shipments via mail. People can claim these are the same, and I'm sure many do. That type of reasoning doesn't do well in say for example ... the sciences ... where preciseness is usually a factor in making decisions.

    2. Re:"From China"?!? by Anonymous Coward · · Score: 2, Funny

      By the way, would a "Made in Russia" tag be a worse or better?

      I dunno. I'd suppose it be likely to get drunk, slap its wife, invade Ukraine, and then break.

    3. Re:"From China"?!? by ihtoit · · Score: 1

      This. Also consider that these so-called knockoff chips are made on EXACTLY the same process lines as the "real thing", using EXACTLY the same substrates, screens, whatever... the only difference is that the "knockoffs" haven't been power tested - so you're taking pot luck that they actually work, even if they are actually as specified on the box (how long have the 8GB cards with 64/128GB firmwares been sitting in storage?? They're still genuine cards, what makes them slightly hooky is the firmware. There's fuck all wrong with them otherwise).

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    4. Re:"From China"?!? by LordLimecat · · Score: 1

      Its actually not, supported by ample evidence, but whatever. Quality control is a huge huge problem in china, whether or not you consider it "Politically correct" to say so.

    5. Re:"From China"?!? by stoatwblr · · Score: 1

      "Quality control is a huge huge problem in china"

      vs the level of Quality Control on USA-made products? (Hint, I live in the EU and see more problems with USA produced devices than chinese ones.)

      Fake products aren't a new thing. 20 years ago a friend of mine was very lucky to discover that the fully certified blades he'd imported from the USA for his Huey helicoptor had in fact been end-of-lifed and pulled/refurbed from a junkyard with fake paperwork. The guys writing them off had even blasted a few shotgun holes in the things, but that's nothing some bondo and paint can't cover up, is it?

      (lucky, as in the blades were in use on the machine and he noticed something odd so he took them off and checked them, instead of having them fail in flight. Many places which write off rotary wings now shred the things as a direct result of this kind of incident.)

      Chinese manufacturers are very diligent about doing what they're told. If you tell them not to cut corners, they won't. The issue is that there are as many unscrupulous businessmen outside the PRC willing to commission/buy dodgy kit as there are businessmen in the PRC willing to produce/sell it to them.

  6. Make you sure you can read and write every bit by kimgkimg · · Score: 5, Informative

    You'll want to check to make sure you are actually getting a 128GB card. I've gotten a couple of fake flash drives and cards over the years which report the proper capacity and will even format, but when you try to write actual data to the device you end up with corrupt files. If the price is too good to be true, it generally is, so I don't buy cards or sticks from vendors that I can't return anymore. Use H2TESTW to test the speed and capacity of your flash card/device: http://forums.sandisk.com/t5/S...

    1. Re:Make you sure you can read and write every bit by Ken_g6 · · Score: 1

      Mod parent up. I got a USB drive as a gift that claimed to be 256GB! I tested it, and I think it's actually a 4GB drive with a little over-provisioning.

      --
      (T>t && O(n)--) == sqrt(666)
  7. Click the Contact Supplier button by fat_mike · · Score: 3, Insightful

    Or search Google or better yet be lazy and do no research at all and then post a question on Slashdot!

    1. Re:Click the Contact Supplier button by fat_mike · · Score: 1

      The name of the supplier is right above the Contact Supplier button. That can be searched on. I hope your irrational "internet tough guy" persona works out well for you in real life. Also, "douchefuck" makes no sense. Am I fucking a bottle of douche? Is it fucking me? Do you actually know what douche means?

    2. Re: Click the Contact Supplier button by ihtoit · · Score: 1

      Wow, Foamy, lay off the coffee, eh?

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    3. Re: Click the Contact Supplier button by Dishwasha · · Score: 1

      Laugh. Cut the dough bag a little slack. Afterall, /. is the land of speculation and pseudo-experts.

  8. Should be Easy to Check by Anonymous Coward · · Score: 1

    Use some Linux tools to examine any partitions that might appear on the card. Also, use these same tools to wipe the card before use; but, doesn't all that manpower negate any savings? Shouldn't we do these things with any SD card?

    1. Re:Should be Easy to Check by Matt.Battey · · Score: 1

      There was a case where Best Buy (long time ago when 100MB Zip disk were the rage) re-sold Zip-disks containing someone's pr0n stash. So the source of the media doesn't really matter.

      Any media, no matter what it's packaging can be a vector for viruses. USB is the most heinous because a device could be the size of a micro BlueTooth tranciever, report it self as a keyboard, and install gigabytes of virus code on a computer system. There's no bigger risk to security than physical contact.

  9. Probably fake cards, actually by Omega+Hacker · · Score: 4, Interesting

    If you think you're getting a card for 1/5th the price, you're probably getting 1/5th the card. I have personal experience with cards that claim to be 8GB but only have 1GB of actual flash in them. I won't touch on the malware issue, but before you actually try to make use of the cards you need to find a way to very exhaustively exercise the entire card. I haven't looked for such a program but I hear they're pretty easy to find. If I were writing one I would put a pseudo-random sequence across the entire advertised size of the card, then read it back and confirm that the same pseudo-random sequence comes back. The sequence should be longer than the card, or at the very least not repeat on something like a 1GB boundary. I suspect a common trick in these cards is to simply drop the upper address bits, so you'll read the same contents off e.g. the 2nd GB as you will from the 1st, and all the others.

    --
    GStreamer - The only way to stream!
    1. Re:Probably fake cards, actually by Megane · · Score: 4, Informative

      I think it's funny that he's worried about being pwned by the flash card firmware (answer: you can't, it's not a generic interface like USB that can be keyboards, mice, network cards, etc. on a whim), and not about being cheated by the old "1GB card that claims to be 4GB" scam.

      Anyhow, here are some relevant links:
      http://www.bunniestudios.com/b...
      http://www.bunniestudios.com/b...

      --
      #naabhaprzrag, #sverubfr-000, #agi-fcbafberq, negvpyr[pynff*=' negvpyr-ary-'] { qvfcynl: abar !vzcbegnag; }
    2. Re:Probably fake cards, actually by Omega+Hacker · · Score: 1

      Of course. I never said I'd write one, just *how* I would. Anyway, there are already tools out there to do this, benchmark the card at the same time, and can read some of the more SD-specific functionality out as well (e.g. check the *actual* manuf string vs the case).

      --
      GStreamer - The only way to stream!
    3. Re:Probably fake cards, actually by klui · · Score: 1

      Analogous to worrying about something that's not likely to happen but sounds scarier and ignore a more common problem.

    4. Re:Probably fake cards, actually by gl4ss · · Score: 1

      that's pretty darn unlikely though.

      so that's not really a thing to worry. besides, if it happens, he can make a blog post about it on some blog he has ads on and get 20 million hits as he would be the first.

      he could turn card encryption on too in whatever os he is using it on, which would make the sd firmware inserting files into the filesystem or altering them even more unlikely.

      --
      world was created 5 seconds before this post as it is.
    5. Re:Probably fake cards, actually by ihtoit · · Score: 1

      I usually throw a new card into a camera and format the thing. Generally sorts it out.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  10. Re:Nope. by i+kan+reed · · Score: 1

    This answer is technically correct. If you can't personally vouch for the source of something, it could be dangerous. That's what trust is.

    My best suggestion is put it in a Linux box(low priority target for this kind of hack), and reformat it.

  11. You think the US ones don't come from China? by gurps_npc · · Score: 3, Interesting
    What makes you think the one you bought direct from China is any different than one you get from Amazon or Best Buy.

    Because I guarantee you that somewhere there is a guy buying them from China in bulk, for 1/5 the price, repackaging them and selling them on Amazon for 3/4 the price.

    --
    excitingthingstodo.blogspot.com
    1. Re:You think the US ones don't come from China? by Maxwell · · Score: 2

      Doubt it. Even if they somehow got reseller status on Amazon, they would promptly get feedback'd down to oblivion. They would't last long on ebay either. Only on Alibaba would someone actually think those cards were real....

      I have seen 640G Sony cards, 512G SD, etc years before that size was actually available....

  12. Re:Nope. by Anonymous Coward · · Score: 5, Informative

    He was asking about firmware. Formatting the SD card will not do anything to the firmware.

  13. Not a security risk, but a fake risk by Jiro · · Score: 1, Insightful

    I would tend to agree with other people: There's really no risk that a SD card is a security problem in the same way that USB is, since it's just storage. However, there is a big risk that any SD card you buy through unusual channels, especially at a ridiculously low rate like 1/5 the price, is just a fake which will start overwriting your data after you get past 1G or 8G or whatever. I absolutely refuse to buy SD cards outside a major physical store chain.

    1. Re:Not a security risk, but a fake risk by wiredlogic · · Score: 1

      Mod parent up.

      The posters flash is almost certainly a fake if it's a mass market brand. Even if it's a generic Chinese brand, it most likely uses the same low-grade flash used in the fakes. I would not risk my data on these devices as the durability over the course of normal use is a big unknown since they aren't backed by a company doing extensive characterization.

      --
      I am becoming gerund, destroyer of verbs.
    2. Re:Not a security risk, but a fake risk by queazocotal · · Score: 2, Interesting

      Of course it's a security risk.
      The SD card has a 32 bit processor that does the wear leveling.
      There is nothing stopping it doing 'interesting' things to files on it, if it's so programmed.
      The extra fun part is that the user can't read out this programming.

      Obvious things might be infecting files with viruses, appending small secret files to large media files in the hope that they will later be shared, or more targeted attacks.

    3. Re:Not a security risk, but a fake risk by Goaway · · Score: 1

      It's not that the flash is low grade, it's that it just plain doesn't exist, and the card will just discard data after a while. What flash there is in there probably works, but is useless.

    4. Re:Not a security risk, but a fake risk by meustrus · · Score: 1

      Mod parent up! This is the only informative on-topic comment I've seen on the entire page so far! Why is that if someone asks "is it safe", everyone wants to chime in and instead "it isn't real"? That is an answer to a different question than the question that was asked.

      --
      I sometimes ask revealing, often ignorant-seeming questions. Maybe they're harder to answer than you think.
    5. Re:Not a security risk, but a fake risk by AK+Marc · · Score: 1

      There are other questions for "safe". Is it safe to hold data on? Is your computer safe? If the data isn't "lost" is it still the same data you tried to put on it?

    6. Re:Not a security risk, but a fake risk by meustrus · · Score: 1

      There's a big difference between "it will lose the data you put on it" and "it will infect your computer and destroy the data you put everywhere". If I wanted to conduct secure transactions with my bank over the internet, it doesn't really matter (much) if my computer is running off of an unreliable hard drive. It might crash in the middle, but I probably won't lose money over it. But if the hard drive infected the operating system, the infection could undermine the security of my transactions and drain my bank account. When we apply that logic to a piece of removable storage instead of the main system drive, an unreliable flash drive or SD card won't crash your computer (unless you're using it for memory paging), but an insecure one could still drain my bank account.

      I won't say that everyone knows the risks of faulty storage coming from east Asia. But the OP has chimed in in reply saying that he understands the risks and bought it anyway. So would everyone please stop saying the same damn thing over and over again and take a look at what is really the much more interesting question of whether SD cards are a meaningful attack vector with autorun disabled?

      --
      I sometimes ask revealing, often ignorant-seeming questions. Maybe they're harder to answer than you think.
    7. Re:Not a security risk, but a fake risk by AK+Marc · · Score: 1

      What's the theoretical attack vector of a blank SD card? Some "memory cards" can run video cards and wireless, so are you asserting that someone could put those functions on an SD card (that also has functional memory) and capture things? Or are you just saying "Asia sucks"?

      Because so often in these discussion it comes down to the latter.

    8. Re:Not a security risk, but a fake risk by meustrus · · Score: 1

      I'm not asserting anything about SD cards. I don't myself know how dangerous a maliciously crafted one could be. That's why I thought I'd wade into the comment section and see who does. Apparently more people are interested in answering a different question.

      --
      I sometimes ask revealing, often ignorant-seeming questions. Maybe they're harder to answer than you think.
    9. Re:Not a security risk, but a fake risk by AK+Marc · · Score: 1

      You can run a network connection over an SD card. http://www.eyefi.com/products/... But that's still not an attack vector. You'd have to auto-run the drivers, and have a root-kit in the drivers to be able to really do much with it. And the constraint was "no autorun", so are you going to install the network adaptor on your memory card, with manual clicks and past multiple warnings?

      There's no practical way to compromise a machine with an SD card. There are theoretical ways. You are throwing up uninformed comments hoping someone gives you a constructive answer? Go take a class on something. Deliberately hijacking a "discussion" to be your personal Kahn academy isn't going to help the discussion or your knowledge.

    10. Re:Not a security risk, but a fake risk by meustrus · · Score: 1

      Hey, don't accuse me of hijacking the discussion. I wasn't the one who asked if an SD card bought from unreliable sources could install malware without autorun:

      Does anybody know if there are any known firmware issues with SD or other non-USB flash cards that could effectively allow a foreign seller/distributor to place malicious software on my Android phone or laptop simply on insertion of the device with autoplay turned off?

      That was the OP, not me. I just wanted to praise queazocotal for actually answering the OP's question.

      --
      I sometimes ask revealing, often ignorant-seeming questions. Maybe they're harder to answer than you think.
    11. Re:Not a security risk, but a fake risk by AK+Marc · · Score: 1

      If you want to discuss theoretical, you couldn't name something that's *not* an attack vector. Perhaps a VGA video port, but display port is a valid attack vector, as well as RAM expansion, or any card you put in it. So in general terms, unless you get silly (the paint on the keys isn't an attack vector for anything but anthrax), assume everything has a valid attack. Does that answer the question?

  14. Re:Counterfeit by Austerity+Empowers · · Score: 1

    Not sure I'd use 0's. I think i'd use random data with a CRC check, or at least known files that i could copy back and diff against hte originals.

  15. Think for a second by king+neckbeard · · Score: 1

    Regarding your question, I'm not aware of any such exploits offhand, but that doesn't mean that they don't exist. That said, I'm not sure why you think getting a flash drive from China would mean it's any more risky. They are all manufactured in China anyway, and US companies are not the least bit trustworthy.

    --
    This is my signature. There are many like it, but this one is mine.
  16. Re:I'd be more worried... by Dishwasha · · Score: 1

    I was aware of and willing to take that risk considering the significant price difference. The positive thing with Alibaba is a 15 day dispute period. It probably won't be even worth going through the dispute process, but at least that option is available.

  17. Ditto by phorm · · Score: 1

    Yes, my 64GB MicroSDHC turned out for be 3.5GB of actual memory followed by rewrites that corrupt over the existing data. Apparently this is very common.

    1. Re:Ditto by sexconker · · Score: 3, Informative

      SDHC only goes up to 32 GB, so that should have been your first clue. Happened to my dad, too.

    2. Re:Ditto by OverlordQ · · Score: 1

      who remembers all the acronyms?

      SD, SDHC, SDXC, SDIO, BFG, LOL, WTF

      (lameness filter, blah blah blah)

      --
      Your hair look like poop, Bob! - Wanker.
    3. Re:Ditto by kesuki · · Score: 1

      "who remembers all the acronyms?"
      https://google.com/ if the first page does not have it then try
      https://www.wikipedia.org/ if wiki fails you or has too many acronyms on one page then ask the author if they can be reached.

      oh no, sdxc chips all use exfat and are limited to 4 gb for a single file, meaning a dvd iso won't fit. the sdhc was 2 gb files so it went up but not enough and according to wikipedia "SDXC adopts Microsoft's exFAT file system as a mandatory feature." i have xc cards already but if the hardware itself won't let you format to say zfs then there isn't much i can do about it...

    4. Re:Ditto by ihtoit · · Score: 1

      oh, fuck, not another ransomware...

      I'm just glad I keep all my data airgapped.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    5. Re:Ditto by itzly · · Score: 1

      So if you change the filesystem on an SDXC card after buying it there's nothing to say SDXC devices definitely won't be able to read it, just that you cannot automatically assume that they will be able to read it.

      The problem with that approach is that these cards have been optimized with FAT filesystem in mind. They do this by using smaller sectors for the FAT area, and bigger sectors for the data area. Using a different filesystem can reduce speed and durability of the card.

    6. Re:Ditto by sexconker · · Score: 1

      You might want to read it once.

      Yes, my 64GB MicroSDHC

  18. SD cards can't impersonate a keyboard by AC-x · · Score: 2

    SD cards can't impersonate a keyboard, so anything like the USB firmware hack you linked to is impossible. There could be malicious files pre-installed on the drive, but then that's happened to big name suppliers plenty of times too.

    As far as I know Android has no facility to run code directly from an SD card anyway, and if you're using an antivirus package worth its salt on your PC it would block any autorun attempt.

  19. OBInSovietRussia by Anonymous Coward · · Score: 3, Funny

    In Soviet Russia, girlfriend claps tablet.

  20. No badusb-type attack (% SDIO), but malware inject by raymorris · · Score: 5, Interesting

    The SD* interface doesn't have the _same_ problem that USB does, ie badusb. It has other issues, though, and an SD card could made malicious. The issue with USB is that a USB device can be / act as storage, a keyboard, a mouse, a camera, etc. You can plug in a USB device which you think is just a memory stick, but unbeknownst to you you, it's also acting as a keyboard and "typing" commands to your computer. A pure SD card interface supports _only_ storage devices, so they can't act as keyboards. They therefore can't directly attack the host device in the same way that USB can.

    Android does have some support for SDIO, though, which allows a card to act as a camera, wifi card, or keyboard. I *don't* think Android will by default use an SDIO input device. It's possible that it will, though. I may have to emulate such a card with a microcontroller and see what happens when it is plugged in to various iOS and Android devices. If it works, you just witnessed the birth of badsd, as I haven't heard of anyone doing that before.

    What an SD card could do on a pure SD storage interface is muck with any files you put on the card. Suppose you installed towelroot or supersu on the SD card. The controller on the card could inject malware into the executable, and that malware would then be run with the same privileges you have - full root access if you root your phone, or the same access the apps have. Along with injecting malware into your files, the trojan SD card could send your files to the attacker. Wifi adapters can be made that small, so any data saved to the card could be sent to the attacker via the built-in wifi.

    Your best defense in that case might be "at 1/5th the price of what is available in the US". A trojaned card like that is going to cost some money to make, particularly the version with built-in wifi. It wouldn't make sense to sell a million of them on Alibaba, losing money on all of them. They would more likely be used in a targeted attack - "mistakenly dropped" on the premises of a defense contractor or R&D lab, maybe even advertised on on a forum likely targets tend to visit, such as one related to aerospace engineering or large-scale investments.

    One step you could take to protect yourself would be to write and read back some known files of various types and compare their SHA hashes within a VM. The card should return a bit-by-bit identical copy of the file that you copied to it. If you save an .exe or .apk file and it comes back changed, that would be a bad sign. I'd like to hear from anyone who experiences tat so we can investigate further.

  21. Re:Get over yourself by Opportunist · · Score: 1

    Contents? Keep the crap on your HD, I want your bandwidth, your processing time and your IP address.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  22. ps - you could be a target. Servo guy was by raymorris · · Score: 3, Interesting

    I forgot to say, don't completely dismiss the possibility of a targeted attack. A few years ago there was a guy who didn't have access to any top secret information or anything. He worked on software for factory machine parts and stuff. For example, he might work on a large servo, translating the command "turn 30 degrees" to electrical impulses to the motor's magnets. He sure doesn't seem like a high-value target.

    He turns out that the motors and stuff he worked on were being used by another company who built larger modules from motors, gears, etc. Those modules were, in turn, used to make chemistry lab equipment such as centrifuges. Centrifuges used in Iran. So servo firmware guy WAS target zero for stuxnet.

    * The above narrative is roughly correct. Maybe the firmware-writing employee was a she, not a he, we don't know exactly which employee was hit first. We do know it came in through that company.

  23. Re:Chinese production values by Anonymous Coward · · Score: 1

    Not like a good old "Made in the USA" product right?

    I mean no american company would ever release a faulty product, and later get caught creating a spreadsheet which calculates if it is cheaper to recall or payout all the resulting the wrongful death suits.

    Or, release a defective defective product and try to minimize the damage before they told the regulators?

    Or issue sub-prime loans...

    "People in glass houses...."

  24. don't worry about it by frovingslosh · · Score: 5, Insightful

    Don't worry about it. If you got it through Alibaba it is almost certain to be a counterfeit card with the size and even brand name printed on failing rejected cards, and it will have no better chance of retaining malware than it will have of holding your own data. I know a couple of people who bought through Alibaba that this happened to.

    --
    I'm an American. I love this country and the freedoms that we used to have.
    1. Re:don't worry about it by Curtman · · Score: 2
      Same here. I bought two 128GB cards on eBay for $23 each. Only one showed up, and when I tested it with:

      # dd if=/dev/zero of=/dev/sdc

      it gives I/O error at about 8.2GB. Definitely not worth the aggravation.

    2. Re:don't worry about it by JackDW · · Score: 1

      This sort of test may not detect all fakes.. really you need to write a test pattern and read it back, as the writes may appear to succeed.

      Programs exist to do this for you, e.g. https://sites.google.com/a/int...

      When I had one of these fake cards, it seemed to me that the firmware had been designed to allow a filesystem to be created on the device, by remapping the blocks that the filesystem would use for its metadata.

      Formatting utilities should really check for bad SD cards...

      --
      You're an immobile computer, remember?
    3. Re:don't worry about it by bscott · · Score: 4, Funny

      Yeah - I worked for a gadget retailer and was asked to test some 8GB flash sticks several years ago.

      You could write 8GB to them, but anything past the first 4GB returned a read error.

      My boss called the supplier in Shenzen to yell at them - "How could you do this?" Their response: "I don't understand - you SAID you wanted the best price?!"

      --
      Perfectly Normal Industries
    4. Re:don't worry about it by plover · · Score: 3, Funny

      It's an anti-TARDIS card -- it's smaller on the inside.

      --
      John
    5. Re:don't worry about it by devman · · Score: 1

      Any reason why a random single-pass 'badblocks' run wouldn't work for this purpose?

    6. Re:don't worry about it by Anonymous Coward · · Score: 3, Interesting

      It might not do what you think.

      Here's what to do:  Generate random stream with openssl, md5sum it going into the card, md5sum it coming back out.  Use pv for progress display if desired.

      ~ # cat randomtest.sh
      #!/bin/bash
      time (openssl bf-ofb -pass pass:`cat /dev/urandom | tr -dc [:graph:] | head -c56` < /dev/zero | pv -pterb -s `blockdev --getsize64 $1` -S | tee $1 | md5sum | tee writesum)
      echo
      time (cat $1 | pv -pterb -s `blockdev --getsize64 $1` | md5sum - > readsum)
      echo
      echo "Written:" `cat writesum`
      echo "Read:" `cat readsum`
      rm writesum readsum

    7. Re:don't worry about it by jones_supa · · Score: 2, Interesting

      Same here. I bought two 128GB cards on eBay for $23 each. Only one showed up, and when I tested it with:

      # dd if=/dev/zero of=/dev/sdc

      it gives I/O error at about 8.2GB. Definitely not worth the aggravation.

      No, no, don't do it that way. If you overwrite an SD card starting from the beginning, you will overwrite the Protected Area of the card. Also happens if you use the "format disk" function of an operating system on the card.

      The SD Association has a special formatter which avoids this problem.

      Maybe try reading the card instead of writing, to test for those cards which have missing flash. Or carefully skip the Protected Area with dd when writing.

    8. Re:don't worry about it by Richard_at_work · · Score: 1

      And what is the "protected area"?

    9. Re:don't worry about it by resfilter · · Score: 5, Informative

      oh dear god dont write over the protected area! ...

      it's used for some specialized keys for some rarely used version of DRM. so if you have a CPRM "protected" file on the sd card, then.. you know.... "accidently" give the file to someone else, they'll lack the decryption keys (since they're stored outside of the filesystem by the program that wrote the file to the flash card) and the file will be useless.

      http://en.wikipedia.org/wiki/C...

      it's another one of those things that attempts to relabel yet another "generic binary storage device" as a "specialized media holder to assist content protection", and you should actually go out of your way to destroy this "protected area" instead of carefully avoiding damage to it.

      it's totally safe to write over this "protected area" and use it for your own data, and it's rare to run into programs that actually use CPRM for protection against distribution (although they probably do exist, why would you use such a thing?).

      that's probably why you've never heard of it or noticed writing over it.

    10. Re:don't worry about it by apraetor · · Score: 1

      You don't even have to look as far as eBay, those same counterfeit cards are also available on Amazon.com. You can even get them "Fulfilled by Amazon"; I called to complain and was told "we just distribute what the sellers send to our warehouse" -- if that argument wouldn't keep a fence out of prison why should Amazon get to use it to profit from fake goods? Also, even though you can still get 4GB microsd cards every fake I've seen has been an 8GB one; do you think perhaps that's because it's easier to add the "12" without needing to scrape off the "4" first?

    11. Re:don't worry about it by AK+Marc · · Score: 1

      USA, where "caveat emptor" applies when you are selling, but not when you are buying.

    12. Re:don't worry about it by stoatwblr · · Score: 1

      " if that argument wouldn't keep a fence out of prison why should Amazon get to use it to profit from fake goods?"

      If you're in the EU and get a fake via Amazon, you can be assured that trading standards officers will be all over it like a badly fitting shirt.

      Ironically it's easier to get refunds on fakes from ebay than from Amazon, because ebay's policies on reporting counterfeits is much more weighted in the consumer's favour.

  25. Re:Counterfeit by TheCarp · · Score: 1

    rotfl of course you know, if they are counterfit, you might be able to take that as a good sign, since you know the people tampering with it were explicitly ripping you off for profit, those sticks probably don't contain any backdoors placed by a reputable internationally operating TLA who would want you to get the full size of the drive you paid for.

    --
    "I opened my eyes, and everything went dark again"
  26. Only slightly safer than buying in US by Timmy+D+Programmer · · Score: 2

    Its never secure, however buying directly from a supplier who has a good reputation to protect is is safer than buying from a distributor in the US. Simply because if you purchase direct and discover something they would be easily exposed,and that would kill their business. The more hands it gets passed through the more opportunities for someone to sneak something in.

    --


    (If at first you don't succeed, do it different next time!)
  27. Just avoid by sansprivacy · · Score: 2

    These types of "deals" are always some type of trade-off. How much is your time worth? Go with a tried and true distributor and reputable seller off amazon. If you can't afford something at the normal asking price to the point your are willing to dabble with nefarious entities from China, then maybe you should wait and save up for when you can ... or don't and convince yourself you got a great deal from "someone" in China.

    1. Re:Just avoid by drinkypoo · · Score: 1

      These types of "deals" are always some type of trade-off. How much is your time worth?

      I don't know about 1/5, but you can typically get memory cards at 1/2 off by just buying naked OEM cards. Before I leave positive feedback, I try to register for the warranty.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  28. Re:Chinese production values by neminem · · Score: 2

    Or, literally do exactly what this question is asking, release something that autoruns malicious software on your machine when you try to use it...

  29. watch out! by slashdice · · Score: 1

    Google already put malicious software on your Android phone.

    --
    Copyright (c) 1990 - 2014 Dice. All rights reserved. Use of this comment is subject to certain Terms and Conditions.
  30. malware not the real worry IMO by Stan92057 · · Score: 2

    I would be more worried about getting into trouble for buying counterfeit or stolen property.

    --
    Jack of all trades,master of none
  31. More context on fakes by rsborg · · Score: 2

    I would almost guarantee for that price it's a fake card. It's a pretty common practice. It's either smaller than it says (Try a write test for the full 128gb) or slower than stated etc. Assuming you have an android phone that has the unauthorized sources turned off by default I would think your relatively safe. I would not say it's not possible of an attack though. To my knowledge there is no such thing as autoplay on android.

    http://www.ebay.com/gds/All-Ab...

    --
    Make sure everyone's vote counts: Verified Voting
  32. Re:Already demonstrated by YrWrstNtmr · · Score: 1

    Primarily, Snowden and Manning. But this too.

  33. Re:Chinese production values by Anonymous Coward · · Score: 1

    Know what was one of the best things with the whole "rootkit" scandal?

    In order for Sony to "enforce" its DRM they engaged in copyright infringement.

    Not sure why it is OK for Sony to violate copyright law and suffer minimal consequences, but individuals who download Sony music are left bankrupt.

  34. Safe? by Pete+Venkman · · Score: 1

    Where do you think your phone and laptop came from?

  35. Alibaba has a long way to go by Anonymous Coward · · Score: 2, Informative

    I got a counterfeit USB stick from Aliexpress and gave the item a one star review. The company actually called me up the next night - or should I say morning (3 AM), telling me that they understood the time difference and that they would continue to call me at that time every day until I changed my review.

    I will never deal with Aliexpress again. Aliexpress never replied to my complaint. I will stick with something that realizes the importance of reputation.

    1. Re:Alibaba has a long way to go by MPBoulton · · Score: 1

      Dodgy practice, but easily dealt with by turning off cellular at night or emailing your cellular network and asking them to block the number because you are being harassed.

      Even better, just don't give the company your number when you buy - they will almost certainly use it to hassle you with marketing or sell it to companies who will.

  36. Re:Chinese production values by asimons04 · · Score: 2

    I wish I had mod points left so I could mod all of these up.

  37. SD Cards == exploitable by Frogg · · Score: 1

    FYI... Sean "xobs" Cross and Andrew "bunnie" Huang disclosed low-level vulnerabilities in SD cards (as far as I can tell: on par with- and related to- the more recent BadUSB-type hacks) at a 30C3, back in December 2013.

    For further details, see:-
    http://www.bunniestudios.com/blog/?p=3554

    1. Re:SD Cards == exploitable by Frogg · · Score: 1

      Granted, an exploited SD card can't pretend to be other USB devices (like BadUSB), but the exploit is similar to BadUSB in as much as it means the card's firmware can be re-written and malware can basically MITM your data / the device it's inserted into — so, theoretically at least, the card could be made to further exploit any vulnerabilities in the device it is talking to...

  38. No idea... by Thor+Ablestar · · Score: 1

    No idea about Alibaba but E-Bay has a dispute system. And when I bought a pack of 18650 batteries 0.25 Ah each instead of at least 2.5 Ah and marked them OK - it's my own problem.

    Next time I asked the seller "How many Ah has your 3.0Ah battery?" Answer was "They usually have at least half of that, you understand...". I preferred to buy a cheap notebook battery and disassemble it.

  39. F3 by Foresto · · Score: 1

    I don't have any experience with malicious flash drives, but since we're on the topic of fakes, F3 is a handy test program:

    http://oss.digirati.com.br/f3/

  40. irrelevant by slashmydots · · Score: 1

    Doesn't matter. They're all going to fail within a week. Discount flash on Alibaba has a notoriously high failure rate.

  41. Cheap flash drives? by nohear_t · · Score: 1

    Companies in China or any asian design shop out east will buy lots and I mean lots of rejected Flash chips or bare dies from a Fab that has failed some method of testing.  These are bought for cheap since it isn't in the Fabs interested to debug it.

    This Chinese company will take those chips/devices and run tests to see how much of it actually works.  They will spin a circuit board with a controller that will only exercise the portion of memory that actually works (and have 100+ variants exercising the IOs/data lines that are functional).  So, they get a 64Gbit device that's bad, figure out only 18Gbit of it works and pair it up with other chips and build a board, program the controller and package it up.

    This is very common and you have no idea that it has happened.  Crack open some generic flash drive if you happen to have 2 that are non-functional, don't be surprised if you see different part markings silkscreened onto the circuit board or you have different flash chips.

    This is how they make their money.  They don't care if it works or not.  They made the sale.

    1. Re:Cheap flash drives? by stoatwblr · · Score: 1

      "Companies in China or any asian design shop out east will buy lots and I mean lots of rejected Flash chips or bare dies from a Fab that has failed some method of testing. "

      This kind of thing could be eliminated if the fabs implemented a policy of "into the grinder"

      "of course that will never happen" - except that some fabs already do.

  42. Get whacha pay for by duke_cheetah2003 · · Score: 1

    The price makes the item suspect. One must oneself, why is this so much cheaper?

    While being malicious is possible, it's probably much more likely its substandard and either won't work very well straight out of the box, or will fail fairly quickly compared to a 'normal' priced one.

    1. Re:Get whacha pay for by ihtoit · · Score: 1

      This. Bricks and mortar for me, and I'll only deal with a BAM that records the serial number of the card (they're around, and EVERY branded card has a UUID silkscreened on it). Any problems, card goes back for exchange. Sorted. :) I also won't buy a card with less than three years warranty.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  43. Re:Counterfeit by ihtoit · · Score: 1

    I have a 20GB hard drive that formats to 10GB. There're no bad sectors reported on it or anything like that, it's been like that since I partitioned it the second time round. Were they doing this to hard drives as well way back when a 20 set you back £200?

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  44. Re:Chinese production values by ihtoit · · Score: 1

    Because Sony are content providers, we are pigs in the trough.

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  45. Re:Chinese production values by ihtoit · · Score: 1

    am I the only one who finds this post a: redundant and b: ironic?

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  46. tin foil by bloodhawk · · Score: 1

    considering any you are buying locally will be made in china or korea anyway then if you are scared of those cards you should be scared of just about every piece of electronic kit in the modern world. Your only safe bet is to go live in the woods with an abundant amount of tin foil.

  47. Safe? No. Secure? Probably. by gweihir · · Score: 1

    It takes effort to put root-kits on these and even the USB-attacks where a publicly available tool-chain exists need customization for the target and specific exploit code. These are not one-size-fits-all attacks.

    But safe? Likely these use sub-standard flash and controllers to make that price. Expect data loss and undetected corruption.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  48. non-free formatter is risky by John_Sauter · · Score: 3, Insightful

    The SD Association has a special formatter which avoids this problem.

    Interesting that the special formatter is only available for Microsoft Windows and Apple Macintosh, and apparently only in binary form. Even if I had such a computer I would not be comfortable formatting my disk with non-free software. Who knows, it might be putting an encrypted child porn picture on a hidden part of the disk, exposing me to the risk of prosecution. No thanks.

  49. Re:I'd be more worried... by Goaway · · Score: 1

    The price is the dead giveaway that it is a fake. Flash memory does cost money, and it is sold at minimal margins. One fifth of the price means less than one fifth of the memory, every time.

    The card will pretend to be as big as they claim, and it will silently just lose your data.

  50. Here's what you do by WillyWanker · · Score: 1

    Take some tinfoil, form a large hat, a medium hat, and small hat. Put the large one on your head, the medium one on your laptop, and the small one on your phone. After that, you should be just fine.

  51. Re:Counterfeit by LinuxIsGarbage · · Score: 1

    Are you sure there is not a size barrier on the BIOS / disk controller? Or that the HDD has a jumper to a lower capacity for compatibility with above mentioned size barrier? I remember with hard drives that were "too big", you'd have to set the jumper, then install overlay software (usually in the MBR) to allow access to the full capacity. Int13 has a limit around 8GB, and is one of those barriers.

  52. QA rejects. by SharpFang · · Score: 2

    Most likely QA rejects. Now why they were rejected by QA - this is your opportunity for getting decent media cheap. Sometimes the controller is broken and you'll end up with a fancy guitar pick. But sometimes the number of bad blocks on flash exceeds the standard. Run 'badblocks' on your card, and you'll get a card 95% the size of respective 'brand' at 20% the price. As a bottom line, this may cost some work and don't expect your profit is 4x the value of 'certified', but you may come out profitable.

    --
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  53. Re:Counterfeit by ihtoit · · Score: 1

    definitely not that. I'm aware of the 8GB cap, I'm also aware of the 32GB jumper cap on larger capacity drives. This one doesn't have that.

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  54. Tested, not that bad by neoedmund · · Score: 1

    I did bought some TF card with the price about $1/8GB when seeing the comment about "fake card", I did the test on a 32GB TF card. I write a 30GB file into it, and read it out. The data is OK. Only the speed, it said "class 10", but actually write at 3MB/s and read 12MB/s, using a micro-sd to usb adapter on my PC, which seems only "class 3" or "class 4". Writing 32GB data cost about 3 hours, so in case of 128GB may cost 12 hours!

  55. Re:Counterfeit by stoatwblr · · Score: 1

    Makers went away from the jumpers and allowed the drive to be reprogarmmed to report smaller capacities directly. This is covered in the latest versions of hdparm.