A method and system for testing transport layer security of iOS mobile applications

By parsing the binary files of iOS mobile applications and dynamically monitoring the transport layer interaction data, it detects its communication protocols and SSL man-in-the-middle attack vulnerabilities, solving the problem of insufficient detection accuracy of existing tools, and achieving high efficiency of the transport layer of iOS mobile applications in the power industry. Security testing.

CN111367784BActive Publication Date: 2024-10-22GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811595993.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-26
Publication Date
2024-10-22
Estimated Expiration
2038-12-26

AI Technical Summary

Technical Problem

Existing iOS mobile application automated detection tools are not accurate and complete enough for detecting iOS mobile applications in the power industry, and existing tools cannot effectively detect the dynamic and static security of the transport layer, posing the risk of privacy leakage.

Method used

An iOS mobile application transport layer security testing method is proposed, which parses binary files to obtain sensitive function calls and input parameters, detects communication protocols and SSL man-in-the-middle attack vulnerabilities, and uses dynamic plug-ins to monitor transport layer interaction data and output transport layer security test results. .

Benefits of technology

It achieves in-depth security detection of the iOS mobile application transport layer, improves detection accuracy and coverage, reduces false alarm rates, and is suitable for complex service environments in the power industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111367784B_ABST
    Figure CN111367784B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and system for testing the transport layer security of an iOS mobile application, the method comprising: step 1. parsing a binary file of an iOS mobile application to be tested, obtaining sensitive function calls corresponding to the binary file and corresponding input parameter information thereof; step 2. performing communication protocol security detection and SSL man-in-the-middle attack vulnerability detection on the iOS mobile application to be tested according to the sensitive function calls corresponding to the binary file and corresponding input parameter information thereof; step 3. performing communication data security detection using transport layer interaction data during the runtime of the iOS mobile application to be tested; step 4. outputting the transport layer security test result of the iOS mobile application to be tested according to the detection results of step 2 and step 3. The technical solution provided by the present invention can make the communication protocol security detection and SSL man-in-the-middle attack vulnerability detection more detailed, and make the communication data security detection have higher data coverage and higher accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of software security in information security, and specifically relates to an iOS mobile application transport layer security testing method and system. Background Art

[0002] At present, the security of iOS mobile applications has reached a fairly high level, but there is still a risk of privacy leakage. Although the existing iOS mobile application automated detection tools are widely used, the detection of iOS mobile applications is relatively shallow and can only serve as the first step in the security testing of iOS mobile applications, providing some suggestive guidance for the subsequent manual inspection. In addition, the existing centralized detection tools are not very suitable for iOS mobile applications in the power industry. In the face of the many complex services provided by iOS mobile applications in the power industry, the accuracy and completeness are not sufficient; the amount of static detection information for iOS mobile applications is insufficient, and the technology for dynamic detection of iOS mobile applications is relatively lacking. Therefore, industry insiders at home and abroad are committed to developing a detection tool with high accuracy, strong verification, dynamic and static detection, and suitable for iOS mobile applications in the power industry. Summary of the invention

[0003] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a method and system for testing the transport layer security of iOS mobile applications, which utilizes iOS mobile application data to perform security detection on communication protocols, SSL man-in-the-middle attack vulnerabilities and communication data, thereby determining the security performance of the transport layer of iOS mobile applications.

[0004] The purpose of the present invention is achieved by adopting the following technical solutions:

[0005] The present invention proposes a method for testing the transport layer security of an iOS mobile application, wherein the method comprises:

[0006] Step 1. Parse the binary file of the iOS mobile application to be detected, and obtain the sensitive function calls and their corresponding input parameter information corresponding to the binary file;

[0007] Step 2. Perform communication protocol security detection and SSL man-in-the-middle attack vulnerability detection on the iOS mobile application to be detected according to the sensitive function calls corresponding to the binary file and the corresponding input parameter information;

[0008] Step 3. Perform communication data security detection using the transport layer interaction data of the iOS mobile application to be detected during runtime;

[0009] Step 4. Output the transport layer security test result of the iOS mobile application to be tested according to the test results of step 2 and step 3.

[0010] Preferably, the step 1 comprises:

[0011] Acquire the binary file of the iOS mobile application to be tested in the test machine by establishing an SSH connection with the test machine;

