mlsanityData to 14 Oct 2026

Poster: Long PHP webshell files detection based on sliding window attention

arXiv 2502.19257 ↗First posted 26 Feb 2025cs.CR cs.AIcited by 2

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Webshell is a type of backdoor, and web applications are widely exposed to webshell injection attacks. Therefore, it is important to study webshell detection techniques. In this study, we propose a webshell detection method. We first convert PHP source code to opcodes and then extract Opcode Double-Tuples (ODTs). Next, we combine CodeBert and FastText models for feature representation and classification. To address the challenge that deep learning methods have difficulty detecting long webshell files, we introduce a sliding window attention mechanism. This approach effectively captures malicious behavior within long files. Experimental results show that our method reaches high accuracy in webshell detection, solving the problem of traditional methods that struggle to address new webshell variants and anti-detection techniques.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 3 of its 9 references that are in the map. First posted on arXiv 26 Feb 2025.

Builds on

3 of 9 references.

References · 3

  1. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  2. 2016Bag of Tricks for Efficient Text Classificationcited by 876
  3. 2024Research and application of artificial intelligence based webshell detection model: A literature reviewcited by 4

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Large Language Models are Few-shot Generators: Proposing Hybrid Prompt Algorithm To Generate Webshell Escape Samples
  2. 2026ShellForge: Adversarial Co-Evolution of Webshell Generation and Multi-View Detection for Robust Webshell Defense
  3. 2026AutoVulnPHP: LLM-Powered Two-Stage PHP Vulnerability Detection and Automated Localization ↗
  4. 2026WebSentinel: Detecting and Localizing Prompt Injection Attacks for Web Agents
  5. 2025Detecting Backdoor Samples in Contrastive Language Image Pretraining
  6. 2026BrowseSafe++: Benchmarking Prompt Injection Detection Across Web Contexts, Languages, and Browser Views
  7. 2026SnapGuard: Lightweight Prompt Injection Detection for Screenshot-Based Web Agents
  8. 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agents