Stories
Slash Boxes
Comments

SoylentNews is people

posted by janrinok on Saturday March 02 2024, @07:16PM   Printer-friendly
from the no-sec-in-ai dept.

https://www.bleepingcomputer.com/news/security/malicious-ai-models-on-hugging-face-backdoor-users-machines/

At least 100 instances of malicious AI ML models were found on the Hugging Face platform, some of which can execute code on the victim's machine, giving attackers a persistent backdoor.

Hugging Face is a tech firm engaged in artificial intelligence (AI), natural language processing (NLP), and machine learning (ML), providing a platform where communities can collaborate and share models, datasets, and complete applications.

JFrog's security team found that roughly a hundred models hosted on the platform feature malicious functionality, posing a significant risk of data breaches and espionage attacks.

This happens despite Hugging Face's security measures, including malware, pickle, and secrets scanning, and scrutinizing the models' functionality to discover behaviors like unsafe deserialization.

[...] The analysts deployed a HoneyPot to attract and analyze the activity to determine the operators' real intentions but were unable to capture any commands during the period of the established connectivity (in one day).


Original Submission

 
This discussion was created by janrinok (52) for logged-in users only, but now has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 3, Informative) by mth on Saturday March 02 2024, @10:47PM (1 child)

    by mth (2848) on Saturday March 02 2024, @10:47PM (#1347147) Homepage

    You can use Python with the safetensors format. Using pickle as a distribution format was never a good idea.

    Starting Score:    1  point
    Moderation   +1  
       Informative=1, Total=1
    Extra 'Informative' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3  
  • (Score: 2, Informative) by grant on Sunday March 03 2024, @03:36AM

    by grant (4922) on Sunday March 03 2024, @03:36AM (#1347167)

    Yeah, using pickle is the issue for the vulnerability in the python based stuff, not python itself. But, with the *.cpp stuff, you get safe models AND easy setup.:

    For plain CPU only inference, there are zero deps, just:
    make

    You're done setting things up. You can now run inference on any llama family model you have downloaded.

    For vulkan, If your system can already run vulkan stuff like games, there is only a single dep to install (assuming Debian):
    apt install libvulkan-dev
    make LLAMA_VULKAN=1

    If you have never run vulkan stuff before, you may also need to:
    apt install mesa-vulkan-drivers vulkan-tools

    No coda/miniconda + virtual env with a million deps and files you need to edit to change the back-end (everything assumes cuda by default) that, if they are documented anywhere but random websites in an incomplete form, I failed to find that documentation.

    Maybe I was holding the python stuff wrong out of ignorance about the platform, but llama.cpp and friends are so easy to setup it is probably an improvement even for folks who are familiar with the python way. For folks like me not deep into python, it was a huge improvement.