[0012] Calling the IDA command line interface and inputting the path of the binary file of the iOS mobile application to be detected, disassembling the binary file to generate an idb file;

[0013] Get the function call corresponding to the idb file based on the IDAPython interface;

[0014] Matching the function call corresponding to the idb file with a pre-established sensitive function call library to obtain the sensitive function call corresponding to the idb file;

[0015] Perform control flow analysis on the sensitive function calls corresponding to the idb file to obtain the input parameter positions of the sensitive function calls corresponding to the idb file;

[0016] Perform control flow analysis on the sensitive function calls corresponding to the idb file to obtain input parameter values ​​of the sensitive function calls corresponding to the idb file.

[0017] Furthermore, the step 2 comprises:

[0018] Step 2-1. If the sensitive function call and its corresponding input parameter information corresponding to the binary file successfully match the correct sensitive function call and its corresponding input parameter information in the pre-established sensitive function call library, the communication protocol of the iOS mobile application is secure; otherwise, the communication protocol of the iOS mobile application is insecure;

[0019] Step 2-2. Build a server with an untrusted certificate. When the iOS mobile application to be detected normally accesses an IP or URL, dynamically inject the access URL of the server and monitor the network access behavior of the iOS mobile application to be detected. If the communication protocol of the iOS mobile application is secure and the iOS mobile application to be detected does not access the server, then the iOS mobile application to be detected does not have the risk of SSL man-in-the-middle attack. Otherwise, the iOS mobile application to be detected has the risk of SSL man-in-the-middle attack.

[0020] Preferably, the step 3 comprises:

[0021] Step 3-1. Obtain the transport layer interaction data of the iOS mobile application to be detected when it is running, wherein the transport layer interaction data of the iOS mobile application to be detected when it is running includes: the keyboard input content of the user when the iOS mobile application to be detected is running, the data stream transmitted over the network, and the file reading and writing content;

[0022] Step 3-2. Treat the user's keyboard input content and / or file reading and writing content as plain text;

[0023] Step 3-3. Encrypt the user's keyboard input content and / or file reading and writing content using a weak encryption algorithm to obtain ciphertext;

[0024] Step 3-4. If the data stream transmitted over the network contains content in plain text and / or cipher text, the communication data of the iOS mobile application to be detected is not secure; otherwise, the communication data of the iOS mobile application to be detected is secure.

[0025] Furthermore, the step 3-1 includes:

[0026] A dynamic plug-in is installed on the test machine, and the dynamic plug-in is used to monitor and obtain the user's keyboard input content, network transmission data flow and file reading and writing content when the iOS mobile application to be tested is running.

[0027] Furthermore, the dynamic plug-in is a hook plug-in.

[0028] Preferably, step 4 includes: if the communication protocol security detection result is that the communication protocol of the iOS mobile application is secure, the SSL man-in-the-middle attack vulnerability detection result is that the iOS mobile application does not have the risk of SSL man-in-the-middle attack, and the communication data security detection result is that the communication data of the iOS mobile application is secure, then the transport layer security detection result of the iOS mobile application is that the transport layer of the iOS mobile application is secure; otherwise, the transport layer security detection result of the iOS mobile application is that the transport layer of the iOS mobile application is insecure.

[0029] The present invention proposes an iOS mobile application transport layer security testing system, the improvement of which lies in that the system comprises:

[0030] Acquisition module: used to parse the binary file of the iOS mobile application to be detected, and obtain the sensitive function calls and corresponding input parameter information corresponding to the binary file;

[0031] The first detection module is used to perform communication protocol security detection and SSL man-in-the-middle attack vulnerability detection on the iOS mobile application to be detected according to the sensitive function call corresponding to the binary file and the corresponding input parameter information;

[0032] The second detection module is used to perform communication data security detection using the transport layer interaction data of the iOS mobile application to be detected during runtime;

[0033] Testing module: outputs the transport layer security test result of the iOS mobile application to be tested according to the test results of step 2 and step 3.

[0034] Preferably, the acquisition module includes:

[0035] The first acquisition module is used to acquire the binary file of the iOS mobile application to be tested in the test machine by establishing an SSH connection with the test machine;

