Terminal device authenticity detection method, apparatus, device, and medium

By generating random patterns and using light sensors to collect light information before and after the user's occlusion action, combined with diffuse reflection and light intensity change laws, the problem of distinguishing between real physical terminal devices and cloud terminal devices is solved, and efficient and accurate detection is achieved.

CN119004437BActive Publication Date: 2025-10-21CHINA UNIONPAY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411009732.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2025-10-21
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing technologies make it difficult to distinguish between real physical terminal devices and cloud terminal devices. The software environment of cloud terminal devices is the same as that of real terminal devices, making them difficult to identify through feature algorithms. In addition, the hardware interface parameters are easy to modify, making detection difficult.

Method used

By generating random patterns, controlling the display of terminal devices, and using light sensors to collect light information before and after the user's occlusion action, the device type is determined based on the changing pattern of light information, including diffuse reflection information and light intensity changes, and the authenticity of the device is judged in combination with the type of user occlusion object.

Benefits of technology

It effectively distinguishes between real physical terminal devices and cloud terminal devices, improves the accuracy and convenience of detection, and prevents attacks from illegal use of cloud terminal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004437B_ABST
    Figure CN119004437B_ABST
Patent Text Reader

Abstract

The application discloses a terminal device authenticity detection method and device, equipment and medium, and belongs to the field of device detection. The method comprises the following steps: generating a random pattern, controlling the terminal device to display the random pattern; acquiring first light information and second light information collected by a light sensor, the first light information comprising light information collected before a user performs a shielding action on a target region of the terminal device, the second light information comprising light information collected during the user performs the shielding action on the target region, and the target region being provided with the light sensor; and determining whether the terminal device is a real physical terminal device or a cloud terminal device based on the first light information, the second light information and pre-obtained real device light change conditions. According to the embodiment of the application, the real physical terminal device and the cloud terminal device can be effectively distinguished.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device detection, and in particular to a method, apparatus, device and medium for detecting the authenticity of a terminal device. Background Art

[0002] As cloud technology's monitoring and migration capabilities continue to improve, its application in terminal services has enabled the creation of cloud terminal devices. These devices offer a rich set of sensor data parameter interfaces for users to configure and inject data at will, offering exceptional business flexibility and supporting diverse user scenarios and business needs.

[0003] However, some criminals exploit the flexibility of cloud terminal devices to conduct illegal operations and launch attacks on business networks. The software environment of cloud terminal devices is essentially identical to that of real terminal devices, making them difficult to identify using signature algorithms. Furthermore, the ease of injecting and modifying hardware interface parameters of cloud terminal devices also allows cloud terminal devices to evade some detection algorithms. Therefore, distinguishing whether a terminal device is a real physical terminal device or a cloud terminal device has become a major challenge in the terminal device business. Summary of the Invention

[0004] The embodiments of the present application provide a method, apparatus, device, and medium for detecting the authenticity of a terminal device, which can effectively distinguish between a real physical terminal device and a cloud terminal device.

[0005] In a first aspect, an embodiment of the present application provides a method for detecting the authenticity of a terminal device, including: generating a random pattern, controlling the terminal device under test to display the random pattern; obtaining first light information and second light information collected by a light sensor, the first light information including light information collected before the user performs a blocking action on a target area of ​​the terminal device under test, and the second light information including light information collected during the user performs a blocking action on the target area, and a light sensor is provided in the target area; based on the first light information, the second light information and the pre-obtained light change conditions of the real device, determining whether the terminal device under test is a real physical terminal device or a cloud terminal device.

[0006] In the second aspect, an embodiment of the present application provides an authenticity detection device for a terminal device, including: a pattern generation module, used to generate a random pattern and control the terminal device under test to display the random pattern; an information acquisition module, used to obtain first light information and second light information collected by a light sensor, the first light information including light information collected before the user performs a blocking action on the target area of ​​the terminal device under test, and the second light information including light information collected during the user performs a blocking action on the target area, and the target area is provided with a light sensor; an information processing module, used to determine whether the terminal device under test is a real physical terminal device or a cloud terminal device based on the first light information, the second light information and the pre-obtained light change conditions of the real device.

[0007] In a third aspect, an embodiment of the present application provides a terminal device comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the authenticity detection method of the terminal device of the first aspect is implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the authenticity detection method of the terminal device of the first aspect is implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the authenticity detection method of the terminal device of the first aspect when the computer program is executed by a processor.

