Decompiling x86 Deep Neural Network ExecutablesDecompiling x86 Deep Neural Network Executables
The researchers propose BTD (Bin to DNN), which can recover from x86 deep neural network executables a complete specification nearly identical to the original model. The recovered content covers DNN operator types, network topology, dimensions and parameters, and applies to executables compiled by different DL compilers with all optimizations enabled; the method combines learning-based operator inference, dynamic analysis and symbolic execution. Evaluation shows that BTD can accurately recover complex DNNs such as ResNet with millions of parameters, and the recovered specification can be recompiled into an executable with behavior consistent with the input. The authors show that BTD can enhance two types of attacks against DNN executables—adversarial example generation and knowledge theft—and demonstrate cross-architecture legacy code reuse, envisioning its use for DNN security hardening and patching.