探索恶意软件开发者编码习惯与认知风格之间的联系 Exploring the connection between coding habits and cognitive styles in malware developers 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-04
👁️ 预览文献
💡 AI 中文简介
本研究通过分析大量泄露的恶意软件源代码,并与精心挑选的良性开源软件进行对比,运用静态应用安全测试和多种软件度量方法,从认知心理学和犯罪学理论视角解读代码结构与质量差异。研究发现恶意软件代码通常更小、文档更少、每函数圈复杂度更高,抽象机制使用更少,且存在更多良性代码通常避免的漏洞类型,表明其开发风格追求便捷、隐蔽和规避而非长期可维护性。但代码质量指标显示其与良性软件的差异并不足以形成显著区分。该工作展示了定量软件分析如何丰富行为网络安全研究。
领域网络安全/行为网络安全与恶意软件分析
适合谁读需要一定专业背景(网络安全、软件工程或认知心理学基础)
核心贡献1. 首次将代码度量作为行为信号和策略选择的代理,结合认知心理学与犯罪学理论解释恶意软件作者与良性开发者的差异;2. 通过大规模泄露恶意软件代码与良性开源软件的对比分析,揭示了恶意软件开发风格的特征模式。
关键数据恶意软件代码通常更小、文档更少、每函数圈复杂度更高,抽象机制(类、闭包)使用更少;漏洞分析显示恶意软件存在更多良性代码通常避免的问题类型;但代码质量指标差异不足以显著区分两者。
推荐理由如果你对黑客心理和编码行为背后的故事感兴趣,这篇论文用数据揭示了恶意软件作者的‘开发风格’——短平快、少文档、高复杂度,值得一读!
关键词["恶意软件开发", "静态分析", "编码实践", "漏洞", "认知风格", "行为画像"]

原文摘要

查看英文原文摘要

Malware research primarily studies the results, the methods, and the impact. Even from an offensive security perspective, what is examined is the method, not the development strategy of the offender. This study investigates the behavioral signatures and coding patterns embedded in the malware source code. By analyzing a large corpus of leaked malware code and comparing it with carefully selected benign open-source software, we apply static application security testing and compute multiple software metrics. Based on cognitive psychology and criminological theories, our work interprets differences in code structure and quality as behavioral indicators, reflecting distinct motivational structures, risk tolerances, and development strategies of malware authors compared to benign software developers. Our findings reveal that malware code is generally smaller, less documented, and exhibits higher cyclomatic complexity per function, with reduced use of abstraction mechanisms such as classes and closures. Vulnerability analysis further reveals that malware exhibits more issues of the types that benign code typically avoids, suggesting a minimal investment in secure development practices. These patterns imply a development style optimized for expedience, operational secrecy, and evasion rather than long-term maintainability. Nonetheless, the code quality metrics indicate that it does not deviate significantly from benign software enough to be distinctive. By framing code metrics as proxies for behavioral signals and strategic choices, we demonstrate how quantitative software analysis can enrich behavioral cybersecurity research, offering new insights into the practices and priorities of malware developers. Our results pave the way for further research in the behavioral profiling of cyber offenders.