[0036] The second acquisition module is used to call the IDA command line interface and input the path of the binary file of the iOS mobile application to be detected, and disassemble the binary file to generate an idb file;

[0037] The third acquisition module is used to obtain the function call corresponding to the idb file based on the IDAPython interface;

[0038] The fourth acquisition module is used to match the function call corresponding to the idb file with the pre-established sensitive function call library to acquire the sensitive function call corresponding to the idb file;

[0039] The fifth acquisition module is used to perform control flow analysis on the sensitive function calls corresponding to the idb file, and obtain the input parameter positions of the sensitive function calls corresponding to the idb file;

[0040] The sixth acquisition module is used to perform control flow analysis on the sensitive function calls corresponding to the idb file, and obtain input parameter values ​​of the sensitive function calls corresponding to the idb file.

[0041] Furthermore, the first detection module includes:

[0042] First detection unit: if the sensitive function call corresponding to the binary file and its corresponding input parameter information are successfully matched with the correct sensitive function call and its corresponding input parameter information in the pre-established sensitive function call library, the communication protocol of the iOS mobile application is safe; otherwise, the communication protocol of the iOS mobile application is not safe;

[0043] The second detection unit is used to build a server with an untrusted certificate. When the iOS mobile application to be detected normally accesses an IP or URL, the access URL of the server is dynamically injected, and the network access behavior of the iOS mobile application to be detected is monitored. If the communication protocol of the iOS mobile application is secure and the iOS mobile application to be detected does not access the server, then the iOS mobile application to be detected does not have the risk of SSL man-in-the-middle attack. Otherwise, the iOS mobile application to be detected has the risk of SSL man-in-the-middle attack.

[0044] Preferably, the second detection module includes:

[0045] The third detection unit is used to obtain the transport layer interaction data when the iOS mobile application to be detected is running, wherein the transport layer interaction data when the iOS mobile application to be detected is running includes: the keyboard input content of the user when the iOS mobile application to be detected is running, the data stream transmitted over the network, and the file reading and writing content;

[0046] A fourth detection unit: used for treating the user's keyboard input content and / or file reading and writing content as plain text;

[0047] A fifth detection unit: configured to encrypt the keyboard input content and / or the file reading and writing content of the user by using a weak encryption algorithm to obtain a ciphertext;

[0048] The sixth detection unit is used to determine that if there is content in plain text and / or cipher text in the data stream transmitted over the network, the communication data of the iOS mobile application to be detected is not secure; otherwise, the communication data of the iOS mobile application to be detected is secure.

[0049] Furthermore, the third detection unit is used for:

[0050] A dynamic plug-in is installed on the test machine, and the dynamic plug-in is used to monitor and obtain the user's keyboard input content, network transmission data flow and file reading and writing content when the iOS mobile application to be tested is running.

[0051] Furthermore, the dynamic plug-in is a hook plug-in.

[0052] Preferably, the test module is used for:

[0053] If the communication protocol security test result is that the communication protocol of the iOS mobile application is secure, the SSL man-in-the-middle attack vulnerability test result is that the iOS mobile application is not at risk of SSL man-in-the-middle attack, and the communication data security test result is that the communication data of the iOS mobile application is secure, then the transport layer security test result of the iOS mobile application is that the transport layer of the iOS mobile application is secure; otherwise, the transport layer security test result of the iOS mobile application is that the transport layer of the iOS mobile application is insecure.

[0054] Compared with the closest prior art, the present invention has the following beneficial effects:

[0055] The present invention takes the iOS mobile application transport layer security as the focus of detection, and has a deeper refinement in the application detection aspect; by obtaining the sensitive function call and corresponding input parameter information of the binary file, the iOS mobile application is more carefully security tested;

[0056] By dynamically obtaining user input and file read and write content as sensitive data sources, and capturing the data stream sent by the application, the user input file and the read and write content are compared with the data stream to determine whether the application has achieved security protection for the communication data, with higher data coverage and lower false alarm rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a flow chart of the iOS mobile application transport layer security testing method provided by the present invention;

[0058] Figure 2 The embodiment of the present invention is a flowchart of obtaining sensitive function calls corresponding to the binary file and their corresponding input parameter information;