[0010] The present invention provides a method, apparatus, device, and medium for detecting the authenticity of a terminal device. The method controls the terminal device under test to display a random pattern generated during the test, obtains first light information collected by the light sensor of the terminal device under test before a user performs an occlusion action on a target area where the light sensor of the terminal device under test is located, and obtains second light information collected by the light sensor of the terminal device under test during the user's occlusion action. The method determines whether the terminal device under test is a real physical terminal device or a cloud terminal device by determining whether the first light information and the second light information meet a real device light change condition that represents the light information change pattern of the light sensor of a real physical terminal device during the occlusion process. On the one hand, the pattern displayed by the terminal device under test is random, and a third party illegally using the cloud terminal device cannot predict the pattern displayed by the terminal device under test, and therefore cannot simulate the light information collected by the light sensor. On the other hand, the cloud terminal device is a virtual terminal device, and the light sensor therein is a virtual light sensor. The user cannot perform an occlusion action on the cloud terminal device, and the light sensor of the cloud terminal device cannot simulate the light information actually collected by the light sensor of the real physical terminal device when the user occludes the light sensor, thereby effectively distinguishing between real physical terminal devices and cloud terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0012] Figure 1 A flowchart of a method for detecting the authenticity of a terminal device provided in one embodiment of the present application;

[0013] Figure 2 A schematic diagram of an example of a mobile phone authenticity detection process provided in an embodiment of the present application;

[0014] Figure 3 A schematic diagram of the structure of an authenticity detection device for a terminal device provided in one embodiment of the present application;

[0015] Figure 4 A schematic diagram of the structure of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0016] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating examples of the present application. It should be noted that the acquisition, storage, use, processing, etc. of information and data in the embodiments of the present application are authorized by the user or relevant agencies and comply with the relevant provisions of national laws and regulations.

[0017] With the continuous improvement of cloud technology's monitoring and migration capabilities, cloud technology is being applied in the terminal business field, realizing cloud terminal devices. Cloud terminal devices provide a rich set of sensor data parameter interfaces for users to randomly configure and inject data. They have very high business flexibility and can support users' diverse usage scenarios and business needs. However, some criminals exploit the business flexibility of cloud terminal devices to conduct illegal operations and launch attacks on business networks. The software environment of cloud terminal devices is essentially identical to that of real terminal devices, making them difficult to identify through feature algorithms. In addition, the ease of injecting and modifying hardware interface parameters of cloud terminal devices also allows cloud terminal devices to specifically evade some detection algorithms. Therefore, distinguishing whether a terminal device is a real physical terminal device or a cloud terminal device has become a major challenge in the terminal device business field.

[0018] The present application provides a method, apparatus, device, and medium for detecting the authenticity of a terminal device, which causes the terminal device under test to display a random pattern and prompts the user to perform a blocking action on the area of ​​the terminal device under test where a light sensor is provided. The method determines whether the terminal device under test is a real physical terminal device or a cloud terminal device by determining whether the light information collected by the light sensor conforms to objective laws. The pattern displayed by the terminal device under test is random, and a third party who illegally uses the cloud terminal device cannot predict the pattern displayed by the terminal device under test. Furthermore, the cloud terminal device is a virtual terminal device, and the light sensor therein is a virtual light sensor. The user cannot perform a blocking action on the cloud terminal device, and the light sensor of the cloud terminal device cannot simulate the light information actually collected by the light sensor of the real physical terminal device that is blocked by the user, thereby effectively and accurately distinguishing between a real physical terminal device and a cloud terminal device.

[0019] The authenticity detection method, apparatus, device and medium of the terminal device provided in this application are described below.

[0020] The first aspect of the present application provides a method for detecting the authenticity of a terminal device, which can be applied to various business scenarios. For example, when a terminal device under test applies for a service, the authenticity of the terminal device under test is first detected. If the terminal device under test is a real physical terminal device, the terminal device under test is allowed to continue to apply for the service. Specific application scenarios are not illustrated one by one here. The authenticity detection method of the terminal device can be executed by an authenticity detection device, equipment, etc. In some examples, the authenticity detection device or equipment can be a device or equipment independent of the terminal device under test, or can be the terminal device under test itself, which is not limited here. Figure 1 This is a flow chart of a method for detecting the authenticity of a terminal device provided in one embodiment of the present application, as shown in FIG. Figure 1 As shown, the authenticity detection method of the terminal device may include steps S101 to S103.

[0021] In step S101, a random pattern is generated, and the terminal device under test is controlled to display the random pattern.

[0022] Random patterns are generated randomly and do not follow a specific pattern. Random patterns include, but are not limited to, color blocks, application interface patterns, and even blank patterns. A new random pattern is generated each time a terminal device authenticity check is performed.

[0023] If the authenticity detection device or apparatus that performs the authenticity detection method for a terminal device according to the embodiments of the present application is a device or apparatus that is independent of the terminal device under test, then after generating the random pattern, the random pattern can be sent to the terminal device under test so that the terminal device under test displays the random pattern. If the authenticity detection device or apparatus that performs the authenticity detection method for a terminal device according to the embodiments of the present application is the terminal device under test itself, then the terminal under test generates the random pattern and directly displays it.

[0024] In step S102 , first light information and second light information collected by the light sensor are acquired.

[0025] Control the light sensor in the terminal device under test to collect light information. The first light information includes the light information collected before the user performs a blocking action on the target area of ​​the terminal device under test. At this time, since the user has not yet performed the blocking action, the first light information can be regarded as standard ambient light information. The target area is provided with a light sensor, and the size and specific position of the target area can be pre-set or randomly generated. For example, the target area may include the entire screen of the terminal device under test, or it may only include the light sensor area. The second light information includes the light information collected during the user's blocking action on the target area. During this process, the user performs the blocking action, and the light information collected by the light sensor is affected by the user's blocking action. The second light information includes both ambient light information and diffuse reflection information after the displayed random pattern is illuminated by the blocking object where the user performs the blocking action.

[0026] Light information may include information characterizing the characteristics of light. In some examples, light information may include, but is not limited to, light intensity information and color space information. Light intensity information is used to characterize the intensity of light. Color space information is used to characterize information about basic colors in a color space. A color space can be based on multiple basic colors, with varying degrees of superposition to produce a rich variety of colors. For example, a color space may include three basic colors, namely red (R), green (G), and blue (B), and the color space information may include the value of red (R), the value of green (G), and the value of blue (B). The color space may also be a color space of other basic colors, which are not exemplified here.

[0027] In some examples, before step S102, the terminal device under test may be controlled to issue a prompt message. The prompt message is used to prompt the user to perform a blocking action on the target area of ​​the terminal device under test. The prompt message may include but is not limited to text information, image information, voice information, etc. In some examples, the prompt message may also prompt the user to perform the blocking action on the type of blocking object. For example, the prompt message prompts the user to cover the entire screen of the terminal device under test with the palm of the hand. For another example, the prompt message prompts the user to cover the light sensor of the terminal device under test with a finger. The execution order of step S101 and controlling the terminal device under test to issue the prompt message is not limited here. A random pattern may be displayed first, and then the prompt message is issued; a prompt message may be issued first, and then the random pattern is displayed; or a prompt message and a random pattern may be displayed at the same time.

[0028] In step S103, based on the first optical information, the second optical information and the pre-obtained optical change condition of the real device, it is determined that the terminal device under test is a real physical terminal device or a cloud terminal device.

[0029] The real device light change condition may include conditions that characterize the changing pattern of light information during the process of blocking the light sensor of the real physical terminal device. The real device light change condition may reflect the change in light intensity during the process of blocking the light sensor of the real physical terminal device, and may also reflect the information of the random pattern contained in the light during the process of blocking the light sensor of the real physical terminal device. The random pattern is strongly correlated with the diffuse reflection information behind the blocking object when the user performs the blocking action. For example, the light information collected by the light sensor is strongly correlated with the color space information of the random pattern, such as the values ​​of red R, green G, and blue B. The real device light change condition can change with different random patterns. The real device light change condition can be obtained based on the random pattern.

[0030] If the first optical information and the second optical information satisfy the real device optical change condition, the terminal device under test can be determined to be a real physical terminal device, which is a terminal device with physical hardware. If the first optical information and the second optical information do not satisfy the real device optical change condition, the terminal device under test can be determined to be a cloud terminal device, which is a virtual terminal device without physical hardware.

[0031] In an embodiment of the present application, the terminal device under test can be controlled to display a random pattern generated during the test, and first light information collected by the light sensor of the terminal device under test before a user performs an occlusion action on the target area where the light sensor of the terminal device under test is located, and second light information collected by the light sensor of the terminal device under test during the user's occlusion action, can be obtained. The first light information and the second light information can be determined to determine whether the terminal device under test is a real physical terminal device or a cloud terminal device by determining whether the first light information and the second light information meet the real device light change condition that represents the change pattern of light information during the occlusion of the light sensor of a real physical terminal device. On the one hand, the pattern displayed by the terminal device under test is random, and a third party who illegally uses the cloud terminal device cannot predict the pattern displayed by the terminal device under test, and therefore cannot simulate the light information collected by the light sensor. On the other hand, the cloud terminal device is a virtual terminal device, and the light sensor therein is a virtual light sensor. The user cannot perform an occlusion action on the cloud terminal device, and the light sensor of the cloud terminal device cannot simulate the light information actually collected by the light sensor of the real physical terminal device when it is occluded by the user. Therefore, it can effectively and accurately distinguish between real physical terminal devices and cloud terminal devices. Moreover, the light sensor can read the light information it collects without user authorization, which is more convenient than the method of reading data collected by other sensors that requires user authorization.

