Intelligent door lock safety detection method and device and storage medium

By detecting the download and installation package of the smart door lock software and verifying the key algorithm, timely detecting and returning to the original version, the problems of smart door locks in terms of password leakage, biometric information leakage and networking security risks are solved, and higher security and stability are achieved.

CN119621137AInactive Publication Date: 2025-03-14DINGXUAN COMMERCIAL PASSWORD EVALUATION TECH (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510148251.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-03-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Smart door locks have shortcomings in password leakage, biometric information leakage and networking security risks, and it is difficult to effectively reduce these risks through existing technologies.

Method used

By receiving the download and installation package of the door lock software and obtaining its first detection status; when the first detection status meets the standard, run the door lock software and obtain the second detection status based on the preset key algorithm; when the second detection status fails to meet the standard, check whether the door lock software falls back to the original door lock software version.

Benefits of technology

Ensure the security of software download and operation, establish a fallback mechanism for failed software updates, effectively reduce the risks of password leakage, biometric information leakage and networking security of smart door locks, and improve physical and information security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621137A_ABST
    Figure CN119621137A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent door lock safety detection method and device and a storage medium, and relates to the technical field of information security, the method comprises the following steps: receiving a downloading installation package of door lock software, and obtaining a first detection state of the downloading installation package; when the first detection state reaches the standard, running the door lock software, and obtaining a second detection state of the door lock software based on a preset key algorithm; and when the second detection state does not reach the standard, detecting whether the door lock software returns to the original door lock software version or not. Through safety detection of the intelligent door lock, password leakage, biological recognition information leakage and networking safety risks of the intelligent door lock are effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a smart door lock security detection method, device and storage medium. Background Art

[0002] As an important part of modern family security, smart door locks bring convenience and intelligence, but they also come with certain risks.

[0003] Among them, whether it is a mechanical password lock or an electronic password lock, there is a risk of password leakage. The password keyboard may be peeped, and the encrypted storage of the password by the door lock system may also be at risk of being cracked and replaced. Users should set complex, multi-digit passwords and change passwords regularly to reduce the risk of password leakage; at the same time, biometric smart door locks use the inherent physiological characteristics of the human body for personal identity authentication. Although the "material" of the human body is not easy to be copied, there are problems with reliability and adaptability. For example, face recognition technology may be affected by factors such as light and angle, resulting in reduced recognition accuracy. If there are loopholes in the biometric information storage or transmission system of the smart door lock, the user's biometric information may be leaked or abused; in addition, the remote digital authentication unlocking technology supported by the networked smart door lock is the most risky. Attackers can bypass physical protection and directly attack the corresponding APP client or smart mobile devices such as mobile phones to obtain unlocking passwords and keys.

[0004] To sum up, when choosing and using smart door locks, users should fully consider the risks in terms of physical security, information security, ease of use, and after-sales service. There is also the question of how to reduce these risks through security testing of smart door locks.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a smart door lock security detection method, device and storage medium, aiming to solve the technical problem of how to reduce password leakage, biometric information leakage and network security risks through security detection of smart door locks.

[0007] To achieve the above objectives, the present application proposes a smart door lock security detection method, the method comprising: Receiving a downloaded installation package of door lock software, and obtaining a first detection status of the downloaded installation package; When the first detection state meets the standard, the door lock software is run, and a second detection state of the door lock software is obtained based on a preset key algorithm; When the second detection status does not meet the standard, it is detected whether the door lock software is rolled back to the original door lock software version.

[0008] In one embodiment, the step of receiving a downloaded installation package of door lock software and obtaining a first detection status of the downloaded installation package includes: Check whether the door lock software download and installation package is successfully installed; When the downloaded installation package is successfully installed, it is determined that the first detection status meets the standard; otherwise, it is determined that the first detection status is in a non-standard state.

[0009] In one embodiment, the step of receiving a downloaded installation package of door lock software and obtaining a first detection status of the downloaded installation package further includes: Modify, replace, delete or insert malicious code into the preset components of the downloaded installation package, wherein the preset components at least include a dynamic library, a static library and a configuration file; When the door lock software corresponding to the downloaded installation package after the execution of the operation is successfully installed, it is determined that the first detection status is in a non-standard state.

[0010] In one embodiment, the obtaining the second detection state of the door lock software based on a preset key algorithm includes: Determining whether the door lock software uses a preset key algorithm to perform software integrity detection; If the software integrity detection does not use a key algorithm, it is determined that the second detection state is in a non-compliant state, and the preset key algorithm at least includes an asymmetric signature verification algorithm, a keyed hash algorithm and / or a keyed message authentication code algorithm.

[0011] In one embodiment, the step of obtaining the second detection state of the door lock software based on a preset key algorithm further includes: Determining whether a preset key used in the software integrity detection is stored in the hardware of the door lock software; If the preset key is stored in the hardware of the door lock software, the second detection state is determined through the interface of the smart door lock; When the preset key is exported, obtained or tampered with through the interface of the smart door lock, the second detection state is in a non-compliant state.

[0012] In one embodiment, the step of obtaining the second detection state of the door lock software based on a preset key algorithm further includes: The preset components of the door lock software are modified, replaced, deleted or malicious code is inserted. When the door lock software of the operation runs successfully, it is determined that the second detection state is in a non-standard state.

[0013] In one embodiment, when the second detection status does not meet the standard, the step of detecting whether the door lock software is rolled back to the original door lock software version includes: When the second detection status does not meet the standard, the software update of the smart door lock fails, and the fallback mechanism of the door lock software is executed; Verify the software status of the smart door lock by checking the software version number of the door lock software, performing a functional test, or comparing it with the software version provided by the manufacturer to determine whether the door lock software has been successfully rolled back; When the door lock software rolls back successfully, the rollback process is recorded and detailed information on the update failure and rollback success is reported to the user or the manufacturer.

[0014] In one embodiment, when the second detection status does not meet the standard, after the step of detecting whether the door lock software is rolled back to the original door lock software version, the step further includes: When both the first detection status and the second detection status are up to standard, or when the second detection status is not up to standard and the door lock software can roll back to the original door lock software version, the smart door lock security test passes.

[0015] In addition, to achieve the above purpose, the present application also proposes a smart door lock security detection device, the smart door lock security detection device comprising: A receiving module, used to receive a downloaded installation package of the door lock software and obtain a first detection status of the first installation package; A first judging module, used to judge whether the first detection state meets the standard; A key algorithm module, used for running the door lock software when the first detection state meets the standard, and obtaining the second detection state of the door lock software based on a preset key algorithm; A second judgment module is used to judge whether the second detection state meets the standard; The detection module is used to detect whether the door lock software has rolled back to the original door lock software version when the second detection status does not meet the standard.

[0016] In addition, to achieve the above-mentioned objectives, the present application also proposes a smart door lock security detection device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the smart door lock security detection method as described above.

[0017] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the smart door lock security detection method described above are implemented.

[0018] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the smart door lock security detection method as described above.

[0019] One or more technical solutions proposed in this application have at least the following technical effects: This application receives a downloaded installation package of a door lock software, and obtains a first detection status of the downloaded installation package; when the first detection status meets the standard, the door lock software is run, and a second detection status of the door lock software is obtained based on a preset key algorithm; when the second detection status does not meet the standard, it detects whether the door lock software has rolled back to the original door lock software version; compared with the prior art, this application ensures the security of software downloading and software operation through security detection of smart door locks, and establishes a rollback mechanism for software update failures, which effectively reduces the risks of password leakage, biometric information leakage and network security of smart door locks, and helps to improve the physical safety and information security of smart door locks. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application.

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A flowchart of the first embodiment of the smart door lock security detection method of the present application is provided; Figure 2 A flow chart of the second embodiment of the smart door lock security detection method provided in this application; Figure 3 A flowchart of the third embodiment of the smart door lock security detection method of the present application is provided; Figure 4 A flowchart of the fourth embodiment of the smart door lock security detection method of the present application is provided; Figure 5 This is a schematic diagram of the module structure of the smart door lock safety detection device according to an embodiment of the present application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the smart door lock security detection method in the embodiment of the present application.

[0023] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0024] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0025] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0026] The existing technology has the technical problem of how to reduce password leakage, biometric information leakage and network security risks through security detection of smart door locks.

[0027] The present application provides a solution, which includes receiving a downloaded installation package of a door lock software and obtaining a first detection status of the downloaded installation package; when the first detection status meets the standard, running the door lock software, and obtaining a second detection status of the door lock software based on a preset key algorithm; when the second detection status does not meet the standard, detecting whether the door lock software has rolled back to the original door lock software version.

[0028] Based on this, the present application embodiment provides a smart door lock security detection method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the smart door lock security detection method of the present application.

[0029] In this embodiment, the smart door lock security detection method includes steps S10 to S50: Step S10: receiving a downloaded installation package of door lock software, and obtaining a first detection status of the downloaded installation package; It should be noted that the user can start the software download process through the user interface of the smart door lock or the mobile application; the smart door lock receives the software installation package from the manufacturer's server or other secure source through its communication interface, such as Wifi, Bluetooth, etc.

[0030] Step S20: determining whether the first detection state meets the standard; It should be noted that when the first detection status does not meet the standard, it stays in the current status and displays an error message to the user or prompts the user to try the installation again.

[0031] Step S30: When the first detection state meets the standard, the door lock software is run, and a second detection state of the door lock software is obtained based on a preset key algorithm; It should be noted that the smart door lock calculates the hash value of the received installation package by using a built-in or downloaded verification tool such as a hash function, and compares the calculated hash value with the expected hash value provided by the manufacturer. If the calculated hash value matches the expected hash value, the installation package is considered not to have been tampered with and the first detection status is met; if the two hash values ​​do not match, it is considered that the installation package may have been tampered with and the first detection status is not met.

