The invention discloses a
file transmission method and
system for sensitive information identification and automatic blocking. The method comprises the steps that a
network data packet in the
file transmission process is captured, file content is analyzed, and related
metadata is extracted; performing multi-level sensitive information detection on the extracted related
metadata by fusing keyword matching,
regular expression matching and semantic analysis methods; based on a multi-level sensitive information detection result, combining sensitive information severity, weight, file importance and
information density to construct a weighted
risk assessment model, calculating a risk value and dividing risk levels; when the
risk level is judged to be high risk,
file transmission connection is automatically interrupted, local cache data is cleared, and a complete audit log is recorded. According to the sensitive information identification method and device, through combination of various identification technologies such as keyword matching,
regular expression matching and semantic analysis, the accuracy of sensitive information identification is greatly improved, sensitive information in various forms can be effectively identified, and the situations of
misinformation and missing report are reduced.