Semantic-Preserving Hybrid Tokenization With Codebert For Robust Webshell Detection In Hypertext Preprocessor Source Code
Transformer-based code models can achieve high accuracy in PHP(Hypertext Preprocessor) webshell detection, but high in-distribution scores do not necessarily indicate reliable behavior under difficult benign cases. This study investigates shortcut learning in CodeBERT-based PHP webshell classification and proposes a se...