ShieldScan: An Intelligent PHP-Based Malware and Web Shell Scanner Using Tokenizer-Aware Signature Matching and Entropy Analysis

PHP powers a large share of websites, which makes it a frequent target for attackers who, after exploiting a vulnerable plugin, a weak credential or an insecure upload form, leave behind backdoors known as web shells. Plain keyword searches are slow, noisy and easily evaded by encoding, and they give the administrator no way to act on a finding. This paper presents ShieldScan, a browser-based scanner written in PHP that combines several detection layers in one pipeline: known web shell file names, comment removal with the PHP tokenizer to reduce false positives, behavioural regular-expression rules, string signatures, detection of PHP hidden in non-PHP files, and Shannon entropy analysis for packed code. Each finding receives a severity (HIGH or MEDIUM) and an attack vector. Results are streamed live using Server-Sent Events, summarised in analytics charts, and can be acted on through quarantine, restore, delete and whitelist operations.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24786571
Primary Topic
Web Application Security Vulnerabilities
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

ShieldScan: An Intelligent PHP-Based Malware and Web Shell Scanner Using Tokenizer-Aware Signature Matching and Entropy Analysis

Nidhi Ghurye
Zenodo (CERN European Organization for Nuclear Research)
Web Application Security Vulnerabilities
preprint

ShieldScan: An Intelligent PHP-Based Malware and Web Shell Scanner Using Tokenizer-Aware Signature Matching and Entropy Analysis

Nidhi Ghurye
preprint en

Abstract

PHP powers a large share of websites, which makes it a frequent target for attackers who, after exploiting a vulnerable plugin, a weak credential or an insecure upload form, leave behind backdoors known as web shells. Plain keyword searches are slow, noisy and easily evaded by encoding, and they give the administrator no way to act on a finding. This paper presents ShieldScan, a browser-based scanner written in PHP that combines several detection layers in one pipeline: known web shell file names, comment removal with the PHP tokenizer to reduce false positives, behavioural regular-expression rules, string signatures, detection of PHP hidden in non-PHP files, and Shannon entropy analysis for packed code. Each finding receives a severity (HIGH or MEDIUM) and an attack vector. Results are streamed live using Server-Sent Events, summarised in analytics charts, and can be acted on through quarantine, restore, delete and whitelist operations.

Zenodo (CERN European Organization for Nuclear Research)
Web Application Security Vulnerabilities
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon