Yazılım & İşletim Sistemi
100%

Detection of Malicious OpenAI Repositories on Hugging Face and Security Measures

Technical guide on how to protect against fake OpenAI repositories on Hugging Face and malware removal steps.

Problem Description

On the Hugging Face platform, a fake repository mimicking OpenAI's 'Privacy Filter' project has been used to spread an infostealer malware targeting Windows users. Such repositories, which enter the 'trending' list by manipulating popularity algorithms, abuse the trust of developers and cause malicious code to be injected into their systems.

Mechanism of Effect of Malware

The malware in question usually works through malicious scripts hidden in 'requirements.txt' or 'setup.py' files. When users clone the repository and run the installation commands, browser data, crypto wallet information and session cookies in the system are stolen in the background.

Solution Steps

  • Repository Verification: Before cloning a repository, check if the creator is an official OpenAI account.
  • Code Review: Manually review files with setup.py, requirements.txt and .py extensions before installation.
  • Using an Isolated Environment: Be sure to perform all installation and testing operations in a virtual machine or Docker container.
  • System Scan: If you have run a suspicious repository, scan your system with an up-to-date EDR/Antivirus solution.
  • Review Commands

    You can use these commands to find suspicious links or export commands in the repository:

    # Suspicious network connection search
    grep -r "requests.post" .
    
    # Hidden script search
    find . -name "*.py" -exec grep -l "base64" {} +
    
    Warning: Never run the 'pip install' command in a repository whose source you have not verified. Especially packages containing 'post-install' scripts pose a serious security risk.

    Safety Tips

    Adopt the 'Zero Trust' principle when working with open source projects on platforms such as Hugging Face. Just because a project has received many 'stars' does not mean that it is safe. Be wary of social engineering tactics and always follow links on official documentation.

    If a malware suspicion occurs, immediately 'report' to the relevant platform and change the passwords of all critical accounts on your system.

    Related Articles

    View All