Yuqing Niu

Yuqing Niu

Auto-generated profile, based on publicly available information

Yuqing Niu

Singapore Management University

Research Focus & Metrics

Academic Career Length

2Years (2025-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
2 March 2026 in IEEE Transactions on Software Engineering
Verified
Journal Article
Closed access
YLYe Liu
Ye Liu
YNYuqing Niu
Yuqing Niu
CMChengyan Ma
Chengyan Ma
RHRuidong Han
Ruidong Han
WMWei Ma
Wei Ma
DLDavid Lo
David Lo
Smart contracts are highly susceptible to manipulation attacks due to the leakage of sensitive information. Addressing manipulation vulnerabilities is particularly challenging because they stem from inherent data confidentiality issues rather than straightforward implementation bugs. To tackle this by preventing sensitive information leakage, we present PARTITIONGPT, the first LLM-driven approach that combines static analysis with the in-context learning capabilities of large language models (LLMs) to partition smart contracts into critical (privileged) and normal codebases, guided by a few annotated sensitive data variables. We evaluated PARTITIONGPT on 18 annotated smart contracts containing 99 sensitive functions. The results demonstrate that PARTITIONGPT successfully generates compilable, and verified partitions, achieving a precision of 80% while reducing more than 26% code compared to functionlevel partitioning approach. Furthermore, we evaluated PARTITIONGPT on nine real-world manipulation attacks that led to a total loss of 25 million dollars, PARTITIONGPT effectively prevents eight cases, highlighting its potential for broad applicability and the necessity for secure program partitioning during smart contract development to diminish manipulation vulnerabilities.

27 October 2025
Verified
Conference Paper
Open access
YLYunbo Lyu
Yunbo Lyu
ZYZhou Yang
Zhou Yang
YNYuqing Niu
Yuqing Niu
JJJing Jiang
Jing Jiang
DLDavid Lo
David Lo

12 April 2026
Verified
Conference Paper
Open access
CMChengyan Ma
Chengyan Ma
JSJieke Shi
Jieke Shi
RHRuidong Han
Ruidong Han
YLYe Liu
Ye Liu
YNYuqing Niu
Yuqing Niu
DLDavid Lo
David Lo

21 January 2026 in IEEE Transactions on Software Engineering
Verified
Journal Article
Closed access
RHRuidong Han
Ruidong Han
ZYZhou Yang
Zhou Yang
CMChengyan Ma
Chengyan Ma
YLYe Liu
Ye Liu
YNYuqing Niu
Yuqing Niu
DLDavid Lo
David Lo
Trusted Execution Environments (TEEs) isolate a special space within a device’s memory that is not accessible to the normal world (also known as the untrusted environment), even when the device is compromised. Therefore, developers can utilize TEEs to provide robust security guarantees for their programs, protecting sensitive operations, such as encrypted data storage, fingerprint verification, and remote attestation, from software-based attacks. Despite the robust protections offered by TEEs, adapting existing programs to leverage such security guarantees is challenging, often requiring extensive domain knowledge and manual intervention, which makes TEEs less accessible to developers. This motivates us to design AUTOTEE, the first Large Language Model (LLM) enabled approach that can automatically identify, transform, and port functions containing sensitive operations into TEEs with minimal developer intervention. By manually reviewing 68 repositories, we constructed a benchmark dataset consisting of 385 sensitive functions eligible for transformation, on which AUTOTEE achieves a F1 score of 0.94 on Java and 0.87 on Python. AUTOTEE effectively transforms these sensitive functions into TEE-compatible versions, achieving success rates of 91.8% and 84.3% for Java and Python, respectively, when using GPT-4o.

1 October 2026 in Proceedings of the ACM on Software Engineering
Verified
Journal Article
Open access
WLWeichang Liu
Weichang Liu
JZJunwei Zhang
Junwei Zhang
YNYuqing Niu
Yuqing Niu
BZBo Zhou
Bo Zhou
Large language models (LLMs) have recently shown promising potential in automating unit test evolution for evolving software systems. However, the effectiveness of LLMs in unit test evolution remains insufficiently understood, particularly with respect to prompt design choices, in-context learning (ICL) strategies, and different types of test evolution. In this paper, we present the first comprehensive empirical study to evaluate LLMs for unit test evolution. We systematically assess nine open-source code LLMs (3B to 34B parameters) and three state-of-the-art commercial models across diverse prompt designs, ICL strategies, and representative test evolution frameworks. To support robust and execution-based evaluation, we construct a new benchmark consisting of 530 real-world focal method–test co-evolution instances collected from seven actively maintained open-source projects. Our evaluation employs a suite of compilation, execution, and coverage-based metrics. Extensive experimental results reveal that prompt design and ICL methods significantly impact LLM effectiveness. Furthermore, the optimal configurations of these strategies vary substantially across different LLMs and evolution types. Based on our findings, we derive actionable insights to guide future research and practical adoption of LLM-based techniques for unit test evolution.

30 June 2026 in Proceedings of the ACM on Software Engineering
Verified
Journal Article
Open access
CMChengyan Ma
Chengyan Ma
JSJieke Shi
Jieke Shi
RHRuidong Han
Ruidong Han
YLYe Liu
Ye Liu
FLFeng Li
Feng Li
DLDavid Lo
David Lo
Trusted Execution Environments (TEEs) provide hardware-based isolation to protect sensitive data and computations from potentially compromised operating systems (OS). However, TEE applications inevitably interact with the untrusted OS through SDK interfaces, and improper partitioning can introduce severe vulnerabilities such as data leakage and code injection. While prior work has proposed static analysis tools to detect such issues, automated repair remains largely unexplored. This problem is particularly challenging due to three TEE-specific factors: the lack of standardized secure development guidelines, the difficulty of extracting semantic information from low-level C code, and the absence of mature testing and validation methods. In this work, we present TEERepair, a framework for automatically repairing bad partitioning issues in TEE applications. Our approach tackles the above challenges by introducing a domain-specific language (DSL) to encode repair rules that express and capture common TEE security patterns, which are instantiated as patch templates with placeholders for context-specific variables. We then leverage large language models (LLMs) to reason about code semantics and synthesize context-aware patches, and further generate test clients to validate the repairs. We evaluate TEERepair on the TEE Partitioning Errors Benchmark (PartitioningE-Bench), achieving a significantly higher repair success rate of 87.6% compared to baselines. Furthermore, applying TEERepair to real-world TEE projects, we submitted 5 repair pull requests, 2 of which have been confirmed and merged by project maintainers.