[0059] Figure 3 It is a structural diagram of the iOS mobile application transport layer security testing system provided by the present invention. DETAILED DESCRIPTION

[0060] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] The present invention provides a method for testing the transport layer security of an iOS mobile application. Figure 1 As shown, including:

[0063] Step 1. Parse the binary file of the iOS mobile application to be detected, and obtain the sensitive function calls and their corresponding input parameter information corresponding to the binary file;

[0064] Step 2. Perform communication protocol security detection and SSL man-in-the-middle attack vulnerability detection on the iOS mobile application to be detected according to the sensitive function calls corresponding to the binary file and the corresponding input parameter information;

[0065] Step 3. Perform communication data security detection using the transport layer interaction data of the iOS mobile application to be detected during runtime;

[0066] Step 4. Output the transport layer security test result of the iOS mobile application to be tested according to the test results of step 2 and step 3.

[0067] Specifically, Figure 2 As shown, the step 1 includes:

[0068] The binary file of the iOS mobile application to be tested in the test machine is obtained by establishing an SSH connection with the test machine; the establishment of the SSH connection requires the user to provide the operating environment data of the iOS mobile application, including IP address, port number, user name, password, etc. After the system reads the operating environment data, it establishes an SSH connection with the test machine through the paramiko library.

[0069] Calling the IDA command line interface and inputting the path of the binary file of the iOS mobile application to be detected, disassembling the binary file to generate an idb file;

[0070] Get the function call corresponding to the idb file based on the IDAPython interface;

[0071] Matching the function call corresponding to the idb file with a pre-established sensitive function call library to obtain the sensitive function call corresponding to the idb file;

[0072] Perform control flow analysis on the sensitive function calls corresponding to the idb file to obtain the input parameter positions of the sensitive function calls corresponding to the idb file;

[0073] Perform control flow analysis on the sensitive function calls corresponding to the idb file to obtain input parameter values ​​of the sensitive function calls corresponding to the idb file.

[0074] Specifically, the step 2 includes:

[0075] Step 2-1. If the sensitive function call and its corresponding input parameter information corresponding to the binary file successfully match the correct sensitive function call and its corresponding input parameter information in the pre-established sensitive function call library, the communication protocol of the iOS mobile application is secure; otherwise, the communication protocol of the iOS mobile application is insecure;

[0076] Step 2-2. Build a server with an untrusted certificate. When the iOS mobile application to be detected normally accesses an IP or URL, dynamically inject the access URL of the server and monitor the network access behavior of the iOS mobile application to be detected. If the communication protocol of the iOS mobile application is secure and the iOS mobile application to be detected does not access the server, then the iOS mobile application to be detected does not have the risk of SSL man-in-the-middle attack. Otherwise, the iOS mobile application to be detected has the risk of SSL man-in-the-middle attack.

[0077] Specifically, the step 3 includes:

[0078] Step 3-1. Obtain the transport layer interaction data of the iOS mobile application to be detected when it is running, wherein the transport layer interaction data of the iOS mobile application to be detected when it is running includes: the keyboard input content of the user when the iOS mobile application to be detected is running, the data stream transmitted over the network, and the file reading and writing content;

[0079] Step 3-2. Treat the user's keyboard input content and / or file reading and writing content as plain text;

[0080] Step 3-3. Encrypt the user's keyboard input content and / or file reading and writing content using a weak encryption algorithm to obtain ciphertext;

[0081] Step 3-4. If the data stream transmitted over the network contains content in plain text and / or cipher text, the communication data of the iOS mobile application to be detected is not secure; otherwise, the communication data of the iOS mobile application to be detected is secure.

[0082] Specifically, the step 3-1 includes:

[0083] A dynamic plug-in is installed on the test machine, and the dynamic plug-in is used to monitor the user's keyboard input content, network transmission data flow and file reading and writing content when the iOS mobile application to be tested is running, and the user's keyboard input content, network transmission data flow and file reading and writing content when the iOS mobile application to be tested is running are obtained by installing a dynamic detection engine that matches the dynamic plug-in.

[0084] Specifically, the dynamic plug-in is a hook plug-in.