[0032] It should be noted that the preset key algorithm at least includes an asymmetric signature verification algorithm; a keyed hash algorithm; and a keyed message authentication code algorithm.

[0033] Step S40: determining whether the second detection state meets the standard; It should be noted that when the second detection status meets the standard, the smart door lock security test passes.

[0034] Step S50: When the second detection status does not meet the standard, detect whether the door lock software rolls back to the original door lock software version.

[0035] It should be noted that the rollback mechanism includes restoring to the last stable version of the software, or reloading the original software version from secure storage; the smart door lock verifies whether the rolled-back software version is restored to the original door lock software version; when the smart door lock fails to roll back, user intervention can be performed or the manufacturer can be contacted for technical support.

[0036] This application receives a downloaded installation package of a door lock software, and obtains a first detection status of the downloaded installation package; when the first detection status meets the standard, the door lock software is run, and a second detection status of the door lock software is obtained based on a preset key algorithm; when the second detection status does not meet the standard, it detects whether the door lock software has rolled back to the original door lock software version; compared with the prior art, this application ensures the security of software downloading and software operation through security detection of smart door locks, and establishes a rollback mechanism for software update failures, which effectively reduces the risks of password leakage, biometric information leakage and network security of smart door locks, and helps to improve the physical safety and information security of smart door locks.

[0037] Further, refer to Figure 2 The second embodiment of the intelligent door lock security detection method of the present application provides a flow chart based on the above Figure 2 The example diagram shown further refines the step of "receiving the downloaded installation package of the door lock software and obtaining the first detection status of the downloaded installation package" in step S10, including steps A201~A202: Step A201: Detect whether the door lock software download installation package is successfully installed; It should be noted that the download installation package of the door lock software can be downloaded from the manufacturer's server or other secure source via Wi-Fi or Bluetooth.

[0038] Step A202: When the downloaded installation package is successfully installed, determine that the first detection status meets the standard; otherwise, determine that the first detection status is in a non-standard state.

[0039] It should be noted that after the smart door lock receives the downloaded installation package from the server or other security source of the smart door lock manufacturer through Wi-Fi or Bluetooth, it unzips the installation package and copies the file to the appropriate location of the smart door lock for installation; during the installation process, the progress and status of the installation can be monitored through the processor of the smart door lock; if no errors or exceptions occur during the installation process, such as file corruption, permission problems, etc., the smart door lock determines that the installation is successful. At this time, the smart door lock records the success status and the first detection status meets the standard; if the installation fails to be successfully completed due to network problems, file corruption, permission problems, incompatible software and hardware, etc. during the installation process, the smart door lock will record this failure status, and the first detection status does not meet the standard. The smart door lock does not continue with subsequent software operation or security testing, but stays in the current state and displays an error message to the user or prompts to retry the installation, so as to notify the user in time to avoid security risks caused by installation problems.

[0040] Furthermore, the step of receiving a downloaded installation package of the door lock software and obtaining a first detection status of the downloaded installation package further includes: Modify, replace, delete or insert malicious code into the preset components of the downloaded installation package, wherein the preset components at least include a dynamic library, a static library and a configuration file; It should be noted that after the installation package is received, the processor or security module of the smart door lock conducts an in-depth analysis of the installation package, and performs a series of modification operations on the preset components in the installation package, such as dynamic libraries, static libraries, and configuration files, in order to simulate possible attacks or tampering to test the security of the installation package. For example, signature verification, the smart door lock checks the digital signature of the software package to confirm its source and integrity. If the signature is invalid or cannot be verified, the smart door lock will refuse to install; component inspection, the smart door lock checks the key components in the installation package, such as dynamic libraries, static libraries, and configuration files, and verifies the versions, permissions, and integrity of these components; malicious code scanning, the smart door lock can use the built-in malicious code scanning tool to detect whether the installation package contains viruses, Trojans, or other malware; behavior monitoring, the smart door lock monitors the behavior of the software during the installation process to identify any abnormal activities, such as unauthorized changes to system settings or attempts to access sensitive data.

[0041] When the door lock software corresponding to the downloaded installation package after the execution of the operation is successfully installed, it is determined that the first detection status is in a non-standard state.

[0042] It should be noted that after the installation package is modified, if the modified installation package can be successfully installed, it indicates that the security detection mechanism of the installation package is not sufficient to identify tampering, so the smart door lock determines that the first detection state is in a non-compliant state.

[0043] Specifically, the user starts the software update process through the user interface of the smart door lock. The smart door lock downloads the latest version of the software installation package from the manufacturer's server. The processor or security module of the smart door lock performs hash calculation on the downloaded installation package and compares it with the hash value provided by the manufacturer. If the hash values ​​match, the installation package has not been tampered with, and the first detection status meets the standard.

[0044] The embodiment of the present application tests the security detection mechanism of the smart door lock by actively tampering with the installation package, ensuring that the system can identify and prevent the installation of malicious software, thereby protecting the safety and privacy of users.

[0045] Further, refer to Figure 3 The third embodiment of the smart door lock security detection method of the present application provides a flow chart based on the above Figure 3 The example diagram shown further refines the step of "obtaining the second detection state of the door lock software based on a preset key algorithm" in step S20, including steps A301~A302: Step A301: Determine whether the door lock software uses a preset key algorithm to perform software integrity detection; It should be noted that the processor or security module of the smart door lock analyzes the code and configuration files of the door lock software; Step A302: If the software integrity detection does not use a key algorithm, it is determined that the second detection state is in a non-compliant state, and the preset key algorithm at least includes an asymmetric signature verification algorithm, a keyed hash algorithm and / or a keyed message authentication code algorithm.

[0046] It should be noted that the processor or security module of the smart door lock can identify whether the key algorithm is used for integrity detection through code analysis, configuration file inspection, software runtime monitoring, user input verification, and software update mechanism inspection.

[0047] Specifically, when the processor or security module of the smart door lock uses a keyed message authentication code algorithm to perform software integrity detection, it first selects a key and then selects the software message that needs to be verified, which can be a part of the software or the entire file. The selected key and message are used to generate a MAC value through the MAC algorithm. This MAC value is generated by encrypting the message, such as using a hash algorithm and using a key. The generated MAC value and the message are stored in the same location of the software. When the software needs to be verified, the same key and message are used again to generate a new MAC value through the MAC algorithm. The new MAC value is compared with the previously stored MAC value. If the two MAC values ​​match, it means that the software has not been tampered with, the integrity test passes, and the second test status meets the standard. Otherwise, the software may have been tampered with, the integrity test fails, and the second test status does not meet the standard.

