This paper discusses packet classification using support vector machines (SVM) combined with advanced string kernels to effectively detect malicious packets in internet traffic. It critiques existing classification methods and presents a novel approach that improves accuracy in identifying encrypted and unencrypted traffic. The findings indicate that (k, m) mismatch and restricted gappy kernels outperform traditional methods, offering better general accuracy and reduced data normalization overhead.