A hidden instruction mining method and related device

By filling and filtering characters in the DSP instruction field, the execution of unknown instructions is generated and confirmed, which solves the problem of insufficient mining of hidden instructions in the DSP architecture and realizes more efficient vulnerability analysis.

CN123179404APending Publication Date: 2026-11-27CASIC DEFENSE TECH RES & TEST CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611047175.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

There is a lack of research on hidden instruction mining methods for DSP architectures in the existing technology, resulting in insufficient vulnerability analysis.

Method used

Candidate instructions are generated by filling the opcode field, operand field, condition field, and fixed value field of the DSP instruction with characters. Unknown instructions are then selected from a preset public instruction database and sent to the lower-level machine for execution. The successfully executed instruction is confirmed as a hidden instruction.

Benefits of technology

It improves the accuracy and efficiency of hidden instruction identification and discovery, and enhances the vulnerability analysis capabilities of DSP architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179404A_ABST
    Figure CN123179404A_ABST
Patent Text Reader

Abstract

The application provides a hidden instruction mining method and a related device. The method fills characters in an operation code field, an operand field, a condition field and a fixed value field in an instruction to obtain a plurality of candidate instructions, determines a candidate instruction that does not exist in a preset public instruction database as an unknown instruction, sends the unknown instruction to a lower computer to enable the lower computer to execute the unknown instruction, and sends the unknown instruction to an upper computer as a hidden instruction if the unknown instruction is successfully executed, thereby realizing mining of the hidden instruction. The application fills characters in an instruction to obtain a plurality of candidate instructions, determines a candidate instruction that does not exist in a preset public instruction database as an unknown instruction, sends the unknown instruction to a lower computer to enable the lower computer to execute the unknown instruction to determine whether the unknown instruction is a hidden instruction, thereby realizing mining of the hidden instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of hardware security technology, and in particular to a method and related apparatus for uncovering hidden instructions. Background Technology

[0002] Currently, research on hidden instructions mainly focuses on x86 and ARM (Advanced RISC Machines) architectures, with little attention paid to hidden instruction mining for DSPs (Digital Signal Processors). Therefore, there is an urgent need for a hidden instruction mining method for DSPs to help with vulnerability analysis of DSPs. Summary of the Invention

[0003] In view of this, the purpose of this application is to propose a method and related apparatus for mining hidden instructions.

[0004] To achieve the above objectives, this application provides a method for uncovering hidden instructions, applied to a host computer connected to a slave computer. The instruction includes an opcode field, an operand field, a condition field, and a fixed value field. The method includes:

[0005] The opcode field, operand field, condition field, and fixed value field are filled with characters to obtain multiple candidate instructions; Candidate instructions that do not exist in the preset public instruction database are identified as unknown instructions; The unknown instruction is sent to the lower-level machine so that the lower-level machine executes the unknown instruction, and if it is successfully executed, the unknown instruction is sent to the upper-level machine as a hidden instruction.

[0006] Furthermore, each field corresponds to a character length. The opcode field, operand field, condition field, and fixed value field are padded with characters to obtain multiple candidate instructions, including: Among the opcode field, operand field, condition field, and fixed value field, at least one target field and the target padding character corresponding to the target field are determined; For each of the other fields, the characters are arranged and combined to fill the space, constrained by their corresponding character length, to obtain multiple candidate instructions containing the target fill character.

[0007] Furthermore, the opcode field, operand field, condition field, and fixed value field are filled with characters to obtain multiple candidate instructions, including: Among the opcode field, operand field, condition field, and fixed value field, at least one target field and the target padding character corresponding to the target field are determined; In a pre-defined public instruction database, multiple candidate fill characters corresponding to other fields are determined. For each candidate fill character, the following is executed: fill the candidate fill character into its corresponding field to obtain multiple candidate instructions containing the target fill character.

[0008] Furthermore, determining at least one target field and the target fill character corresponding to that target field among the opcode field, operand field, condition field, and fixed value field includes: Determine the character length of the candidate instruction, wherein the character length includes 32 bits and 16 bits; In response to determining that the character length of the candidate instruction is 32 bits, the target field is determined to be an opcode field and a fixed value field; In response to determining that the character length of the candidate instruction is 16 bits, the target field is determined to be an opcode field; In a pre-defined public instruction database, multiple candidate fill characters corresponding to the target field are determined. For each candidate fill character, the following is executed: fill the target field with the candidate fill character as the target fill character.