[0048] Furthermore, the step of obtaining the second detection state of the door lock software based on a preset key algorithm further includes: Determining whether a preset key used in the software integrity detection is stored in the hardware of the door lock software; It should be noted that the processor or security module of the smart door lock checks the configuration files and codes of the software to determine the storage location of the key used for software integrity detection; the key should be stored in the hardware of the smart door lock to prevent unauthorized access or tampering.

[0049] If the preset key is stored in the hardware of the door lock software, the second detection state is determined through the interface of the smart door lock; It should be noted that if the preset keys are stored in the hardware of the door lock software, the smart door lock should access these keys through specific interfaces, which include encrypted communication protocols to ensure the secure transmission and access of the keys.

[0050] When the preset key is exported, obtained or tampered with through the interface of the smart door lock, the second detection state is in a non-compliant state.

[0051] It should be noted that the smart door lock continuously detects the status and access records of the key. When any unauthorized key export, acquisition or tampering attempt is detected, the smart door lock should immediately take relevant measures, such as blocking access, recording events or notifying users; that is, any access to the key requires a secure authentication and authorization process; if the key is securely stored in the hardware and is not exported, acquired or tampered with through the interface of the smart door lock, the smart door lock determines that the second detection status meets the standard; if the security of the key is threatened, the smart door lock will determine that the second detection status does not meet the standard and take corresponding measures, such as notifying the user, starting the backup key or reconfiguring the security settings.

[0052] Furthermore, the step of obtaining the second detection state of the door lock software based on a preset key algorithm further includes: The preset components of the door lock software are modified, replaced, deleted or malicious code is inserted. When the door lock software of the operation runs successfully, it is determined that the second detection state is in a non-standard state.

[0053] It should be noted that the security module of the smart door lock recognizes the preset components of the software, such as dynamic libraries, static libraries and configuration files, and modifies, replaces, deletes or inserts malicious code operations on the components of the software, aiming to simulate malicious attacks or software tampering to test the security of the door lock software; while the smart door lock is running the modified software, the software behavior and system status are monitored; if the modified software can run successfully without detecting anomalies or errors, this may indicate that the door lock's security detection mechanism is insufficient to identify and prevent the execution of malicious code. The smart door lock will record this failure state and determine that the second detection state is in a substandard state, display an alarm message to the user or trigger a security alarm to prevent the door lock software from running.

[0054] Further, refer to Figure 4 The fourth embodiment of the intelligent door lock security detection method of the present application provides a flow chart based on the above Figure 4 The example diagram shown further refines the step of "when the second detection state does not meet the standard, detecting whether the door lock software has rolled back to the original door lock software version" in step S30, including steps A401 to A403: Step A401: When the second detection status does not meet the standard, the software update of the smart door lock fails, and the rollback mechanism of the door lock software is executed; It should be noted that the rollback mechanism refers to restoring the backup version of the software before the update from the storage of the door lock software, or downloading the original software file from the server of the smart door lock manufacturer.

[0055] Step A402: Verify the software status of the smart door lock by checking the software version number of the door lock software, performing a functional test, or comparing the software version with that provided by the smart door lock manufacturer to determine whether the door lock software is successfully rolled back; It should be noted that the smart door lock checks the software version number after rollback and compares it with the previous version number; performs functional testing to verify whether the software after rollback can work normally; and can also compare it with the software version information provided by the manufacturer to ensure that the rollback is to the correct version; if the software version number is consistent, the function is normal, and it matches the version information provided by the manufacturer, the rollback is considered successful.

[0056] Step A403: When the door lock software rolls back successfully, the rollback process is recorded and detailed information of the update failure and rollback success is reported to the user or manufacturer.

[0057] It should be noted that the smart door lock checks the software version number after the rollback and compares it with the version number before the update. When the door lock software rolls back successfully, the smart door lock records detailed information about the rollback process, including the reason for the rollback, time, software versions involved, operation logs, and safety recommendations.

