PyTorchKR Papers

최신 논문

총 3편
태그·기간 등 상세 필터

카테고리 탐색

로그인 후 이 태그 구독

arXiv:2607.07738v3cs.SE

REFORGE: 역공학 능력 벤치마킹을 위한 방법 — 역컴파일된 바이너리 함수 명명에서의 LLM 평가

REFORGE: A Method for Benchmarking LLMs' Reverse Engineering Capabilities in Decompiled Binary Function Naming

Large language models (LLMs) are increasingly applied to reverse-engineering tasks, and recent threat-intelligence reporting shows them operating inside live offensive-security workflows. Claims about their capability, however, outpace our ability to measure it. Existing benchmarks for LLM-assisted binary analysis treat the construction of function-level ground truth as a solved pre-processing step and report accuracy without disclosing how many functions were reliably evaluable. We argue that the principal obstacle to fair evaluation is not model capability but the reliability of binary-to-source alignment under compiler optimization. This paper presents Reforge, a provenance-tracked pipeline that constructs function-level ground truth from C source through compilation, DWARF and syntactic extraction, alignment, and decompilation, and that operationalizes alignment uncertainty as an eight-gate confidence funnel with three-tier stratification. On a controlled micro-benchmark, high-confidence yield falls from 87.2% to 65.9% across optimization levels, and unpaired comparisons overstate optimization-induced performance decay through survivorship bias. A proof-of-concept evaluation of seven contemporary LLMs on function naming demonstrates the validity of the concept and generally motivates an uncertainty-aware benchmarking practice.

arXiv:2607.09452v1cs.SE

앵커 기반 검색과 LLM 추론을 활용한 바이너리 함수로부터의 실용적인 소스 코드 복원

Practical Source Code Recovery from Binary Functions Using Anchor-Based Retrieval and LLM Reasoning

우리는 역공학(reverse engineering), 앵커 기반 소스 코드 검색, 대규모 언어 모델(LLM) 추론을 결합하여 스트립된 바이너리 함수에서 소스 코드를 복원하는 실용적인 파이프라인을 제시한다. 우리의 바이너리-소스 코드 검색 방법은 근사적인 디컴파일 의사코드를 생성하는 대신, 소스 코드 데이터베이스에서 소스 함수를 식별하는 것을 목표로 한다. 이 방법은 Ghidra를 사용하여 문자열, 상수, 외부 호출, 사용 가능한 함수명 등의 앵커를 추출하고, 역색인(inverted-index) 검색 데이터베이스를 통해 후보 파일을 검색하며, 후보를 가능성 있는 함수 스니펫으로 좁힌 뒤, 역어셈블리, 디컴파일 코드, 소스 메타데이터를 기반으로 LLM을 통해 재순위화한다. 신뢰도 높은 매칭 결과는 이후 패스에서 앵커로도 활용될 수 있다. 스트립되고 최적화된 tcpdump 바이너리에 대해 고충실도 소스 코드 데이터베이스를 기반으로 수행한 평가에서, 제안한 바이너리-소스 매칭 방법은 어셈블리 명령어 커버리지 95.2%를 달성한다. GitHub 기반 검색 데이터베이스를 활용한 실험에서는 주로 검색 누락(retrieval misses)으로 인해 평균 35.5%의 명령어 커버리지를 보이며 낮은 성능을 나타냈다. 이러한 결과는 소스 수준의 바이너리 복원이 고품질 데이터베이스 환경에서 탁월한 성능을 발휘하며, 노이즈가 많은 환경에서도 유용한 도구로 활용될 수 있음을 보여준다.

arXiv:2606.06838v1cs.SE

정량적 가독성 지표를 활용한 LLM 에이전트 기반 역공학 지원

LLM Agent-Assisted Reverse Engineering with Quantitative Readability Metrics

자동 디컴파일러는 기능적으로 올바르지만 종종 가독성이 낮은 C 코드를 생성한다. 본 논문은 역공학 워크플로의 한 단계, 즉 정량적 지표를 기반으로 LLM 에이전트를 활용하여 디컴파일된 코드의 가독성을 개선하는 문제를 다룬다. 우리는 세 단계로 이루어진 연구 발전 과정을 제시한다. 1단계(Ghidra MCP를 통한 도구 기반 조정)는 정량적 가이던스의 부재로 인해 불완전한 커버리지와 일관성 없는 개선 결과를 보였다. 2단계(구조적 유사도 검증만 활용)에서는 에이전트가 의도하지 않은 방식으로 지표를 최적화하여 구조적으로는 동등하지만 가독성이 낮은 코드를 생성함이 드러났다. 본 연구의 기여는 구조적 유사도 게이트와 세 가지 독립적인 가독성 하위 지표(어휘 놀라움 지수(Lexical Surprisal), 구조적 단순성(Structural Simplicity), 관용적 품질(Idiomatic Quality))를 결합한 복합 지표인 정량적 가독성 점수(QRS, Quantitative Readability Score) 프레임워크이다. QRS 기반 정제가 LLM 에이전트로 하여금 정확성을 희생하지 않고 목표 지향적인 가독성 개선을 수행할 수 있게 함을 입증한다. 역공학 워크플로 전반(바이너리 리프팅, 디컴파일 정리, 기능적 동등성 달성)에 대한 논의를 맥락으로 제공하나, 이는 본 논문의 범위에 포함되지 않는다.