A system for dynamically collecting a webassembly running context under a browser environment and a method of using the same

By designing a dynamic collection system for the runtime context of Wasm in a browser environment, the shortcomings of existing technologies in capturing the state of Wasm's interaction with JS are solved, enabling full-process monitoring of Wasm memory operations and improving the accuracy and comprehensiveness of vulnerability detection.

CN122111792APending Publication Date: 2026-05-29PEKING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
PEKING UNIV
Filing Date
2026-02-11
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing technologies struggle to synchronously capture the interaction between WebAssembly and JavaScript along the browser's actual execution path, and lack effective monitoring of wasm memory operations, resulting in incomplete and inaccurate vulnerability analysis.

Method used

Design a dynamic collection system for the runtime context of Web Application Memory (WASM) in a browser environment, including extension initialization, Web SM binary rewriting, and full instrumentation. Through instrumentation and rewriting techniques, it achieves comprehensive monitoring of Web SM memory operations and recording of runtime status. Combined with shadow memory and metadata maintenance, it realizes end-to-end awareness of cross-language interaction.

Benefits of technology

It enables complete state capture of the interaction process between the wasm program and JS in the browser environment, improving the accuracy and comprehensiveness of vulnerability detection and providing reliable data support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122111792A_ABST
    Figure CN122111792A_ABST
Patent Text Reader

Abstract

The application is a WebAssembly running context dynamic collection system and use method in a browser environment, belonging to the technical field of browser software and program analysis. The system comprises an extension initialization and wasm identification subsystem, a wasm binary rewriting subsystem, and a full-amount plug-in and running state collection subsystem. The extension realized by the system is loaded into a real browser environment to dynamically collect the wasm running context. Through the design of intelligent rewriting and full-amount plug-in technology, cross-language interaction full-link perception and complete state capture are realized, the defect that the prior art cannot cooperatively analyze the JS and wasm execution states is solved, the program behavior in the real running environment can be accurately restored, reliable data support is provided for vulnerability detection, the adaptation bottleneck and memory safety monitoring problem without wasm compilation information are broken through, the memory operation full-process monitoring and running state comprehensive recording in the wasm program and JS interaction process are realized, and the accuracy and comprehensiveness of vulnerability detection are significantly improved.
Need to check novelty before this filing date? Find Prior Art