[0058] Specifically, if both the first detection status and the second detection status meet the standards, the smart door lock starts to execute the software update. If a problem is encountered during the update process, such as a network interruption or power failure causing the update to fail, the smart door lock automatically starts the rollback mechanism and tries to roll back the software to the previous stable version; the smart door lock checks the software version number after the rollback, compares it with the previous version number, and performs functional testing to verify whether the rolled-back software can work normally; if the rollback is successful, the smart door lock records the rollback process and reports detailed information on the update failure and rollback success to the user to protect the user's property safety and personal privacy.

[0059] In one embodiment, when the second detection status does not meet the standard, after the step of detecting whether the door lock software is rolled back to the original door lock software version, the step further includes: When both the first detection status and the second detection status are up to standard, or when the second detection status is not up to standard and the door lock software can roll back to the original door lock software version, the smart door lock security test passes.

[0060] It should be noted that the first detection state involves the integrity check of the installation package before the software is downloaded, and the second detection state involves the security check before the software is run, including the integrity verification using the key algorithm; therefore, the condition for passing the security check of the smart door lock is that the smart door lock first performs an evaluation of the first detection state, that is, checks the integrity of the software download installation package, and then performs an evaluation of the second detection state, that is, verifies the integrity of the software based on the preset key algorithm. When both the first detection state and the second detection state meet the standards and the second detection state does not meet the standards, the smart door lock executes the rollback mechanism, and the software can successfully roll back to the original software version. The security check of the smart door lock passes, otherwise the security check of the smart door lock fails; when the security check passes, it indicates that the smart door lock exhibits good security during the software download, operation and update process, and the smart door lock can continue to work normally, providing users with a reliable user experience.

[0061] In addition, this application also provides a smart door lock security detection device, please refer to Figure 5 , the intelligent door lock safety detection device comprises: The receiving module 10 is used to receive the downloaded installation package of the door lock software and obtain the first detection status of the first installation package; A first judging module 20, used to judge whether the first detection state meets the standard; The key algorithm module 30 is used to run the door lock software and obtain the second detection state of the door lock software based on a preset key algorithm when the first detection state meets the standard; The second judging module 40 is used to judge whether the second detection state meets the standard; The detection module 50 is used to detect whether the door lock software has rolled back to the original door lock software version when the second detection status does not meet the standard.

[0062] The smart door lock security detection device provided by the present application adopts the smart door lock security detection method in the above embodiment, which can solve the technical problem of how to reduce password leakage, biometric information leakage and network security risks through the security detection of smart door locks. Compared with the prior art, the beneficial effects of the smart door lock security detection device provided by the present application are the same as the beneficial effects of the smart door lock security detection method provided by the above embodiment, and the other technical features of the smart door lock security detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0063] In addition, the present application provides a smart door lock security detection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the smart door lock security detection method in the above-mentioned embodiment one.

[0064] Reference below Figure 6 , which shows a schematic diagram of the structure of a smart door lock security detection device suitable for implementing the embodiment of the present application. The smart door lock security detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The smart door lock security detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0065] like Figure 6As shown, the smart door lock security detection device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the smart door lock security detection device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the smart door lock security detection device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a smart door lock security detection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0066] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0067] The smart door lock security detection device provided by the present application adopts the smart door lock security detection method in the above embodiment, which can solve the technical problem of how to reduce password leakage, biometric information leakage and network security risks through the security detection of smart door locks. Compared with the prior art, the beneficial effects of the smart door lock security detection device provided by the present application are the same as the beneficial effects of the smart door lock security detection method provided by the above embodiment, and the other technical features of the smart door lock security detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0068] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0069] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0070] In addition, the present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the smart door lock security detection method in the above-mentioned embodiment.

[0071] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0072] The above-mentioned computer-readable storage medium may be included in the smart door lock security detection device; or it may exist independently without being assembled into the smart door lock security detection device.

[0073] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the smart door lock security detection device, the smart door lock security detection device: receives the downloaded installation package of the door lock software, and obtains the first detection status of the downloaded installation package; when the first detection status meets the standard, runs the door lock software, and obtains the second detection status of the door lock software based on a preset key algorithm; when the second detection status does not meet the standard, detects whether the door lock software has rolled back to the original door lock software version.