[0032] In some embodiments, the real device light change condition includes the real device diffuse reflection condition. Whether the terminal device under test is a real physical terminal device or a cloud terminal device can be determined by whether the first light information and the second light information meet the light information rules of the obstruction approaching the terminal device under test and the obstruction moving away from the terminal device under test during the user's blocking action. The rules of the light information here may include the rules of light information changes, and may also include the rules of random pattern information contained in the light information.

[0033] Specifically, based on the first light information, the influence of ambient light can be stripped from the second light information to obtain diffuse reflection information; if the diffuse reflection information does not meet the diffuse reflection conditions of the real device, it is determined that the terminal device under test is a cloud terminal device; if the diffuse reflection information meets the diffuse reflection conditions of the real device, it is determined that the terminal device under test is a real physical terminal device.

[0034] The first light information includes the light information collected by the terminal device under test before the user performs the blocking action, and the first light information can be used as ambient light information. The second light information includes the light information collected by the terminal device under test during the user's blocking action. The second light information includes ambient light information and diffuse reflection information generated by the random pattern displayed by the terminal device under test due to the blocking action and the reflection of the blocking object. Therefore, based on the first light information, the ambient light effect can be stripped from the second light information to obtain diffuse reflection information. The method of stripping the ambient light effect from the second light information is not limited here. For example, the first light information can be subtracted from the second light information to obtain diffuse reflection information; for another example, the diffuse reflection information can be obtained based on the first light information, the second light information and a pre-set illumination model; for another example, the diffuse reflection information can be simulated based on the first light information, the second light information and the radiance map. Examples are not given here one by one. The diffuse reflection information may include the light intensity information obtained after diffuse reflection and the pattern high-frequency information obtained after diffuse reflection. The light intensity information obtained after diffuse reflection in the diffuse reflection information can reflect the light intensity during the process of the target area of ​​the terminal device under test being blocked, and the pattern high-frequency information obtained after diffuse reflection in the diffuse reflection information can reflect the outline of the pattern displayed by the terminal device under test.

[0035] The real device diffuse reflection conditions include conditions that characterize changes in diffuse reflection information when a real physical device's light sensor is obscured by an obstruction. If the diffuse reflection information satisfies the real device diffuse reflection conditions, it indicates that the diffuse reflection information of the terminal device under test when the light sensor is obscured by the obstruction conforms to the pattern of diffuse reflection information of the light sensor of the real physical device when the light sensor is obscured by the obstruction, and the terminal device under test can be determined to be a real physical terminal device. If the diffuse reflection information does not satisfy the real device diffuse reflection conditions, it indicates that the diffuse reflection information of the terminal device under test when the light sensor is obscured by the obstruction does not conform to the pattern of diffuse reflection information of the light sensor of the real physical device when the light sensor is obscured by the obstruction, and the terminal device under test can be determined to be a cloud terminal device.

[0036] In some examples, the process of a user performing an occlusion action may include a first process and / or a second process. The first process is the process in which the user's occluding object approaches the target area. In the first process, the occluding object used by the user to perform the occlusion action gradually approaches the target area. The second process is the process in which the user's occluding object moves away from the target area. In the second process, the occluding object used to perform the occlusion action gradually moves away from the target area.

[0037] When the process of the user performing an occluding action includes a first process, the real device diffuse reflection condition may include, but is not limited to, one or more of the following: the diffuse reflection information in the first process is within a first real diffuse reflection range; the change in the diffuse reflection information in the first process is within a first real diffuse reflection variation range; and the pattern high-frequency information in the diffuse reflection information in the first process matches the random pattern. The first real diffuse reflection range is the normal range of diffuse reflection information values ​​in a scenario where an obstructing object is close to the light sensor of a real physical terminal device; the first real diffuse reflection variation range is the normal range of change in diffuse reflection information in a scenario where an oscillating object is close to the light sensor of a real physical terminal device; and matching the pattern high-frequency information with the random pattern may mean that the deviation between the pattern high-frequency information and the pattern information of the random pattern is less than a preset deviation threshold, that is, the pattern profile represented by the pattern high-frequency information is similar to or consistent with the random pattern, the terminal device under test displays a random pattern, the diffuse reflection information in the first process may reflect the random pattern and the background, and the random pattern and the background are significantly different. The pattern high-frequency information can be obtained from the diffuse reflection information in the first process. If the terminal device under test is a real physical terminal device, the pattern profile represented by the pattern high-frequency information obtained from the diffuse reflection information in the first process should be similar to or consistent with the random pattern. The diffuse reflection information from the first process meets the diffuse reflection conditions of a real device, indicating that the diffuse reflection information from the optical sensor of the measured terminal device when the obstruction is close to the device conforms to the diffuse reflection pattern of the optical sensor of a real physical terminal device when the obstruction is close to the device. It should be noted that the first real diffuse reflection range and the first real diffuse reflection variation range can be set based on the random pattern and obstruction. Different random patterns and different obstructions may correspond to different first real diffuse reflection ranges and first real diffuse reflection variation ranges.