[0009] Furthermore, the step of determining candidate instructions not existing in the preset public instruction database as unknown instructions includes: The candidate instruction is compared with the preset public instruction database; In response to determining that the candidate instruction does not exist in the preset public instruction database, the candidate instruction is determined to be an unknown instruction; In response to determining that the candidate instruction exists in the preset public instruction database, the candidate instruction is ignored.

[0010] Furthermore, after determining candidate instructions that do not exist in the preset public instruction database as unknown instructions, the method further includes: Multiple unknown instructions are combined to form an unknown instruction set; The set of unknown instructions is sent to the lower-level machine, so that the lower-level machine executes each unknown instruction in the set of unknown instructions in sequence, and after each unknown instruction in the set of unknown instructions has been executed, an unknown instruction execution result package is formed and sent to the upper-level machine.

[0011] Based on the same inventive concept, this application also provides a method for uncovering hidden instructions, applied to a lower-level machine, the method comprising: In response to receiving an unknown instruction from the host computer, the unknown instruction is executed; In response to the determination that the unknown instruction has been successfully executed, the unknown instruction is sent to the host computer as a hidden instruction.

[0012] Furthermore, the method also includes: In response to the determination that the unknown instruction was not successfully executed, the unknown instruction is sent to the host computer as an illegal instruction.

[0013] Furthermore, the method also includes: In response to receiving a set of unknown instructions sent by the host computer, each unknown instruction in the set of unknown instructions is executed sequentially, and the execution result of each unknown instruction is obtained. The execution result is stored in an unknown instruction execution result package, and the unknown instruction execution result package is sent to the host computer.

[0014] Based on the same inventive concept, this application also provides a hidden instruction mining system, including a host computer and a slave computer connected to each other; The host computer is configured to fill the opcode field, operand field, condition field, and fixed value field with characters to obtain multiple candidate instructions; determine the candidate instructions that do not exist in the preset public instruction database as unknown instructions; send the unknown instructions to the slave computer so that the slave computer executes the unknown instructions, and if the execution is successful, send the unknown instructions as hidden instructions to the host computer. The lower-level machine is configured to execute the unknown instruction in response to receiving an unknown instruction from the upper-level machine; and to send the unknown instruction as a hidden instruction to the upper-level machine in response to determining that the unknown instruction has been successfully executed.

[0015] Based on the same inventive concept, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to perform any of the methods described above.

[0016] Based on the same inventive concept, this application also provides a computer program product, including computer program instructions, which, when run on a computer, cause the computer to perform the method described in any of the preceding claims.

[0017] As described above, this application provides a method and related apparatus for mining hidden instructions. The method involves filling the opcode field, operand field, condition field, and fixed value field of an instruction with characters to obtain multiple candidate instructions. Candidate instructions not existing in a preset public instruction database are identified as unknown instructions. These unknown instructions are then sent to a lower-level machine for execution. If the unknown instruction is successfully executed, it is determined to be a hidden instruction and sent to a higher-level machine, thus achieving the mining of hidden instructions. This application obtains multiple candidate instructions by filling the instruction with characters, identifies those not existing in a preset public instruction database as unknown instructions, and sends these unknown instructions to a lower-level machine for execution to determine if they are hidden instructions. This method improves the accuracy and efficiency of hidden instruction determination. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating a method for uncovering hidden instructions according to an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a hidden instruction mining system according to an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0021] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0022] As mentioned in the background section, current research on hidden instructions mainly focuses on x86 and ARM architectures, with little attention paid to hidden instruction mining for DSPs. Therefore, there is an urgent need for a hidden instruction mining method for DSPs to help with vulnerability analysis of DSPs.

[0023] Based on this, this application proposes a hidden instruction mining method and related apparatus. The method identifies multiple candidate instructions based on the characteristics of DSP instructions, and determines unknown instructions from the candidate instructions by determining the existence of the candidate instructions in a preset public instruction database. The unknown instructions are then sent to the lower-level machine so that the DSP in the lower-level machine can execute the unknown instructions. When it is determined that the unknown instructions have been successfully executed, the unknown instructions are identified as hidden instructions, thereby realizing the mining of hidden instructions.

[0024] The embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0025] In some embodiments, such as Figure 1 As shown, this application provides a method for uncovering hidden instructions, applied to a host computer connected to a slave computer. The instruction includes an opcode field, an operand field, a condition field, and a fixed value field. The method includes: Step S101: Fill the opcode field, operand field, condition field and fixed value field with characters to obtain multiple candidate instructions.

[0026] Specifically, the host computer can be a computer, and the slave computer can be a DSP system. The host computer is equipped with candidate instruction generation software, which can fill the opcode field, operand field, condition field and fixed value field in the DSP instruction with characters to obtain multiple candidate instructions.

[0027] It should be noted that the candidate instruction generation software has multiple generation methods. For example, it can fill in the characters in each field by arranging and combining them to obtain multiple candidate instructions, or it can traverse and combine the known filling characters of each field to obtain multiple candidate instructions.

[0028] The order of DSP instructions is: opcode field + operand field + condition field + fixed value field.

[0029] For example, the characters in each field of the instruction can be 0 or 1, and the number of characters in the opcode field, operand field, condition field, and fixed value field is 2. Therefore, the number of candidate instructions is... For example, the candidate instruction is: 10+10+10+10.

[0030] For example, if the known opcode field is 10 and 01, the operand field is 00 and 11, the condition field is 10 and 00, and the fixed value field is 11 and 10, then the number of multiple candidate instructions is 16, such as the candidate instructions: 10+00+10+11.

[0031] It should be noted that before generating multiple candidate instructions, the types of candidate instructions need to be determined in order to clarify the range of candidate instruction generation.

[0032] Step S102: Candidate instructions that do not exist in the preset public instruction database are identified as unknown instructions.

[0033] Specifically, the host computer has filtering software connected to the candidate instruction generation software to receive candidate instructions and compare whether the candidate instructions exist in the preset public instruction database. If the candidate instruction does not exist in the preset public instruction database, the candidate instruction is determined to be the unknown instruction, so that it can be sent to the lower computer for execution to determine whether it is a hidden instruction.

[0034] Alternatively, the host computer may not need to have filtering software. In this case, the candidate instruction generation software can be configured to have filtering functionality to determine unknown instructions.

[0035] It should be noted that comparing the candidate instructions with the instructions in the preset public instruction database can remove candidate instructions that are the same as known instructions stored in the preset public instruction database, thus avoiding the situation where the hidden instructions are sent to the lower-level machine for execution and affecting the efficiency of hidden instruction mining, which is beneficial to improving the efficiency of hidden instruction mining.

[0036] Step S103: Send the unknown instruction to the lower-level machine so that the lower-level machine executes the unknown instruction, and if it is successfully executed, send the unknown instruction as a hidden instruction to the upper-level machine.

[0037] Specifically, the host computer sends the unknown instruction to the slave computer, i.e., the DSP system. When the slave computer receives the unknown instruction, it starts the exception interrupt program, then executes the unknown instruction. If an exception interrupt occurs after executing the unknown instruction, it is determined that the unknown instruction failed to execute successfully and is an illegal instruction. If no exception interrupt occurs after executing the unknown instruction, it is determined that the unknown instruction was executed successfully and is a hidden instruction.

[0038] After determining the type of the unknown instruction, the lower-level machine sends it to the upper-level machine, which then stores the hidden instruction in the preset public instruction database, thereby updating the preset public instruction database.

[0039] In this embodiment, multiple candidate instructions are obtained by padding the opcode field, operand field, condition field, and fixed value field of the instruction with characters. Candidate instructions not existing in a preset public instruction database are identified as unknown instructions. These unknown instructions are then sent to the lower-level machine for execution. If the unknown instruction is successfully executed, it is determined to be a hidden instruction and sent to the upper-level machine, thus achieving the discovery of hidden instructions. This application obtains multiple candidate instructions by padding the instruction with characters, identifies candidate instructions not existing in a preset public instruction database as unknown instructions, and sends these unknown instructions to the lower-level machine for execution to determine whether they are hidden instructions, thereby improving the accuracy and efficiency of hidden instruction discovery.

[0040] In some embodiments, each field corresponds to a character length. Step S101: The opcode field, operand field, condition field, and fixed value field are filled with characters to obtain multiple candidate instructions, including: Step S201: Among the opcode field, operand field, condition field, and fixed value field, determine at least one target field and the target fill character corresponding to the target field.

