Multiple methods for wechat identification

Chunwei Tian, Qi Zhang, Guanglu Sun2016

Abstract

Wechat is a popular social platform developed in 2011 by Tencent. In this paper wechat traffic is analyzed by a novel hybrid method, which combines statistical method, payload-based method, SVM, CRC and deep learning. Firstly, the statistical method is utilized to extract features from wechat packets header, which can classify different wechat applications and functions, e.g. texts, images and voice, and so on. Secondly, payload-based method is used to identify the traffic, which is corresponding to the above functions and application protocols. Thirdly, SVM is applied to categorize the texts based on their attributes. CRC method is used to classify the images, which effectively protects the user's privacy. Finally, deep learning is presented to extract features of wechat app in order to check the malicious software. Experimental results show that, the proposed method has high accuracy for wechat traffic. It not only identifies wechat app, but also detects the specific functions of app. It even discriminates texts, images, voice and malicious software effectively.

Introduction

In the modern networking landscape, identifying specific application traffic is a complex challenge. Traditional methods often rely on port-based identification or simple payload signatures, which are easily bypassed by encryption and evolving protocols. This challenge is amplified by "super-apps" like WeChat, which encompass VoIP, file sharing, social feeds ("Moments"), and mini-programs. For network administrators, simply identifying traffic as "WeChat" is insufficient; granular visibility into specific functions is required to manage bandwidth and detect malicious activity.

Methodology

The proposed hybrid framework employs a multi-layered approach for fine-grained traffic analysis:

  1. Statistical Feature Extraction: Analysis of the 16-byte WeChat packet header reveals specific "function numbers" that act as fingerprints (e.g., 0xed for text, 0x13 for voice, and 0x09 for images).
  2. Payload-Based Identification: Deep Packet Inspection (DPI) on the initial 70 bytes of the payload identifies underlying protocols, such as HTTP usage for voice and image transfers.
  3. Support Vector Machines (SVM): SVMs are utilized to categorize text traffic by analyzing the first 64 bytes of messages to distinguish between legitimate and malicious content.
  4. Collaborative Representation Classification (CRC): CRC is employed for image classification. This method is efficient with small sample sizes and enhances privacy by classifying representations rather than raw image data.
  5. Deep Learning: A deep learning model analyzes 200 distinct features from Android applications to detect compromised WeChat instances or malicious plug-ins.

Experimental Results

The hybrid method was validated using datasets from iOS and Windows (Web WeChat) platforms, as well as the ORL face dataset for image classification benchmarking.

Traffic Identification Performance

The system demonstrated high accuracy across various traffic groups. As shown in the table below, packet identification rates generally exceeded 93%, with flow-based identification reaching 100% in certain mixed traffic scenarios.

Identification rates for packet and flow across different WeChat datasets.

Image Classification and Privacy

The CRC component showed significant improvement in accuracy as the number of training samples increased. The error rate decreased from 32.65% with one sample per class to 18.49% with three samples, demonstrating the efficiency of the collaborative representation approach.

Error rates of the CRC method for image classification relative to training sample size.

Conclusion

The hybrid approach effectively addresses the complexity of modern application traffic. By combining statistical, payload-based, and machine learning techniques, the system achieves high accuracy in both application identification and functional discrimination. Future work will focus on adapting these methods to increasingly robust end-to-end encryption and evaluating real-time scalability on high-speed network backbones.

Summary updated

Abstract

Wechat is a popular social platform developed in 2011 by Tencent. In this paper wechat traffic is analyzed by a novel hybrid method, which combines statistical method, payload-based method, SVM, CRC and deep learning. Firstly, the statistical method is utilized to extract features from wechat packets header, which can classify different wechat applications and functions, e.g. texts, images and voice, and so on. Secondly, payload-based method is used to identify the traffic, which is corresponding to the above functions and application protocols. Thirdly, SVM is applied to categorize the texts based on their attributes. CRC method is used to classify the images, which effectively protects the user's privacy. Finally, deep learning is presented to extract features of wechat app in order to check the malicious software. Experimental results show that, the proposed method has high accuracy for wechat traffic. It not only identifies wechat app, but also detects the specific functions of app. It even discriminates texts, images, voice and malicious software effectively.
BibTeX
@misc{tian2016multiple,
  author = {Chunwei Tian and Qi Zhang and Guanglu Sun},
  title = {{Multiple methods for wechat identification}},
  year = {2016},
  doi = {10.2991/icadme-16.2016.104},
}
Figure