[논문 리뷰] How Quickly Do Development Teams Update Their Vulnerable Dependencies?
논문은 두 가지 지표, Time-Out-Of-Date (TOOD)와 Post-Fix-Exposure-Time (PFET)를 도입하여 의존성이 얼마나 최신인지와 취약한 의존성이 업데이트되는 속도를 정량화하고, NPM, PyPI, Cargo에서 큰 규모의 연구를 수행하여 의존성 업데이트 관행을 분석한다.
Industry practitioners are increasingly concerned with software that contains vulnerable versions of third-party dependencies that are included both directly and transitively. To address this problem, projects are encouraged to both (a)~quickly update to non-vulnerable versions of dependencies and (b)~be mindful of the update practices of the dependencies they choose to use. To this end, researchers have proposed metrics to measure the responsiveness of the development teams of the packages in keeping their dependencies updated: Mean-Time-To-Update (MTTU) and Mean-Time-To-Remediate (MTTR). While MTTU covers all dependencies, MTTR quantifies the time needed for a package to update its vulnerable dependencies. However, existing metrics fail to capture important nuances, such as considering floating versions and prioritizing recent updates, leading to inaccurate reflections of a development team's update practices. extit{The goal of this study is to aid practitioners in understanding how quickly packages update their dependencies.} We propose two novel metrics, Mean-Time-To-Update for dependencies (MTTU) and Mean-Time-To-Remediate for vulnerable dependencies (MTTR), that overcome the limitations of existing metrics. We conduct an empirical study using $163,207$ packages in npm ($117,129$), PyPI ($42,777$), and Cargo ($3,301$) and characterize how the ecosystems differ in MTTU and MTTR, as well as what package characteristics influence MTTU and MTTR. We found that most packages have a relatively fast dependency update practice. We further study whether MTTU can be used as a proxy for MTTR when sufficient vulnerability data is not available. As we did not find enough statistical evidence for a strong proxy, our findings suggest that MTTU could only be partially used (may be used but with caution) as a proxy for MTTR when vulnerability data is not available.
연구 동기 및 목표
- 소프트웨어 공급망 공격을 예방하기 위해 의존성이 얼마나 최신인지 정량화할 필요성을 동기 부여한다.
- 의존성 업데이트의 시점과 취약성 노출의 타이밍 측면을 포착하는 두 가지 새로운 지표 TOOD와 PFET를 정의한다.
- 측정을 위한 시계열 의존성 해석 알고리즘을 개발하여 의존성 관계를 안정화한다.
- NPM, PyPI, Cargo 전반에서 대규모 경험적 분석을 수행하여 업데이트 동향을 특징화한다.
- 향후 연구를 지원하기 위해 패키지-의존성 관계 데이터셋을 오픈 소스로 공개한다.
제안 방법
- Temporal Dependency Resolution(Algorithm 1)을 도입하여 시간 구간 동안 의존성 관계를 안정화한다.
- Time-Out-Of-Date(TOOD)를 패키지가 오래된 의존성 버전을 사용하는 평균 누적 시간으로 정의한다.
- Post-Fix-Exposure-Time(PFET)를 패키지가 취약하고 오래된 의존성 버전을 사용하는 평균 누적 시간으로 정의한다.
- 각 <package, dependency> 쌍에 대해 시간 구간별 TOOD와 PFET를 계산하고 패키지별로 집계한다.
- 의존성 및 공지사항에 대해 Google BigQuery (deps_dev_v1)와 OSV.dev의 데이터를 사용한다.
- TOOD와 PFET 분포를 비교하기 위해 통계적 가설 검정과 상관관계 분석을 적용한다.
실험 결과
연구 질문
- RQ1RQ1: NPM, PyPI, Cargo에서 패키지들이 의존성을 업데이트하는 방식(시간 경과에 따른 최신 미도달)은 어떠한가?
- RQ2RQ2: NPM, PyPI, Cargo에서 취약한 의존성을 업데이트하는 방식(Post Fix Exposure Time)은 어떠한가?
- RQ3RQ3: Time Out of Date가 효과적으로 Post Fix Exposure Time을 대체하거나 대표할 수 있는가?
주요 결과
- PyPI 패키지는 NPM 및 Cargo보다 의존성 업데이트가 더 빠르다.
- Cargo 패키지는 취약한 의존성을 NPM 및 PyPI보다 더 빠르게 업데이트한다.
- TOOD가 PFET의 프록시 역할을 할 수 있다, 분포 분석 및 상관관계 분석을 바탕으로.
- 저자들은 세 가지 생태계에 걸쳐 26.8 백만 개의 패키지–의존성 관계 데이터셋을 제공한다.
- 해당 방법론은 Temporal Dependency Resolution 접근법을 통해 열려 있는 의존성 요건과 다운그레이드를 고려한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.