The invention discloses an unknown sample-oriented semantic-driven encrypted
ransomware detection method and
system, and relates to the field of
computer security. The method comprises the steps that original
log data streams are collected,
noise is removed through self-adaptive sampling and triple filtering, and effective candidate events are converted into a semantic structured event set containing standardized
natural language description through a retrieval enhancement generation mechanism; performing multi-stage
time sequence sorting on the semantic structured events, identifying high-density behavior stages, clustering to generate event clusters, generating macroscopic and microscopic language paragraphs based on event cluster information, and classifying and segmenting event operation information to obtain an inter-segment
time alignment relationship; and based on the
paragraph and the alignment relationship, carrying out maliciousness test on the behavior chain by adopting four gating
verification mechanisms, carrying out quantitative evaluation through a weighted confidence model, and outputting a detection result. According to the method, semantic comprehension and multi-dimensional behavior analysis are deeply fused, and the detection precision,
interpretability and
system generalization ability of unknown
ransomware variants and zero-day attacks are effectively improved.