IT NewsPCM

Local AI Model Trojan Threats and Security Scanning Guidelines

Recently, malicious trojans have been found hidden in local AI models, posing serious security risks. This article analyses the incident and provides scanning and protection advice to help businesses use AI safely.

Local AI Models May Hide Trojans – Scan Now

The use of large language models (LLM) is becoming increasingly widespread, with many users deploying AI models locally to protect privacy and reduce cloud costs. However, the market has seen unofficial local AI models that have been "jailbroken" or modified, some of which contain malicious trojans, posing significant threats to corporate information security.

Incident Overview

Recently, research team Malspark scanned over three million model repositories on the public platform Hugging Face and discovered five GGUF-format local AI models containing malware. GGUF is an emerging local model file format that supports storing model weights, metadata, chat templates, and more.

Attackers exploit the GGUF format loader’s inability to verify data beyond model weights by embedding trojans at the file’s end. They modify chat templates to deliver hidden commands to users, prompting execution. These trojans can steal browser passwords, cryptocurrency wallet data, record keystrokes, and even perform cryptomining, severely compromising system security.

Additionally, some attacks involve AI Agents with system-level permissions that automatically download and run malicious scripts without user intervention, potentially infecting systems silently.

Impact on Hong Kong Businesses

Businesses relying on locally-run AI models—especially in finance, information technology, and sectors holding sensitive commercial secrets—face risks from trojans that are difficult to detect and can bypass traditional security measures. Malicious trojans may steal confidential data or even disrupt business operations. The misuse of AI Agents also increases the likelihood of automated attacks.

Companies must remain vigilant against third-party unofficial models and jailbroken versions to avoid security vulnerabilities arising from misplaced trust in sources.

Recommended Actions for Businesses

  1. Prioritise Official and Reputable Model Versions: Use models from original developers or well-regarded community contributors, carefully assessing account history and discussions.
  2. Use Scanning Tools Such As GGUF Radar to Check Model Security: Regularly scan for suspicious embedded data and abnormal chat templates to ensure models are clean.
  3. Restrict AI Agents’ System Execution Permissions and File Access: Prevent AI from automatically executing unauthorised commands or downloading external files.
  4. Keep AI Inference Tools and Scanning Software Updated: Apply the latest security patches and features to counter emerging threats.
  5. Regularly Audit Chat Template Differences: Use tools to compare template changes and detect potential malicious command insertions.

How VICOSYS Can Help

VICOSYS offers professional AI Development & AI Agents services to assist enterprises in safely deploying local AI models and intelligent agents. We emphasise a dual approach of source selection and continuous monitoring to protect corporate information systems from malware. Additionally, we tailor protection strategies based on client needs, leveraging advanced scanning tools to support stable and secure AI innovation.


Ensuring AI application security requires not only technical tools but also a strong information security culture and awareness within organisations. Users should never run commands from unknown sources lightly and must prioritise model provenance and inspection to effectively guard against hidden local AI trojan risks.

Related serviceAI Development & AI Agents

Source: PCM

  • #AIMalware
  • #CyberSecurity
  • #ThreatDetection
  • #InfoSec
  • #AITrojan