[0041] Specifically, the preset public instruction database includes various types of public instructions. The opcode field is related to the major category of instructions, and the fixed value field is related to the minor category of instructions. Each type of instruction corresponds to multiple opcode fields, that is, multiple fill characters for opcode fields. On this basis, each opcode field corresponds to multiple fixed value fields, that is, multiple fill characters for fixed value fields.

[0042] The known opcode fields in the preset public instruction database are traversed to determine the opcode field as the target field and its corresponding fill character as the target fill character. Based on this, the fixed value field corresponding to each opcode field in the preset public instruction database is determined as another target field and its corresponding fill character as the target fill character, so as to realize the determination of at least one target field and the target fill character corresponding to the target field.

[0043] It should be noted that the target field and its corresponding target padding character are related to the type of the public instruction, such as the opcode field or the fixed value field. Determining the target padding character of the target field according to the preset public instruction database can avoid all combinations of the target padding character of the target field, greatly reduce the number of generated candidate instructions, and help improve mining efficiency.

[0044] Step S202: For each of the other fields, fill in the characters by permutation and combination, using the corresponding character length as a constraint, to obtain multiple candidate instructions containing the target fill character.

[0045] Specifically, the target field has multiple target fill characters. Based on this, the fill characters of other fields are arranged and combined to obtain multiple fill characters. Then, each target fill character is traversed and combined with each fill character to obtain multiple candidate instructions containing the target fill character, so as to subsequently filter and obtain the unknown instruction.

[0046] It should be noted that the target fields are the opcode field and the fixed value field, and their corresponding target padding characters are of various types. Other fields, namely the operand field and the condition field, are filled according to their corresponding character lengths and in a combination of binary characters to obtain padding characters for various operand fields and padding characters for various condition fields. Based on this, each field is traversed and combined to obtain multiple candidate instructions.

[0047] In this embodiment, the target fill character for at least one target field is determined according to the disclosed instructions, and the fill characters for other fields are filled in a permutation and combination manner. The target field and other fields are traversed and combined to obtain multiple candidate instructions containing the target fill character. This avoids the situation where the number of candidate instructions becomes infinitely large due to the permutation and combination filling of the fill characters for the target field, which affects the mining efficiency. By determining the target fill character, the number of generated candidate instructions can be reduced, which is beneficial to improving mining efficiency.

[0048] In some embodiments, step S101: The opcode field, operand field, condition field, and fixed value field are filled with characters to obtain multiple candidate instructions, including: Step S301: Among the opcode field, operand field, condition field, and fixed value field, determine at least one target field and the target fill character corresponding to the target field.

[0049] Specifically, the preset public instruction database includes various types of public instructions. The opcode field is related to the major category of instructions, and the fixed value field is related to the minor category of instructions. Each type of instruction corresponds to multiple opcode fields, that is, multiple fill characters for opcode fields. On this basis, each opcode field corresponds to multiple fixed value fields, that is, multiple fill characters for fixed value fields.

[0050] The known opcode fields in the preset public instruction database are traversed to determine the opcode field as the target field and its corresponding fill character as the target fill character. Based on this, the fixed value field corresponding to each opcode field in the preset public instruction database is determined as another target field and its corresponding fill character as the target fill character, so as to realize the determination of at least one target field and the target fill character corresponding to the target field.

[0051] It should be noted that the target field and its corresponding target padding character are related to the type of the public instruction, such as the opcode field or the fixed value field. Determining the target padding character of the target field according to the preset public instruction database can avoid all combinations of the target padding character of the target field, greatly reduce the number of generated candidate instructions, and help improve mining efficiency.

[0052] Step S302: Determine multiple candidate fill characters corresponding to other fields in the preset public instruction database, and for each candidate fill character, execute: fill the candidate fill character into its corresponding field to obtain multiple candidate instructions containing the target fill character.

[0053] Specifically, the fill characters of other fields besides the target field are determined in the preset public instruction database, and these are determined as candidate fill characters for their corresponding fields. Based on the determination of multiple target fill characters for the target field and multiple candidate fill characters for other fields, the fill characters of the corresponding fields are traversed to obtain multiple candidate instructions.

[0054] That is, the padding characters of the opcode field, operand field, condition field, and fixed value field are determined according to the padding characters of the corresponding fields in the preset public instruction data. Based on this, the padding characters of the opcode field, operand field, condition field, and fixed value field are traversed and arranged to obtain multiple candidate instructions.

