Telegram series application data analysis method, terminal device and storage medium

By identifying the feature fields and files of Telegram series applications, standardized mapping and analysis are carried out, data analysis problems caused by user transfer are solved, and data analysis is achieved for the Telegram series applications are quickly analyzed and data forensics are for improved law enforcement analysis capabilities.

CN114443568BActive Publication Date: 2024-11-19XIAMEN MEIYA PICO INFORMATION CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111577850.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-11-19
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

As users move from Telegram applications to other Telegram series applications, electronic forensics and law enforcement work has become difficult, and prior art has difficulty effectively parsing data from these niche and large amounts of Telegram series applications.

Method used

By determining whether the data packet to be parsed contains the feature fields of the Telegram application, the package name and feature file are mapped, the packet structure is analyzed according to the Telegram standard, and the attachment files are backed up and associated with the attachment files are formed to form a complete electronic data forensic results.

Benefits of technology

It realizes rapid analysis of Telegram series applications, improves the efficiency of electronic forensics and data analysis, supports data analysis on multiple platforms (Android and IOS), and enhances law enforcement analysis capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114443568B_ABST
    Figure CN114443568B_ABST
Patent Text Reader

Abstract

The present invention relates to a Telegram series application data parsing method, a terminal device and a storage medium, wherein the method includes: S1: judging whether the package name of the data packet of the application to be parsed contains a key field characterizing the characteristics of the Telegram application, if contained, entering S3; otherwise, entering S2; S2: judging whether the subdirectory under the package name directory contains a feature file of the Telegram application, if contained, entering S3; otherwise, ending; S3: mapping the package name and feature file that do not conform to the Telegram standard contained in the application to be parsed according to the Telegram standard; S4: mapping the attachment directory of the application to be parsed according to the Telegram standard; S5: parsing the application to be parsed according to the parsing method of the Telegram application based on the package name, attachment directory and feature file after application mapping. The present invention can easily realize the rapid analysis of the target application and improve the data parsing ability of each platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data analysis, and in particular to a Telegram series application data analysis method, a terminal device and a storage medium. Background Art

[0002] Telegram (TG for short, full name Telegram Messenger) is a cross-platform instant messaging software. Its client is free and open source software, but the server is proprietary software. Users can exchange encrypted and self-destructing messages (similar to "burn after reading"), and send photos, videos and all other types of files. The official provides mobile versions (Android, IOS, Windows Phone), desktop versions (Windows, macOS, Linux) and web versions for multiple platforms; at the same time, the official open application programming interface (API), so there are many third-party clients to choose from.

[0003] Telegram series applications are third-party clients developed based on Telegram application programming interface (API) or third-party client applications based on the open source code of Telegram applications. The functions are similar to Telegram, and basically can realize chat content encryption and powerful group chat functions. There is no limit on the number of group chats and the functions are all free. In addition, its unique self-destructing function is loved by most people.

[0004] The powerful group chat function of Telegram application determines its powerful communication ability. In addition, the strong security of chat content encryption determines that Telegram application is also one of the most widely used applications in the world. Therefore, data analysis of Telegram application has become the focus of forensic analysis. However, with the development of technology and the strengthening of crackdown efforts by relevant departments, users have gradually shifted their focus from Telegram application to other applications in the Telegram series to improve the concealment of their behavior. Therefore, in recent years, various Telegram series applications and copycat versions of applications have emerged in an endless stream, and related cases involving similar applications have frequently appeared, bringing difficulties to the work of electronic evidence collection and law enforcement personnel. Common Telegram series applications include Figure 1 shown. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a Telegram series application data parsing method, a terminal device and a storage medium to quickly parse the above-mentioned niche and large number of Telegram series applications.

[0006] The specific plan is as follows:

[0007] A Telegram series application data parsing method includes the following steps:

[0008] S1: Determine whether the package name of the data packet of the application to be parsed contains the key field representing the characteristics of the Telegram application. If so, enter S3; otherwise, enter S2;

