REMaQE – Reverse Engineering Math Equations from Executables. Udeshi, M., Krishnamurthy, P., Pearce, H., Karri, R., & Khorrami, F. May, 2023. arXiv:2305.06902 [cs]Paper doi abstract bibtex Cybersecurity attacks against industrial control systems and cyber-physical systems can cause catastrophic real-world damage by infecting device binaries with malware. Mitigating such attacks can benefit from reverse engineering tools that recover sufficient semantic knowledge in terms of mathematical operations in the code. Conventional reverse engineering tools can decompile binaries to low-level code, but offer little semantic insight. This paper proposes REMaQE, an automated framework for reverse engineering of math equations from binary executables. REMaQE uses symbolic execution for dynamic analysis of the binary to extract the relevant semantic knowledge of the implemented algorithms. REMaQE provides an automatic parameter analysis pass which also leverages symbolic execution to identify input, output, and constant parameters of the implemented math equations. REMaQE automatically handles parameters accessed via registers, the stack, global memory, or pointers, and supports reverse engineering of object-oriented implementations such as C++ classes. REMaQE uses an algebraic simplification method which allows it to scale to complex conditional equations with ease. These features make REMaQE stand out over existing reverse engineering approaches for math equations. On a dataset of randomly generated math equations compiled to binaries from C and Simulink implementations, REMaQE accurately recovers a semantically matching equation for 97.53% of the models. For complex equations with more operations, accuracy stays consistently over 94%. REMaQE executes in 0.25 seconds on average and in 1.3 seconds for more complex equations. This real-time execution speed enables a smooth integration in an interactive mathematics-oriented reverse engineering workflow.
@misc{udeshi_remaqe_2023,
title = {{REMaQE} -- {Reverse} {Engineering} {Math} {Equations} from {Executables}},
url = {http://arxiv.org/abs/2305.06902},
doi = {10.48550/arXiv.2305.06902},
abstract = {Cybersecurity attacks against industrial control systems and cyber-physical systems can cause catastrophic real-world damage by infecting device binaries with malware. Mitigating such attacks can benefit from reverse engineering tools that recover sufficient semantic knowledge in terms of mathematical operations in the code. Conventional reverse engineering tools can decompile binaries to low-level code, but offer little semantic insight. This paper proposes REMaQE, an automated framework for reverse engineering of math equations from binary executables. REMaQE uses symbolic execution for dynamic analysis of the binary to extract the relevant semantic knowledge of the implemented algorithms. REMaQE provides an automatic parameter analysis pass which also leverages symbolic execution to identify input, output, and constant parameters of the implemented math equations. REMaQE automatically handles parameters accessed via registers, the stack, global memory, or pointers, and supports reverse engineering of object-oriented implementations such as C++ classes. REMaQE uses an algebraic simplification method which allows it to scale to complex conditional equations with ease. These features make REMaQE stand out over existing reverse engineering approaches for math equations. On a dataset of randomly generated math equations compiled to binaries from C and Simulink implementations, REMaQE accurately recovers a semantically matching equation for 97.53\% of the models. For complex equations with more operations, accuracy stays consistently over 94\%. REMaQE executes in 0.25 seconds on average and in 1.3 seconds for more complex equations. This real-time execution speed enables a smooth integration in an interactive mathematics-oriented reverse engineering workflow.},
urldate = {2023-05-16},
publisher = {arXiv},
author = {Udeshi, Meet and Krishnamurthy, Prashanth and Pearce, Hammond and Karri, Ramesh and Khorrami, Farshad},
month = may,
year = {2023},
note = {arXiv:2305.06902 [cs]},
keywords = {cryptography and security, mentions sympy},
}
Downloads: 0
{"_id":"NggqTsAK9SGLxrSAj","bibbaseid":"udeshi-krishnamurthy-pearce-karri-khorrami-remaqereverseengineeringmathequationsfromexecutables-2023","author_short":["Udeshi, M.","Krishnamurthy, P.","Pearce, H.","Karri, R.","Khorrami, F."],"bibdata":{"bibtype":"misc","type":"misc","title":"REMaQE – Reverse Engineering Math Equations from Executables","url":"http://arxiv.org/abs/2305.06902","doi":"10.48550/arXiv.2305.06902","abstract":"Cybersecurity attacks against industrial control systems and cyber-physical systems can cause catastrophic real-world damage by infecting device binaries with malware. Mitigating such attacks can benefit from reverse engineering tools that recover sufficient semantic knowledge in terms of mathematical operations in the code. Conventional reverse engineering tools can decompile binaries to low-level code, but offer little semantic insight. This paper proposes REMaQE, an automated framework for reverse engineering of math equations from binary executables. REMaQE uses symbolic execution for dynamic analysis of the binary to extract the relevant semantic knowledge of the implemented algorithms. REMaQE provides an automatic parameter analysis pass which also leverages symbolic execution to identify input, output, and constant parameters of the implemented math equations. REMaQE automatically handles parameters accessed via registers, the stack, global memory, or pointers, and supports reverse engineering of object-oriented implementations such as C++ classes. REMaQE uses an algebraic simplification method which allows it to scale to complex conditional equations with ease. These features make REMaQE stand out over existing reverse engineering approaches for math equations. On a dataset of randomly generated math equations compiled to binaries from C and Simulink implementations, REMaQE accurately recovers a semantically matching equation for 97.53% of the models. For complex equations with more operations, accuracy stays consistently over 94%. REMaQE executes in 0.25 seconds on average and in 1.3 seconds for more complex equations. This real-time execution speed enables a smooth integration in an interactive mathematics-oriented reverse engineering workflow.","urldate":"2023-05-16","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Udeshi"],"firstnames":["Meet"],"suffixes":[]},{"propositions":[],"lastnames":["Krishnamurthy"],"firstnames":["Prashanth"],"suffixes":[]},{"propositions":[],"lastnames":["Pearce"],"firstnames":["Hammond"],"suffixes":[]},{"propositions":[],"lastnames":["Karri"],"firstnames":["Ramesh"],"suffixes":[]},{"propositions":[],"lastnames":["Khorrami"],"firstnames":["Farshad"],"suffixes":[]}],"month":"May","year":"2023","note":"arXiv:2305.06902 [cs]","keywords":"cryptography and security, mentions sympy","bibtex":"@misc{udeshi_remaqe_2023,\n\ttitle = {{REMaQE} -- {Reverse} {Engineering} {Math} {Equations} from {Executables}},\n\turl = {http://arxiv.org/abs/2305.06902},\n\tdoi = {10.48550/arXiv.2305.06902},\n\tabstract = {Cybersecurity attacks against industrial control systems and cyber-physical systems can cause catastrophic real-world damage by infecting device binaries with malware. Mitigating such attacks can benefit from reverse engineering tools that recover sufficient semantic knowledge in terms of mathematical operations in the code. Conventional reverse engineering tools can decompile binaries to low-level code, but offer little semantic insight. This paper proposes REMaQE, an automated framework for reverse engineering of math equations from binary executables. REMaQE uses symbolic execution for dynamic analysis of the binary to extract the relevant semantic knowledge of the implemented algorithms. REMaQE provides an automatic parameter analysis pass which also leverages symbolic execution to identify input, output, and constant parameters of the implemented math equations. REMaQE automatically handles parameters accessed via registers, the stack, global memory, or pointers, and supports reverse engineering of object-oriented implementations such as C++ classes. REMaQE uses an algebraic simplification method which allows it to scale to complex conditional equations with ease. These features make REMaQE stand out over existing reverse engineering approaches for math equations. On a dataset of randomly generated math equations compiled to binaries from C and Simulink implementations, REMaQE accurately recovers a semantically matching equation for 97.53\\% of the models. For complex equations with more operations, accuracy stays consistently over 94\\%. REMaQE executes in 0.25 seconds on average and in 1.3 seconds for more complex equations. This real-time execution speed enables a smooth integration in an interactive mathematics-oriented reverse engineering workflow.},\n\turldate = {2023-05-16},\n\tpublisher = {arXiv},\n\tauthor = {Udeshi, Meet and Krishnamurthy, Prashanth and Pearce, Hammond and Karri, Ramesh and Khorrami, Farshad},\n\tmonth = may,\n\tyear = {2023},\n\tnote = {arXiv:2305.06902 [cs]},\n\tkeywords = {cryptography and security, mentions sympy},\n}\n\n\n\n\n\n\n\n","author_short":["Udeshi, M.","Krishnamurthy, P.","Pearce, H.","Karri, R.","Khorrami, F."],"key":"udeshi_remaqe_2023","id":"udeshi_remaqe_2023","bibbaseid":"udeshi-krishnamurthy-pearce-karri-khorrami-remaqereverseengineeringmathequationsfromexecutables-2023","role":"author","urls":{"Paper":"http://arxiv.org/abs/2305.06902"},"keyword":["cryptography and security","mentions sympy"],"metadata":{"authorlinks":{}}},"bibtype":"misc","biburl":"https://bibbase.org/zotero-group/nicoguaro/525293","dataSources":["YtBDXPDiQEyhyEDZC","tpWeaaCgFjPTYCjg3"],"keywords":["cryptography and security","mentions sympy"],"search_terms":["remaqe","reverse","engineering","math","equations","executables","udeshi","krishnamurthy","pearce","karri","khorrami"],"title":"REMaQE – Reverse Engineering Math Equations from Executables","year":2023}