[0038] When the process of the user performing the occluding action includes a second process, the real device diffuse reflection condition may include one or more of the following: the diffuse reflection information in the second process is within a second real diffuse reflection range; the change in the diffuse reflection information in the second process is within a second real diffuse reflection variation range; and the pattern high-frequency information in the diffuse reflection information in the second process matches the random pattern. The second real diffuse reflection range is the normal range of diffuse reflection information values ​​in a scenario where the obstruction is far from the light sensor of a real physical terminal device; the second real diffuse reflection variation range is the normal range of change in diffuse reflection information in a scenario where the oscillating object is far from the light sensor of the real physical terminal device; and the pattern high-frequency information matching the random pattern may mean that the deviation between the pattern high-frequency information and the pattern information of the random pattern is less than a preset deviation threshold, that is, the pattern profile represented by the pattern high-frequency information is similar to or consistent with the random pattern, the terminal device under test displays the random pattern, the diffuse reflection information in the second process may reflect the random pattern and the background, and the random pattern and the background are significantly different. The pattern high-frequency information can be obtained from the diffuse reflection information in the second process. If the terminal device under test is a real physical terminal device, the pattern profile represented by the pattern high-frequency information obtained from the diffuse reflection information in the second process should be similar to or consistent with the random pattern. The diffuse reflection information from the second process meets the diffuse reflection conditions of a real device, indicating that the diffuse reflection information from the light sensor of the terminal device under test when the obstruction is far away from the light sensor of a real physical terminal device conforms to the diffuse reflection characteristics of the light sensor when the obstruction is far away from the light sensor. It should be noted that the second real diffuse reflection range and the second real diffuse reflection variation range can be set based on the random pattern and obstruction. Different random patterns and different obstructions can correspond to different second real diffuse reflection ranges and second real diffuse reflection variation ranges.

[0039] When the process of the user performing the occlusion action includes a first process and a second process, the real device diffuse reflection condition may include: the diffuse reflection information in the first process is within a first real diffuse reflection range, the change in the diffuse reflection information in the first process is within the first real diffuse reflection change range, the high-frequency information of the pattern in the diffuse reflection information in the first process matches the random pattern, the diffuse reflection information in the second process is within a second real diffuse reflection range, the change in the diffuse reflection information in the second process is within the second real diffuse reflection change range, and the high-frequency information of the pattern in the diffuse reflection information in the second process matches the random pattern. For details, please refer to the relevant description in the above embodiments and will not be repeated here.

[0040] In addition to judging whether the terminal device under test is a real physical terminal device by using the light information of the user's occlusion approaching the target area and the light information of the user's occlusion moving away from the target area, it is also possible to judge whether the terminal device under test is a real physical terminal device based on this and the light information of the user's occlusion blocking the target area, the type of occlusion, etc.

[0041] In some examples, the process in which the user performs an occluding action also includes a third process, and the third process is the process in which the user's occluding object blocks the target area. Correspondingly, the real device light change condition also includes: the second light information of the third process is within the real occlusion information range. The real occlusion information range is the normal range of the value of the light information when the light sensor of the real physical terminal device is blocked. The second light information of the third process is within the real occlusion information range, indicating that the light information of the light sensor of the tested terminal device is blocked conforms to the law of the light information of the light sensor of the real physical terminal device, which can further assist in determining whether the tested terminal device is a real physical terminal device. If the second light information of the third process exceeds the real occlusion information range, it can be determined that the tested terminal device is a cloud terminal device.

[0042] In some examples, the actual device light change condition also includes: whether the type of obstruction used by the user to perform the obstruction action is consistent with the type of obstruction indicated in the prompt information. The prompt information may indicate the obstruction used by the user to perform the obstruction action. The obstruction may include, but is not limited to, a body part or other object. For example, the obstruction may include, but is not limited to, a finger, palm, cheek, ear, clothing, or paper products. Different obstructions produce different characteristics of light information when obstructing the light sensor. Obstruction type light information can be summarized based on the characteristics of light information obtained when different obstructions obstruct the light sensor. Obstruction type light information can characterize the characteristics of light information obtained when different obstructions obstruct the light sensor. The type of obstruction used by the user to perform the obstruction action can be determined based on the second light information and the preset obstruction type light information. Furthermore, it can be determined whether the type of obstruction used by the user to perform the obstruction action is consistent with the type indicated in the prompt information. If the type of obstruction used by the user to perform the obstruction action is consistent with the type indicated in the prompt information, it indicates that the user has indeed used the obstruction indicated in the prompt information to perform the obstruction action, which can further assist in determining that the terminal device under test is a real physical terminal device. If the type of the obstruction performed by the user during the blocking action is inconsistent with the type of the obstruction indicated by the prompt information, it can be determined that the terminal device under test is a cloud terminal device.