[0055] In this embodiment, the padding characters for the opcode field, operand field, condition field, and fixed value field are determined by iterating and combining the padding characters for these fields in the public instructions in the preset public instruction database. This avoids arranging and combining the padding characters for different fields, which helps reduce the number of candidate instructions and thus improves the efficiency of hidden instruction discovery. Furthermore, combining the padding characters for different fields in the public instructions to obtain the candidate instructions increases the executability of the candidate instructions, thereby increasing the probability of discovering the hidden instructions from the candidate instructions.

[0056] In some embodiments, step S201 or step S301: determining at least one target field and the target fill character corresponding to the target field among the opcode field, operand field, condition field, and fixed value field includes: Step S401: Determine the character length of the candidate instruction, wherein the character length includes 32 bits and 16 bits.

[0057] Specifically, DSP instructions can have different character lengths. Before generating the candidate instruction, the character length of the candidate instruction is determined to ensure that the character length of the generated candidate instruction meets the character length requirements of the DSP instruction.

[0058] In step S402, in response to determining that the character length of the candidate instruction is 32 bits, the target field is determined to be an opcode field and a fixed value field.

[0059] Specifically, when the character length of the candidate instruction is determined to be 32 bits, that is, when the opcode field, operand field, condition field, and fixed value field are all determined to have padding characters, and the opcode field and fixed value field are related to the instruction type, the target field is determined to be the opcode field and the fixed value field, so as to determine the target padding character of the target field according to the combination of the opcode field and the fixed value field in the preset public instruction database.

[0060] It should be noted that when determining the target fill character of the target field based on the combination of the opcode field and the fixed value field in the preset public instruction database, only the opcode field and the fixed value field of the 32-bit instruction in the preset public instruction database are determined to ensure that the character length of the candidate instruction is 32 bits.

[0061] Step S403: In response to determining that the character length of the candidate instruction is 16 bits, the target field is determined to be an opcode field.

[0062] Specifically, when the character length of the candidate instruction is determined to be 16 bits, that is, when the opcode field, operand field, and condition field are determined to have padding characters, and the fixed value field has no padding characters, the opcode field related to the instruction type is determined as the target field, so as to determine the target padding character of the target field according to the opcode field in the preset public instruction database.

[0063] It should be noted that when determining the target fill character of the target field based on the opcode field of the preset public instruction database, only the 16-bit opcode field of the instruction in the preset public instruction database is determined to ensure that the character length of the candidate instruction is 16 bits.

[0064] Step S404: Determine multiple candidate fill characters corresponding to the target field in a preset public instruction database, and for each candidate fill character, fill the target field with the candidate fill character as the target fill character.

[0065] Specifically, after determining the target field, multiple public instructions in the preset public instruction database that match the character length of the candidate instructions are determined, and the fill character of the target field in the multiple public instructions is determined. The fill character is used as a candidate fill character, and the candidate fill character is used as the target fill character to fill the target field in sequence. Then, the other fields except the target field are filled with characters to obtain multiple candidate instructions.

[0066] In this embodiment, the target field is determined differently when the character length of the candidate instruction is 16 bits and 32 bits, in order to adapt to instructions with different character lengths. This makes the generated candidate instruction conform to its corresponding character length, which helps to improve the reliability of the candidate instruction and thus improves the efficiency of mining hidden instructions.

[0067] In some embodiments, step S102: determining candidate instructions not existing in a preset public instruction database as unknown instructions includes: Step S501: Compare the candidate instruction with the preset public instruction database.

[0068] Specifically, after obtaining multiple candidate instructions, the candidate instructions are compared with the preset public instruction database in turn to determine whether the candidate instructions overlap with the public instructions in the preset public instruction database, that is, whether the candidate instructions exist in the preset public instruction database.

[0069] Step S502: In response to determining that the candidate instruction does not exist in the preset public instruction database, the candidate instruction is determined to be an unknown instruction.

[0070] Specifically, when it is determined that a candidate instruction does not exist in the preset public instruction database, that is, when it is determined that the candidate instruction is not a public instruction, it is necessary to determine whether the candidate instruction is a hidden instruction. Therefore, the candidate instruction is determined as the unknown instruction in order to determine the hidden instruction.

