paper-with-me

홈 › Papers

Leveraging Code Cohesion Analysis to Identify Source Code Supply Chain Attacks

2025-10-16 · Maor Reuben, Ido Mendel, Or Feldman, Moshe Kravchik, Mordehai Guri, Rami Puzis arxiv

Supply chain attacks significantly threaten software security with malicious code injections within legitimate projects. Such attacks are very rare but may have a devastating impact. Detecting spurious code injections using automated tools is further complicated as it often requires deciphering the intention of both the inserted code and its context. In this study, we propose an unsupervised approach for highlighting spurious code injections by quantifying cohesion disruptions in the source code. Using a name-prediction-based cohesion (NPC) metric, we analyze how function cohesion changes when malicious code is introduced compared to natural cohesion fluctuations. An analysis of 54,707 functions over 369 open-source C++ repositories reveals that code injection reduces cohesion and shifts naming patterns toward shorter, less descriptive names compared to genuine function updates. Considering the sporadic nature of real supply-chain attacks, we evaluate the proposed method with extreme test-set imbalance and show that monitoring high-cohesion functions with NPC can effectively detect functions with injected code, achieving a Precision@100 of 36.41% at a 1:1,000 ratio and 12.47% at 1:10,000. These results suggest that automated cohesion measurements, in general, and name-prediction-based cohesion, in particular, may help identify supply chain attacks, improving source code integrity.

📄 PDF Abstract BibTeX arXiv:2510.14778

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Predicting Group Cohesiveness in Images

2018-12-31 · Shreya Ghosh, Abhinav Dhall, Nicu Sebe, Tom Gedeon

The cohesiveness of a group is an essential indicator of the emotional state, structure and success of a group of people. We study the factors that influence the perception of group-level cohesion and propose methods for…

Attribute

Cohesion-6K: An Arabic Dataset for Analyzing Social Cohesion and Conflict in Online Discourse

2026-05-21 · Aisha Ali Al-Athba, Wajdi Zaghouani arxiv

The study of online discourse has become central to understanding societal polarization. While much research has focused on detecting overt toxicity, the subtle dynamics of social cohesion, meaning the interaction betwee…

Multimodal Analysis of Cohesion in Multi-party Interactions

2020-05-01 · LREC 2020 5 · Reshmashree Bangalore Kantharaju, Caroline Langlet, Mukesh Barange, Chlo{\'e} Clavel 외

Group cohesion is an emergent phenomenon that describes the tendency of the group members{'} shared commitment to group tasks and the interpersonal attraction among them. This paper presents a multimodal analysis of grou…

Leveraging Lexical Cohesion and Disruption for Topic Segmentation

2013-10-01 · EMNLP 2013 10 · Anca-Roxana {\c{S}}imon, Guillaume Gravier, Pascale S{\'e}billot

Modeling discourse cohesion for discourse parsing via memory network

2018-07-01 · ACL 2018 7 · Yanyan Jia, Yuan Ye, Yansong Feng, Yuxuan Lai 외

Identifying long-span dependencies between discourse units is crucial to improve discourse parsing performance. Most existing approaches design sophisticated features or exploit various off-the-shelf tools, but achieve l…

Discourse ParsingQuestion AnsweringSentiment Analysis