[0043] In some examples, in order to further improve the accuracy of the authenticity detection method of the terminal device in the embodiment of the present application. The terminal device under test can be controlled to randomly send prompt information, and the difficulty of the cloud terminal device to simulate the real physical terminal device is increased by the randomness of the prompt information. Different prompt information indicates different types of obstructions for performing the blocking action and / or indicates different target areas. For example, the prompt message sent during the authenticity detection of device A is "Please cover the light sensor with your finger", and the prompt message sent during the authenticity detection of device B is "Please cover the entire screen with your palm". A third party who illegally uses the cloud terminal device cannot predict the prompt information sent by the terminal device under test, and it is difficult to imitate the changes in light information caused by the blocking action made by the user of the real physical terminal device according to the prompt information, which can further improve the accuracy of the authenticity detection method of the terminal device in the embodiment of the present application.

[0044] In some embodiments, light information from real physical terminal devices before and during an occlusion action in various scenarios can be pre-collected as samples to train a real device detection model. The first and second light information are input into the pre-trained real device detection model, which processes the first and second light information and outputs a detection result using the learned light change conditions of the real device. The detection result includes confirmation that the terminal device under test is a real physical terminal device or a cloud terminal device. Using the trained model to verify the authenticity of the terminal device under test can further improve detection efficiency and accuracy.

[0045] For ease of understanding, the authenticity detection process of a mobile phone is described below using a mobile phone as an example of a terminal device under test. Figure 2 A schematic diagram of an example of a mobile phone authenticity detection process provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the authenticity detection process of the mobile phone includes steps a1 to a9.

[0046] In step a1, a random pattern is randomly generated.

[0047] In step a2, the mobile phone screen displays the random pattern.

[0048] In step a3, a prompt message is sent to prompt the user to cover the mobile phone screen with the palm of the hand.

[0049] In step a4, light information of the first stage, light information of the second stage, light information of the third stage and light information of the fourth stage collected by the light sensor of the mobile phone are obtained.

[0050] The first stage is the stage before the user performs the blocking action. The light information in the first stage can be regarded as the first light information in the above embodiment. The second stage is the stage when the user's palm approaches the mobile phone's light sensor, which can be regarded as the first process in the above embodiment. The third stage is the stage when the user's palm blocks the mobile phone's light sensor, which can be regarded as the third process in the above embodiment. The fourth stage is the stage when the user's palm moves away from the mobile phone's light sensor, which can be regarded as the second process in the above embodiment.

[0051] In step a5, it is determined whether the light information of the third stage is within the range of the real occlusion information. If so, step a6 is executed; if not, step a9 is executed.

[0052] In step a6, determine whether the values ​​and changes of the light information of the second stage and the light information of the fourth stage after stripping the light information of the first stage meet the diffuse reflection conditions of the real device. If so, execute step a7; if not, execute step a9.

[0053] In step a7, based on the light information from the second to fourth stages, it is determined whether the obstruction blocking the light sensor is a palm. If so, step a8 is executed; if not, step a9 is executed.

[0054] In step a8, it is determined that the mobile phone is a real physical mobile phone.

[0055] In step a9, it is determined that the mobile phone is a cloud phone.

[0056] The specific contents of the above steps a1 to a9 can be found in the relevant descriptions in the above embodiments, which will not be repeated here.

[0057] A second aspect of the present application provides an authenticity detection device for a terminal device. Figure 3 A schematic diagram of the structure of an authenticity detection device for a terminal device provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the authenticity detection device 200 of the terminal device may include a pattern generation module 201 , an information acquisition module 202 and an information processing module 203 .

[0058] The pattern generation module 201 may be used to generate a random pattern and control the terminal device under test to display the random pattern.

[0059] The information acquisition module 202 may be configured to acquire first light information and second light information collected by the light sensor.

[0060] The first light information includes light information collected before the user performs a shielding action on the target area of ​​the terminal device under test, and the second light information includes light information collected during the user performs a shielding action on the target area. A light sensor is set in the target area.

[0061] The information processing module 203 may be configured to determine whether the terminal device under test is a real physical terminal device or a cloud terminal device based on the first optical information, the second optical information, and a pre-obtained optical change condition of the real device.

[0062] In some embodiments, the real device light change condition includes a real device diffuse reflection condition. The information processing module 203 may be specifically configured to: remove ambient light effects from the second light information based on the first light information to obtain diffuse reflection information; if the diffuse reflection information does not meet the real device diffuse reflection condition, determine that the terminal device under test is a cloud terminal device; if the diffuse reflection information meets the real device diffuse reflection condition, determine that the terminal device under test is a real physical terminal device.

