Research Article

A New Method for WebShell Detection Based on Bidirectional GRU and Attention Mechanism

Table 5

PHP-type WebShell detection results.

Methodacc (%)pre (%)recall (%)F1 value (%)

LSTM98.2098.1092.8095.38
GRU98.8898.5695.8097.16
Bidirectional LSTM99.0898.7796.6097.67
Bidirectional GRU99.1298.1997.4097.79
Bidirectional LSTM + attention99.3298.5998.0098.29
Bidirectional GRU + attention99.3698.2198.6098.40

The bold text means the best results in each performance comparison.