Skip to content
Review

Stylometric Defenses Against Author Impersonation in Software Repositories

Aug 2026 · 0 citations · 72 references
Computer Science

TL;DR

Cross-modal patch-level embeddings can support behavioral triage against author impersonation in real-world repositories, indicating that cross-modal patch-level embeddings can support behavioral triage against author impersonation in real-world repositories.

Abstract

Software supply-chain attacks increasingly exploit an identity gap where compromised maintainer accounts authorize malicious changes. This work evaluates patch-level authorship verification as a behavioral defense layer, showing that stylometric analysis can operate not only on full source files but also on patch-level commits. We fine-tune a cross-modal transformer on more than 20 years of Linux kernel commit history to embed code diffs and commit messages into a unified stylometric space, achieving ROC AUC of 0.93 for open-world authorship verification. We then use these representations in a streaming anomaly detector suited to continuous integration and deployment (CI/CD) settings. We validate the pipeline on two retrospective supply-chain incidents involving different patch characteristics: the 2021 PHP backdoor and the 2026 ForceMemo/GlassWorm campaign. Without retraining, the proposed detector surfaces both PHP forged commits within approximately 1% of the maintainer audit queue and ranks the 28 scoreable ForceMemo spoofs with a median per-repository review burden of 0.8%. These results indicate that cross-modal patch-level embeddings can support behavioral triage against author impersonation in real-world repositories.

View source

Similar papers

Review Jul 2026

Understanding and Detecting GitHub Impersonation through Automated Authorship Attribution

GitHub is one of the largest open-source software (OSS) communities for development and collaboration. Impersonation maliciously assuming another user's identity to access code, sway projects, or spread misinformation—has driven recent real-world attacks and is an escalating concern. We present the first exploration of...

Yueke Zhang, Yifan Zhang, Pamela J. Wisniewski et al. · 0 citations
Book Open access Aug 2026

Benchmarking Automated Security Patch Backporting: How Far Are We?

This work presents Porting Benchmark, a curated dataset of 1,234 security patch backporting cases spanning cross-version, cross-branch, and cross-repository scenarios, paired with a common evaluation framework and identifies four root-cause categories (missing target API awareness, cross-version semantic mismatch, non-...

Jin-Cheng Yang, Yu-Long Fu, Cheng-Wei Liu et al. · 1 citation
Review Aug 2026

PRWeaver: Evaluating LLM-Based Code Auditors against Long-Horizon Malicious Pull Requests

The results show that access to repository history is insufficient: concealment becomes most effective when benign and malicious changes jointly occupy the auditor's active review context or when the stated purpose plausibly accounts for the attack-bearing diff.

Yuekun Wang, Ming-Fei Cheng, Xiao-Fei Xie · 0 citations
Preprint Aug 2026

TrustShiftProbe: Characterizing, Benchmarking, and Defending Staged Trust Attacks on MCP Servers

TrustShiftProbe is introduced, an evaluation and defense framework with four contributions: a stateful temporal threat model of the agent-server lifecycle as a benign conditioning phase followed by an adversarial defection at a trust horizon, and a language-agnostic attack engine that instantiates each variant as a com...

Mehrdad Rostamzadeh, Sidhant Narula, Mohammad GhasemiGol et al. · 1 citation
Jul 2026

SecDrift: Measuring Sector-Conditioned Security Drift in AI-Generated Code

SecDrift, a benchmark measuring sector-conditioned security drift, is presented: the change in static-analysis vulnerability rates when prompts are conditioned on industry contexts versus neutral baselines and model selection has a large and consistent effect.

Narayan Bharadwaj, Dhivya Chandramouleeswaran · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.