Space secrets leak disclosure
huggingface.co
huggingface.co
I didn't realise at the time that I flipped through the slides that this means not only the model's author gets to run code on your machine, but also if Huggingface got a court-signed letter or if someone hacked them (especially if they don't notice for a while¹)
As someone not in the AI scene, I've never run these models but was surprised at how quickly the industry standardised the format. I had assumed model files were big matrices of numbers and some metadata perhaps, but now I understand how they managed so quickly: a model is (eyeing slides 186 and 195) a Python script that can do whatever it wants. That makes "standardisation" exceedingly easy: everyone can do their own thing and you sidestep the problem altogether. But that comes with a cost.
¹ https://www.verizon.com/business/resources/articles/s/how-to... says 20% doesn't notice for months; of course, it depends on the situation and what actions the attackers take
In the quest of being first or whatever, amateur rediscoveries are happening. Consistently.
I'm making a disgusting amount of money in the field by doing day-one packaging work any commodity project would also be doing. They just wouldn't decide to redefine things in a clearly worse way.
I don't actually know jack about AI, yet here we are. The hype/gold rush is real; competence in the shared fundamentals can go a long way.
The trick is knowing/applying the basics for the wizards. There's a steep premium so they can play around, apparently.
Case in point: most of these humongous container images and how they're naively moved around
Now that more people know how to publish (containers/packages/articles), we're seeing more drivel published. It's ridiculous yet inevitable. I just wonder how much value the rush provides.
IIRC 'safetensors' aren't necessarily even that safe. I could have sworn I read they're fairly nebulous. Grain of salt etc
How're you making money? is it a contracting via network thing or can anybody apply?
Did you, somehow, feel I was trying to convince? I'm fishing for education.
I'm making my money doing 'SRE', which really, amounts to doing housekeeping for the AI people.
Anyone can apply. What are you insinuating? Say it. My situation (other than comp) isn't special, they generally need help.
I don't really need to know about what they're running to keep the systems online and running well. Another day, different workload.
I may bother to learn a thing or two about it... but it's not a requirement. At all. Same toys all the way down. It's shiny old news at this level.
I don't mean to belittle it. It's jazzy stuff. I just build the boring parts - OS, VLANs, etc.
My 'ire'/elbowing is that 'they' (the AI folks), almost pathologically, refuse to engage with the basics like Python packaging. It's with love, honestly.
(imo) Could've said safetensors are secure, and wait for Poe's law to kick in, or just not said anything.
Apologies if it came across that I'm insinuating some sort of thing, it's just I've some friends looking for that type of work. My email's on my profile.
Apologies here as well. I know I have a short fuse. The internet [and sometimes, life] trains us for it.
I follow trends. Web hosting, cloud, now AI. It started out as, 'I want a discount for the things I can't afford'. I had an interest then found the work.
That's as close to doxing myself as I'm willing to get. Sorry for the riddles. I may reach out when things calm down personally. Work is about all I have that's right, right now.
These AI people all want their own clouds. The clouds want to be AI. What's old is new again.
This dynamic is where I exist. Point at one the companies that makes things, you're probably in the right direction. There's maybe a dozen worth attention
Following Linux and company into new areas. It's that simple; building blocks get reused
I realized this immediately and have been consistent about it over my career. That's at least part of the compensation. We aren't gluing Lego bricks, y'know
Good stuff.
"get control" is not accurate.. there is a code execution model on the CPU based on an operating system; the GPU is a different story. Executed code with an operating system has execution context and protections.. this is basic to operating system theory, all the common operating systems implement related concepts.
It can’t necessarily defeat ring protections or secure zone depending on the context. But then again, I wouldn’t put it past a good exploit to do so.
The GPU should be able to pull and push stuff into memory, and maybe even access other devices directly over the PCIe bus?
ONNX [1] is more or less this, but the challenge you immediately run into is models with custom layers/operators with their own inference logic - you either have to implement those operators in terms of the supported ops (not necessarily practical or viable) or provide the implementation of the operator to the runtime, putting you back at square one.
[1] https://onnx.ai/
To my knowledge this is only a problem if the model is serialized/de-serialized via pickle[0].
[1] https://www.databricks.com/blog/ggml-gguf-file-format-vulner...
Proceeds to link to pdf of unknown origins
That's a serious amount of non-trivial work to be done in "a few days". The kind of work that should trigger more time consuming activities like security audits, pen tests and the like, before going live, right?
That’s no sort of excuse
Then you can challenge hugging-face (eg paying customer) even sue them if you wish to...
I’m almost entirely certain it was leaked via secrets on HF space, I got a message a few days ago warning me some of my spaces were affected
Another day..
Or is this purely about theft of data/code?
https://huggingface.co/docs/hub/en/spaces-overview
The front end/portal. I speculate that is coded in Python. Maybe some Django thing...
Couldn't they just store a public key, the user has the secret key and signs their requests with that?
Can't get into the details, but it seems there is a way to convert Palladium into Dilithium Crystals. When you achieve that all hell breaks loose....
(Though I would skip the third book in the series, personally.)