[0085] Specifically, step 4 includes: if the communication protocol security detection result is that the communication protocol of the iOS mobile application is secure, the SSL man-in-the-middle attack vulnerability detection result is that the iOS mobile application does not have the risk of SSL man-in-the-middle attack, and the communication data security detection result is that the communication data of the iOS mobile application is secure, then the transport layer security detection result of the iOS mobile application is that the transport layer of the iOS mobile application is secure; otherwise, the transport layer security detection result of the iOS mobile application is that the transport layer of the iOS mobile application is insecure.

[0086] An iOS mobile application transport layer security testing system, such as Figure 3 As shown, the system comprises:

[0087] Acquisition module: used to parse the binary file of the iOS mobile application to be detected, and obtain the sensitive function calls and corresponding input parameter information corresponding to the binary file;

[0088] The first detection module is used to perform communication protocol security detection and SSL man-in-the-middle attack vulnerability detection on the iOS mobile application to be detected according to the sensitive function call corresponding to the binary file and the corresponding input parameter information;

[0089] The second detection module is used to perform communication data security detection using the transport layer interaction data of the iOS mobile application to be detected during runtime;

[0090] Testing module: outputs the transport layer security test result of the iOS mobile application to be tested according to the test results of step 2 and step 3.

[0091] Specifically, the acquisition module includes:

[0092] The first acquisition module is used to acquire the binary file of the iOS mobile application to be tested in the test machine by establishing an SSH connection with the test machine;

[0093] The second acquisition module is used to call the IDA command line interface and input the path of the binary file of the iOS mobile application to be detected, and disassemble the binary file to generate an idb file;

[0094] The third acquisition module is used to obtain the function call corresponding to the idb file based on the IDAPython interface;

[0095] The fourth acquisition module is used to match the function call corresponding to the idb file with the pre-established sensitive function call library to acquire the sensitive function call corresponding to the idb file;

[0096] The fifth acquisition module is used to perform control flow analysis on the sensitive function calls corresponding to the idb file, and obtain the input parameter positions of the sensitive function calls corresponding to the idb file;

[0097] The sixth acquisition module is used to perform control flow analysis on the sensitive function calls corresponding to the idb file, and obtain input parameter values ​​of the sensitive function calls corresponding to the idb file.

[0098] Specifically, the first detection module includes:

[0099] First detection unit: if the sensitive function call corresponding to the binary file and its corresponding input parameter information are successfully matched with the correct sensitive function call and its corresponding input parameter information in the pre-established sensitive function call library, the communication protocol of the iOS mobile application is safe; otherwise, the communication protocol of the iOS mobile application is not safe;

[0100] The second detection unit is used to build a server with an untrusted certificate. When the iOS mobile application to be detected normally accesses an IP or URL, the access URL of the server is dynamically injected, and the network access behavior of the iOS mobile application to be detected is monitored. If the communication protocol of the iOS mobile application is secure and the iOS mobile application to be detected does not access the server, then the iOS mobile application to be detected does not have the risk of SSL man-in-the-middle attack. Otherwise, the iOS mobile application to be detected has the risk of SSL man-in-the-middle attack.

[0101] Specifically, the second detection module includes:

[0102] The third detection unit is used to obtain the transport layer interaction data when the iOS mobile application to be detected is running, wherein the transport layer interaction data when the iOS mobile application to be detected is running includes: the keyboard input content of the user when the iOS mobile application to be detected is running, the data stream transmitted over the network, and the file reading and writing content;

[0103] A fourth detection unit: used for treating the user's keyboard input content and / or file reading and writing content as plain text;

[0104] A fifth detection unit: configured to encrypt the keyboard input content and / or the file reading and writing content of the user by using a weak encryption algorithm to obtain a ciphertext;

[0105] The sixth detection unit is used to determine that if there is content in plain text and / or cipher text in the data stream transmitted over the network, the communication data of the iOS mobile application to be detected is not secure; otherwise, the communication data of the iOS mobile application to be detected is secure.

[0106] Specifically, the third detection unit is used for:

[0107] A dynamic plug-in is installed on the test machine, and the dynamic plug-in is used to monitor and obtain the user's keyboard input content, network transmission data flow and file reading and writing content when the iOS mobile application to be tested is running.

[0108] Specifically, the dynamic plug-in is a hook plug-in.

[0109] Specifically, the test module is used to:

