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.

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
- Prioritise Official and Reputable Model Versions: Use models from original developers or well-regarded community contributors, carefully assessing account history and discussions.
- 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.
- Restrict AI Agents’ System Execution Permissions and File Access: Prevent AI from automatically executing unauthorised commands or downloading external files.
- Keep AI Inference Tools and Scanning Software Updated: Apply the latest security patches and features to counter emerging threats.
- 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.
More posts
All posts →
Data breach self-check: 10 things to review on your website and systems this week
Breach reports to Hong Kong’s privacy watchdog are up more than 50% in 2026 and half involve hacking. Ten checks a website owner can run without a security team, with what a bad result looks like and how to fix it.

Hong Kong Government Launches 18 Measures to Counter AI-driven Cyberattacks
Facing a surge in AI-enabled cyberattacks, the Hong Kong government introduces 18 initiatives to enhance local cybersecurity and help businesses safeguard data and systems.

How to Use AI to Organise Meeting Minutes and Action Items: Practical Daily Tutorial for Businesses
Learn how to quickly convert meeting recordings into text and efficiently organise key points and follow-up tasks using AI tools. Suitable for employees, small business owners, and everyday users in Hong Kong.

Japan Revises AI Act to Enforce Strict Regulation on High-Performance AI Services
Japan finalises amendments to its AI Act requiring high-performance AI providers to report major incidents and implement safety measures, setting an example relevant to Hong Kong businesses.
