BINARY CODE SIMILARITY DETECTION DEVICE AND METHOD

    公开(公告)号:US20240311145A1

    公开(公告)日:2024-09-19

    申请号:US18596194

    申请日:2024-03-05

    IPC分类号: G06F8/75

    CPC分类号: G06F8/751

    摘要: A binary code similarity detection device performs a preprocessing operation of generating an assembly expression for the binary code by converting a machine language of an input binary code into an assembly language, extracting an assembly function or a command from the binary code converted to the assembly language, and detects a similarity to the assembly expression of a pre-stored binary code by inputting the assembly expression generated by the preprocessing operation to a trained model based on bidirectional encoder representations from transformers (BERT), and the trained model is generated by performing a pre-training step of causing the assembly expression to be understood and a fine-tuning step of inputting an assembly expression of a first binary code and an assembly expression of a second binary code to a pre-trained model and then fine-tuning the pre-trained model based on a similarity between the first binary code and the second binary code.

    WATERMARKING METHOD FOR SMART CONTRACT
    2.
    发明公开

    公开(公告)号:US20240095316A1

    公开(公告)日:2024-03-21

    申请号:US18368734

    申请日:2023-09-15

    IPC分类号: G06F21/16 G06F8/41 G06F21/12

    摘要: A watermarking method for smart contract according to an embodiment of the present disclosure comprises compiling a source code of a smart contract to create a contract creation bytecode and a runtime bytecode; generating a control flow graph including a plurality of byte regions based on the runtime bytecode; setting opcode groups by grouping consecutive opcodes in an opcode list in the plurality of byte regions of the generated control flow graph so that a sum of gas costs for the consecutive opcodes is greater than or equal to a preset gas cost value; extracting a watermarkable byte region based on the set opcode groups; determining watermarking bytes, in which a watermark is to be embed in the watermarkable byte region, to embed the watermark and storing location information of the determined watermarking bytes; hashing fingerprint information including information on the watermark and the location information of the watermarking bytes to create a fingerprint; and embedding the created fingerprint in the contract creation bytecode to deploy the smart contract. Hence, the watermark can be embedded without an additional executable code and a gas fee in a smart contract program.