Database active defense device and method

The FPGA chip is used to implement active defense in the database, using hashes and digital signatures to determine the legality of access and send fake data. This solves the problems of existing database security performance loss and insufficient security, and achieves efficient illegal intrusion prevention and data protection. .

CN118395520BActive Publication Date: 2024-08-30SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410822553.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-30
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing database security methods have problems such as performance loss, high key management costs, and insufficient security, making it difficult to effectively defend against illegal access.

Method used

Design a database active defense device based on FPGA. It is connected to the database server through the PCIe interface. It uses the FPGA chip to perform IP address hashing and digital signature decoding to determine the legality of the access. When illegal access is identified, pseudo data is sent to record the illegal access. Logs to protect core data.

Benefits of technology

It significantly improves the success rate of database defense against illegal intrusions, reduces performance losses and costs, provides efficient and reliable data privacy protection, and supports attack behavior tracking and traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395520B
    Figure CN118395520B
Patent Text Reader

Abstract

The present invention relates to the field of database design, and specifically provides a database active defense device and method, including a database server, wherein the database server is connected to the database active defense device through a PCIe interface and is connected to a database user terminal to complete user demand analysis and data reading and processing. Compared with the prior art, the present invention introduces the active defense concept for the first time, and can enhance the security protection capability of the actual system through technical and management means.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of database design, and specifically provides a database active defense device and method. Background Art

[0002] With the continuous advancement of the field of artificial intelligence and the information society, the types and installed capacity of databases in various industries have also increased dramatically, and the data security issues faced by large-scale database loading have become increasingly prominent. Illegal visitors use a series of malicious means to cause information leakage and other problems.

[0003] At present, most database users install firewalls and set server security keys to prevent data from being illegally accessed. However, installing security software such as database firewalls will cause additional loss of database server memory and additional CPU computing power overhead, which will affect database performance.

[0004] Secure key memory is a conventional database encryption method with low security, poor authentication, complex key distribution and management, and high cost.

[0005] The existing database security methods bring huge hidden dangers to the user server database data security system, which indirectly affects the user's database application experience. Therefore, how to actively defend the database based on FPGA has become an issue that researchers in related fields urgently need to explore in depth. Summary of the invention

[0006] The present invention aims at solving the above-mentioned deficiencies of the prior art and provides a database active defense device with strong practicality.

[0007] A further technical task of the present invention is to provide a database active defense method that is reasonably designed, safe and applicable.

[0008] The technical solution adopted by the present invention to solve its technical problem is:

[0009] A database active defense device, comprising a database server, wherein the database server is connected to the database active defense device through a PCIe interface and is connected to a database user terminal to complete user demand analysis and data reading and processing;

[0010] The database active defense device includes an FPGA chip, and the FPGA chip is connected to DDR4, SD card 1, SD card 2, PCIe interface, JTAG interface, reset button, clock crystal oscillator, network port and wireless network receiving port;

[0011] The database active defense device receives a database access request initiated by a user or an illegal visitor, determines whether the requester is a legitimate visitor, makes corresponding processing according to the judgment result, and stores the illegal access log to the onboard SD card in time;

[0012] The database active defense device is connected to the Internet through a network cable and a wireless transceiver, and is connected to the server's CPU through a PCIe transmission interface to achieve data exchange.

[0013] A database active defense method, before executing the database active defense, insert an SD card 1 storing a user preset permission operation code data reference table and an SD card 2 for storing illegal access logs, and the database active defense device can start working;

[0014] The steps are as follows:

[0015] S1. A user or illegal visitor initiates a database access request, and the FPGA-based database active defense device receives the database access request via the Internet;

[0016] S2, FPGA extracts the database read request and splits the requester's IP address and the corresponding request instruction data;

[0017] S3, FPGA performs hash processing on the requester's IP address and the corresponding request instruction data digital signature data decoding, compares the decoding result with the permission operation code preset by the SD card user, and determines whether the current access is an illegal access;

[0018] S4. If the current access is illegal, the FPGA of the active defense device reads the pseudo data pre-stored by the user in DDR4, adjusts the format according to the illegal access requirement, and directly sends it to the illegal access terminal through the Internet;

[0019] S5. Then, FPGA stores the currently stored illegal access log to the SD card, so that subsequent users can track and capture the illegal visitor's behavior, trace the source of the illegal access path, and evaluate it.

