소프트웨어보안 연구실(지도교수 황성재) 단경민 학생(석사과정), 정석훈 연구원(KAIST), 류석영 교수 연구팀(KAIST) 공동 연구 논문 ASE 2026 게재 승인
2026-11-16
소프트웨어보안 연구실(지도교수 황성재, https://softsec.skku.edu/)의 단경민 학생(석사과정)과 KAIST의 정석훈 연구원, 류석영 교수 연구팀이 공동으로 수행한 연구 논문이 소프트웨어공학 분야 우수 학회인 ASE 2026 (IEEE/ACM International Conference on Automated Software Engineering)에 게재 승인(Accept)되어 2026년 10월 독일 뮌헨에서 발표되었습니다. 본 논문 "SpecTrum: Specification-Guided Differential Fuzzing for Ethereum Consensus Clients"는 대표적인 블록체인 플랫폼인 이더리움(Ethereum)의 합의 소프트웨어에서 보안 취약점과 구현 오류를 효과적으로 탐지하기 위한 새로운 소프트웨어 테스팅 기술을 제안하였습니다. 본 논문의 동기는 이더리움 네트워크의 안정성을 유지하기 위해 서로 다른 합의 클라이언트(Consensus Client)들이 동일한 입력에 대해 일관된 결과를 생성해야 하지만, 기존 테스팅 기술들은 합의 프로토콜의 명세에 정의된 중요한 검증 조건들을 충분히 테스트하지 못한다는 점입니다. 이러한 구현 간 불일치는 블록체인 네트워크의 분기(Fork), 합의 실패, 서비스 중단 등 심각한 문제를 유발할 수 있습니다. 이 문제를 해결하기 위해, 본 논문은 이더리움 합의 프로토콜의 명세를 기반으로 테스트 케이스를 자동 생성하고, 서로 다른 클라이언트의 실행 결과를 비교하여 구현 오류를 탐지하는 새로운 기술인 SpecTrum을 제안하였습니다. 구체적으로, SpecTrum은 이더리움의 공식 명세를 기계적으로 분석 가능한 형태로 변환하고, 기존 테스트에서 충분히 검증되지 않은 조건들을 식별하는 새로운 커버리지 지표인 Premise Coverage를 제안하였습니다. 이를 바탕으로 해당 조건들을 집중적으로 테스트하는 입력을 자동 생성하고, 여러 합의 클라이언트의 실행 결과를 비교하는 차등 테스팅(Differential Testing)을 수행합니다. 본 논문은 연구 결과물(SpecTrum)을 이더리움의 주요 합의 클라이언트 5종에 적용하여 성능을 평가하였습니다. 실험 결과, 기존 공식 테스트의 Premise Coverage를 46.3%에서 91.1%로 향상시켰으며, 기존 테스트에서 발견하지 못한 27건의 클라이언트 간 실행 결과 불일치를 탐지하는 데 성공하였습니다. 특히 이 중 22건은 본 연구에서 명세의 암묵적인 검증 조건을 명시적으로 분석하지 않았다면 발견하기 어려운 사례로, 제안 기술이 블록체인 소프트웨어의 신뢰성과 안전성을 높이는 데 효과적임을 확인하였습니다. [논문 정보] 제목: SpecTrum: Specification-Guided Differential Fuzzing for Ethereum Consensus Clients 저자: 정석훈, 단경민, 류석영, 황성재 학회: IEEE/ACM International Conference on Automated Software Engineering (ASE 2026) 발표: 2026년 10월 12일~16일, 독일 뮌헨 논문 링크: https://dl.acm.org/doi/10.1145/3832783.3834406 Abstract Ethereum's consensus safety relies on independent consensus client implementations agreeing on every state transition. When they diverge due to implementation errors, the network can fork, finality can stall, and severe attacks are possible. To prevent such consensus divergences, Ethereum provides a Python reference implementation (consensus-spec), which acts as a specification, and a hand-crafted official test suite (spectests). However, as an executable implementation, Ethereum's specification defines validity implicitly through runtime behavior. As a result, it lacks a systematic way to ensure that all validity conditions are thoroughly evaluated. We present SpecTrum, a framework that addresses this problem in three stages. First, we introduce Consensus-SpecTec, a mechanized specification of the Ethereum consensus algorithm, which makes validity conditions explicit as if-premises. Second, we define premise coverage, a metric that measures which if-premises are evaluated to true and false across spectests. Third, we develop a specification-based test generator that extracts constraints on premises not evaluated to false by spectests and generates inputs to evaluate them. Applying SpecTrum to five major Ethereum consensus clients, we identify 27 cross-client divergence cases, 22 of which cannot be found without the premises inserted in our mechanization. All 27 cases reproduce across fork versions, and extending the mechanized specification to a new fork takes modest effort proportional to the specification difference.