The invention provides a
large model assisted Fuzz
test Harness generation method and
system, and the method comprises the steps: migrating a
library of a QNX platform to a Linux environment for operation, and carrying out the glue code packaging of interface difference and
system call difference through the generality that the
library of the QNX platform and the Linux environment share a
POSIX standard, thereby achieving the automatic
adaptation of key API and context constraint; then analyzing binary
semantics by means of an
intelligent Agent constructed by a
large model, automatically generating a Harness skeleton, focusing potential dangerous points (such as
memory management, character
string processing functions and the like), generating an
initial seed in combination with a static or dynamic analysis result, and finally executing a Fuzz test in a controllable execution environment. And
high coverage and rapid
vulnerability positioning of the multi-dimensional
attack vector of the target
library are realized. The technical problems that Harness writing highly depends on expert experience, a customized generation strategy for target binary
semantics is lacked, and comprehensive understanding on the binary
semantics and context constraints is lacked are solved.