[0020] S6. If the current access is a legitimate access by an authorized user, the FPGA of the active defense device issues a database read license for the current read request, and packages the read request and the license to the database server through the PCIe interface;

[0021] S7. After receiving the read license, the database server CPU completes the reading of the target data and the corresponding processing operations, and sends it to the legitimate user access terminal via the Internet.

[0022] Furthermore, the FPGA-based database active defense device includes an input request extraction module. When a database access request is generated, the input request extraction module extracts the IP address field of the request end and the instruction digital signature field of the request, and sends them to the access request IP parsing module and the request instruction digital signature parsing module respectively;

[0023] The request IP parsing module parses the received IP address field, splits out the hash calculation interval and splices the relevant header fields, and sends the result to the CRC64_hash calculation module. The CRC64_hash calculation module performs CRC64 hash calculation on the input data, generates a 32-bit hash address, and sends it to the SD card memory reading module.

[0024] Further, the SD card memory reading module reads the data permission operation code reference table corresponding to the current request stored in the SD card 1 according to the address, and sends it to the illegal access arbitration state machine;

[0025] Subsequently, the re-hash module performs a secondary hash calculation on the input CRC64_hash calculation result, and finally generates a new 24-bit re-hash result.

[0026] Furthermore, the FPGA-based database active defense device also includes a request instruction digital signature parsing module, which parses the input instruction digital signature field, disassembles the preset field that needs to execute the MD5 algorithm, and splices it with specific header and footer data, and sends the result to the MD5 algorithm encryption and decoding module;

[0027] The MD5 algorithm encryption code decoding module performs a decoding operation based on the MD5 algorithm on the input data, obtains a 16-bit decoding result, and sends it to the data synchronization module.

[0028] Furthermore, the data synchronization module synchronously processes the calculation results of the two, and sends a total of 40 bits of data to the illegal access arbitration state machine. The illegal access arbitration state machine determines whether it is an illegal access through two standards, and the two standards are:

[0029] (1) Traverse the corresponding partition of the reference table to find out whether there is a hash result value of the requesting IP;

[0030] (2) If step (1) is true, traverse the corresponding partition of the reference table to find whether there is a request instruction digital signature plus a password decoding value;

[0031] If both the judgments in the above steps (1) and (2) are true, the current access is legal, and the illegal access arbitration state machine generates a database read license and packages the license and the access request and sends them to the database memory read module;

[0032] If one of the above two judgments (1) and (2) is false, the current access is illegal. The illegal access arbitration state machine controls the MIG IP to read the pseudo data of the corresponding storage partition of DDR4 according to the illegal request type and sends it to the pseudo data format correction module;

[0033] The illegal access arbitration state machine generates a database illegal access log and sends it to the SD card memory reading module, and stores the illegal access information in SD card 2.

[0034] Furthermore, when the access is legal, the database memory reading module will splice the reading instruction and the license issued by the illegal access arbitration state machine, and package them in a specific format, which will be sent by the PCIe sending module via the PCIe interface to the database server that stores the core information of the database, and then the database terminal will complete the data query task required by the user.

[0035] Furthermore, when the access is illegal, the pseudo data format correction module packages the pseudo data read from DDR4 in a specific format according to the type of illegal user access request, sends it to the pseudo data output cache module, and after a short cache in the pseudo data output cache module, feeds it back to the illegal access request terminal via the Internet.

[0036] Furthermore, the illegal access arbitration state machine in the FPGA-based database active defense device includes 8 states:

[0037] 1) Readiness;

[0038] 2) Receive the currently read synchronous re-hashing result and the MD5 request instruction encrypted password parsing result status;

[0039] 3) Receive the data reference table status corresponding to the current request read by the SD card, traverse the corresponding partition of the reference table, and find out whether there is a hash result value status of the requesting end IP;

[0040] 4) Traverse the corresponding partition of the reference table to find out whether there is a hash result value status of the requesting IP;

[0041] 5) Traverse the corresponding partition of the reference table to find out whether there is a request instruction digital signature plus password decoding value status;

[0042] 6) Read the pseudo data of the corresponding storage partition of DDR4 and send the result to the corresponding module status;

[0043] 7) Generate database illegal access logs and send the results to the corresponding module status;

[0044] 8) Generate a database read license and package the license and the read request and send them to the corresponding module status.

