good lord. I pulled a microSD card out of a Raspi inside an IoT product and it appears they had some developer use a raspi to develop/test some software, and then they just yanked the SD card out of that machine and duped it on to all of their deployed products.

it's got .bash_history of the development process! there's git checkouts of private repos! WHY WOULD YOU DO THIS?

I've also been able to de-stealth a "stealth startup" on linked in.
because this has commits from different users, and I can just look up on linkedin what stealth-startup all those people work/worked at and then look at the name on the IoT box I'm holding

also, you punks are writing python 2 code in 2021? come on, who does that?

I mean, I do all the time, but I'm a known retrocomputerist. I run Windows 95 and MS-DOS regularly. of course I'm using a wildly outdated programming language. I'm not making a product I sell to customers!

oh cool you can pull the GPS history of a truck from azure without any login, you just need to know the device ID.
this might be UPS trucks. I should probably not query any of these GPS histories

also they're spamming 9 lines to syslog every minute.

this is a microsd card in a raspi, guys! you are going to fry your fucking card by running out of write cycles. That's not a good idea in any raspi application, especially not an IoT one

oh sweet jesus they logged into slack from this machine('s image)

I have their chrome profile, with history and cookies and shit!

this is deeply embarrassing. I have lists of their duckduckgo and google searches for the programming problems they were having building this product.

no programmer should ever have that personal shame shared with the world. let alone included on every microSD card your company ships!

oh sweet jesus

they automatically scp up some logs to a server somewhere. Did they set up keys so that authorized devices could log in automatically without passwords?

NOPE THEY USED SSHPASS

I have a file here with multiple lines like:

sudo sshpass -p PASSWORDHERE scp /path/system/network.log USERNAME@IPADDRESS:/home/manufacturing/

well I'm putting this away so I don't accidentally hack them.

this is one of the many reasons I'm not a security researcher.

it's a target rich environment.

Also I'm a reverse engineer. There's no reverse engineering here!
I unscrewed the box, pulled out the raspi, pulled the SD card out, put it in my laptop, and it automounted. I then looked at some files while making a disgusted face.

That's not reverse engineering! That's just lookin'

Also this isn't the only opsec failure they've made but if I say what the other one is, you might be able to figure out what company this is. And if you can do that, they can too, and they might get mad at me
I just noticed this is how they heatsinked that raspberry pi I yanked the SD card out of.
@foone what did this iot product do?
@Viss @foone per earlier post, tracks trucks

@ian It's a cheap truck-tracking trick.

@Viss @foone

@foone i love that the left heatsink is also not the appropriate size at all
@ada @foone Likely because it was intended for that IC on the right (RAM iirc?) rather than the EMI shield it's sitting on
@foone well, I don't want to say it, but, if I read your posts, I might come to the conclusion that this device was not carefully designed nor built at all!
@foone You mean just it's a shoddy IoT product?
You really think someone would do that?
Go ahead and just built an IoT product with no forethought, diligence or afterthought at all?
@foone the fact that it's stayed on is by itself kind of impressive
@foone Secretly terrified this is a former employer's handiwork
@jordan @foone this thread is also making me wonder if this was my former employer.
@foone The heatsink is tilted like that to ensure that the caloric fluid runs off properly.
@foone this level of both software & hardware gore is bordering on needing a CW
@foone From that angle it almost looks like it's actually a Li-Ion Laptop battery bulging rather than a heatsinked chip.
@foone the heatsink on the WiFi module shield is a nice touch
@foone this whole thing feels like a dev handed someone else at the company a Raspi saying "here's my first working prototype, let me know what you think". Next day: "So, did it work ok?" "Oh yeah, works great. We've put it into mass production now." "You did what?!"
@lethal_guitar @foone I developed set top boxes. I very quickly learnt not to show marketing people the device playing video too soon otherwise we would have the rest of our dev time reduced!
@foone ysee, here's the issue
@foone I’m pretty impressed by the diversity of their incompetence.
@foone it’s a jaunty little hat!
@foone oh shit thats really recent too then. I would have somewhat excused the bs if this was a Raspberry Pi 1 or 2 or smth where there were little ressources for proper image generation and deployment for the platform.
That sounds like someone just left the company and whoever was left just deployed what was available in any way they knew how.
@foone It's a fashionable hat at a jaunty angle!
@foone THIS IS THE FUNNIEST FUCKING THREAD HAHAHAHAHAHA
@foone Carolina Squat edition.
@foone wowza, what's a recommended way forward here? Reaching out to them reporting these issues? Or just letting it go?

@foone

is he, y'know, *tilts heatsink*

@foone This is just a beginner level CTF, with less steps!
@foone
Pretty sure they already can with the info you've just written down if they want.

Pretty sure they also don't want, because it would be embarrassing to the extreme for them to come forward after what you just wrote down 😂
@wouter Well, some companies ironically value their reputation so much and fear such blunders becoming widely known to the point that they would cause a Streisand-Effect when trying to bury it.
@foone oh my god, this is the real life example of the old joke "it works on my machine" "ok box it up and send it to the data center"
@foone I want off Mr. IoT's Wild Ride
@foone please tell me at least they're out of business?

@bshah that matters little. The cloned iot devices are still in use in the wild.

@foone

@foone

As always, you are my hero.

This is jaw-dropping bad.

Play some old Lode Runner on an Apple ][ emulator for brain bleach.

Nice find.

#infosec

See if they have a bug bounty program. They won't, given these kinds of findings, but clearly they should.

@foone As they say: The S in IoT is for Security …
@foone I'm imagining the dev said "hey, it works!" and five minutes later found himself laid off. Five minutes after that, they were cloning this card. 🤦‍♀️🙅‍♀️🙎‍♀️