[0071] In step S503, in response to determining that the candidate instruction exists in the preset public instruction database, the candidate instruction is ignored.

[0072] Specifically, when it is determined that a candidate instruction exists in the preset public instruction database, it is determined that the candidate instruction is a public instruction. There is no need to determine whether the candidate instruction is a hidden instruction. Therefore, the candidate instruction is ignored so that no instruction judgment is performed on the candidate instruction.

[0073] It should be noted that when a candidate instruction is determined to be a public instruction, it can also be deleted to prevent it from being mixed into the unknown instructions and affecting the efficiency of hidden instruction discovery.

[0074] In addition, when it is determined that the candidate instruction does not exist in the preset public instruction database, an unknown tag can be set for the candidate instruction to determine that the candidate instruction is an unknown instruction. When it is determined that the candidate instruction exists in the preset public instruction database, a public tag can be set for the candidate instruction to determine that the candidate instruction is a public instruction. Thus, when performing hidden instruction judgment, only candidate instructions with unknown tags need to be judged.

[0075] In this embodiment, the candidate instruction is compared with multiple public instructions in the preset public instruction database to determine whether the candidate instruction exists in the preset public instruction database. If a candidate instruction does not exist in the preset public instruction database, the candidate instruction is identified as an unknown instruction. If a candidate instruction exists in the preset public instruction database, the candidate instruction is ignored. This allows the unknown instruction to be obtained from multiple candidate instructions, so that the hidden instruction can be mined from the unknown instruction in the subsequent process, which helps to improve the mining efficiency.

[0076] In some embodiments, after step S102: determining candidate instructions not existing in the preset public instruction database as unknown instructions, the method further includes: Step S601: Combine the multiple unknown instructions to form an unknown instruction set.

[0077] Specifically, after filtering multiple candidate instructions to obtain multiple unknown instructions, the host computer forms an unknown instruction set from these multiple unknown instructions and sends the unknown instruction set to the slave computer. This avoids the situation where an unknown instruction is determined and sent to the slave computer, which would lead to transmission chaos and improves the interaction efficiency between the host computer and the slave computer.

[0078] Step S602: The set of unknown instructions is sent to the lower-level machine so that the lower-level machine executes each unknown instruction in the set of unknown instructions in sequence, and after each unknown instruction in the set of unknown instructions has been executed, an unknown instruction execution result package is formed and sent to the upper-level machine.

[0079] Specifically, the host computer sends the set of unknown instructions to the slave computer. After receiving the set of unknown instructions, the slave computer executes each unknown instruction in the set in sequence to determine whether the unknown instruction can be successfully executed. If it is successfully executed, the unknown instruction is determined to be a hidden instruction; if it is not successfully executed, the unknown instruction is determined to be an illegal instruction. After the slave computer has executed all the unknown instructions in the set, it sends the execution result of each unknown instruction into an unknown instruction execution result packet to the host computer.

[0080] It should be noted that after receiving the unknown instruction execution result packet sent by the host computer, the host computer updates the hidden instructions in the unknown instruction execution result packet to the preset public instruction database, so as to realize the timely update of the preset public instruction database, so as to avoid the situation of repeatedly mining the same instruction when executing the next hidden instruction mining task, which is conducive to improving the efficiency of hidden instruction mining.

[0081] In this embodiment, after filtering multiple candidate instructions to obtain multiple unknown instructions, the multiple unknown instructions are combined to form an unknown instruction set, and then the unknown instruction set is sent to the lower-level machine for execution to determine whether the unknown instruction is a hidden instruction. After the lower-level machine completes the execution of multiple unknown instructions in the unknown instruction set, it combines the execution results of each unknown instruction to form an unknown instruction execution result package and sends it to the upper-level machine. This realizes the transmission of unknown instructions and unknown instruction execution results in a set or combined form between the upper-level machine and the lower-level machine, avoiding data loss due to individual transmission and improving the accuracy of data transmission.

[0082] Based on the same inventive concept, this application also provides a method for uncovering hidden instructions, applied to a lower-level machine, the method comprising: Step S701: In response to receiving an unknown instruction sent by the host computer, the unknown instruction is executed.

[0083] Specifically, after receiving the unknown instruction, the lower-level machine executes the unknown instruction to determine whether the unknown instruction can be successfully executed, so as to determine whether the unknown instruction is a hidden instruction.