[0045] Compared with the prior art, the database active defense device and method of the present invention has the following outstanding beneficial effects:

[0046] The present invention introduces the concept of active defense for the first time in the field of database security. That is, after identifying illegal access, the defense device will actively send pseudo data with no practical application value to the illegal access terminal, causing the illegal visitor to mistakenly believe that the database access is successful, thereby indirectly protecting the core data of database users. This design can significantly improve the success rate of database defense against illegal intrusions and effectively protect the privacy of user data.

[0047] Secondly, the design adopts on-chip "modular design" to realize heterogeneous high-frequency defense core pipeline, which is simple and convenient to use, has fast defense speed, is adaptable to various types of mainstream databases at this stage and has low cost; in addition, the FPGA active defense device can be directly inserted into the PCIe card slot of the database server for use, without the need to install additional security software on the database server terminal, with high reliability and strong adaptability.

[0048] Finally, the FPGA-based database active defense device supports tracking the attacker's behavior through illegal access logs, capturing the attacker and tracing the attack path. By evaluating the attacker's attack behavior, it can obtain clues on how to make the database more secure. Users can then enhance the security protection capabilities of the actual system through technical and management means. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0050] Attached Figure 1 It is a flowchart of a database active defense method;

[0051] Attached Figure 2 It is a schematic diagram of FPGA module design in a database active defense method;

[0052] Attached Figure 3 It is a schematic diagram of the state transition design of the arbitration state machine for illegal access in the active defense method of the database;

[0053] Attached Figure 4 It is a schematic diagram of the principle framework of a database active defense method;

[0054] Attached Figure 5 The present invention is a structural diagram of a database active defense device. DETAILED DESCRIPTION

[0055] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] A best embodiment is given below:

[0057] like Figure 5 As shown, a database active defense device in this embodiment includes a database server, which is connected to the database active defense device through a PCIe interface and connected to a database user terminal to complete user demand analysis and data reading and processing;

[0058] The database active defense device includes an FPGA chip, and the FPGA chip is connected to DDR4, SD card 1, SD card 2, PCIe interface, JTAG interface, reset button, clock crystal oscillator, network port and wireless network receiving port;

[0059] The database active defense device receives database access requests initiated by users or illegal visitors, determines whether the requester is a legitimate visitor, takes corresponding measures based on the judgment result, and stores the illegal access log to the onboard SD card in a timely manner;

[0060] The database active defense device is connected to the Internet via a network cable and a wireless transceiver, and is connected to the server's CPU via a PCIe transmission interface to achieve data exchange.

[0061] like Figure 4 As shown in the figure, the visitor accesses the database through the Internet, and the active defense device identifies the access, that is, it determines the legitimacy of the current access through a series of complex FPGA on-chip algorithms; if it is judged as an illegal access, the illegal visitor is induced to read the pseudo data stored in the memory of the defense device, and the useless pseudo data is written back according to the visitor's needs to confuse the attacker.

[0062] At the same time, the active defense device records illegal access logs, through which database administrators can track the attacker's behavior, capture the attacker, and trace the attack path.

[0063] If it is judged to be a legitimate access, the active defense device will grant the relevant license for the database access and package the license and access requirements and send them to the database server. Only then can the visitor access the real storage information of the database.

[0064] like Figure 1As shown, a database active defense method in this embodiment has the following steps:

[0065] S1. A user or illegal visitor initiates a database access request, and the FPGA-based database active defense device receives the database access request via the Internet;

[0066] S2, FPGA extracts the database read request and splits the requester's IP address and the corresponding request instruction data;

[0067] S3, FPGA performs hash processing on the requester's IP address and the corresponding request instruction data digital signature data decoding, compares the decoding result with the permission operation code preset by the SD card user, and determines whether the current access is an illegal access;

[0068] S4. If the current access is illegal, the FPGA of the active defense device reads the pseudo data pre-stored by the user in DDR4, adjusts the format according to the illegal access requirement, and directly sends it to the illegal access terminal through the Internet;

[0069] S5. Then, FPGA stores the currently stored illegal access log to the SD card, so that subsequent users can track and capture the illegal visitor's behavior, trace the source of the illegal access path, and evaluate it.

[0070] S6. If the current access is a legitimate access by an authorized user, the FPGA of the active defense device issues a database read license for the current read request, and packages the read request and the license to the database server through the PCIe interface;