[0009] S2: Determine whether the subdirectory under the package name directory contains the feature file of the Telegram application. If so, proceed to S3; otherwise, end.

[0010] S3: Map the package names and feature files that do not conform to the Telegram standard and are contained in the application to be analyzed according to the Telegram standard;

[0011] S4: Map the attachment directory of the application to be parsed according to the Telegram standard;

[0012] S5: Based on the package name, attachment directory and feature file after the application is mapped, the application to be analyzed is analyzed according to the analysis method of the Telegram application.

[0013] Furthermore, in Android and IOS systems, the key fields that characterize the characteristics of the Telegram application include tg, telegram, tele and gram.

[0014] Furthermore, in the Android system, the subdirectories under the package name directory that determine whether they contain feature files of the Telegram application include shared_prefs and files directories. The corresponding feature files under the shared_prefs directory include: userconfing*.xml and userconfig*.xml, and the corresponding feature file under the files directory is cache4.db.

[0015] Furthermore, in the IOS system, the subdirectory under the package name directory that determines whether it contains the feature files of the Telegram application is the Documents directory, and its corresponding feature files include the account data cache directory PACKAGE_NAME\Documents\account-* and the account data cache database file PACKAGE_NAME\Documents\account-*\postbox\db\db_sqlite.

[0016] Furthermore, in the Android system, when mapping the package name, the package name is mapped to the standard data packet name org.telegram.messenger.

[0017] Furthermore, in the Android system, when mapping feature files, the logininfo*.xml file is mapped to the logininfo2.xml file; the userconfig*.xml file is mapped to the userconfig1.xml file or the userconfig2.xml file, and the suffix numbers in the file names are accumulated in sequence according to the number of files.

[0018] Furthermore, in the IOS system, when mapping the package name, the package name is mapped to the standard data packet name ph.telegra.Telegraph.

[0019] Furthermore, in step S4, when it is an Android system, before performing directory mapping, it also includes backing up the attachment directory to the attachment subdirectory of the data packet directory corresponding to Telegram.

[0020] Furthermore, in step S4, when it is an Android system, when mapping the attachment directory, the attachment type is mapped to the corresponding type of attachment directory, and the mapped attachment directory includes Telegram Audio, Telegram Documents, Telegram Images and Telegram Video.

[0021] Furthermore, in step S5, when it is an Android system, the account information is parsed from the userconfing.xml file; the friend information and chat information are parsed from the cache4.db file; wherein the cache4.db file completes the parsing of each data field according to the read and write interface of the database.

[0022] A Telegram series application data parsing terminal device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method in an embodiment of the present invention when executing the computer program.

[0023] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described above in an embodiment of the present invention are implemented.

[0024] The present invention adopts the above technical scheme, and determines the supportable parsing degree by comparing the similarity of the internal data of the Telegram application by taking into account the characteristics that the Telegram series application and the Telegram application itself have the same data structure and file structure, and then maps and arranges the data packet format of the target application according to the format of the Telegram data packet, and backs up the attachment file to a fixed attachment directory for attachment association of the target application data parsing, and finally forms a complete electronic data forensics result for case detection and data analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 The following is a diagram of common Telegram series applications.

[0026] Figure 2 Shown is a flow chart of Embodiment 1 of the present invention.

[0027] Figure 3 The figure shows a comparison effect diagram of the Telegram series application data directories in this embodiment. DETAILED DESCRIPTION

[0028] To further illustrate various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementations and advantages of the present invention.

[0029] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.

[0030] Embodiment 1:

[0031] The embodiment of the present invention provides a Telegram series application data parsing method, such as Figure 2 As shown, the method comprises the following steps:

[0032] S1: Determine whether the package name of the data packet of the application to be parsed contains the key field representing the characteristics of the Telegram application. If so, enter S3; otherwise, enter S2.

[0033] S2: Determine whether the subdirectory under the package name directory contains the feature file of the Telegram application. If so, proceed to S3; otherwise, end.

[0034] S3: Map the package names and feature files of the application to be analyzed that do not conform to the Telegram standard according to the Telegram standard.

