IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i15p2459-d1713529.html
   My bibliography  Save this article

A Comprehensive Approach to Rustc Optimization Vulnerability Detection in Industrial Control Systems

Author

Listed:
  • Kaifeng Xie

    (Department of Anthropology and Human Genetics, Fudan University, Shanghai 200433, China
    These authors contributed equally to this work.)

  • Jinjing Wan

    (Department of Anthropology and Human Genetics, Fudan University, Shanghai 200433, China
    These authors contributed equally to this work.)

  • Lifeng Chen

    (Department of Anthropology and Human Genetics, Fudan University, Shanghai 200433, China
    These authors contributed equally to this work.)

  • Yi Wang

    (Department of Anthropology and Human Genetics, Fudan University, Shanghai 200433, China)

Abstract

Compiler optimization is a critical component for improving program performance. However, the Rustc optimization process may introduce vulnerabilities due to algorithmic flaws or issues arising from component interactions. Existing testing methods face several challenges, including high randomness in test cases, inadequate targeting of vulnerability-prone regions, and low-quality initial fuzzing seeds. This paper proposes a test case generation method based on large language models (LLMs), which utilizes prompt templates and optimization algorithms to generate a code relevant to specific optimization passes, especially for real-time control logic and safety-critical modules unique to the industrial control field. A vulnerability screening approach based on static analysis and rule matching is designed to locate potential risk points in the optimization regions of both the MIR and LLVM IR layers, as well as in unsafe code sections. Furthermore, the targeted fuzzing strategy is enhanced by designing seed queues and selection algorithms that consider the correlation between optimization areas. The implemented system, RustOptFuzz, has been evaluated on both custom datasets and real-world programs. Compared with state-of-the-art tools, RustOptFuzz improves vulnerability discovery capabilities by 16%–50% and significantly reduces vulnerability reproduction time, thereby enhancing the overall efficiency of detecting optimization-related vulnerabilities in Rustc, providing key technical support for the reliability of industrial control systems.

Suggested Citation

  • Kaifeng Xie & Jinjing Wan & Lifeng Chen & Yi Wang, 2025. "A Comprehensive Approach to Rustc Optimization Vulnerability Detection in Industrial Control Systems," Mathematics, MDPI, vol. 13(15), pages 1-20, July.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:15:p:2459-:d:1713529
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/15/2459/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/15/2459/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:15:p:2459-:d:1713529. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.