[0084] Step S702: In response to determining that the unknown instruction has been successfully executed, the unknown instruction is sent to the host computer as a hidden instruction.

[0085] Specifically, after the lower-level machine determines that the unknown instruction has been successfully executed, it determines that the unknown instruction is a hidden instruction and marks the unknown instruction as a hidden instruction and sends it to the upper-level machine, so that the upper-level machine stores the hidden instruction in the preset public instruction database, thereby realizing timely updates to the preset public instruction database.

[0086] In this embodiment, after receiving the unknown instruction sent by the host computer, the lower-level machine executes the unknown instruction, and after confirming that the unknown instruction has been successfully executed, it sends the unknown instruction as the hidden instruction to the host computer, so that the host computer updates the hidden instruction to the preset public instruction database, avoiding repeated mining of the hidden instruction in the next mining, which helps to improve the practicality of the method.

[0087] In some embodiments, the method further includes: Step S801: In response to determining that the unknown instruction was not successfully executed, the unknown instruction is sent to the host computer as an illegal instruction.

[0088] Specifically, after determining that the unknown instruction has not been successfully executed, the lower-level machine determines that the unknown instruction is an illegal instruction and marks it as an illegal instruction, sending it to the upper-level machine so that the upper-level machine updates the illegal instruction to the preset public instruction database, thereby realizing timely updates to the preset public instruction database so that the instruction can be repeatedly executed in the next mining, which helps to improve the mining efficiency of the method.

[0089] In some embodiments, the method further includes: Step S901: In response to receiving the set of unknown instructions sent by the host computer, each unknown instruction in the set of unknown instructions is executed sequentially, and the execution result of each unknown instruction is obtained.

[0090] Specifically, after receiving the set of unknown instructions sent by the host computer, the lower-level machine executes each unknown instruction in sequence according to the order of the unknown instructions stored in the set, and then obtains the execution result of each unknown instruction.

[0091] Step S902: Store the execution result in an unknown instruction execution result package and send the unknown instruction execution result package to the host computer.

[0092] Specifically, after executing all unknown instructions in the unknown instruction set, the lower-level machine stores the execution results of all unknown instructions to form an unknown instruction execution result package, and sends it to the upper-level machine. This allows the upper-level machine to update the preset public instruction database based on the data in the unknown instruction execution result package, avoiding repeated execution of the unknown instruction when mining the hidden instruction next time. This achieves closed-loop processing of the method and improves its practicality.

[0093] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0094] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0095] Based on the same inventive concept, corresponding to any of the above-described embodiments, this application also provides a hidden instruction mining system.

[0096] refer to Figure 2 The hidden instruction mining system includes a host computer 100 and a slave computer 200 connected to each other; The host computer 100 is configured to fill the opcode field, operand field, condition field, and fixed value field with characters to obtain multiple candidate instructions; determine the candidate instructions that do not exist in the preset public instruction database as unknown instructions; send the unknown instructions to the lower computer so that the lower computer executes the unknown instructions, and if the execution is successful, send the unknown instructions as hidden instructions to the host computer. The lower-level machine 200 is configured to execute the unknown instruction in response to receiving an unknown instruction sent by the upper-level machine; and to send the unknown instruction as a hidden instruction to the upper-level machine in response to determining that the unknown instruction has been successfully executed.

[0097] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0098] The apparatus described above is used to implement the corresponding hidden instruction mining method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0099] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the hidden instruction mining method described in any of the above embodiments.

[0100] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the hidden instruction mining method as described in any of the above embodiments.

[0101] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0102] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the hidden instruction mining method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0103] Based on the same concept, corresponding to any of the above embodiments, this application also provides a computer program product, including computer program instructions, which, when run on a computer, cause the computer to perform the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0104] It is understood that before using the technical solutions of the various embodiments in this disclosure, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.

[0105] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations of this disclosed technical solution.

[0106] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0107] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0108] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application is limited to these examples; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in detail for the sake of brevity.

[0109] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0110] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0111] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the claims of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for uncovering hidden instructions, characterized in that, Applied to a host computer, wherein the host computer is connected to a slave computer, the instruction includes an opcode field, an operand field, a condition field, and a fixed value field, and the method includes: The opcode field, operand field, condition field, and fixed value field are filled with characters to obtain multiple candidate instructions; Candidate instructions that do not exist in the preset public instruction database are identified as unknown instructions; The unknown instruction is sent to the lower-level machine so that the lower-level machine executes the unknown instruction, and if it is successfully executed, the unknown instruction is sent to the upper-level machine as a hidden instruction.