[0071] S7. After receiving the read license, the database server CPU completes the reading of the target data and the corresponding processing operations, and sends it to the legitimate user access terminal via the Internet.

[0072] Before executing database active defense, the user needs to insert the active defense device into the PCIe card slot of the database server, connect the command receiving network cable, and insert SD card 1 storing the user's preset permission operation code data reference table and SD card 2 for storing illegal access logs into the two SD card slots of the defense device respectively; the database active defense device can then start working.

[0073] The entire defense process involves complex operations such as instruction reading, instruction parsing, IP parsing, illegal access arbitration, pseudo data reading and sending, illegal access log generation, and database access license issuance, which are all implemented by FPGA-related modules, and a pipeline design is used between each module.

[0074] like Figure 2As shown, the FPGA-based database active defense device includes an input request extraction module, a request IP parsing module, a request instruction digital signature parsing module, a CRC64_hash calculation module, a re-hash module, an MD5 algorithm encryption and decoding module, a data synchronization module, an SD card memory reading module, an illegal access arbitration state machine, a database memory reading module, a pseudo data format correction module, a pseudo data output cache module, etc.

[0075] In addition, the PCIe sending module and the MIG IP required for DDR4 reading are also deployed on the FPGA chip.

[0076] Among them, when a database access request is generated, the input request extraction module extracts the IP address field of the requesting end and the instruction digital signature field of the request, and sends them to the access request IP parsing module and the request instruction digital signature parsing module respectively.

[0077] The IP parsing module is requested to parse the received IP address field, split the hash calculation interval and splice the relevant header fields, and send the result to the CRC64_hash calculation module. The CRC64_hash calculation module performs CRC64 hash calculation on the input data, generates a 32-bit hash address, and sends it to the SD card memory reading module.

[0078] Subsequently, the data permission operation code reference table corresponding to the current request stored in SD card 1 is read according to the address and sent to the illegal access arbitration state machine; subsequently, the re-hash module performs a secondary hash calculation on the input CRC64_hash calculation result, and finally generates a new 24-bit re-hash result.

[0079] The request instruction digital signature parsing module parses the input instruction digital signature field, disassembles the preset fields that need to execute the MD5 algorithm, and splices them with specific header and footer data, and sends the result to the MD5 algorithm encryption and decoding module; the MD5 algorithm encryption and decoding module performs a decoding operation based on the MD5 algorithm on the input data, obtains a 16-bit decoding result, and sends it to the data synchronization module.

[0080] Since the execution cycles required for the CRC64 re-hashing calculation and the MD5 algorithm decoding operation are different, the data synchronization module synchronously processes the calculation results of the two and sends a total of 40 bits of data to the illegal access arbitration state machine.

[0081] The illegal access arbitration state machine uses two criteria to determine whether it is an illegal access. The two criteria are:

[0082] (1) Traverse the corresponding partition of the reference table to find out whether there is a hash result value of the requesting IP;

[0083] (2) If step (1) is true, traverse the corresponding partition of the reference table to find whether there is a request instruction digital signature plus a password decoding value;

[0084] If both the judgments in the above steps (1) and (2) are true, the current access is legal, and the illegal access arbitration state machine generates a database read license and packages the license and the access request and sends them to the database memory read module;

[0085] If one of the above two judgments (1) and (2) is false, the current access is illegal. The illegal access arbitration state machine controls the MIG IP to read the pseudo data of the corresponding storage partition of DDR4 according to the illegal request type and sends it to the pseudo data format correction module;

[0086] The illegal access arbitration state machine generates a database illegal access log and sends it to the SD card memory reading module, and stores the illegal access information in SD card 2.

[0087] When the access is legal, the database memory reading module will splice the reading instruction and the license issued by the illegal access arbitration state machine, and package them in a specific format. The PCIe sending module will send them to the database server storing the core information of the database through the PCIe interface, and then the database terminal will complete the data query task required by the user;

[0088] When the access is illegal, the pseudo data format correction module packages the pseudo data read from DDR4 in a specific format according to the type of illegal user access request, sends it to the pseudo data output cache module, and after a short cache in the module, feeds it back to the illegal access request terminal through the Internet.

[0089] At this point, a single database active defense operation is completed.

[0090] like Figure 5 As shown, the illegal access arbitration state machine in the FPGA-based database active defense device contains a total of 8 states:

[0091] 1) Readiness;

[0092] 2) Receive the currently read synchronous re-hashing result and the MD5 request instruction encrypted password parsing result status;

[0093] 3) Receive the data reference table status corresponding to the current request read by the SD card, traverse the corresponding partition of the reference table, and find out whether there is a hash result value status of the requesting end IP;

[0094] 4) Traverse the corresponding partition of the reference table to find out whether there is a hash result value status of the requesting IP;

[0095] 5) Traverse the corresponding partition of the reference table to find out whether there is a request instruction digital signature plus password decoding value status;

[0096] 6) Read the pseudo data of the corresponding storage partition of DDR4 and send the result to the corresponding module status;

[0097] 7) Generate database illegal access logs and send the results to the corresponding module status;

[0098] 8) Generate a database read license and package the license and the read request and send them to the corresponding module status.

[0099] The above-mentioned specific implementation modes are only specific cases of the present invention. The patent protection scope of the present invention includes but is not limited to the above-mentioned specific implementation modes. Any technical solution that complies with the claims of the present invention and any appropriate changes or substitutions made thereto by any ordinary technician in the relevant technical field shall fall within the patent protection scope of the present invention.

[0100] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A database active defense device, characterized in that: It includes a database server, which is connected to the database active defense device through a PCIe interface and is connected to the database user terminal to complete user demand analysis and data reading and processing; The database active defense device includes an FPGA chip, and the FPGA chip is connected to DDR4, SD card 1, SD card 2, PCIe interface, JTAG interface, reset button, clock crystal oscillator, network port and wireless network receiving port; The database active defense device receives a database access request initiated by a user or an illegal visitor, determines whether the requester is a legitimate visitor, makes corresponding processing according to the judgment result, and stores the illegal access log to the onboard SD card in time; The database active defense device is connected to the Internet through a network cable and a wireless transceiver, and is connected to the server's CPU through a PCIe transmission interface to achieve data exchange; Its active defense methods are: Before executing database active defense, insert SD card 1 storing the user preset permission operation code data reference table and SD card 2 for storing illegal access logs, and the database active defense device can start working; The steps are as follows: S1. A user or illegal visitor initiates a database access request, and the FPGA-based database active defense device receives the database access request via the Internet; S2, FPGA extracts the database read request and splits the requester's IP address and the corresponding request instruction data; S3, FPGA performs hash processing on the requester's IP address and the corresponding request instruction data digital signature data decoding, compares the decoding result with the permission operation code preset by the SD card user, and determines whether the current access is an illegal access; S4. If the current access is illegal, the FPGA of the active defense device reads the pseudo data pre-stored by the user in DDR4, adjusts the format according to the illegal access requirement, and directly sends it to the illegal access terminal through the Internet; S5. Then, FPGA stores the currently stored illegal access log to the SD card, so that subsequent users can track and capture the illegal visitor's behavior, trace the source of the illegal access path, and evaluate it. S6. If the current access is a legitimate access by an authorized user, the FPGA of the active defense device issues a database read license for the current read request, and packages the read request and the license to the database server through the PCIe interface; S7. After receiving the read license, the database server CPU completes the reading of the target data and the corresponding processing operations, and sends it to the legitimate user access terminal via the Internet.

2. A database active defense method, characterized in that: Before executing database active defense, insert SD card 1 storing the user preset permission operation code data reference table and SD card 2 for storing illegal access logs, and the database active defense device can start working; The steps are as follows: S1. A user or illegal visitor initiates a database access request, and the FPGA-based database active defense device receives the database access request via the Internet; S2, FPGA extracts the database read request and splits the requester's IP address and the corresponding request instruction data; S3, FPGA performs hash processing on the requester's IP address and the corresponding request instruction data digital signature data decoding, compares the decoding result with the permission operation code preset by the SD card user, and determines whether the current access is an illegal access; S4. If the current access is illegal, the FPGA of the active defense device reads the pseudo data pre-stored by the user in DDR4, adjusts the format according to the illegal access requirement, and directly sends it to the illegal access terminal through the Internet; S5. Then, FPGA stores the currently stored illegal access log to the SD card, so that subsequent users can track and capture the illegal visitor's behavior, trace the source of the illegal access path, and evaluate it. S6. If the current access is a legitimate access by an authorized user, the FPGA of the active defense device issues a database read license for the current read request, and packages the read request and the license to the database server through the PCIe interface; S7. After receiving the read license, the database server CPU completes the reading of the target data and the corresponding processing operations, and sends it to the legitimate user access terminal via the Internet.