[0110] If the communication protocol security test result is that the iOS mobile application's communication protocol is secure, the SSL man-in-the-middle attack vulnerability test result is that the iOS mobile application does not have the SSL man-in-the-middle attack risk, and the communication data security test result is that the iOS mobile application's communication data is secure, then the iOS mobile application's transport layer security test result is that the iOS mobile application's transport layer is secure. Otherwise, the iOS mobile application's transport layer security test result is that the iOS mobile application's transport layer is insecure.

[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for testing the transport layer security of an iOS mobile application, characterized in that: The method comprises: Step 1. Parse the binary file of the iOS mobile application to be detected, and obtain the sensitive function calls and their corresponding input parameter information corresponding to the binary file; Step 2. Perform communication protocol security detection and SSL man-in-the-middle attack vulnerability detection on the iOS mobile application to be detected according to the sensitive function calls corresponding to the binary file and the corresponding input parameter information; Step 3. Perform communication data security detection using the transport layer interaction data of the iOS mobile application to be detected during runtime; Step 4. Output the transport layer security test result of the iOS mobile application to be tested according to the test results of step 2 and step 3; The step 2 comprises: Step 2-1. If the sensitive function call and its corresponding input parameter information corresponding to the binary file successfully match the correct sensitive function call and its corresponding input parameter information in the pre-established sensitive function call library, the communication protocol of the iOS mobile application is secure; otherwise, the communication protocol of the iOS mobile application is insecure; Step 2-2. Build a server with an untrusted certificate. When the iOS mobile application to be detected accesses an IP or URL normally, dynamically inject the access URL of the server and monitor the network access behavior of the iOS mobile application to be detected. If the communication protocol of the iOS mobile application is secure and the iOS mobile application to be detected does not access the server, then the iOS mobile application to be detected does not have the risk of SSL man-in-the-middle attack. Otherwise, the iOS mobile application to be detected has the risk of SSL man-in-the-middle attack. The step 3 comprises: Step 3-1. Obtain the transport layer interaction data of the iOS mobile application to be detected when it is running, wherein the transport layer interaction data of the iOS mobile application to be detected when it is running includes: the keyboard input content of the user when the iOS mobile application to be detected is running, the data stream transmitted over the network, and the file reading and writing content; Step 3-2. Treat the user's keyboard input content and / or file reading and writing content as plain text; Step 3-3. Encrypt the user's keyboard input content and / or file reading and writing content using a weak encryption algorithm to obtain ciphertext; Step 3-4. If the data stream transmitted over the network contains content in plain text and / or cipher text, the communication data of the iOS mobile application to be detected is not secure; otherwise, the communication data of the iOS mobile application to be detected is secure.

2. The method according to claim 1, characterized in that The step 1 comprises: Acquire the binary file of the iOS mobile application to be tested in the test machine by establishing an SSH connection with the test machine; Calling the IDA command line interface and inputting the path of the binary file of the iOS mobile application to be detected, disassembling the binary file to generate an idb file; Get the function call corresponding to the idb file based on the IDAPython interface; Matching the function call corresponding to the idb file with a pre-established sensitive function call library to obtain the sensitive function call corresponding to the idb file; Perform control flow analysis on the sensitive function calls corresponding to the idb file to obtain the input parameter positions of the sensitive function calls corresponding to the idb file; Perform control flow analysis on the sensitive function calls corresponding to the idb file to obtain input parameter values ​​of the sensitive function calls corresponding to the idb file.

3. The method according to claim 2, characterized in that The step 3-1 comprises: A dynamic plug-in is installed on the test machine, and the dynamic plug-in is used to monitor and obtain the user's keyboard input content, network transmission data flow and file reading and writing content when the iOS mobile application to be tested is running.

4. The method according to claim 3, characterized in that The dynamic plug-in is a hook plug-in.

5. The method according to claim 1, characterized in that The step 4 includes: if the communication protocol security detection result is that the communication protocol of the iOS mobile application is secure, the SSL man-in-the-middle attack vulnerability detection result is that the iOS mobile application does not have the risk of SSL man-in-the-middle attack, and the communication data security detection result is that the communication data of the iOS mobile application is secure, then the transport layer security detection result of the iOS mobile application is that the transport layer of the iOS mobile application is secure; otherwise, the transport layer security detection result of the iOS mobile application is that the transport layer of the iOS mobile application is insecure.

6. An iOS mobile application transport layer security testing system, characterized in that: The system comprises: Acquisition module: used to parse the binary file of the iOS mobile application to be detected, and obtain the sensitive function calls and corresponding input parameter information corresponding to the binary file; The first detection module is used to perform communication protocol security detection and SSL man-in-the-middle attack vulnerability detection on the iOS mobile application to be detected according to the sensitive function call corresponding to the binary file and the corresponding input parameter information; The second detection module is used to perform communication data security detection using the transport layer interaction data of the iOS mobile application to be detected during runtime; Testing module: outputting the transport layer security test result of the iOS mobile application to be tested according to the detection results of the first detection module and the second detection module; The first detection module comprises: The first detection unit: if the sensitive function call corresponding to the binary file and the corresponding input parameter information thereof are successfully matched with the correct sensitive function call and the corresponding input parameter information thereof in the pre-established sensitive function call library, the communication protocol of the iOS mobile application is safe; otherwise, the communication protocol of the iOS mobile application is insecure; The second detection unit is used to build a server with an untrusted certificate. When the iOS mobile application to be detected normally accesses an IP or URL, the access URL of the server is dynamically injected, and the network access behavior of the iOS mobile application to be detected is monitored. If the communication protocol of the iOS mobile application is secure and the iOS mobile application to be detected does not access the server, then the iOS mobile application to be detected does not have the risk of SSL man-in-the-middle attack. Otherwise, the iOS mobile application to be detected has the risk of SSL man-in-the-middle attack. The second detection module comprises: The third detection unit is used to obtain the transport layer interaction data when the iOS mobile application to be detected is running, wherein the transport layer interaction data when the iOS mobile application to be detected is running includes: the keyboard input content of the user when the iOS mobile application to be detected is running, the data stream transmitted over the network, and the file reading and writing content; A fourth detection unit: used for treating the user's keyboard input content and / or file reading and writing content as plain text; A fifth detection unit: configured to encrypt the keyboard input content and / or the file reading and writing content of the user by using a weak encryption algorithm to obtain a ciphertext; The sixth detection unit is used to determine that if there is content in plain text and / or cipher text in the data stream transmitted over the network, the communication data of the iOS mobile application to be detected is not secure; otherwise, the communication data of the iOS mobile application to be detected is secure.

7. The system according to claim 6, characterized in that The acquisition module comprises: The first acquisition module is used to acquire the binary file of the iOS mobile application to be tested in the test machine by establishing an SSH connection with the test machine; The second acquisition module is used to call the IDA command line interface and input the path of the binary file of the iOS mobile application to be detected, and disassemble the binary file to generate an idb file; The third acquisition module is used to obtain the function call corresponding to the idb file based on the IDAPython interface; The fourth acquisition module is used to match the function call corresponding to the idb file with the pre-established sensitive function call library to acquire the sensitive function call corresponding to the idb file; The fifth acquisition module is used to perform control flow analysis on the sensitive function calls corresponding to the idb file, and obtain the input parameter positions of the sensitive function calls corresponding to the idb file; The sixth acquisition module is used to perform control flow analysis on the sensitive function calls corresponding to the idb file, and obtain input parameter values ​​of the sensitive function calls corresponding to the idb file.

8. The system according to claim 6, characterized in that The third detection unit is used for: A dynamic plug-in is installed on the test machine, and the dynamic plug-in is used to monitor and obtain the user's keyboard input content, network transmission data flow and file reading and writing content when the iOS mobile application to be tested is running.

9. The system according to claim 8, characterized in that The dynamic plug-in is a hook plug-in.

10. The system according to claim 6, characterized in that The test module is used to: If the communication protocol security test result is that the communication protocol of the iOS mobile application is secure, the SSL man-in-the-middle attack vulnerability test result is that the iOS mobile application is not at risk of SSL man-in-the-middle attack, and the communication data security test result is that the communication data of the iOS mobile application is secure, then the transport layer security test result of the iOS mobile application is that the transport layer of the iOS mobile application is secure; otherwise, the transport layer security test result of the iOS mobile application is that the transport layer of the iOS mobile application is insecure.