2. The method according to claim 1, characterized in that, Each field corresponds to a character length. The opcode field, operand field, condition field, and fixed value field are padded with characters to obtain multiple candidate instructions, including: Among the opcode field, operand field, condition field, and fixed value field, at least one target field and the target padding character corresponding to the target field are determined; For each of the other fields, the characters are arranged and combined to fill the space, constrained by their corresponding character length, to obtain multiple candidate instructions containing the target fill character.

3. The method according to claim 1, characterized in that, The opcode field, operand field, condition field, and fixed value field are filled with characters to obtain multiple candidate instructions, including: Among the opcode field, operand field, condition field, and fixed value field, at least one target field and the target padding character corresponding to the target field are determined; In a pre-defined public instruction database, multiple candidate fill characters corresponding to other fields are determined. For each candidate fill character, the following is executed: fill the candidate fill character into its corresponding field to obtain multiple candidate instructions containing the target fill character.

4. The method according to claim 2 or 3, characterized in that, The step of determining at least one target field and the target fill character corresponding to that target field from the opcode field, operand field, condition field, and fixed value field includes: Determine the character length of the candidate instruction, wherein the character length includes 32 bits and 16 bits; In response to determining that the character length of the candidate instruction is 32 bits, the target field is determined to be an opcode field and a fixed value field; In response to determining that the character length of the candidate instruction is 16 bits, the target field is determined to be an opcode field; In a pre-defined public instruction database, multiple candidate fill characters corresponding to the target field are determined. For each candidate fill character, the following is executed: fill the target field with the candidate fill character as the target fill character.

5. The method according to claim 1, characterized in that, The step of identifying candidate instructions that do not exist in the preset public instruction database as unknown instructions includes: The candidate instruction is compared with the preset public instruction database; In response to determining that the candidate instruction does not exist in the preset public instruction database, the candidate instruction is determined to be an unknown instruction; In response to determining that the candidate instruction exists in the preset public instruction database, the candidate instruction is ignored.

6. The method according to claim 1, characterized in that, After determining candidate instructions that do not exist in the preset public instruction database as unknown instructions, the method further includes: Multiple unknown instructions are combined to form an unknown instruction set; The set of unknown instructions is sent to the lower-level machine, so that the lower-level machine executes each unknown instruction in the set of unknown instructions in sequence, and after each unknown instruction in the set of unknown instructions has been executed, an unknown instruction execution result package is formed and sent to the upper-level machine.

7. A method for uncovering hidden instructions, characterized in that, Applied to a lower-level machine, the method includes: In response to receiving an unknown instruction from the host computer, the unknown instruction is executed; In response to the determination that the unknown instruction has been successfully executed, the unknown instruction is sent to the host computer as a hidden instruction.

8. The method according to claim 7, characterized in that, Also includes: In response to the determination that the unknown instruction was not successfully executed, the unknown instruction is sent to the host computer as an illegal instruction.

9. The method according to claim 7, characterized in that, Also includes: In response to receiving a set of unknown instructions sent by the host computer, each unknown instruction in the set of unknown instructions is executed sequentially, and the execution result of each unknown instruction is obtained. The execution result is stored in an unknown instruction execution result package, and the unknown instruction execution result package is sent to the host computer.

10. A hidden instruction discovery system, characterized in that, This includes the connected host computer and slave computer; The host computer is configured to fill the opcode field, operand field, condition field, and fixed value field with characters to obtain multiple candidate instructions; determine the candidate instructions that do not exist in the preset public instruction database as unknown instructions; send the unknown instructions to the slave computer so that the slave computer executes the unknown instructions, and if the execution is successful, send the unknown instructions as hidden instructions to the host computer. The lower-level machine is configured to execute the unknown instruction in response to receiving an unknown instruction from the upper-level machine; and to send the unknown instruction as a hidden instruction to the upper-level machine in response to determining that the unknown instruction has been successfully executed.

11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 9.

12. A computer program product comprising computer program instructions, characterized in that, When the computer program instructions are executed on a computer, the computer causes the computer to perform the method as described in any one of claims 1 to 9.