[0074] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0075] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0076] The modules involved in the embodiments described in the present application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0077] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned smart door lock security detection method, and can solve the technical problem of how to reduce password leakage, biometric information leakage and network security risks through the security detection of smart door locks. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the smart door lock security detection method provided in the above-mentioned embodiment, and will not be repeated here.

[0078] In addition, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the smart door lock security detection method as described above.

[0079] The computer program product provided by this application can solve the technical problem of how to reduce password leakage, biometric information leakage and network security risks through security detection of smart door locks. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the smart door lock security detection method provided by the above embodiment, and will not be repeated here.

[0080] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for detecting the safety of an intelligent door lock, characterized in that: The method comprises: Receiving a downloaded installation package of door lock software, and obtaining a first detection status of the downloaded installation package; When the first detection state meets the standard, the door lock software is run, and a second detection state of the door lock software is obtained based on a preset key algorithm; When the second detection status does not meet the standard, it is detected whether the door lock software is rolled back to the original door lock software version.

2. The method according to claim 1, characterized in that The step of receiving a downloaded installation package of door lock software and obtaining a first detection status of the downloaded installation package includes: Check whether the door lock software download and installation package is successfully installed; When the downloaded installation package is successfully installed, it is determined that the first detection status meets the standard; otherwise, it is determined that the first detection status is in a non-standard state.

3. The method according to claim 2, characterized in that The step of receiving a downloaded installation package of the door lock software and obtaining a first detection status of the downloaded installation package further includes: Modify, replace, delete or insert malicious code into the preset components of the downloaded installation package, wherein the preset components at least include a dynamic library, a static library and a configuration file; When the door lock software corresponding to the downloaded installation package after the execution of the operation is successfully installed, it is determined that the first detection status is in a non-standard state.

4. The method according to claim 3, characterized in that The obtaining of the second detection state of the door lock software based on a preset key algorithm includes: Determining whether the door lock software uses a preset key algorithm to perform software integrity detection; If the software integrity detection does not use a key algorithm, it is determined that the second detection state is in a non-compliant state, and the preset key algorithm at least includes an asymmetric signature verification algorithm, a keyed hash algorithm and / or a keyed message authentication code algorithm.

5. The method according to claim 4, characterized in that The step of obtaining the second detection state of the door lock software based on a preset key algorithm further includes: Determining whether a preset key used in the software integrity detection is stored in the hardware of the door lock software; If the preset key is stored in the hardware of the door lock software, the second detection state is determined through the interface of the smart door lock; When the preset key is exported, obtained or tampered with through the interface of the smart door lock, the second detection state is in a non-compliant state.

6. The method according to claim 5, characterized in that The step of obtaining the second detection state of the door lock software based on a preset key algorithm further includes: The preset components of the door lock software are modified, replaced, deleted or malicious code is inserted. When the door lock software of the operation runs successfully, it is determined that the second detection state is in a non-standard state.

7. The method according to claim 6, characterized in that When the second detection status does not meet the standard, the step of detecting whether the door lock software is rolled back to the original door lock software version includes: When the second detection status does not meet the standard, the software update of the smart door lock fails, and the fallback mechanism of the door lock software is executed; Verify the software status of the smart door lock by checking the software version number of the door lock software, performing a functional test, or comparing it with the software version provided by the manufacturer to determine whether the door lock software has been successfully rolled back; When the door lock software rolls back successfully, the rollback process is recorded and detailed information on the update failure and rollback success is reported to the user or the manufacturer.

8. The method according to claim 7, characterized in that When the second detection status does not meet the standard, after the step of detecting whether the door lock software is rolled back to the original door lock software version, the step further includes: When both the first detection status and the second detection status are up to standard, or when the second detection status is not up to standard and the door lock software can roll back to the original door lock software version, the smart door lock security test passes.

9. A smart door lock safety detection device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the smart door lock security detection method as described in any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the smart door lock security detection method as described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Electronic information inspection method, device and system, equipment, and medium

    CN110737725A

  • Dynamic library file loading method and device

    CN114139215A

  • Risk management and control method and device, storage medium and electronic equipment

    CN116361807A

  • Software program operation safety protection method and system and storage medium

    CN116451188A

  • Software package processing method and device, electronic equipment and medium

    CN117951686A