[0063] In some embodiments, the process of the user performing the blocking action includes a first process and / or a second process, the first process is the process of the user's blocking object approaching the target area, and the second process is the process of the user's blocking object moving away from the target area.

[0064] When the process in which the user performs an occluding action includes a first process, the real device diffuse reflection condition includes one or more of the following: the diffuse reflection information in the first process is within a first real diffuse reflection range, the change in the diffuse reflection information in the first process is within a first real diffuse reflection change range, and the pattern high-frequency information in the diffuse reflection information in the first process matches the random pattern.

[0065] When the process in which the user performs an occluding action includes a second process, the real device diffuse reflection condition includes one or more of the following: the diffuse reflection information in the second process is within a second real diffuse reflection range, the change in the diffuse reflection information in the second process is within a second real diffuse reflection change range, and the pattern high-frequency information in the diffuse reflection information in the second process matches the random pattern.

[0066] In some embodiments, the process of the user performing the blocking action further includes a third process, wherein the third process is a process in which the user's blocking object blocks the target area. The real device light change condition further includes: the second light information of the third process is within the real blocking information range.

[0067] In some embodiments, the actual device light change condition further includes: whether the type of the obstruction performed by the user in performing the obstruction action is consistent with the type of the obstruction indicated by the prompt information.

[0068] The information processing module 203 may also be configured to determine the type of the obstruction on which the user is performing the obstruction action based on the second light information and preset light information of the obstruction type.

[0069] In some embodiments, the authenticity detection apparatus 200 of the terminal device may further include a prompt module. The prompt module may be configured to control the terminal device under test to randomly issue prompt information, wherein the prompt information is used to instruct the user to perform an occlusion action on a target area, with different prompt information indicating different types of occluding objects to be performed and / or different target areas.

[0070] In some embodiments, the information processing module 203 can be specifically used to: input the first light information and the second light information into a pre-trained real device detection model, process the first light information and the second light information through the real device detection model, and use the learned real device light change conditions to output the detection results, and the detection results include whether the terminal device under test is a real physical terminal device or a cloud terminal device.

[0071] In some examples, the light information includes light intensity information and color space information.

[0072] It should be noted that the authenticity detection device 200 of the terminal device is a device corresponding to the authenticity detection method of the above-mentioned terminal device. All implementation methods in the above-mentioned method embodiments are applicable to the embodiments of the device and can achieve the same technical effects, which will not be repeated here.

[0073] The third aspect of the present application also provides a terminal device. Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the terminal device 300 includes a memory 301 , a processor 302 , and a computer program stored in the memory 301 and executable on the processor 302 .

[0074] In some examples, the processor 302 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0075] The memory 301 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the authenticity detection method of the terminal device in the embodiment of the present application.

[0076] The processor 302 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 301 , so as to implement the authenticity detection method of the terminal device in the above embodiment.

[0077] In some examples, the terminal device 300 may further include a communication interface 303 and a bus 304. Figure 4 As shown, the memory 301 , the processor 302 , and the communication interface 303 are connected via a bus 304 and communicate with each other.

[0078] The communication interface 303 is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. Input devices and / or output devices can also be connected through the communication interface 303.

[0079] The bus 304 includes hardware, software, or both, and couples the components of the terminal device 300 to each other. By way of example, and not limitation, the bus 304 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-E) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of the above. Where appropriate, the bus 304 may include one or more buses. Although embodiments herein describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.

[0080] In a fourth aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the authenticity detection method of the terminal device in the above-mentioned embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, the details are not repeated here. The above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which is not limited here.

[0081] The fifth aspect of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the authenticity detection method of the terminal device in the above embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0082] It should be understood that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For device embodiments, equipment embodiments, computer-readable storage medium embodiments, and computer program product embodiments, the relevant parts can be referred to the description section of the method embodiment. This application is not limited to the specific steps and structures described above and shown in the figures. Those skilled in the art can make various changes, modifications and additions, or change the order of the steps after understanding the spirit of this application. In addition, for the sake of brevity, a detailed description of known method technologies is omitted here.

[0083] Aspects of the present application have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed via the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. This processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or the flowchart and the combination of the boxes in the block diagram and / or the flowchart can also be implemented by the dedicated hardware that performs the specified function or action, or can be implemented by the combination of dedicated hardware and computer instructions.

