CN111107041B - Method and device for preventing intelligent household appliance from being maliciously controlled - Google Patents

Method and device for preventing intelligent household appliance from being maliciously controlled Download PDF

Info

Publication number
CN111107041B
CN111107041B CN201811259856.5A CN201811259856A CN111107041B CN 111107041 B CN111107041 B CN 111107041B CN 201811259856 A CN201811259856 A CN 201811259856A CN 111107041 B CN111107041 B CN 111107041B
Authority
CN
China
Prior art keywords
mobile terminal
verification code
household appliance
control instruction
intelligent household
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811259856.5A
Other languages
Chinese (zh)
Other versions
CN111107041A (en
Inventor
赵斌堂
朱小兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Smart Home Co Ltd
Original Assignee
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haier Smart Home Co Ltd filed Critical Haier Smart Home Co Ltd
Priority to CN201811259856.5A priority Critical patent/CN111107041B/en
Publication of CN111107041A publication Critical patent/CN111107041A/en
Application granted granted Critical
Publication of CN111107041B publication Critical patent/CN111107041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Telephonic Communication Services (AREA)
  • Devices That Are Associated With Refrigeration Equipment (AREA)

Abstract

The invention provides a method and a device for preventing an intelligent household appliance from being maliciously controlled. The method for preventing the intelligent household appliance from being maliciously controlled comprises the following steps: acquiring a control instruction for controlling the intelligent household appliance; when the control instruction is determined to be sent by the mobile terminal according to the identification head, the verification code and the original state of the intelligent household appliance are recorded, and the intelligent household appliance is controlled to operate according to the command; sending a verification code to the mobile terminal, and judging whether the verification code is consistent with the verification code generated when the mobile terminal sends a control instruction according to a result returned by the mobile terminal; and if so, controlling the intelligent household appliance to continue to operate according to the command, otherwise, judging that the intelligent household appliance is maliciously controlled, and controlling the intelligent refrigerator to recover to the original state to operate. According to the scheme of the invention, the problem that the loss of the user is caused by remote malicious operation on the intelligent household appliance after the mobile terminal is simulated or the cloud server is clamped can be avoided.

Description

Method and device for preventing intelligent household appliance from being maliciously controlled
Technical Field
The invention relates to the field of household appliance control, in particular to a method and a device for preventing intelligent household appliances from being maliciously controlled.
Background
The traditional control method of the household electrical appliance is mainly characterized in that a user performs setting operation by utilizing human-computer interaction components such as buttons and a display screen configured on the household electrical appliance so as to control the household electrical appliance. The control methods of these home appliances can be adjusted according to the needs of the user, but require the user to perform setting operations on the home appliance body.
With the gradual development of the intelligent household appliance technology, some intelligent household appliance control methods appear in the prior art, the mobile terminal and the intelligent household appliance are bound through the internet, the remote control of the intelligent household appliance is realized through the mobile terminal, although the operation is simplified, the requirement of a user for realizing the control of the intelligent household appliance in any place is met, and the risk that the intelligent household appliance is controlled by remote malicious is brought. In the process of remotely controlling the intelligent household appliances, if the mobile terminal is simulated or the cloud server is held, a control instruction is sent to the intelligent household appliances, and the running mode of the intelligent household appliances is adjusted maliciously, so that great loss can be brought to a user. Specifically, when the operation mode of the intelligent refrigerator is maliciously adjusted, for example, the intelligent operation mode is adjusted to a holiday operation mode, damage to food materials in the intelligent refrigerator can be caused; or the service life of the intelligent refrigerator is shortened due to the fact that the compressor is started too frequently; more seriously, for the intelligent refrigerator with a heater for defrosting or thawing arranged inside, controlling the heater to be turned on for a long time may also cause fire to occur, threatening the life and property safety of users.
Disclosure of Invention
An object of the present invention is to provide a method for preventing an intelligent appliance from being maliciously controlled.
A further object of the invention is to optimize the control process of the appliance.
Particularly, the present invention provides a method for preventing an intelligent home appliance from being maliciously controlled, wherein the intelligent home appliance is connected to a mobile terminal through the internet, the method comprising: acquiring a control instruction for controlling the intelligent household appliance, wherein the control instruction comprises an identification head, a command and a verification code and is locally sent out by a mobile terminal or the intelligent household appliance; when the control instruction is determined to be sent by the mobile terminal according to the identification head, the verification code and the original state of the intelligent household appliance are recorded, and the intelligent household appliance is controlled to operate according to the command; sending a verification code to the mobile terminal, and judging whether the verification code is consistent with the verification code generated when the mobile terminal sends a control instruction according to a result returned by the mobile terminal; and if so, controlling the intelligent household appliance to continue to operate according to the command, otherwise, judging that the intelligent household appliance is maliciously controlled, and controlling the intelligent refrigerator to recover to the original state to operate.
Optionally, after the step of sending the verification code to the mobile terminal, the method further includes: recording the duration of a result returned by the mobile terminal and judging whether the duration is greater than or equal to a first preset duration or not; and if so, confirming that the return result of the mobile terminal is overtime and recording the overtime times, otherwise, executing the step of judging whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction.
Optionally, after the step of recording the number of timeouts, the method further includes: judging whether the overtime times are more than or equal to the preset times or not; and if the intelligent household appliance is controlled maliciously, controlling the intelligent refrigerator to recover to the original state to operate, otherwise, delaying a second preset time and then re-executing the step of sending the verification code to the mobile terminal.
Optionally, the control instructions further comprise: checking the code, and after the step of obtaining the control instruction for controlling the intelligent household appliance, further comprising: judging whether the control instruction is complete according to the check code; and if so, judging whether the control instruction is sent by the mobile terminal according to the identification head, and if not, discarding the control instruction.
Optionally, when the control instruction is determined to be locally sent by the intelligent household appliance according to the identification head, whether the verification code is consistent with the local fixed verification code is judged; and if so, controlling the intelligent household appliance to operate according to the command, and if not, discarding the control instruction.
According to another aspect of the present invention, there is also provided an apparatus for preventing an intelligent appliance from being maliciously controlled, wherein the intelligent appliance is connected to a mobile terminal through the internet, the apparatus comprising: the intelligent household appliance control system comprises an instruction acquisition module, a control module and a control module, wherein the instruction acquisition module is configured to acquire a control instruction for controlling the intelligent household appliance, the control instruction comprises an identification head, a command and a verification code and is locally sent out by the mobile terminal or the intelligent household appliance; the instruction confirmation module is configured to record the verification code and the original state of the intelligent household appliance when the control instruction is determined to be sent by the mobile terminal according to the identification head, and control the intelligent household appliance to operate according to the command; the remote verification module is configured to send a verification code to the mobile terminal and judge whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction according to a result returned by the mobile terminal; the normal operation module is configured to control the intelligent household appliance to continue to operate according to the command when the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction; and the malicious judgment module is configured to judge that the intelligent household appliance is controlled maliciously and control the intelligent refrigerator to recover to the original state to operate when the verification code is inconsistent with the verification code generated when the mobile terminal sends the control instruction.
Optionally, the remote authentication module comprises: the time length recording module is configured to record the time length of a result returned by the mobile terminal and judge whether the time length is greater than or equal to a first preset time length; and the time recording module is configured to confirm that the result returned by the mobile terminal is overtime and record overtime times when the duration of the result returned by the mobile terminal is greater than or equal to a first preset duration, and the remote verification module is further configured to judge whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction when the duration of the result returned by the mobile terminal is less than the first preset duration.
Optionally, the remote authentication module further comprises: the number judging module is configured to judge whether the overtime number is greater than or equal to a preset number; the malicious judging module is also configured to judge that the intelligent household appliance is maliciously controlled and control the intelligent refrigerator to recover to the original state to operate when the overtime times are more than or equal to the preset times; the remote verification module is further configured to, when the timeout times are less than the preset times, delay a second preset duration and then resend the verification code to the mobile terminal.
Optionally, the control instructions further comprise: check code, the device still includes: the integrity judgment module is configured to judge whether the control instruction is complete according to the check code; and the instruction discarding module is configured to discard the control instruction when the control instruction is incomplete, and the instruction confirming module is further configured to judge whether the control instruction is sent out by the mobile terminal according to the identification head when the control instruction is complete.
Optionally, the instruction confirmation module is further configured to, when it is determined that the control instruction is locally issued by the intelligent appliance according to the identification head, determine whether the verification code is consistent with the local fixed verification code, and when the result is yes, control the intelligent appliance to operate according to the command; and the instruction discarding module is further configured to discard the control instruction when the verification code is inconsistent with the local fixed verification code.
The method and the device for preventing the intelligent household appliance from being maliciously controlled record the verification code and the original state of the intelligent household appliance when the control instruction is determined to be sent by the mobile terminal according to the identification head by obtaining the control instruction for controlling the intelligent household appliance, control the intelligent household appliance to run according to the command, send the verification code to the mobile terminal, judge whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction according to the result returned by the mobile terminal, and control the intelligent household appliance to run continuously according to the command when the result is yes; and if the result is negative, the intelligent household appliance is judged to be maliciously controlled, the intelligent refrigerator is controlled to be restored to the original state to operate, and the phenomenon that the mobile terminal is simulated or the cloud server carries out remote malicious operation on the intelligent household appliance after being clamped can be avoided, so that loss is caused to a user.
Further, the method and the device for preventing the intelligent household appliance from being maliciously controlled record the time length of the result returned by the mobile terminal after the verification code is sent to the mobile terminal and judge whether the time length is more than or equal to a first preset time length, and confirm that the result returned by the mobile terminal is overtime and record the overtime times when the result is yes; and if not, judging whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction. In addition, after the overtime times are recorded, whether the overtime times are larger than or equal to the preset times is judged, if yes, the intelligent household appliance is judged to be maliciously controlled, and the intelligent refrigerator is controlled to be restored to the original state to operate; and if the result is negative, delaying the second preset time and then sending the verification code to the mobile terminal again. Whether the verification code generated when the mobile terminal sends the control instruction is consistent with the received verification code or not is judged on the basis that the mobile terminal timely returns the verification result, malicious operation is more strictly judged, and the risk that the household appliances are controlled maliciously is reduced by optimally designing the control program of the intelligent household appliance.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a schematic diagram of a system architecture of an intelligent home appliance to which an apparatus for preventing an intelligent home appliance from being maliciously controlled according to an embodiment of the present invention is applied;
fig. 2 is a schematic block diagram of an apparatus for preventing an intelligent appliance from being maliciously controlled according to one embodiment of the present invention;
fig. 3 is a schematic block diagram of an apparatus for preventing an intelligent appliance from being maliciously controlled according to another embodiment of the present invention;
fig. 4 is a schematic diagram of a method of preventing an intelligent appliance from being maliciously controlled according to one embodiment of the present invention; and
fig. 5 is a flowchart illustrating a method for preventing an intelligent appliance from being maliciously controlled according to an embodiment of the present invention.
Detailed Description
Fig. 1 is a diagram of a system architecture of an intelligent home appliance to which an apparatus for preventing an intelligent home appliance from being maliciously controlled according to an embodiment of the present invention is applied. The system comprises: the intelligent appliance 110, the mobile terminal 120 and the cloud server 130. Generally, a user can control the smart appliance 110 through two ways: firstly, an operation mode is directly set through a button or a display screen of the intelligent household appliance 110, and the intelligent household appliance 110 is locally controlled; second, the operation mode of the intelligent appliance 110 is set through the mobile terminal 120, and the intelligent appliance 110 is remotely controlled. The intelligent appliance 110 communicates with the mobile terminal 120 through the internet to receive a remote control command issued by the mobile terminal 120. Specifically, the mobile terminal 120 sends the control command to the smart appliance 110 through the cloud server 130 after sending the control command.
The intelligent appliance 110 may be various appliances, such as a refrigerator, an air conditioner, etc., which can be connected to the mobile terminal 120 via the internet. The mobile terminal 120 may include an electronic device such as a smart phone or a tablet computer, which has a certain computing capability, provides a data transmission interface, and has a human-computer interaction interface. In some preferred embodiments, the mobile terminal 120 may be implemented by a software application installed in a smartphone that implements a specific data processing function.
The remote control of the intelligent household appliance 110 is realized through the mobile terminal 120, which simplifies the operation and meets the requirement of a user on controlling the intelligent household appliance 110 at any place, but also brings the risk that the intelligent household appliance 110 is controlled remotely and maliciously. In the process of remotely controlling the intelligent appliance 110, if the mobile terminal 120 is simulated or the cloud server 130 is held, a control instruction is sent to the intelligent appliance 110, and the operation mode of the intelligent appliance 110 is adjusted maliciously, a large loss is brought to a user. In order to reduce the risk of malicious control of the intelligent appliance 110, the present embodiment provides an apparatus for preventing the intelligent appliance from being maliciously controlled. Fig. 2 is a schematic block diagram of the apparatus 200 for preventing an intelligent appliance from being maliciously controlled, and as shown in the drawing, the apparatus 200 for preventing an intelligent appliance from being maliciously controlled may generally include: an instruction acquisition module 210, an instruction confirmation module 220, a remote verification module 230, a normal operation module 240, and a malice determination module 250.
Among the above modules, the instruction obtaining module 210 may be configured to obtain a control instruction for controlling the smart appliance 110, wherein the control instruction includes an identification header, a command and a verification code and is issued locally by the mobile terminal 120 or the smart appliance 110. The command confirmation module 220 may be configured to record the verification code and the original state of the intelligent appliance 110 when determining that the control command is issued by the mobile terminal 120 according to the identification header, and control the intelligent appliance 110 to operate according to the command. The local control command corresponds to one identification head, and the remote control command corresponds to another different identification head, so that whether the control command is sent by the local or remote mobile terminal 120 can be determined according to the identification heads. The command may include adjusting an operation mode of the smart appliance 110, for example, adjusting an operation mode and temperature of the smart refrigerator, and the like.
The remote authentication module 230 may be configured to send the authentication code to the mobile terminal 120, and determine whether the authentication code is consistent with the authentication code generated when the mobile terminal 120 sends the control command according to the result returned by the mobile terminal 120. It should be noted that the verification code of the same control instruction is unique, and the verification codes of different control instructions are not strictly repeated. The verification code may be generated locally or at the mobile terminal 120, and when the intelligent appliance 110 is controlled locally, the verification code is generated locally, and a local fixed verification code may be used; when the smart home appliance 110 is remotely controlled, the verification code is generated at the mobile terminal 120, and the system time and the message code of the mobile terminal 120 may be used as the verification code. That is to say, the mobile terminal 120 generates the verification code when sending the control instruction remotely, and after receiving the verification code sent by the intelligent appliance 110, determines whether the verification code is consistent with the verification code generated when sending the control instruction, and can determine whether the situation that the mobile terminal 120 is simulated or the cloud server 130 is held during sending the remote control instruction occurs, that is, whether the intelligent appliance 110 is maliciously controlled can be determined.
The normal operation module 240 may be configured to control the intelligent appliance 110 to continue to operate according to the command when the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction. The malicious determining module 250 may be configured to determine that the intelligent appliance 110 is maliciously controlled and control the intelligent refrigerator to return to the original state to operate when the verification code is inconsistent with the verification code generated when the mobile terminal 120 sends the control instruction. Because the original state of the intelligent household appliance 110 has been recorded before, the intelligent refrigerator can be controlled to be restored to the original state for operation in time after the intelligent household appliance 110 is judged to be maliciously controlled, and loss of a user caused by remote malicious operation is effectively avoided.
The apparatus 200 for preventing an intelligent appliance from being maliciously controlled according to this embodiment can determine whether the intelligent appliance 110 is maliciously controlled by verifying whether the verification code generated when the mobile terminal 120 sends a remote control instruction is consistent with the verification code received and returned by the intelligent appliance 110, thereby effectively avoiding the loss caused by the remote malicious operation performed on the intelligent appliance 110 after the mobile terminal 120 is simulated or the cloud server 130 is held.
Fig. 3 is a schematic block diagram of an apparatus 200 for preventing an intelligent appliance from being maliciously controlled according to another embodiment of the present invention, on the basis of the above embodiment, a setup integrity determination module 260 and an instruction discarding module 270 may be flexibly added, and the remote authentication module 230 may include: a duration recording module 231, a number recording module 232 and a number judging module 233.
The duration recording module 231 may be configured to record a duration of a result returned by the mobile terminal 120 and determine whether the duration is greater than or equal to a first preset duration. The number recording module 232 may be configured to determine that the result returned by the mobile terminal 120 is overtime and record the number of times of the overtime when the duration of the result returned by the mobile terminal 120 is greater than or equal to a first preset duration, and the remote verification module 230 may be further configured to determine whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction when the duration of the result returned by the mobile terminal 120 is less than the first preset duration. The basis for determining whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control command is still the result returned by the mobile terminal 120. After the mobile terminal 120 determines that the two verification codes are consistent, the returned result may include information that the verification codes are consistent; after the two verification codes are determined to be inconsistent, the returned result may include information that the verification codes are inconsistent. In summary, both the generation of the authentication code and the verification of whether the two authentication codes are identical are performed at the mobile terminal 120. It should be noted that when the mobile terminal 120 does not send a control instruction but receives the authentication code returned by the intelligent appliance 110, it may be considered that the intelligent appliance 110 is maliciously controlled, and the returned result may also include information that the authentication codes are inconsistent.
The intelligent appliance 110 sends the verification code to the mobile terminal 120 to start timing, and stops timing after receiving the result returned by the mobile terminal 120. Based on the fact that the intelligent household appliance 110 sends the verification code to the mobile terminal 120 and the process that the mobile terminal 120 receives and confirms whether the verification code is consistent with the verification code generated when the control instruction is sent can be completed quickly, the time length cannot be too long, therefore, a first preset time length can be preset, when the time length of the result returned by the mobile terminal 120 is greater than or equal to the first preset time length, the process of confirming whether the verification code is consistent can be considered to have a problem, and the result returned by the mobile terminal 120 needs to be confirmed to be overtime and the overtime frequency needs to be recorded; when the time length of the result returned by the mobile terminal 120 is less than the first preset time length, it may be considered that there is no problem in the process of determining whether the verification code is consistent, and it is only necessary to determine whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction according to the result returned by the mobile terminal 120.
The number judging module 233 may be configured to judge whether the number of times of timeout is greater than or equal to a preset number. In addition, the malicious determining module 250 may be further configured to determine that the intelligent appliance 110 is maliciously controlled when the timeout times are greater than or equal to the preset times, and control the intelligent refrigerator to return to the original state to operate. The remote authentication module 230 may be further configured to delay sending the authentication code to the mobile terminal 120 for a second predetermined time period when the timeout time is less than the predetermined time. When the number of times of timeout is smaller than the preset number of times, it may be considered that the result returned by the mobile terminal 120 is timeout due to network difference, and at this time, the verification code may be sent to the mobile terminal 120 again after delaying for the second preset duration, and the verification is performed again, so as to effectively screen out the influence of the network difference and other reasons. And the second preset time length and the preset times can be preset according to the actual situation.
In summary, there are two cases that can determine that the intelligent appliance 110 is maliciously controlled: first, the timeout times of the results returned by the mobile terminal 120 are greater than or equal to the preset times; second, the verification code is determined to be inconsistent with the verification code generated when the mobile terminal 120 sends the control command according to the result returned by the mobile terminal 120.
The control instruction of this embodiment may further include: and checking the code. The integrity determination module 260 may be configured to determine whether the control command is intact according to the check code. The instruction discard module 270 may be configured to discard the control instruction when the control instruction is incomplete. Moreover, the command confirmation module 220 may be further configured to determine whether the control command is issued by the mobile terminal 120 according to the identification header when the control command is complete. That is, on the premise that the control command is complete, it is determined whether the control command is issued locally or by the mobile terminal 120. The process of judging whether the control instruction is complete according to the check code can adopt modes such as checksum and the like.
The command confirmation module 220 may be further configured to determine whether the verification code is consistent with the local fixed verification code when it is determined that the control command is issued locally by the intelligent appliance 110 according to the identification header, and control the intelligent appliance 110 to operate according to the command when the determination result is yes. Also, the instruction discard module 270 may be further configured to discard the control instruction when the validation code is inconsistent with the local fixed validation code. As mentioned above, when the intelligent appliance 110 is controlled locally, the verification code is generated locally, a local fixed verification code may be used, and when the control command is determined to be sent locally by the intelligent appliance 110 according to the identification header, the control command may be discarded as long as the verification code in the control command is not consistent with the local fixed verification code.
The apparatus 200 for preventing an intelligent appliance from being maliciously controlled according to this embodiment determines whether an authentication code generated when the mobile terminal 120 sends a control instruction is consistent with a received authentication code on the basis that the mobile terminal 120 returns an authentication result in time, and more strictly determines malicious operations by optimally designing a control program of the intelligent appliance 110, thereby reducing a risk that the appliance is maliciously controlled.
The embodiment also provides a method for preventing the intelligent household appliance from being maliciously controlled. The method may be performed by the apparatus 200 for preventing an intelligent appliance from being maliciously controlled according to any of the above embodiments, so as to reduce the risk that the intelligent appliance 110 is maliciously controlled. Fig. 4 is a schematic diagram of a method for preventing an intelligent appliance from being maliciously controlled according to an embodiment of the present invention, where the method for preventing an intelligent appliance from being maliciously controlled includes:
step S402, acquiring a control instruction for controlling the intelligent appliance 110;
step S404, when the control instruction is determined to be sent by the mobile terminal 120 according to the identification head, the verification code and the original state of the intelligent household appliance 110 are recorded, and the intelligent household appliance 110 is controlled to operate according to the command;
step S406, sending a verification code to the mobile terminal 120, and judging whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction according to a result returned by the mobile terminal 120, if so, executing step S408, and if not, executing step S410;
step S408, controlling the intelligent household appliance 110 to continue to operate according to the command;
and step S410, judging that the intelligent household appliance 110 is maliciously controlled, and controlling the intelligent refrigerator to recover to the original state to operate.
In the above step, the control instruction in step S402 may include: an identification header, a command, and a verification code, and is issued locally by the mobile terminal 120 or the smart appliance 110. The local control command corresponds to one tag, and the remote control command corresponds to another different tag, so that whether the control command is sent by the local or remote mobile terminal 120 can be determined according to the tags. The command may include adjusting an operation mode of the smart appliance 110, for example, adjusting an operation mode and temperature of the smart refrigerator, and the like.
It should be noted that the verification code of the same control instruction is unique, and the verification codes of different control instructions are not strictly repeated. The verification code may be generated locally or at the mobile terminal 120, and when the intelligent appliance 110 is controlled locally, the verification code is generated locally, and a local fixed verification code may be used; when the smart home appliance 110 is remotely controlled, the verification code is generated at the mobile terminal 120, and the system time and the message code of the mobile terminal 120 may be used as the verification code. That is to say, the mobile terminal 120 generates the verification code when sending the control instruction remotely, and after receiving the verification code sent by the intelligent appliance 110, determines whether the verification code is consistent with the verification code generated when sending the control instruction, and can determine whether the situation that the mobile terminal 120 is simulated or the cloud server 130 is held during sending the remote control instruction occurs, that is, whether the intelligent appliance 110 is maliciously controlled can be determined.
In step S406, the criterion for determining whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control command is the result returned by the mobile terminal 120. After the mobile terminal 120 determines that the two verification codes are consistent, the returned result may include information that the verification codes are consistent; after the two verification codes are determined to be inconsistent, the returned result may include information that the verification codes are inconsistent. In summary, both the generation of the authentication code and the verification of whether the two authentication codes are identical are performed at the mobile terminal 120.
Because the original state of the intelligent appliance 110 has been recorded in step S404, the intelligent refrigerator can be controlled to be restored to the original state for operation in time after it is determined that the intelligent appliance 110 is maliciously controlled in step S410, thereby effectively avoiding the loss of the user caused by remote malicious operation.
In the method for preventing the intelligent household appliance from being maliciously controlled according to the embodiment, whether the verification code generated when the mobile terminal 120 sends the remote control instruction is consistent with the verification code received and returned by the intelligent household appliance 110 or not is verified, so that whether the intelligent household appliance 110 is maliciously controlled or not can be determined, and the phenomenon that the mobile terminal 120 is simulated or the cloud server 130 is clamped to perform remote malicious operation on the intelligent household appliance 110, so that loss is caused to a user is effectively avoided.
In some optional embodiments, the intelligent appliance 110 may achieve a higher technical effect by further optimizing and configuring the above steps, and the method for preventing the intelligent appliance from being maliciously controlled according to this embodiment is described in detail below with reference to an optional execution flow of this embodiment. Fig. 5 is a detailed flowchart of a method for preventing an intelligent household appliance from being maliciously controlled according to an embodiment of the present invention, and the flowchart of the method for preventing an intelligent household appliance from being maliciously controlled may include:
step S502, acquiring a control instruction for controlling the intelligent appliance 110;
step S504, judge whether the control command is complete according to the check code, if yes, carry out step S506, if no, carry out step S524;
step S506, determining whether the control command is sent by the mobile terminal 120 according to the identifier, if so, executing step S508, otherwise, executing step S520;
step S508, recording the verification code and the original state of the intelligent appliance 110, and controlling the intelligent appliance 110 to operate according to the command;
step S510, sending a verification code to the mobile terminal 120;
step S512, recording the duration of the result returned by the mobile terminal 120 and determining whether the duration is greater than or equal to a first preset duration, if so, executing step S526, otherwise, executing step S514;
step S514, determining that the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction according to the result returned by the mobile terminal 120, if yes, executing step S516, and if not, executing step S518;
step S516, controlling the intelligent appliance 110 to continue to operate according to the command;
step S518, judging that the intelligent household appliance 110 is maliciously controlled, and controlling the intelligent refrigerator to recover to the original state for operation;
step S520, determining that the control instruction is locally issued by the intelligent appliance 110, determining whether the verification code is consistent with the local fixed verification code, if so, performing step S522, and if not, performing step S524;
step S522, controlling the intelligent appliance 110 to operate according to the command;
step S524, discarding the control instruction;
step S526, confirming that the return result of the mobile terminal 120 is overtime and recording the number of times of overtime;
step S528, determining whether the timeout times are greater than or equal to the preset times, if yes, performing step S518, otherwise, performing step S530;
in step S530, the second preset duration is delayed, and step S510 is executed again.
In the above steps, the control instruction in step S502 may include: a check code, an identification header, a command, and an authentication code. Wherein, whether the control instruction is complete can be judged according to the check code; whether the control instruction is sent by the local or the mobile terminal 120 can be judged according to the identification head; how to adjust the smart appliance 110 can be determined according to the command; whether the control instruction is sent by the mobile terminal 120 or not can be judged according to the verification code, and whether the intelligent household appliance 110 is maliciously controlled or not can be judged.
In step S504, the process of determining whether the control instruction is complete according to the check code may adopt a checksum or the like. Step S506 determines whether the control instruction is sent by the mobile terminal 120 according to the identifier, if the result of determining whether the control instruction is complete in step S504 is yes, that is, when the control instruction is complete, it is determined whether the control instruction is sent locally or by the mobile terminal 120.
Since the control command can only be issued by the local or mobile terminal 120, when it is determined in step S506 that the result of the determination on whether the control command is issued by the mobile terminal 120 is no, step S520 can be directly executed: it is determined that the control command is issued locally by the smart appliance 110.
In step S512, the intelligent appliance 110 sends the verification code to the mobile terminal 120 to start timing, and stops timing after receiving the result returned by the mobile terminal 120. Based on the fact that the process of sending the verification code to the mobile terminal 120 by the intelligent household appliance 110 and the process of receiving and confirming whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction by the intelligent household appliance 120 can be completed rapidly, the duration is not too long, therefore, a first preset duration can be preset, when the duration of the result returned by the mobile terminal 120 is greater than or equal to the first preset duration, the process of confirming whether the verification code is consistent can be considered to be problematic, and the step S526 needs to be executed: confirming that the return result of the mobile terminal 120 is overtime and recording the overtime times; when the time length of the result returned by the mobile terminal 120 is less than the first preset time length, it may be considered that there is no problem in the process of determining whether the verification codes are consistent, and only the step S514 needs to be executed: and judging whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction according to the result returned by the mobile terminal 120.
If it is determined in step S528 that the timeout period is not less than the preset period, step S530 is executed: and the verification code is sent to the mobile terminal 120 again after the delay for the second preset time. That is, when the number of times of timeout is less than the preset number of times, it may be considered that the result returned by the mobile terminal 120 is timeout due to network difference, and at this time, the verification code may be sent to the mobile terminal 120 again after delaying for the second preset time, and the verification is performed again, so as to effectively screen out the influence of the network difference and other reasons. And the second preset time length and the preset times can be preset according to the actual situation.
In step S518, it is determined that the intelligent appliance 110 is maliciously controlled, and there are two cases of controlling the intelligent refrigerator to return to the original state for operation: first, the timeout times of the results returned by the mobile terminal 120 are greater than or equal to the preset times; second, the verification code is determined to be inconsistent with the verification code generated when the mobile terminal 120 sends the control command according to the result returned by the mobile terminal 120.
There are two cases of discarding the control command in step S524: firstly, determining that a control instruction is incomplete according to a check code; second, the control command is issued locally by the smart appliance 110, and the verification code is not consistent with the local fixed verification code. When the intelligent household appliance 110 is locally controlled, the verification code is locally generated, a local fixed verification code can be adopted, and when the control instruction is determined to be locally sent by the intelligent household appliance 110 according to the identification head, the control instruction can be discarded as long as the verification code in the control instruction is inconsistent with the local fixed verification code.
In the method for preventing the intelligent household appliance from being maliciously controlled, the control instruction for controlling the intelligent household appliance 110 is obtained, when the control instruction is determined to be sent by the mobile terminal 120 according to the identification head, the verification code and the original state of the intelligent household appliance 110 are recorded, the intelligent household appliance 110 is controlled to operate according to the command, the verification code is sent to the mobile terminal 120, whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction is judged according to the result returned by the mobile terminal 120, and when the result is yes, the intelligent household appliance 110 is controlled to continue to operate according to the command; if not, the intelligent household appliance 110 is judged to be maliciously controlled, the intelligent refrigerator is controlled to be restored to the original state to operate, and the phenomenon that the mobile terminal 120 is simulated or the cloud server 130 is clamped to carry out remote malicious operation on the intelligent household appliance 110, so that loss is caused to a user can be avoided.
Further, in the method for preventing an intelligent appliance from being maliciously controlled according to this embodiment, after sending the verification code to the mobile terminal 120, the time length for the mobile terminal 120 to return the result is recorded, and whether the time length is greater than or equal to a first preset time length is determined, and if the result is yes, it is determined that the result returned by the mobile terminal 120 is overtime and the number of times of the overtime is recorded; if the result is no, whether the verification code is consistent with the verification code generated when the mobile terminal 120 sends the control instruction is judged. In addition, after the timeout times are recorded, whether the timeout times are larger than or equal to the preset times is judged, if yes, the intelligent household appliance 110 is judged to be maliciously controlled, and the intelligent refrigerator is controlled to be restored to the original state to operate; if not, the verification code is sent to the mobile terminal 120 again after delaying for a second preset time. Whether the verification code generated when the mobile terminal 120 sends the control instruction is consistent with the received verification code or not is judged on the basis that the mobile terminal 120 timely returns the verification result, malicious operation is more strictly judged, and the risk that the household appliance is maliciously controlled is reduced by optimally designing the control program of the intelligent household appliance 110.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.

Claims (10)

1. A method for preventing an intelligent appliance from being maliciously controlled, wherein the intelligent appliance is connected to a mobile terminal through the internet, the method comprising:
acquiring a control instruction for controlling the intelligent household appliance, wherein the control instruction comprises an identification head, a command and a verification code and is locally sent out by the mobile terminal or the intelligent household appliance;
when the control instruction is determined to be sent by the mobile terminal according to the identification head, recording the verification code and the original state of the intelligent household appliance, and controlling the intelligent household appliance to operate according to the command;
sending the verification code to the mobile terminal, and judging whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction according to a result returned by the mobile terminal; and
if so, controlling the intelligent household appliance to continue to operate according to the command,
if not, judging that the intelligent household appliance is maliciously controlled, and controlling the intelligent household appliance to recover to the original state to operate.
2. The method for preventing an intelligent appliance from being maliciously controlled according to claim 1, wherein after the step of transmitting the authentication code to the mobile terminal, further comprising:
recording the time length of the mobile terminal returning the result and judging whether the time length is more than or equal to a first preset time length; and
if yes, confirming that the mobile terminal returns the result overtime and recording the overtime times,
if not, executing the step of judging whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction.
3. The method for preventing intelligent appliances from being maliciously controlled according to claim 2, wherein after the step of recording the number of times out, further comprising:
judging whether the overtime times are more than or equal to preset times or not; and
if so, judging that the intelligent household appliance is maliciously controlled, controlling the intelligent household appliance to recover to the original state to operate,
if not, the step of sending the verification code to the mobile terminal is executed again after delaying a second preset time length.
4. The method for preventing a smart appliance from being maliciously controlled according to claim 1, wherein,
the control instructions further comprise: check the code, and
after the step of obtaining the control instruction for controlling the intelligent household appliance, the method further comprises the following steps:
judging whether the control instruction is complete according to the check code; and
if yes, judging whether the control instruction is sent by the mobile terminal according to the identification head,
and if not, discarding the control instruction.
5. The method for preventing a smart appliance from being maliciously controlled according to claim 4, wherein,
when the control instruction is determined to be locally sent by the intelligent household appliance according to the identification head, whether the verification code is consistent with a local fixed verification code is judged; and
if so, controlling the intelligent household appliance to operate according to the command,
and if not, discarding the control instruction.
6. An apparatus for preventing an intelligent appliance from being maliciously controlled, wherein the intelligent appliance is connected with a mobile terminal through the internet, the apparatus comprising:
the instruction acquisition module is configured to acquire a control instruction for controlling the intelligent household appliance, wherein the control instruction comprises an identification head, a command and a verification code and is locally sent out by the mobile terminal or the intelligent household appliance;
the instruction confirmation module is configured to record the verification code and the original state of the intelligent household appliance when the control instruction is determined to be sent by the mobile terminal according to the identification head, and control the intelligent household appliance to operate according to the command;
the remote verification module is configured to send the verification code to the mobile terminal and judge whether the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction according to a result returned by the mobile terminal;
the normal operation module is configured to control the intelligent household appliance to continue to operate according to the command when the verification code is consistent with the verification code generated when the mobile terminal sends the control instruction; and
and the malicious judgment module is configured to judge that the intelligent household appliance is controlled maliciously and control the intelligent household appliance to recover to the original state to operate when the verification code is inconsistent with the verification code generated when the mobile terminal sends the control instruction.
7. The apparatus for preventing a smart appliance from being maliciously controlled according to claim 6, wherein the remote authentication module comprises:
the duration recording module is configured to record the duration of the result returned by the mobile terminal and judge whether the duration is greater than or equal to a first preset duration; and
a time recording module configured to confirm that the result returned by the mobile terminal is overtime and record the overtime times when the time length for returning the result by the mobile terminal is greater than or equal to the first preset time length, and
the remote verification module is further configured to determine whether the verification code is consistent with a verification code generated when the mobile terminal sends the control instruction when the time length for the mobile terminal to return the result is less than the first preset time length.
8. The apparatus for preventing a smart appliance from being maliciously controlled according to claim 7, wherein the remote authentication module further comprises:
the number judging module is configured to judge whether the overtime number is greater than or equal to a preset number; and is
The malicious judging module is further configured to judge that the intelligent household appliance is controlled maliciously and control the intelligent household appliance to recover to the original state to operate when the overtime times are greater than or equal to the preset times;
and the remote verification module is also configured to delay a second preset time and then resend the verification code to the mobile terminal when the overtime times are smaller than the preset times.
9. The apparatus for preventing a smart appliance from being maliciously controlled according to claim 6, wherein,
the control instructions further comprise: the code is checked to determine whether the code is correct,
the device further comprises: the integrity judgment module is configured to judge whether the control instruction is integral or not according to the check code; and an instruction discarding module configured to discard the control instruction when the control instruction is incomplete, and
the instruction confirmation module is also configured to judge whether the control instruction is sent by the mobile terminal according to the identification head when the control instruction is complete.
10. The apparatus for preventing a smart appliance from being maliciously controlled according to claim 9, wherein,
the instruction confirmation module is further configured to judge whether the verification code is consistent with a local fixed verification code when the control instruction is determined to be locally sent by the intelligent household appliance according to the identification head, and control the intelligent household appliance to operate according to the instruction when the verification code is consistent with the local fixed verification code; and is
The instruction discarding module is further configured to discard the control instruction when the verification code is inconsistent with a local fixed verification code.
CN201811259856.5A 2018-10-26 2018-10-26 Method and device for preventing intelligent household appliance from being maliciously controlled Active CN111107041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811259856.5A CN111107041B (en) 2018-10-26 2018-10-26 Method and device for preventing intelligent household appliance from being maliciously controlled

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811259856.5A CN111107041B (en) 2018-10-26 2018-10-26 Method and device for preventing intelligent household appliance from being maliciously controlled

Publications (2)

Publication Number Publication Date
CN111107041A CN111107041A (en) 2020-05-05
CN111107041B true CN111107041B (en) 2022-04-29

Family

ID=70418908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811259856.5A Active CN111107041B (en) 2018-10-26 2018-10-26 Method and device for preventing intelligent household appliance from being maliciously controlled

Country Status (1)

Country Link
CN (1) CN111107041B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114876B (en) * 2020-09-11 2023-01-10 苏州浪潮智能科技有限公司 Equipment control method, system, electronic equipment and storage medium
CN112532694B (en) * 2020-11-12 2023-04-07 许继集团有限公司 Remote centralized control method and system suitable for master station communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731756A (en) * 2014-01-02 2014-04-16 中国科学院信息工程研究所 Smart home remote security access control implementation method based on smart cloud television gateway
CN105045222A (en) * 2015-05-26 2015-11-11 北京海尔广科数字技术有限公司 Intelligent household electrical appliance control method and device
CN105262774A (en) * 2015-11-11 2016-01-20 浪潮(北京)电子信息产业有限公司 Remote login method
CN106899677A (en) * 2017-03-02 2017-06-27 广东艾诗凯奇智能科技有限公司 A kind of safe intelligent artifact long-range control method
CN107426069A (en) * 2017-08-23 2017-12-01 南京中感微电子有限公司 Intelligent domestic system and its control method based on bluetooth

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180114384A1 (en) * 2016-10-25 2018-04-26 Visible Energy, Inc. Cloud-based keyless access control system for housing facilities
US11050832B2 (en) * 2017-03-29 2021-06-29 Citrix Systems, Inc. Maintaining a session across multiple web applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731756A (en) * 2014-01-02 2014-04-16 中国科学院信息工程研究所 Smart home remote security access control implementation method based on smart cloud television gateway
CN105045222A (en) * 2015-05-26 2015-11-11 北京海尔广科数字技术有限公司 Intelligent household electrical appliance control method and device
CN105262774A (en) * 2015-11-11 2016-01-20 浪潮(北京)电子信息产业有限公司 Remote login method
CN106899677A (en) * 2017-03-02 2017-06-27 广东艾诗凯奇智能科技有限公司 A kind of safe intelligent artifact long-range control method
CN107426069A (en) * 2017-08-23 2017-12-01 南京中感微电子有限公司 Intelligent domestic system and its control method based on bluetooth

Also Published As

Publication number Publication date
CN111107041A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
US11310730B2 (en) Method of connecting to network for home appliance, home appliance, and method of connecting to network for home appliance system
US10219086B2 (en) Mobile wireless controller for a hearing aid
JP6352451B2 (en) Control method, control device, control device, program, and recording medium for current interruption
EP1402101B1 (en) Service system for electric home appliances and method thereof
CN106230674B (en) Method and device for preventing intelligent household appliance from being maliciously controlled
CN113498594B (en) Control method and device of smart home system, electronic equipment and storage medium
CN105072012A (en) Quick network access method of intelligent device
CN111107041B (en) Method and device for preventing intelligent household appliance from being maliciously controlled
CN109639692B (en) Offline login method, device, equipment, system and storage medium
US9836958B2 (en) Device control method, server, system and computer storage medium
CN110011885B (en) Control authority binding method and device of electric appliance, storage medium and electric appliance
CN111338221B (en) Multi-device self-adaptive control method, device and system
CN106504510B (en) Remote infrared control method and device
CN109725543B (en) Equipment control code configuration method and device, cloud server and network system
CN104866418A (en) Automatic testing method and system
CN103716161A (en) Server certification method of smart-device being remote-controlled by internet and server certification apparatus using the method
CN105471678A (en) Method and system for detecting networking failure reason of household appliance and mobile terminal
CN104076792A (en) Frequency converter remote monitoring system based on internet
CN113538876B (en) Method, device and system for automatic network distribution of intelligent household equipment
CN106155001A (en) The control method of home appliance and device
JP2023524546A (en) Home appliance and its network setting method, control terminal, computer storage medium
CN111491351A (en) Method and system for sensing online of WiFi terminal based on authentication information
CN112865928A (en) Intelligent building safety management method based on side link communication
US20160142258A1 (en) Methods and systems for verifying installation of a device
CN105049337A (en) Communication method and device between smart devices based on instant messaging

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 266101 Haier Industrial Park, 1 Haier Road, Laoshan District, Shandong, Qingdao

Applicant after: Haier Smart Home Co., Ltd.

Address before: 266101 Haier Industrial Park, 1 Haier Road, Laoshan District, Shandong, Qingdao

Applicant before: QINGDAO HAIER JOINT STOCK Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant