paper-with-me

Papers

Malicious Source Code Detection Using Transformer

2022-09-16 · Chen Tsfaty, Michael Fire

Open source code is considered a common practice in modern software development. However, reusing other code allows bad actors to access a wide developers' community, hence the products that rely on it. Those attacks are categorized as supply chain attacks. Recent years saw a growing number of supply chain attacks that leverage open source during software development, relaying the download and installation procedures, whether automatic or manual. Over the years, many approaches have been invented for detecting vulnerable packages. However, it is uncommon to detect malicious code within packages. Those detection approaches can be broadly categorized as analyzes that use (dynamic) and do not use (static) code execution. Here, we introduce Malicious Source code Detection using Transformers (MSDT) algorithm. MSDT is a novel static analysis based on a deep learning method that detects real-world code injection cases to source code packages. In this study, we used MSDT and a dataset with over 600,000 different functions to embed various functions and applied a clustering algorithm to the resulting vectors, detecting the malicious functions by detecting the outliers. We evaluated MSDT's performance by conducting extensive experiments and demonstrated that our algorithm is capable of detecting functions that were injected with malicious code with precision@k values of up to 0.909.

📄 PDF Abstract BibTeX arXiv:2209.07957

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

MOLOT System Card: Malicious Operational Logic Observation Transformer

2026-06-05 · Daniil Lopatkin, Maksim Mitrofanov, Stanislav Rakovsky, Aleksandr Khalikov arxiv

MOLOT (Malicious Operational Logic Observation Transformer) is a static malicious-code detection system designed for SAST setup where package metadata, maintainer history, and dynamic execution traces may be unavailable …

MalBERT: Using Transformers for Cybersecurity and Malicious Software Detection

2021-03-05 · Abir Rahali, Moulay A. Akhloufi

In recent years we have witnessed an increase in cyber threats and malicious software attacks on different platforms with important consequences to persons and businesses. It has become critical to find automated machine…

From Past to Present: A Survey of Malicious URL Detection Techniques, Datasets and Code Repositories

2025-04-23 · Ye Tian, Yanqiu Yu, Jianguo Sun, Yanbin Wang

Malicious URLs persistently threaten the cybersecurity ecosystem, by either deceiving users into divulging private data or distributing harmful payloads to infiltrate host systems. Gaining timely insights into the curren…

Benchmarking

A Transformer-based Model to Detect Phishing URLs

2021-09-05 · Pingfan Xu

Phishing attacks are among emerging security issues that recently draws significant attention in the cyber security community. There are numerous existing approaches for phishing URL detection. However, malicious URL det…

model

MaliciousSkillBench: A Comprehensive Benchmark for Malicious Agent Skill Detection

2026-08-20 · Yue Wang, Yi Liu, Gelei Deng, Ying Zhang 외 arxiv

Agent Skills extend LLM agents with reusable instruction packages that may also include scripts, resources, and service configuration. This creates a direct distribution channel for malicious behavior, yet existing malic…