3. A database active defense method according to claim 2, characterized in that: The FPGA-based database active defense device includes an input request extraction module. When a database access request is generated, the input request extraction module extracts the IP address field of the request end and the instruction digital signature field of the request, and sends them to the access request IP parsing module and the request instruction digital signature parsing module respectively; The request IP parsing module parses the received IP address field, splits out the hash calculation interval and splices the relevant header fields, and sends the result to the CRC64_hash calculation module. The CRC64_hash calculation module performs CRC64 hash calculation on the input data, generates a 32-bit hash address, and sends it to the SD card memory reading module.

4. A database active defense method according to claim 3, characterized in that: The SD card memory reading module reads the data permission operation code reference table corresponding to the current request stored in the SD card 1 according to the address, and sends it to the illegal access arbitration state machine; Subsequently, the re-hash module performs a secondary hash calculation on the input CRC64_hash calculation result, and finally generates a new 24-bit re-hash result.

5. A database active defense method according to claim 4, characterized in that: The FPGA-based database active defense device also includes a request instruction digital signature parsing module, which parses the input instruction digital signature field, disassembles the preset field that needs to execute the MD5 algorithm, and splices it with specific header and footer data, and sends the result to the MD5 algorithm encryption and decoding module; The MD5 algorithm encryption code decoding module performs a decoding operation based on the MD5 algorithm on the input data, obtains a 16-bit decoding result, and sends it to the data synchronization module.

6. A database active defense method according to claim 5, characterized in that: The data synchronization module synchronously processes the calculation results of the two, and sends a total of 40 bits of data to the illegal access arbitration state machine. The illegal access arbitration state machine determines whether it is an illegal access based on two standards. The two standards are: (1) Traverse the corresponding partition of the reference table to find out whether there is a hash result value of the requesting IP; (2) If step (1) is true, traverse the corresponding partition of the reference table to find whether there is a request instruction digital signature plus a password decoding value; If both the judgments in the above steps (1) and (2) are true, the current access is legal, and the illegal access arbitration state machine generates a database read license and packages the license and the access request and sends them to the database memory read module; If one of the above two judgments (1) and (2) is false, the current access is illegal. The illegal access arbitration state machine controls the MIG IP to read the pseudo data of the corresponding storage partition of DDR4 according to the illegal request type and sends it to the pseudo data format correction module; The illegal access arbitration state machine generates a database illegal access log and sends it to the SD card memory reading module, and stores the illegal access information in SD card 2.

7. A database active defense method according to claim 6, characterized in that: When the access is legal, the database memory reading module will splice the reading instruction and the license issued by the illegal access arbitration state machine, and package them in a specific format. The PCIe sending module sends them via the PCIe interface to the database server that stores the core information of the database, and then the database terminal completes the data query task required by the user.

8. A database active defense method according to claim 7, characterized in that: When the access is illegal, the pseudo data format correction module packages the pseudo data read from DDR4 in a specific format according to the type of illegal user access request, sends it to the pseudo data output cache module, and after a short cache in the pseudo data output cache module, feeds it back to the illegal access request terminal through the Internet.

9. A database active defense method according to claim 8, characterized in that: The illegal access arbitration state machine in the FPGA-based database active defense device contains a total of 8 states: 1) Readiness state; 2) Receive the currently read synchronous re-hashing result and the MD5 request instruction encrypted password parsing result status; 3) Receive the data reference table status corresponding to the current request read by the SD card, traverse the corresponding partition of the reference table, and find out whether there is a hash result value status of the requesting end IP; 4) Traverse the corresponding partition of the reference table to find out whether there is a hash result value status of the requesting IP; 5) Traverse the corresponding partition of the reference table to find out whether there is a request instruction digital signature plus password decoding value status; 6) Read the pseudo data of the corresponding storage partition of DDR4 and send the result to the corresponding module status; 7) Generate database illegal access logs and send the results to the corresponding module status; 8) Generate a database read license and package the license and the read request and send them to the corresponding module status.

Citation Information

Patent Citations

  • Host security protection physical card based on FPGA and data processing method thereof

    CN108183901A