[0035] S4: Map the attachment directory of the application to be parsed according to the Telegram standard.

[0036] S5: Based on the package name, attachment directory and feature file after the application is mapped, the application to be analyzed is analyzed according to the analysis method of the Telegram application.

[0037] In order to ensure the integrity of the data, before parsing the Telegram series application data, it is necessary to back up the data directory first. Therefore, it is necessary to ensure that the iPhone has been jailbroken and the Android phone has been rooted before it is possible to back up the complete data packet. There are many ways to back up data packets, which can be done through third-party mobile phone management software or the mobile phone's built-in backup function or the official mobile phone tool and Android's adb command. The application package name that has been backed up is named PACKAGE_NAME in this embodiment. The following introduces the general parsing method of the Telegram series application data packets on two platforms, Android and IOS, respectively.

[0038] (1) For the Telegram series of applications on the Android system, since the applications themselves are implemented based on Telegram open source code or Telegram's API interface, the similarity of the application implementation can be identified from the feature file, and then a universal parsing file mapping is performed. The package name, directory and file name of the parsing files of different applications are mapped to the standard Telegram parsing file, and then the attachments cached on the SD card are associated with the standard parsing directory corresponding to Telegram. Finally, the parsing is performed according to the Telegram standard application, and the universal parsing of this type of application can be achieved.

[0039] In this embodiment, the application package name is set to PACKAGE_NAME. The package names of most of the data packets of the Android Telegram series applications contain characteristic fields of the Telegram application, such as tg, telegram, tele and gram, etc. Therefore, in this embodiment, these characteristic fields are set as key fields that characterize the characteristics of the Telegram application. It should be noted that case is ignored when matching.

[0040] The signature files exist in the shared_prefs and files subdirectories of the package name directory in the Android system, namely: userconfing*.xml and userconfig*.xml files in the PACKAGE_NAME\shared_prefs directory, and cache4.db file in the PACKAGE_NAME\files\ directory. If the corresponding signature files are contained in these two subdirectories, you can proceed to the subsequent steps to parse according to the general parsing method for Telegram series applications. If the signature files are not contained, it is determined that the application to be parsed cannot be parsed universally. Figure 3 The following is a comparison diagram of the data directories of the Telegram series of applications. It can be seen that the directories of the Telegram series of applications all contain these three feature files.

[0041] When using the general Telegram parsing method, it is necessary to map the package names and feature files of the Android version of the Telegram series of applications that do not conform to the Telegram standard to make them into standard Telegram data packets under the Android platform before they can be parsed using a unified method. Therefore, in this embodiment, the package name PACKAGE_NAME is mapped to the standard data packet name org.telegram.messenger, and the package name mappings of other applications are shown in Table 1.

[0042] Table 1

[0043] Application Name Original package name Mapped package name Telegreat xxx.sean.telegram.messenger.beta org.telegram.messenger BiYong org.telegram.btcchat org.telegram.messenger vidogram org.vidogram.messenger org.telegram.messenger Plus org.telegram.plus org.telegram.messenger Aka org.aka.messenger org.telegram.messenger …… …… ……

[0044] In the feature file mapping of the Android system, the logininfo*.xml file is mapped to the logininfo2.xml file; the userconfig*.xml is mapped to userconfig1.xml, userconfig2.xml, etc. The suffix numbers in the file names are accumulated according to the number of files, and multiple files correspond to multiple accounts.

[0045] Since the attachments of Telegram applications in the Android system are stored in the sdcard directory, the storage location is sdcard\appname, and only a small number of thumbnails, avatars and voice files are cached in the local data directory. A large number of attachment files transmitted by friends are in the sdcard directory, so you need to back up the sdcard directory to the attachment subdirectory org.telegram.messenger\attachment of the Telegram corresponding data package directory.

[0046] After the attachment directory is backed up, the directory name is mapped. The specific mapping is shown in Table 2.

[0047] Table 2

[0048] Original attachment directory Mapped file directory sdcard\appname\*Audio Telegram Audio sdcard\appname\*Documents Telegram Documents sdcard\appname\*Images Telegram Images sdcard\appname\*Video Telegram Video