[0084] Those skilled in the art should understand that the above embodiments are illustrative rather than restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on a study of the drawings, the specification and the claims, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the claims, the term "comprising" does not exclude other devices or steps; the quantifier "one" does not exclude a plurality; the terms "first" and "second" are used to identify names rather than to indicate any specific order. Any figure marks in the claims should not be understood as limiting the scope of protection. The functions of multiple parts appearing in the claims can be implemented by a separate hardware or software module. The fact that certain technical features appear in different dependent claims does not mean that these technical features cannot be combined to achieve beneficial effects.

Claims

1. A method for detecting the authenticity of a terminal device, characterized in that: include: generating a random pattern, and controlling the terminal device under test to display the random pattern; Obtaining first light information and second light information collected by a light sensor, where the first light information includes light information collected before a user performs an action of blocking a target area of ​​the terminal device under test, and the second light information includes light information collected during the user's action of blocking the target area, where the light sensor is located; Based on the first optical information, the second optical information and the pre-obtained optical change condition of the real device, it is determined that the terminal device under test is a real physical terminal device or a cloud terminal device.

2. The method according to claim 1, characterized in that The real device light change condition includes a real device diffuse reflection condition; The determining, based on the first optical information, the second optical information, and a pre-obtained optical change condition of a real device, that the terminal device under test is a real physical terminal device or a cloud terminal device includes: stripping the ambient light influence from the second light information according to the first light information to obtain diffuse reflection information; If the diffuse reflection information does not meet the real device diffuse reflection condition, determining that the terminal device under test is a cloud terminal device; If the diffuse reflection information meets the real device diffuse reflection condition, it is determined that the terminal device under test is a real physical terminal device.

3. The method according to claim 2, characterized in that The process of the user performing the blocking action includes a first process and / or a second process, wherein the first process is a process in which the user's blocking object approaches the target area, and the second process is a process in which the user's blocking object moves away from the target area; When the process in which the user performs the blocking action includes the first process, the real device diffuse reflection condition includes one or more of the following: the diffuse reflection information in the first process is within a first real diffuse reflection range, the change in the diffuse reflection information in the first process is within a first real diffuse reflection change range, and the high-frequency information of the pattern in the diffuse reflection information in the first process matches the random pattern; In the case where the process in which the user performs the blocking action includes a second process, the real device diffuse reflection condition includes one or more of the following: the diffuse reflection information in the second process is within a second real diffuse reflection range, the change in the diffuse reflection information in the second process is within a second real diffuse reflection change range, and the pattern high-frequency information in the diffuse reflection information in the second process matches the random pattern.

4. The method according to claim 2, characterized in that The process of the user performing the blocking action further includes a third process, wherein the third process is a process in which the user's blocking object blocks the target area; The real device light change condition further includes: the second light information of the third process is within the real occlusion information range.

5. The method according to claim 1, wherein The real device light change condition also includes: whether the type of the obstruction performed by the user is consistent with the type of the obstruction indicated by the prompt information; The method further comprises: The type of the obstruction on which the user performs the obstruction action is determined according to the second light information and preset obstruction type light information.

6. The method according to claim 1, characterized in that Also includes: The terminal device under test is controlled to randomly send prompt information, wherein the prompt information is used to instruct the user to perform a blocking action on the target area, and different prompt information indicates different types of blocking objects for performing blocking actions and / or different target areas.

7. The method according to claim 1, characterized in that The determining, based on the first optical information, the second optical information, and a pre-obtained optical change condition of a real device, that the terminal device under test is a real physical terminal device or a cloud terminal device includes: The first optical information and the second optical information are input into a pre-trained real device detection model, the first optical information and the second optical information are processed by the real device detection model, and the learned real device light change conditions are used to output a detection result, where the detection result includes whether the terminal device under test is a real physical terminal device or a cloud terminal device.

8. The method according to any one of claims 1 to 7, characterized in that Light information includes light intensity information and color space information.

9. A device for detecting the authenticity of a terminal device, characterized in that: include: A pattern generation module, configured to generate a random pattern and control the terminal device under test to display the random pattern; an information acquisition module, configured to acquire first light information and second light information collected by a light sensor, wherein the first light information includes light information collected before a user performs an action of blocking a target area of ​​the terminal device under test, and the second light information includes light information collected during the user's action of blocking the target area, wherein the light sensor is provided in the target area; An information processing module is used to determine whether the terminal device under test is a real physical terminal device or a cloud terminal device based on the first optical information, the second optical information and a pre-obtained real device optical change condition.

10. A terminal device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the authenticity detection method of the terminal device according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the authenticity detection method for a terminal device according to any one of claims 1 to 8.

12. A computer program product, characterized in that The invention comprises a computer program, which implements the authenticity detection method of the terminal device according to any one of claims 1 to 8 when executed by a processor.

Citation Information

Patent Citations

  • Authenticity verification method, apparatus and system for terminal

    WO2017114167A1

  • Control method, device, and terminal

    WO2018049822A1