%0 Conference Proceedings %T Gadget Weighted Tagging: A Flexible Framework to Protect Against Code Reuse Attacks %+ Chinese Academy of Sciences [Changchun Branch] (CAS) %+ University of Chinese Academy of Sciences [Beijing] (UCAS) %A Chen, Liwei %A Ma, Mengyu %A Zhang, Wenhao %A Shi, Gang %A Meng, Dan %Z Part 9: Digital Signature, Risk Management, and Code Reuse Attacks %< avec comité de lecture %( IFIP Advances in Information and Communication Technology %B 32th IFIP International Conference on ICT Systems Security and Privacy Protection (SEC) %C Rome, Italy %Y Sabrina De Capitani di Vimercati %Y Fabio Martinelli %I Springer International Publishing %3 ICT Systems Security and Privacy Protection %V AICT-502 %P 568-584 %8 2017-05-29 %D 2017 %R 10.1007/978-3-319-58469-0_38 %Z Computer Science [cs]Conference papers %X The code reuse attack (CRA) has become one of the most common attack methods. In this paper, we propose gadget weighted tagging (GWT), a flexible framework to protect against CRAs. In GWT, we firstly find all possible gadgets, which can be used in CRAs. Then, we attach weighted tags to these gadgets based on the lengths and types of the gadgets, and the weighted values are configurable. At last, GWT monitors the weighted tag information at runtime to detect and prevent CRAs. Furthermore, combining with the rule-based CFI, GWT+CFI can precisely confirm the gadget start and greatly reduce the number of possible gadgets, compared to the baseline GWT. We implement a hardware/software co-design framework to support GWT and GWT+CFI. The results show that the performance overheads of GWT and GWT+CFI are 2.31% and 3.55% respectively, and GWT can defeat variants of CRAs, especially those generated by automated tools. %G English %Z TC 11 %2 https://inria.hal.science/hal-01649002/document %2 https://inria.hal.science/hal-01649002/file/449885_1_En_38_Chapter.pdf %L hal-01649002 %U https://inria.hal.science/hal-01649002 %~ IFIP %~ IFIP-AICT %~ IFIP-TC %~ IFIP-TC11 %~ IFIP-SEC %~ IFIP-AICT-502