Zhi Wang
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Zhi Wang has a total of 36 co-authors. Here are the top co-authors by number of shared publications:
- Chaoge Liu
Chinese Academy of Sciences
5 shared publications Xiang Cui
Guangzhou University
3 shared publications- Mengyang Xu
Harbin Institute of Technology, Harbin, China and Zhongguancun Laboratory, Beijing, China
2 shared publications Qixu Liu
Chinese Academy of Sciences
2 shared publications- Qixu Liu
Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China
2 shared publications - Xiao Deng
Zhongguancun Laboratory, Beijing, China
2 shared publications
Latest Publications
- Open Access
- 4 November 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 35 (11) , 1-38
Package Hallucinations as Phantoms in Open Source Software Supply Chains: An Empirical Security Analysis
In code generation tasks, large language models (LLMs) frequently recommend nonexistent software packages, referred to as package hallucinations. This may pose a security risk, as attackers could register these fake packages and exploit them in supply chain attacks. To investigate the real-world feasibility, this article conducts a systematic empirical study of this potential threat. We extracted 107 hallucinated packages from eight prominent LLMs and uploaded them to the npm registry over 6 months. The results demonstrate a tangible risk: 35.2% of package installations are attributed to developers, with most initial interactions occurring within a 2-week window post-registration. A name similarity analysis further reveals that 25.2% of hallucinated names fall within an absolute edit distance of \(\leq\) 1 from existing npm packages, posing a direct typosquatting risk. In our evaluated setting, tool-augmented generation, specifically using web search, fails to mitigate this threat. Instead, it significantly amplifies hallucination persistence from 11.2% to 17.3% through context contamination. In the npm registry, the entire attack campaign costs only an estimated $496, making it far more accessible than traditional supply chain attacks yet capable of enabling poisoning effects. To mitigate this emergent threat, we design an autonomous defense agent: NymGuard. It provides a proactive defense by automating the real-time detection of hallucinated packages, their preemptive registration to block malicious use, and the maintenance of a public warning registry. The full implementation has been open sourced and is available on GitHub ( https://github.com/xiaoye798/Package-Hallucination-Research ).- 4 November 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 35 (11) , 1-38
Open AccessPackage Hallucinations as Phantoms in Open Source Software Supply Chains: An Empirical Security Analysis
In code generation tasks, large language models (LLMs) frequently recommend nonexistent software packages, referred to as package hallucinations. This may pose a security risk, as attackers could register these fake packages and exploit them in supply chain attacks. To investigate the real-world feasibility, this article conducts a systematic empirical study of this potential threat. We extracted 107 hallucinated packages from eight prominent LLMs and uploaded them to the npm registry over 6 months. The results demonstrate a tangible risk: 35.2% of package installations are attributed to developers, with most initial interactions occurring within a 2-week window post-registration. A name similarity analysis further reveals that 25.2% of hallucinated names fall within an absolute edit distance of \(\leq\) 1 from existing npm packages, posing a direct typosquatting risk. In our evaluated setting, tool-augmented generation, specifically using web search, fails to mitigate this threat. Instead, it significantly amplifies hallucination persistence from 11.2% to 17.3% through context contamination. In the npm registry, the entire attack campaign costs only an estimated $496, making it far more accessible than traditional supply chain attacks yet capable of enabling poisoning effects. To mitigate this emergent threat, we design an autonomous defense agent: NymGuard. It provides a proactive defense by automating the real-time detection of hallucinated packages, their preemptive registration to block malicious use, and the maintenance of a public warning registry. The full implementation has been open sourced and is available on GitHub ( https://github.com/xiaoye798/Package-Hallucination-Research ). - 1 November 2026
- Published by Springer Nature
- p. 537-559
Beyond the Blank Slate: Typed Operating System State for Cross-Session Consistency in LLM-Powered Honeypots
- 1 November 2026
- Published by Springer Nature
- p. 537-559
Beyond the Blank Slate: Typed Operating System State for Cross-Session Consistency in LLM-Powered Honeypots
- 19 April 2023
- Published by Elsevier in Computers & Security
- Vol. 130
C-BEDIM and S-BEDIM: Lateral movement detection in enterprise network through behavior deviation measurement
- 19 April 2023
- Published by Elsevier in Computers & Security
- Vol. 130
C-BEDIM and S-BEDIM: Lateral movement detection in enterprise network through behavior deviation measurement
- Open Access
- 5 December 2022
- Published by Association for Computing Machinery (ACM)
- p. 267-278
Make Data Reliable: An Explanation-powered Cleaning on Malware Dataset Against Backdoor Poisoning Attacks
Machine learning (ML) based Malware classification provides excellent performance and has been deployed in various real-world applications. Training for malware classification often relies on crowdsourced threat feeds, which exposes a natural attack injection point. Considering a real-world threat model for backdoor poisoning attacks on a malware dataset, because attackers are generally considered to have no control over the sample-labeling process, they conduct a clean-label attack, a more realistic scenario, by generating backdoored benign binaries that will be disseminated through threat intelligence platforms and poison the datasets for downstream malware classifiers. To avoid the threat of backdoor poisoned datasets, we propose an explanation-powered defense methodology called make data reliable (MDR), which is a general and effective mitigation to ensure the reliability of datasets by removing backdoored samples. We use a surrogate model and explanation tool Shapley Additive exPlanations (SHAP) to filter suspicious samples, then perform watermark identification based on the filtered suspicious samples, and finally remove samples with the identified watermark to construct a reliable dataset. We conduct extensive experiments on two typical datasets that were manually poisoned using different attack strategies. Experimental results show that the MDR achieves backdoored samples removal rate greater than 99.0% for different datasets and attack conditions, while maintaining an extremely low false positive rate of less than 0.1%. Furthermore, to confirm the generality of MDR, we use different models to perform a model-agnostic evaluation. The results show that, MDR is a general methodology that does not rely on any specific model.
- 5 December 2022
- Published by Association for Computing Machinery (ACM)
- p. 267-278
Open AccessMake Data Reliable: An Explanation-powered Cleaning on Malware Dataset Against Backdoor Poisoning Attacks
Machine learning (ML) based Malware classification provides excellent performance and has been deployed in various real-world applications. Training for malware classification often relies on crowdsourced threat feeds, which exposes a natural attack injection point. Considering a real-world threat model for backdoor poisoning attacks on a malware dataset, because attackers are generally considered to have no control over the sample-labeling process, they conduct a clean-label attack, a more realistic scenario, by generating backdoored benign binaries that will be disseminated through threat intelligence platforms and poison the datasets for downstream malware classifiers. To avoid the threat of backdoor poisoned datasets, we propose an explanation-powered defense methodology called make data reliable (MDR), which is a general and effective mitigation to ensure the reliability of datasets by removing backdoored samples. We use a surrogate model and explanation tool Shapley Additive exPlanations (SHAP) to filter suspicious samples, then perform watermark identification based on the filtered suspicious samples, and finally remove samples with the identified watermark to construct a reliable dataset. We conduct extensive experiments on two typical datasets that were manually poisoned using different attack strategies. Experimental results show that the MDR achieves backdoored samples removal rate greater than 99.0% for different datasets and attack conditions, while maintaining an extremely low false positive rate of less than 0.1%. Furthermore, to confirm the generality of MDR, we use different models to perform a model-agnostic evaluation. The results show that, MDR is a general methodology that does not rely on any specific model.
- 24 August 2022
- Published by Springer Nature
- p. 394-414
DeepC2: AI-Powered Covert Command and Control on OSNs
- 24 August 2022
- Published by Springer Nature
- p. 394-414
DeepC2: AI-Powered Covert Command and Control on OSNs
- Open Access
- 19 June 2022
- Published by Elsevier in Computers & Security
- Vol. 120, 102807
EvilModel 2.0: Bringing Neural Network Models into Malware Attacks
- 19 June 2022
- Published by Elsevier in Computers & Security
- Vol. 120, 102807
Open AccessEvilModel 2.0: Bringing Neural Network Models into Malware Attacks
- 18 February 2020
- Published by Springer Nature
- p. 725-745
WSLD: Detecting Unknown Webshell Using Fuzzy Matching and Deep Learning
- 18 February 2020
- Published by Springer Nature
- p. 725-745
WSLD: Detecting Unknown Webshell Using Fuzzy Matching and Deep Learning
- 20 November 2018
- Published by Springer Nature
- p. 3-18
Practical Metrics for Evaluating Anonymous Networks
- 20 November 2018
- Published by Springer Nature
- p. 3-18
Practical Metrics for Evaluating Anonymous Networks
- 1 June 2018
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 490-497
A Novel Approach for Detecting Browser-Based Silent Miner
Transactions in the cryptocurrency market has been extremely hot in recent years, with the price of cryptocurrency climbing all the way. Hackers have turned their attentions to cryptocurrencies, and have used various means to acquire cryptocurrencies illegally, which caused huge losses to the victims. Some browsers block malicious mining activities from the network protocol level, but they do not have the ability to detect mining samples themselves, and it is difficult to make effective detection of homogenous mining samples of the network layer. To solve these problems, based on the attack pattern of browser mining, the browser-based silent mining features are analyzed, and a method to detect browser silent mining behavior is proposed. This method drives known malicious mining samples, extracts heap snapshots and stack code features of a dynamically running browser, and performs automated detection based on recurrent neural network. By modifying the kernel code of Chrome, a browser-based silent miner detection prototype system BMDetector was designed and implemented. With 1159 samples detected and analyzed, experimental results show that the recognition rate of the original mining sample is 98%, and 92% for the encrypted and confused, which is an effective and feasible method.
- 1 June 2018
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 490-497
A Novel Approach for Detecting Browser-Based Silent Miner
Transactions in the cryptocurrency market has been extremely hot in recent years, with the price of cryptocurrency climbing all the way. Hackers have turned their attentions to cryptocurrencies, and have used various means to acquire cryptocurrencies illegally, which caused huge losses to the victims. Some browsers block malicious mining activities from the network protocol level, but they do not have the ability to detect mining samples themselves, and it is difficult to make effective detection of homogenous mining samples of the network layer. To solve these problems, based on the attack pattern of browser mining, the browser-based silent mining features are analyzed, and a method to detect browser silent mining behavior is proposed. This method drives known malicious mining samples, extracts heap snapshots and stack code features of a dynamically running browser, and performs automated detection based on recurrent neural network. By modifying the kernel code of Chrome, a browser-based silent miner detection prototype system BMDetector was designed and implemented. With 1159 samples detected and analyzed, experimental results show that the recognition rate of the original mining sample is 98%, and 92% for the encrypted and confused, which is an effective and feasible method.
- 1 June 2018
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 219-226
MaliceScript: A Novel Browser-Based Intranet Threat
Recently, we have seen a sharp increase in browser-based threats that are specifically designed to attack intranet, especially in APT. In response to such attacks, it is both important to deal with the existing attacks and predict potential attacks from attacker's perspective. In this paper, we propose a new browser-based Web attack model that allows a browser to collect intranet topology and further to infiltrate a website from the intranet instead of from the extranet, leveraging some features of browsers. To verify the effectiveness of the proposed attack model, we design and implement a project named MaliceScript, and we systemically describe the technical details of the MaliceScript as well. Moreover, we demonstrate the MaliceScript in controlled experiments, and the related results prove that the MaliceScript can detect the intranet topology correctly and infiltrate intranet website secretly. Both the theory and experiment indicate that the proposed threat will probably become a reality in the near future, because it is easy to launch but difficult to be detected. In order to prevent the proposed threat, we give some practical suggestions at the end of this paper.
- 1 June 2018
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 219-226
MaliceScript: A Novel Browser-Based Intranet Threat
Recently, we have seen a sharp increase in browser-based threats that are specifically designed to attack intranet, especially in APT. In response to such attacks, it is both important to deal with the existing attacks and predict potential attacks from attacker's perspective. In this paper, we propose a new browser-based Web attack model that allows a browser to collect intranet topology and further to infiltrate a website from the intranet instead of from the extranet, leveraging some features of browsers. To verify the effectiveness of the proposed attack model, we design and implement a project named MaliceScript, and we systemically describe the technical details of the MaliceScript as well. Moreover, we demonstrate the MaliceScript in controlled experiments, and the related results prove that the MaliceScript can detect the intranet topology correctly and infiltrate intranet website secretly. Both the theory and experiment indicate that the proposed threat will probably become a reality in the near future, because it is easy to launch but difficult to be detected. In order to prevent the proposed threat, we give some practical suggestions at the end of this paper.