在智能合约中植入交易迹属性:扩展EVM以实现实时安全
Instrumenting Transaction Trace Properties in Smart Contracts: Extending the EVM for Real-Time Security
AI总结:
针对智能合约无法实时读取交易迹以阻止只读重入等攻击且现有安全属性gas消耗高的问题,提出修改EVM和以太坊客户端,使合约能实时验证交易迹属性,并使用PLTL形式化这些属性,显著增强安全性。
摘要:
在智能合约安全领域,交易恶意检测已能利用交易迹属性高精度识别黑客攻击。然而,这些方法无法实时应用以回滚恶意交易。相反,智能合约通常会被植入某些安全属性以增强其安全性。然而,这些可植入的安全属性有限,无法阻止某些类型的黑客攻击,例如那些利用只读重入性的攻击。这一限制主要源于以太坊虚拟机(EVM)无法允许智能合约实时读取交易迹。此外,这些可植入的安全属性可能消耗大量gas,使其不适用于即时验证。为了应对这些挑战,我们提出对EVM和以太坊客户端进行修改,使智能合约能够实时验证这些交易迹属性,而不影响传统的EVM执行。我们还使用过去时线性时序逻辑(PLTL)来形式化交易迹属性,展示大多数现有检测指标都可以用PLTL表达。我们还讨论了所提修改的潜在影响,强调其显著增强智能合约安全的能力。
英文摘要:
In the realm of smart contract security, transaction malice detection has been able to leverage properties of transaction traces to identify hacks with high accuracy. However, these methods cannot be applied in real-time to revert malicious transactions. Instead, smart contracts are often instrumented with some safety properties to enhance their security. However, these instrumentable safety properties are limited and fail to block certain types of hacks such as those which exploit read-only re-entrancy. This limitation primarily stems from the Ethereum Virtual Machine's (EVM) inability to allow a smart contract to read transaction traces in real-time. Additionally, these instrumentable safety properties can be gas-intensive, rendering them impractical for on-the-fly validation. To address these challenges, we propose modifications to both the EVM and Ethereum clients, enabling smart contracts to validate these transaction trace properties in real-time without affecting traditional EVM execution. We also use past-time linear temporal logic (PLTL) to formalize transaction trace properties, showcasing that most existing detection metrics can be expressed using PLTL. We also discuss the potential implications of our proposed modifications, emphasizing their capacity to significantly enhance smart contract security.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。