[0049] Once the application package name, attachment directory and feature files are mapped, data parsing can be performed through the Android system's Telegram application universal parsing plug-in. Parse the account information from the shared_prefs\userconfing.xml file; parse the friend information and chat information from the files\cache4.db file. The parsing of the userconfing.xml file can be completed according to standard XML parsing. The cache4.db file is a standard sqlit database, and the parsing of each data field is completed according to the database's read and write interface. The data field stores friend information, chat information, group and group chat information, all of which are hexadecimal data streams. According to the data stream storage rules, bit-by-bit parsing can obtain the final plaintext data information.

[0050] (2) The total number of Telegram applications on the iOS system is much smaller than that on the Android platform, but the data analysis process is similar to that on the Android platform.

[0051] The key fields of the data packet name in the IOS system are the same as those in Android, which are tg, telegram, tele, and gram.

[0052] The feature files in the iOS system are stored in the Documents subdirectory under the package name directory. The feature files included include the account data cache directory PACKAGE_NAME\Documents\account-* and the account data cache database file PACKAGE_NAME\Documents\account-*\postbox\db\db_sqlite.

[0053] The mapping of package names and feature files in the iOS system is similar to that in the Android system. It is necessary to map the package names and feature files of the Telegram series applications in the iOS system that do not conform to the Telegram standard to make them standard Telegram data packets in the iOS system. In this embodiment, the package name PACKAGE_NAME is mapped to the standard data packet name ph.telegra.Telegraph, and the package name mapping results corresponding to other applications are shown in Table 3.

[0054] Table 3

[0055] Application Name Original package name Mapping package names Btok com.biyong.biyongApp ph.telegra.Telegraph Nicegram com.nicegram.Telegram - iOS ph.telegra.Telegraph …… …… ……

[0056] The attachment directory of applications in the iOS system is \PACKAGE_NAME\Documents\account-*\postbox\media. Since the attachments of the Telegram series applications in the iOS system are cached in the data package directory of the application itself, there is no need to back up the attachment directory as in the Android system. You only need to map the package name PACKAGE_NAME to the standard data package name ph.telegra.Telegraph, and the attachments can be associated and resolved.

[0057] Once the package name, attachment directory and feature files of the application are mapped, the data can be parsed through the Telegram application universal parsing plug-in of the iOS system. The data of the Telegram series of applications under the iOS system is basically cached in the PACKAGE_NAME\Documents\account-*\postbox\db\db_sqlite database file, which is a standard Sqlit database file. The local cache data of the Telegram series of applications can be obtained by parsing the db_sqlite database.

[0058] The method of the embodiment of the present invention is applicable to the mainstream Android platform and IOS platform. Through the method, the data of the modified and upgraded application based on the Telegram application or the non-genuine copycat application of Telegram and its different Chinese version applications can be analyzed, and the data output is completed according to the data requirements of the electronic data forensics standard, which is used for character attribute characterization, key data analysis and related character relationship analysis.

[0059] This embodiment is simple and efficient in technical implementation. It can use the Telegram series application data analysis interface on the Android and IOS platforms to implement a universal analysis plug-in that supports the Telegram series instant messaging applications on both Android and IOS platforms. It can easily realize rapid analysis of the target application and can be integrated into various forensic analysis platforms in a plug-in manner to improve the data analysis capabilities of various platforms.

[0060] In addition, the method of this embodiment can also be extended to the analysis of Telegram series application data on other system platforms besides Android and IOS, which is not limited here.

[0061] Embodiment 2:

[0062] The present invention also provides a Telegram series application data parsing terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the above-mentioned method embodiment of the first embodiment of the present invention when executing the computer program.

[0063] Further, as an executable solution, the Telegram series application data parsing terminal device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The Telegram series application data parsing terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the composition structure of the above-mentioned Telegram series application data parsing terminal device is only an example of the Telegram series application data parsing terminal device, and does not constitute a limitation on the Telegram series application data parsing terminal device. It may include more or less components than the above, or a combination of certain components, or different components. For example, the Telegram series application data parsing terminal device may also include input and output devices, network access devices, buses, etc., and the embodiments of the present invention do not limit this.

