The invention relates to the technical field of
database security, and discloses a
database field integrity protection method and
system based on dynamic Hash check.The method comprises the steps that a
database log file is monitored and analyzed based on a change data capturing method, data changes are captured in real time, and multi-level Hash chains are generated through layer-by-layer aggregation; and based on the generated multi-level
hash chain, positioning key data tampering in combination with multi-database
adaptation and a dynamic
verification strategy mechanism, and triggering an alarm. According to the method, database log files are monitored and analyzed by adopting a change data capturing technology, the change of each piece of data is captured in real time, the dynamic
hash chain is generated by layer-by-layer aggregation, and accurate positioning of key data tampering is realized by combining a multi-database
adaptation layer and a dynamic
verification strategy mechanism. When the data is written in, the hash value is stored in the independent check table, if the field in the strategy is tampered, an alarm is triggered, if the field is not configured, check is skipped, and the safety and the
performance efficiency are both considered.