[0064] Further, as an executable solution, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the Telegram series application data parsing terminal device, and uses various interfaces and lines to connect the various parts of the entire Telegram series application data parsing terminal device.

[0065] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the Telegram series application data parsing terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the mobile phone, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0066] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method in the embodiment of the present invention are implemented.

[0067] If the module / unit integrated in the Telegram series application data parsing terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes a computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory) and a software distribution medium, etc.

[0068] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.

Claims

1. A Telegram series application data parsing method, characterized in that: The following steps are involved: S1: Determine whether the package name of the data packet of the application to be parsed contains the key field representing the characteristics of the Telegram application. If so, enter S3; otherwise, enter S2; S2: Determine whether the subdirectory under the package name directory contains the feature file of the Telegram application. If so, proceed to S3; otherwise, end. S3: Map the package names and feature files that do not conform to the Telegram standard and are contained in the application to be analyzed according to the Telegram standard; S4: Map the attachment directory of the application to be parsed according to the Telegram standard; S5: Based on the package name, attachment directory and feature file after the application is mapped, the application to be analyzed is analyzed according to the analysis method of the Telegram application.

2. The Telegram series application data parsing method according to claim 1, characterized in that: In Android and IOS systems, the key fields that characterize the characteristics of the Telegram application include tg, telegram, tele, and gram.

3. The Telegram series application data parsing method according to claim 1, characterized in that: In the Android system, the subdirectories under the package name directory that determine whether they contain the feature files of the Telegram application include the shared_prefs and files directories. The corresponding feature files under the shared_prefs directory include: userconfing*.xml and userconfig*.xml, and the corresponding feature file under the files directory is cache4.db.

4. The Telegram series application data parsing method according to claim 1, characterized in that: In the iOS system, the subdirectory under the package name directory is judged to be the Documents directory, and its corresponding feature files include the account data cache directory PACKAGE_NAME\Documents\account-* and the account data cache database file PACKAGE_NAME\Documents\account-*\postbox\db\db_sqlite.

5. The Telegram series application data parsing method according to claim 1, characterized in that: In the Android system, when mapping the package name, the package name is mapped to the standard data packet name org.telegram.messenger.

6. The Telegram series application data parsing method according to claim 1, characterized in that: In the Android system, when mapping feature files, the logininfo*.xml file is mapped to the logininfo2.xml file; the userconfig*.xml file is mapped to the userconfig1.xml file or the userconfig2.xml file, and the suffix numbers in the file names are accumulated in sequence according to the number of files.

7. The Telegram series application data parsing method according to claim 1, characterized in that: In the IOS system, when mapping the package name, the package name is mapped to the standard data packet name ph.telegra.Telegraph.

8. The Telegram series application data parsing method according to claim 1, characterized in that: In step S4, when it is an Android system, before performing directory mapping, it also includes backing up the attachment directory to the attachment subdirectory of the data packet directory corresponding to Telegram.

9. The Telegram series application data parsing method according to claim 1, characterized in that: In step S4, when the Android system is used, when mapping the attachment directory, the attachment type is mapped to the attachment directory of the corresponding type, and the mapped attachment directory includes Telegram Audio, Telegram Documents, Telegram Images, and Telegram Video.

10. The Telegram series application data parsing method according to claim 1, characterized in that: In step S5, when it is an Android system, the account information is parsed from the userconfing.xml file; the friend information and chat information are parsed from the cache4.db file; wherein the cache4.db file completes the parsing of each data field according to the read and write interface of the database.

11. A Telegram series application data parsing terminal device, characterized by: The method comprises a processor, a memory and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 10 when executing the computer program.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Telegram application multimedia forensic method under android platform

    CN106549948A

  • HL7V3 analysis method, storage medium, electronic d and system

    CN109670152A

  • Apparatus and method for converting telegram in data communication

    KR1020090073682A