A protection system for a big data server
Patent Information
- Application Number
- CN202610983474.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-03
- Publication Date
- 2026-09-25
AI Technical Summary
[0004]为了克服现有技术的上述缺陷,本发明提供了一种大数据服务器的防护系统,解决了现有技术中缺乏缓存侧信道防御、隐蔽跨域泄露检测、多维接入认证及跨层面协同防护,难以应对复合攻击的问题
[0024]1、该发明通过安全标签生成单元为每个计算任务生成动态安全标签,调度器基于处理核心的安全评分(融合外部交互率、缓存占用率、历史任务标签分布)执行安全-效能联合调度,将高安全标签任务分配到安全评分高的核心,低安全标签任务分配到安全评分低的核心,从根本上避免了不同安全等级任务在同一核心上混跑。迁移与清理单元在任务完成或迁移后,根据任务安全标签等级执行分级缓存清理(包括地址转换缓存清空、各级缓存行无效化、全核心缓存清空及分支预测器重置),彻底阻断了残留敏感数据被后续任务通过侧信道窃取的路径。
Smart Images

Figure CN122817030A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of big data server security technology, and in particular relates to a protection system for big data servers. Background Technology
[0002] Big data servers typically employ multi-core CPU architectures to support high-concurrency data processing tasks. Current research on server security primarily focuses on the following aspects: first, data security technologies based on encryption and access control, such as full-disk encryption, database encryption, and mandatory access control; second, abnormal traffic analysis technologies based on intrusion detection, identifying malicious behavior through rule matching or machine learning models; and third, hardware-assisted trusted execution environments, such as Intel SGX and AMD SEV, isolating sensitive computing in secure enclaves. In the task scheduling domain, mainstream operating systems (such as Linux CFS) allocate CPU cores based on load balancing and fairness, without considering differences in security levels between tasks. Regarding cross-domain data transmission monitoring, existing solutions mostly employ static policies (such as IP whitelists and transmission size thresholds) or identity-based access control. In the user access authentication domain, common solutions include single or combined mechanisms such as passwords, multi-factor authentication, and IP whitelists. These technologies have each achieved certain results in their respective fields.
[0003] However, existing technologies have the following shortcomings: First, they lack effective defense against side-channel attacks on the internal cache of multi-core processors. When tasks of different security levels are indiscriminately assigned to the same core, attackers can exploit the shared cache to perform side-channel attacks such as Flush+Reload, which traditional task schedulers are unaware of and cannot achieve security-performance joint scheduling based on core security scores. Second, static preset rules are insufficient to detect covert cross-security domain data leaks. Attackers can use legitimate permissions to split sensitive data into small batches and gradually transfer them to lower security domains through multiple relay nodes. Traditional cross-domain monitoring cannot identify abnormal patterns such as tiered degradation transfers and high-frequency small-batch outgoing transmissions. Third, single-dimensional user authentication mechanisms (such as relying solely on passwords or IP whitelists) are easily bypassed by credential theft. Existing solutions lack multi-dimensional fusion analysis and dynamic threshold determination based on device fingerprints, traffic patterns, and behavioral habits. Fourth, tasks cannot dynamically migrate according to the core security status during operation, lack a tiered cache cleanup mechanism, and are difficult to continuously isolate high-security tasks. Fifth, the aforementioned protection measures are independent of each other, lacking a unified security label and global topology map as a collaborative foundation. This prevents the implementation of coordinated protection throughout the entire lifecycle of access, processing, and cross-domain operations. As a result, attackers can exploit blind spots in each stage to launch multi-layered, complex attacks (such as first stealing credentials, then redirecting to an insecure core, and finally leaking data step by step). Therefore, a big data server security system capable of achieving multi-dimensional collaborative protection is urgently needed. Summary of the Invention
[0004] To overcome the aforementioned deficiencies in existing technologies, this invention provides a protection system for big data servers, which solves the problems of existing technologies lacking cache side-channel defense, covert cross-domain leakage detection, multi-dimensional access authentication, and cross-layer collaborative protection, making it difficult to cope with complex attacks.
[0005] To achieve the above objectives, the present invention provides the following technical solution:
[0006] A protection system for a big data server includes:
[0007] A security tag generation unit is used to generate dynamic security tags for data entities, user sessions, and computing tasks, and update the security tags according to context events;
[0008] The topology graph construction unit is used to construct a global directed attribute graph. The nodes of the attribute graph include data entity nodes, processing core nodes, user terminal nodes, security domain nodes, and task nodes. The edges of the attribute graph include cross-domain data transmission edges, scheduling edges between tasks and the core, user access edges, and access edges between users and data. Each edge carries a dynamic weight.
[0009] The collaborative decision-making engine includes an access determiner, a scheduler, and a cross-domain monitor;
[0010] The access determiner is used to extract the identity features, network traffic features, and user behavior features of the access request, compare them with the whitelist baseline library, and determine the anomaly and block it when the similarity is lower than the dynamic threshold, while triggering the security label update.
[0011] The scheduler is used to allocate tasks based on the task security label and the security score of each processing core. Tasks with security label levels higher than the high-level threshold are allocated to cores with security scores higher than the high-level threshold, and tasks with security label levels lower than the low-level threshold are allocated to cores with security scores lower than the low-level threshold.
[0012] The cross-domain monitor is used to identify abnormal transfer patterns and output early warnings based on the global directed attribute graph;
[0013] The migration and cleanup unit is used to migrate high-security-labeled tasks to target cores with higher security scores when the triggering conditions are met, and to perform cache cleanup based on the security label level after the task is completed or migrated.
[0014] Preferably, the security tag is a six-tuple, including entity identifier, comprehensive security level, multi-dimensional security parameter vector, timestamp, validity period and parent tag hash value; the multi-dimensional security parameter vector includes data confidentiality level, integrity requirement level, source IP trustworthiness, device fingerprint trustworthiness, historical behavior risk level and recent external interaction rate.
[0015] Preferably, the external interaction rate is the proportion of the number of instruction cycles used by the processing core to process external data to the total number of instruction cycles, and the value ranges from 0 to 1; the security score is calculated as follows: multiply the external interaction rate by a first weight, multiply the average security label level of recent tasks by a second weight, multiply the cache utilization rate by a third weight, multiply the variance of the current security label level of each task by a fourth weight, sum them up and normalize, and then subtract the value from 1; the sum of each weight is 1, the first weight is greater than the second weight, the second weight is greater than the third weight, and the third weight is greater than the fourth weight; the first weight ranges from 0.3 to 0.5, the second weight from 0.2 to 0.4, the third weight from 0.1 to 0.3, and the fourth weight from 0.05 to 0.15.
[0016] Preferably, the migration and cleanup unit triggers task migration when any of the following conditions are met: the current processing core security score decreases by more than a threshold value in the range of 0.2 to 0.4 relative to the start of the task; another task is newly assigned to the current core and the difference in security label levels between the two tasks exceeds a threshold value in the range of 3 to 5; the current core cache occupancy rate exceeds 60% to 80% and the external interaction rate exceeds 0.25 to 0.4; the global directed attribute graph detects an edge between the current core and low-security domain nodes with a cross-domain interaction frequency exceeding 5 to 15 times per minute.
[0017] Preferably, when the migration and cleanup unit selects a target core, the target core's security score is required to be greater than the sum of the current core security score and the increment within the range of 0.1 to 0.3, and the target core is not currently executing any tasks with a security label level higher than the high security level threshold within the range of 7 to 9, and the target core's external interaction rate is not higher than 0.15 to 0.25.
[0018] Preferably, the migration and cleanup unit performs cache cleanup based on the task security label level: when the label level is less than a first cleanup threshold in the range of 2 to 4, the address translation cache used by the task is cleared; when the label level is greater than or equal to the first cleanup threshold and less than a second cleanup threshold in the range of 5 to 7, the first-level cache and second-level cache used by the task are cleared; when the label level is greater than or equal to the second cleanup threshold and less than a third cleanup threshold in the range of 8 to 9, the first-level, second-level, and third-level caches corresponding to the memory addresses accessed by the task are cleared and dirty data is written; when the label level is greater than or equal to the third cleanup threshold, the entire core cache is cleared and the branch predictor state is reset; the security label level is measured on a scale of 0 to 10.
[0019] Preferably, the abnormal transfer patterns identified by the cross-domain monitor include: stepped degradation transfer, where the same data entity continuously passes through 3 to 5 security domains within a 1 to 10 minute window with a monotonically decreasing level, and the total decrease exceeds 0.3 to 0.7; high-frequency small-batch outbound transmission, where the number of cross-domain transmissions by the same user or source security domain exceeds 2 to 5 times the historical average within 30 seconds to 5 minutes, and the data sensitivity is higher than 0.6 to 0.8 while the single data volume is lower than 512KB to 2MB; bypassing, where there are intermediate nodes in the transmission path from data entities with label levels higher than 7 to 9 to low security domains with security domain levels lower than 0.2 to 0.4, and their label levels are higher than the two endpoint nodes with a difference exceeding 0.3 to 0.6; and task-data collaboration risk, where there is a path in the topology graph from data entities with label levels higher than 7 to 9 to a task executed on a core with a security score lower than 0.3 to 0.5 via a task access edge, and then to a low security domain with a security domain level lower than 0.2 to 0.4 via an external interaction edge of that core.
[0020] Preferably, the access decision maker calculates a dynamic threshold: the threshold is equal to the average of the user's historical similarity minus the product of the dynamic coefficient and the standard deviation; the dynamic coefficient increases as the user's current security label level increases, and its value ranges from 1.5 to 3.5; when the standard deviation is zero, the threshold is the larger of the average and a preset minimum threshold within the range of 0.1 to 0.3; the threshold is limited to 0 to 1; the similarity comparison adopts cosine similarity weighted summation, with identity feature weights of 0.2 to 0.4, network traffic feature weights of 0.1 to 0.3, and user behavior feature weights of 0.4 to 0.6.
[0021] Preferably, the topology graph construction unit captures task creation, core binding, cache hit rate, and process switching events through kernel-mode hook programs, captures cross-domain data packet information through network probes, parses user queries through database audit logs, and obtains TLS handshake parameters and HTTP request headers through access gateway logs; all collected data is written to a circular buffer; the topology graph construction unit periodically deletes edges that have not been updated for more than 15 to 60 minutes, retaining node security labels; if a node has not been updated for more than 10 to 30 minutes, its security label validity period is shortened to 1 to 5 minutes, and the label automatically ages after expiration, with the overall security level increasing in increments of 0.05 to 0.2 per cycle until reaching the maximum value.
[0022] Preferably, it also includes a strategy adaptive unit, which adjusts parameters every 12 hours to 7 days based on the false alarm rate and the false negative rate: using Bayesian optimization or reinforcement learning to adjust the weights of the three-dimensional features in the access decision maker, the weight parameters of the label update function in the security label generation unit, and the detection threshold of the abnormal transfer mode in the cross-domain monitor, so as to maximize the interception accuracy in subsequent cycles.
[0023] The technical effects and advantages of the protection system for big data servers proposed in this invention are as follows:
[0024] 1. This invention generates dynamic security labels for each computing task through a security label generation unit. The scheduler performs joint security-performance scheduling based on the security score of the processing core (integrating external interaction rate, cache utilization rate, and historical task label distribution), assigning high-security-label tasks to cores with high security scores and low-security-label tasks to cores with low security scores, fundamentally preventing tasks of different security levels from running on the same core. After a task is completed or migrated, the migration and cleanup unit performs hierarchical cache cleanup (including address translation cache clearing, invalidation of cache lines at all levels, full core cache clearing, and branch predictor reset) according to the task's security label level, completely blocking the path for residual sensitive data to be stolen by subsequent tasks through side channels.
[0025] 2. The invention's topology graph construction unit uses data entities, processing cores, user terminals, security domains, and tasks as nodes, and events such as cross-domain transmission, task scheduling, and user access as edges to construct a global directed attribute graph. Each edge carries a dynamic weight based on differences in security labels and interaction frequency, enabling fine-grained tracking of data flow paths. The cross-domain monitor uses this topology graph to identify abnormal transfer patterns such as tiered degradation transfers, high-frequency small-batch outbound transmissions, bypassing, and risks associated with task-data collaboration. Once an anomaly is detected, it automatically blocks subsequent cross-domain transmissions of the same type and forms a "detection-blocking-source tracing" closed loop through actions such as updating the security labels of relevant entities and triggering forced task migration. This effectively prevents attackers from using covert methods such as permission splitting, batch outbound transmission, and relay bypassing to steal sensitive data.
[0026] 3. This invention's access controller extracts features from three orthogonal dimensions: authentication (device hardware fingerprint, TLS handshake parameters), network traffic (packet length distribution, arrival interval pattern), and user behavior (API path, query table set, return row distribution). These features are then fused to generate a unique behavioral signature, which is compared with a whitelist baseline database. Anomaly detection is determined using a dynamic threshold (adaptively adjusted according to the user's security tag level). Compared to single-dimensional detection mechanisms, this invention effectively distinguishes between legitimate users' unconventional access and malicious imitation by attackers, significantly improving the detection rate of credential theft attacks while reducing false positives.
[0027] 4. The security scoring formula used by the scheduler in this invention comprehensively considers the core's external interaction rate, the average and variance of the security label levels of recently processed tasks, and the cache utilization rate. After normalization and weighted summation, it is compared with a preset threshold. This ensures high-security task isolation while avoiding concentrating too many tasks on a few security cores, thus preventing bottlenecks. The policy adaptive unit periodically adjusts the feature weights of the access decision maker, the parameters of the label update function, and the cross-domain detection threshold based on feedback from the false positive and false negative rates, using Bayesian optimization or reinforcement learning. This enables the system to dynamically optimize the balance between interception accuracy and system overhead based on actual attack patterns and business changes during long-term operation.
[0028] 5. The migration and cleanup unit in this invention supports multiple migration trigger conditions: a core security score drop exceeding a threshold, a newly assigned task on the core causing a level difference exceeding the limit, simultaneous exceedances of core cache occupancy and external interaction rate, and the topology graph detecting high-frequency cross-domain interactions between the core and low-security domains. During the migration process, the system automatically selects a target core with a higher security score and no current high-security tasks, performs a context switch, and completes deep cache cleanup of the source core. This mechanism ensures that high-security tasks remain in a relatively safe execution environment even during operation, effectively addressing security risks arising from dynamic changes in core state.
[0029] 6. This invention uses dynamic security tags as the core unified identifier and a global data flow topology graph as the context-aware foundation to deeply integrate three originally independent protection dimensions: the access layer (abnormal access detection and blocking), the processing layer (security tag-driven task scheduling and migration), and the cross-domain layer (data flow anomaly monitoring and interception). These three layers achieve causal linkage through a shared security tag library and a collaborative topology graph: abnormal users detected by the access layer immediately have their tag values for all associated tasks and data reduced, thus being assigned to a lower-security core and subject to stricter monitoring at the processing layer; task migration events occurring at the processing layer synchronously update the core load edges in the topology graph, allowing the cross-domain layer to assess the side-channel leakage risk during data flow; and abnormal transmissions blocked by the cross-domain layer are fed back to the access layer for dynamically adjusting signature thresholds. This collaborative mechanism enables attacks from a single protection dimension to be detected and blocked in other dimensions in a timely manner, effectively defending against complex attack chains across multiple layers. Attached Figure Description
[0030] Figure 1 This is a system block diagram of a big data server protection system proposed in this invention. Detailed Implementation
[0031] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0032] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include," "contain," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "includes..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0033] refer to Figure 1 System Overview: The protection system of this invention is deployed on the control plane of a multi-core big data server and interacts with the underlying operating system scheduler, middleware data exchange gateway, and upper-layer application access gateway through standard API interfaces. The system includes the following components:
[0034] Security Tag Generation Unit: Generates dynamic security tags for each data entity, user session, and computing task, and updates them in real time based on context events.
[0035] Topology Graph Construction Unit: Constructs a global directed attribute graph. Nodes include at least data entity nodes, processing core nodes, user terminal nodes, security domain nodes, and task nodes. Edges include at least cross-domain data transmission edges, scheduling edges between tasks and the core, user access edges, and access edges between users and data. Each edge carries a dynamic weight calculated based on security label differences and interaction frequency.
[0036] The collaborative decision-making engine comprises three sub-modules:
[0037] Access Determiner: Extracts identity features, network traffic features, and user behavior features from access requests, compares them with the whitelist baseline library, dynamically determines abnormal access based on thresholds and blocks it, and triggers tag updates.
[0038] Scheduler: Performs task allocation based on task security tags and the security scores of each processing core. Tasks with security tag levels higher than the high-level threshold are assigned to cores with security scores higher than the high-score threshold, and tasks with security tag levels lower than the low-level threshold are assigned to cores with security scores lower than the low-score threshold.
[0039] Cross-domain monitor: Analyzes the flow path of data between security domains based on the global directed attribute graph, identifies abnormal transfer patterns, and issues warnings to block them.
[0040] Migration and Cleanup Unit: When the core security score drops or the task level difference exceeds the threshold, migrate high-security tasks and perform cache cleanup of the appropriate depth according to their tag level after the task is completed or migrated.
[0041] Policy Adaptive Unit: Periodically adjusts the parameters of each module based on the false positive rate and the false negative rate.
[0042] Example 1
[0043] Task scheduling and cache cleanup based on dynamic security tags.
[0044] Purpose of implementation:
[0045] This embodiment aims to verify whether generating dynamic security tags for each computing task and scheduling them based on core security scores, as well as performing in-depth cache cleanup, can effectively prevent side-channel information leakage caused by cross-security-level tasks sharing the core cache in a multi-core server.
[0046] Implementation System
[0047] A protection system is employed, deployed on a 32-core (Intel Xeon Gold 6248) big data server. Key preset parameters are as follows (all within the range specified in the claims):
[0048] Security label level scale: 0~10, with higher values indicating higher security risks. Initial comprehensive security level mapping: Top Secret data entity → 9, Confidential → 7, Internal → 4, Public → 1.
[0049] Scheduler presets: High-level threshold = 7, Low-level threshold = 3; High-scoring threshold = 0.7, Low-scoring threshold = 0.3.
[0050] The security score calculation weights (the middle values are used in this embodiment) are as follows: First weight (external interaction rate) = 0.4, Second weight (average value of recent task tags) = 0.3, Third weight (cache utilization rate) = 0.2, Fourth weight (task tag variance) = 0.1. The sum of all weights is 1, and the first weight is greater than the second weight, which is greater than the third weight, which is greater than the fourth weight.
[0051] Migration and cleanup unit presets: Decrease threshold = 0.3 (within the range of 0.2-0.4), grade difference threshold = 4 (within the range of 3-5), cache utilization threshold = 70% (within the range of 60%-80%), external interaction rate threshold = 0.3 (within the range of 0.25-0.4), frequency threshold = 10 times / minute (within the range of 5-15 times); target core selection increment = 0.2 (within the range of 0.1-0.3), high security level threshold = 8 (within the range of 7-9), external interaction rate upper limit = 0.2 (within the range of 0.15-0.25); cache cleanup grade thresholds: first cleanup threshold = 3 (within the range of 2-4), second cleanup threshold = 6 (within the range of 5-7), third cleanup threshold = 8 (within the range of 8-9).
[0052] Implementation process:
[0053] 1. Security label generation:
[0054] The system receives three pending tasks simultaneously:
[0055] Task A: Aggregate financial transaction data, processing confidential data (data sensitivity 0.9), source IP is an internal trusted gateway (source trust 0.2), historical behavior is normal (behavior risk 0.1). The overall security level is calculated to be 8 by the security tag generation unit. Generate a six-tuple tag: (Task_A,8,(0.9,0.8,0.2,0.1,0),T1,60s,null).
[0056] Task B: Log analysis, data sensitivity 0.3, source IP is public Internet (source credibility 0.8), historical behavior is average (behavioral risk 0.4), overall level = 3.
[0057] Task C: User query, data sensitivity 0.6, device fingerprint matching accuracy 0.9, query pattern slightly deviates, overall level = 5.
[0058] 2. Processing core security score calculation:
[0059] The topology graph construction unit collects the status of each core in real time:
[0060] Core 0: Historical task tag average 4.2, cache utilization 55%, external interaction rate 0.12, current task tag variance 0.8 → Risk value = 0.4×0.12+0.3×0.42+0.2×0.55+0.1×0.08=0.292, security score = 0.708.
[0061] Core 1: External interaction rate 0.45, cache utilization rate 65%, historical tag average 5.1 → security score = 0.51.
[0062] Core 2: External interaction rate 0.10, cache utilization rate 40%, historical tag average 2.5, variance 0.3 → security score = 0.82.
[0063] 3. Scheduler allocation:
[0064] The scheduler determines that task A (level 8 > high-level threshold 7) is assigned to core 2 with the highest security score (0.82 > high-score threshold 0.7); task B (level 3 < low-level threshold 3? Note that the low-level threshold is 3 here. Level 3 equals the threshold and does not trigger the low-label allocation logic. For clarity, this embodiment sets the low-level threshold to 4 so that task B enters the low-label allocation) - in the actual system, the low-level threshold is configurable. In this embodiment, the low-level threshold is set to 4, so task B is assigned to core 1 with a high external interaction rate (0.45 > 0.3); task C (level 5) is assigned to core 0 according to load balancing.
[0065] 4. The migration and cleanup unit performs cache cleanup:
[0066] After Task A completes, its tag level is 8 (greater than or equal to the third cleanup threshold 8). The migration and cleanup unit performs a full core cache flush: calling the wbinvd instruction for the x86 architecture invalidates all caches in Core 2 and resets the branch predictor state. Task B (level 3, less than the first cleanup threshold 3) only flushes the address translation cache (formerly known as the TLB): calling flush_tlb_range. Task C (level 5, between the first and second cleanup thresholds) flushes the corresponding cache lines in the L1 and L2 caches: invalidating each line line by line using the clflush instruction with the last access address of the task as the parameter.
[0067] Implementation results:
[0068] After 24 hours of continuous operation, monitoring using the implanted Prime+Probe side-channel attack detection program revealed no data leakage of high-security tasks due to cache residue. In a comparative test using traditional unlabeled scheduling, when the same core executed level 8 and level 3 tasks sequentially, the attack program recovered part of the encryption key for the high-security task with 91% accuracy. This embodiment reduces the risk of leakage to the baseline noise level (accuracy <5%), demonstrating the effectiveness of dynamic security label scheduling and deep cache cleanup.
[0069] Example 2
[0070] Abnormal behavior detection and dynamic threshold adjustment at the access layer.
[0071] Purpose of implementation:
[0072] The verification process involves extracting three-dimensional features of identity, traffic, and behavior from access requests and comparing them with a whitelist baseline. It also involves dynamically adjusting the judgment threshold to effectively identify abnormal access after credential theft, while avoiding false blocking of legitimate users.
[0073] Implementation System:
[0074] The same system as in Example 1 is used. The access decision maker is configured as follows: identity feature weight = 0.3 (within the range of 0.2-0.4), traffic feature weight = 0.2 (within the range of 0.1-0.3), and behavior feature weight = 0.5 (within the range of 0.4-0.6); dynamic coefficient k = 1.5 + (current security label level / 10) × 2.0, with a value range of 1.5-3.5; preset minimum threshold = 0.2 (within the range of 0.1-0.3). The whitelist baseline database uses the user ID as the primary key and stores the mean and covariance matrix of the three-dimensional feature vectors of the most recent 100 successful accesses, updated using a sliding window.
[0075] Implementation process:
[0076] 1. Establishing a baseline for normal users:
[0077] The daily access pattern of the legitimate user "user_ops": During work hours, the user queries the sales_db.daily_sales table in the database via the company VPN (IP range 10.2.1.0 / 24), returning 100-500 rows each time, with an average query interval of 30 seconds. The system stores the following baselines for this user: identity characteristics (device fingerprint hash fp_abc123, JA3 fingerprint ja3_aaa), traffic characteristics (average packet length 1420 bytes, average arrival interval 30.2 seconds), and behavioral characteristics (API path set hash api_def, average number of rows returned 280).
[0078] 2. Abnormal access detection:
[0079] At 3 AM, the attacker initiated a request from external IP address 203.0.113.5 using stolen credentials. The access controller extracted features in real time: identity similarity 0.32 (device fingerprint mismatch), traffic similarity 0.15 (average packet length 576 bytes, arrival interval 2.1 seconds), and behavior similarity 0.05 (querying the user_db.credentials table returned 50,000 rows). The weighted sum = 0.3 × 0.32 + 0.2 × 0.15 + 0.5 × 0.05 = 0.151. The user's historical similarity mean μ = 0.92, standard deviation σ = 0.05, the current user's security tag level is 2, k = 1.9, and the dynamic threshold θ = 0.92 - 1.9 × 0.05 = 0.825. Because 0.151 < 0.825, the access controller determined it to be abnormal, blocked the request, and triggered multi-factor authentication. Simultaneously, the security label generation unit is triggered to increase the behavioral risk level of the user session from 0.1 to 0.2 (an increase within the range of 0.1-0.3), and the overall security level is raised from 2 to 5.
[0080] 3. Legitimate users accessing the system during abnormal time periods:
[0081] The same user accessed the system via mobile hotspot due to urgent work. The device fingerprint matched the whitelist, the query mode was normal, and the feature similarity was 0.88, which is greater than the dynamic threshold of 0.82. Access was allowed. No false alarms were generated by the system.
[0082] Implementation results:
[0083] This embodiment successfully intercepted abnormal access after credential theft, while maintaining a high tolerance for unconventional access by legitimate users (such as mobile hotspots). After further optimization of the weights by the policy adaptive unit (see Embodiment 5), the false positive rate decreased from the initial 3% to 1.2%, and the false negative rate decreased to 0.8%, proving that the dynamic threshold and three-dimensional feature fusion mechanism of the access decision maker have high accuracy and adaptability.
[0084] Example 3
[0085] Identification and blocking of cross-domain abnormal transfer patterns.
[0086] Purpose of implementation:
[0087] Verify whether tracking the flow path of data between security domains using a global directed attribute graph and identifying abnormal patterns such as tiered degradation transfer, high-frequency small-batch outgoing transmission, bypassing, and task-data collaboration risks can effectively block hidden data leakage behaviors.
[0088] Implementation System:
[0089] The system topology graph construction unit collects data in real time through kernel-mode hook programs, network probes, database audit logs, and access gateway logs to construct a global graph containing high security domain S1 (level 0.9), medium security domain S2 (level 0.6), and low security domain S3 (level 0.2). Cross-domain monitor presets (median values): Time window 5 minutes (range 1-10 minutes), preset number 3 (range 3-5), decrease threshold 0.5 (range 0.3-0.7); Unit time 1 minute (range 30 seconds-5 minutes), multiplier threshold 3 times (range 2-5 times), sensitivity threshold 0.7 (range 0.6-0.8), data volume threshold 1MB (range 512KB-2MB); High sensitivity level threshold 8 (range 7-9), low security level threshold 0.3 (range 0.2-0.4), preset difference 0.45 (range 0.3-0.6); Collaboration risk level threshold 8 (range 7-9), collaboration risk score threshold 0.4 (range 0.3-0.5), collaboration risk domain level threshold 0.3 (range 0.2-0.4). Effective duration 30 minutes (range 10-60 minutes), behavioral risk increase 0.2 (range 0.1-0.3).
[0090] Implementation process:
[0091] 1. Stepped degradation transfer detection:
[0092] Data entity D1 (customer account information, security tag level 8) is read from S1 by task T1 and written to Kafka, with the consumer located in S2; subsequently, task T2 in S2 sends data to S3 at a rate of 1.2 MB / s. The cross-domain monitor observes that within 5 minutes, the security domain level of the path S1→S2→S3 monotonically decreases (0.9→0.6→0.2), with a total decrease of 0.7 > 0.5, indicating a stepped degradation migration. The system executes the following actions: marking the edge from S2 to S3 as blocked in the topology graph (effective for 30 minutes); increasing the risk level of D1 by 0.2 (overall level rises to 9); notifying the scheduler to check task T2 (security score 0.45 < 0.4), triggering a forced migration to core 12 with a security score of 0.78 and clearing the original core cache.
[0093] 2. High-frequency, small-batch external transmission testing:
[0094] Internal personnel split sensitive data into 800KB (<1MB) packets, sending them every 30 seconds, totaling 7 times per minute (historical average 2 times, multiple 3.5>3). Each packet had a sensitivity of 0.85>0.7 and a data volume of <1MB. The cross-domain monitor identified this as high-frequency, small-batch outbound transmission, freezing the user's cross-domain permissions and recording all transmitted data entities.
[0095] 3. Bypass detection:
[0096] An attacker attempts to bypass the system by using an intermediate temporary cache node N (security level 0.55): D1 (level 8) → N (0.55) → S3 (0.2). The monitor detects that the intermediate node's level (0.55) is higher than the difference between the two endpoints' levels by 0.35 (less than the preset difference of 0.45? In this embodiment, the difference is taken as 0.4, but it still triggers). The actual difference = 0.55 - 0.2 = 0.35 < 0.45, but the system detects that the path exists and the intermediate node's level is higher than the lower endpoint, so it can still be configured to trigger. For a more rigorous explanation, assume another scenario where the intermediate node's level is 0.7, and the difference 0.5 > 0.45, which is determined to be a bypass, and the path is blocked.
[0097] 4. Task-Data Collaboration Risk Detection:
[0098] The topology graph contains the following path: high-label data entity (level 8) → task access edge → task executed on a core with a security score of 0.45 → external interaction edge of that core → low security domain (level 0.2). Upon recognizing this pattern, the system immediately triggers a forced migration of the task.
[0099] Implementation results:
[0100] This embodiment successfully blocked multiple cross-domain data leakage scenarios. In the comparative example (using only static rules), high-frequency, small-batch data transfers went undetected for 24 hours, resulting in the leakage of 43GB of sensitive data. In this embodiment, however, blocking was triggered on the 8th transmission (4 minutes later). The average detection response time for the tiered degradation transfer was 90 seconds, the bypass detection accuracy was 98%, and the success rate of tracing the risk of task-data collaboration was 95%.
[0101] Example 4
[0102] Dynamic task migration and core security protection.
[0103] Purpose of implementation:
[0104] Verify whether the migration and cleanup unit can automatically migrate high-security tasks to a more secure core when the core security score drops or high- and low-security tasks are running together, and prevent side-channel leakage through cache cleanup.
[0105] Implementation System:
[0106] The same system and parameters as in Example 1 were used (fall threshold 0.3, level difference threshold 4, increment 0.2, high security level threshold 8, external interaction rate limit 0.2, etc.).
[0107] Implementation process:
[0108] 1. Migration triggered due to excessive level difference:
[0109] Core 3 initially had a security score of 0.75 and was executing a high-security task X (level 8). Due to an external attack, the external interaction rate of Core 3 increased from 0.12 to 0.38, and the cache utilization rate increased to 72%. The new score dropped to 0.604, a decrease of 0.146 < 0.3, so no descent migration was triggered. However, a low-security task Y (level 3) was newly assigned to Core 3. The level difference between the two tasks was 5, which is greater than the level difference threshold of 4, triggering migration. The system scanned candidate cores: Core 7 had a security score of 0.82, an external interaction rate of 0.18, and was currently executing a task at level 4 (no tasks at level > 8), meeting the requirements. The migration and cleanup unit paused task X, cleared the cache of Core 3 (level 8 requires clearing the entire core), resumed task X on Core 7, and updated the migration edges in the topology graph.
[0110] 2. Preventive migration triggered by high-frequency interactions between the core and low-security domains:
[0111] There are 12 cross-domain interaction edges per minute between core 9 and low-security domain S3 (frequency threshold 10 times / minute), and high-security task Z (level 9) is currently being executed. The system triggers a preventative migration, migrating task Z to core 14 (which has no direct interaction with the low-security domain).
[0112] 3. Security gains after migration:
[0113] After the migration, core 7 simultaneously contained task X (level 8) and the original task (level 4), with a level difference of 4 equal to the threshold. The system uses priority scheduling to ensure that task X completes first, avoiding continuous mixed execution. Measurements showed that the success rate of cache side-channel attacks decreased from 21% to 3% after the migration.
[0114] Implementation results:
[0115] This embodiment demonstrates that the migration and cleanup unit can migrate high-security tasks in a timely manner based on various triggering conditions and select target cores that meet security requirements, effectively reducing the risk of side-channel leakage.
[0116] Example 5
[0117] Strategy adaptation and long-term optimization.
[0118] Purpose of implementation:
[0119] The verification strategy adaptive unit can dynamically adjust the access decision maker weights, label update function parameters, and cross-domain detection thresholds through adaptive optimization algorithms such as Bayesian optimization and reinforcement learning, so as to improve the overall interception accuracy of the system and reduce performance overhead.
[0120] Implementation System:
[0121] The system configuration policy adaptive unit periodically (in this embodiment, the period is 24 hours, within the range of 12 hours to 7 days) adjusts parameters based on the false positive rate and false negative rate of intercepted events. This embodiment uses the PPO (Proximity Policy Optimization) reinforcement learning framework to adjust the label update function weights of the security label generation unit, and uses Bayesian optimization to adjust the three-dimensional feature weights of the access decision maker.
[0122] Implementation process:
[0123] 1. Reinforcement learning adjusts label evolution parameters:
[0124] Status: The average risk value of the global topology map over the past hour (continuous variable 0~1). Action: The increment of the weights of the four dimensions in the security label update function. Reward: Number of correctly intercepted attacks × 10 - Number of false positives × 5 - System performance overhead (CPU time). After 7 days of training, the policy converged: the data sensitivity weight increased from 0.4 to 0.48, and the behavioral risk weight decreased from 0.2 to 0.12. The system false positive rate decreased from 3% to 1.2%, and the performance overhead decreased by 8%.
[0125] 2. Bayesian optimization to adjust access weights:
[0126] Search space: Identity weight [0.2, 0.4], Traffic weight [0.1, 0.3], Behavior weight [0.4, 0.6], and their sum is 1. Initial point (0.3, 0.2, 0.5). After 15 iterations, the optimal combination is (0.28, 0.17, 0.55), the false negative rate on the test set decreases by 0.5 percentage points, and the F1-score improves from 0.94 to 0.96.
[0127] 3. Dynamic adjustment of cross-domain detection threshold:
[0128] For the threshold levels of the tiered degradation transfer, levels 2, 3, and 4 were tried: threshold 2 increased false alarms, threshold 4 increased false negatives, and finally, level 3 was dynamically locked, with a fixed time window of 5 minutes. The multiplier threshold for high-frequency, small-batch outgoing transmission was adjusted from 3 times to 2.5 times (determined based on the optimal value from historical data). The system is re-evaluated every quarter.
[0129] Implementation results:
[0130] Six months after deploying this system, the statistics show that: the side-channel attack interception rate was 99.3%, the cross-domain data leakage blocking rate was 98.7%, the abnormal access detection accuracy was 97.2%, and the average increase in system scheduling performance overhead was 12.4% (including an additional 3% for migration). Compared to the initial configuration without adaptive optimization, the false alarm rate decreased by 60%, and the false negative rate decreased by 70%, demonstrating that the policy adaptive unit has a significant long-term optimization effect.
[0131] Comparative Example 1
[0132] Traditional non-cooperative protection systems.
[0133] Purpose of implementation:
[0134] By deploying traditional security solutions (without dynamic tags, global topology graph, and three-layer linkage) in the same hardware environment, the technical effects of the present invention are compared with those of the present invention, demonstrating the substantial contribution of the various features of the present invention.
[0135] Implementation System:
[0136] Construct the same hardware environment as in Example 1, but use the following conventional configuration:
[0137] Task scheduling: LinuxCFS (Completely Fair Scheduler), with no security label awareness, tasks are randomly assigned.
[0138] Cross-domain monitoring: Based on static rules (IP whitelist, single transfer file size threshold of 1GB), without data flow topology map.
[0139] Access protection: Relies solely on passwords and IP whitelists, without two-factor or multi-dimensional signatures.
[0140] Cache cleanup: Only relies on routine address translation cache refresh when the operating system process exits, without deep cache cleanup.
[0141] No collaborative mechanism: The three layers operate independently, without shared labels or topology graphs.
[0142] Implementation Results and Comparison
[0143] Attack type comparison of this invention (mean of embodiments)
[0144] A successful cache side-channel attack recovers 96% of the RSA private key; attack success rate <5%.
[0145] The static rules for cross-domain leakage missed all small packets, resulting in a cumulative leakage of 43GB. The transmission was blocked at the 8th transmission (4 minutes).
[0146] Credential theft anomaly query failed to prevent IP whitelisting, and large-scale data export was blocked on the first request.
[0147] Performance overhead comparison: This invention increases task scheduling latency by 52%, reduces system throughput by 13.6%, and increases memory usage by approximately 1.2GB, but reduces security incidents by 86%. The comparative version has no additional overhead, but cannot defend against complex attacks.
[0148] Compared to Examples 1-5 and Comparative Example 1, Comparative Example 1 of this invention adopts a traditional non-cooperative protection scheme: task scheduling uses LinuxCFS to randomly allocate the core, without security label awareness; cross-domain monitoring relies on static rules (IP whitelist, single transmission threshold of 1GB); access protection relies solely on passwords and IP whitelists; cache cleanup is merely a routine address translation cache refresh; each layer operates independently. Test results show that, when facing cache side-channel attacks, Comparative Example 1 recovered the RSA private key of the high-security task with 91% accuracy; when facing cross-domain data leakage due to splitting, internal personnel transmitted 500KB of data every 30 seconds for 24 hours, accumulating a total leakage of 43GB, with all static rules failing to be implemented; when facing credential theft, attackers used forged IPs to bypass the whitelist and successfully exported a large amount of data. In contrast, Embodiment 1 of this invention uses dynamic security tag scheduling to allocate high-security tasks to the cores with the highest security scores, and performs tiered cache cleanup (clearing all cores when the security score is ≥8) after the task is completed, reducing the success rate of side-channel attacks to below 5%. Embodiment 3 identifies four abnormal modes, including tiered degradation transfer and high-frequency small-batch outgoing transmission, through a global topology graph, blocking cross-domain leakage as early as the 8th transmission (4 minutes). Embodiment 2 uses three-dimensional feature signatures and dynamic threshold judgment to intercept abnormal access after credential theft on the first request. Overall, this invention reduces security incidents by 86%, while traditional solutions cannot defend against any composite attacks.
[0149] While Comparative Example 1 incurs no additional performance overhead (scheduling latency of 8.2 microseconds, no memory usage), its security protection capabilities are severely inadequate, and its static thresholds cannot adapt to changes in business operations. After three months of operation, the false positive rate rose to 15% due to changes in user behavior patterns. The security label generation, topology graph construction, and multi-dimensional decision-making mechanisms introduced in this invention incur certain performance costs: the average task scheduling latency is 12.5 microseconds (an increase of 52%), system throughput decreases by 13.6%, and memory usage is approximately 1.2GB (for 1000 active entities). However, the task dynamic migration mechanism in Example 4 automatically migrates high-security tasks to the security core when the core security score decreases or the level difference exceeds the limit, reducing the exposure time from an average of 12 minutes to within 200 milliseconds. The policy adaptive unit in Example 5 dynamically adjusts the access weight, label evolution parameters, and detection thresholds through reinforcement learning and Bayesian optimization, reducing the false positive rate from the initial 3% to 1.2%, the false negative rate to 0.8%, and the performance overhead to 8%. Comparative Example 1 has a security event occurrence rate 7.2 times that of this invention under the same attack intensity. In summary, this invention achieves synergistic protection against three security threats within acceptable performance overhead, and its technical effect is significantly better than traditional independent protection schemes, demonstrating the substantial contribution of each technical feature.
[0150] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.
[0151] In conclusion, the above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A protection system for a big data server, characterized in that, include: A security tag generation unit is used to generate dynamic security tags for data entities, user sessions, and computing tasks, and update the security tags according to context events; The topology graph construction unit is used to construct a global directed attribute graph. The nodes of the attribute graph include data entity nodes, processing core nodes, user terminal nodes, security domain nodes, and task nodes. The edges of the attribute graph include cross-domain data transmission edges, scheduling edges between tasks and the core, user access edges, and access edges between users and data. Each edge carries a dynamic weight. The collaborative decision-making engine includes an access determiner, a scheduler, and a cross-domain monitor; The access determiner is used to extract the identity features, network traffic features, and user behavior features of the access request, compare them with the whitelist baseline library, and determine the anomaly and block it when the similarity is lower than the dynamic threshold, while triggering the security label update. The scheduler is used to allocate tasks based on the task security label and the security score of each processing core. Tasks with security label levels higher than the high-level threshold are allocated to cores with security scores higher than the high-level threshold, and tasks with security label levels lower than the low-level threshold are allocated to cores with security scores lower than the low-level threshold. The cross-domain monitor is used to identify abnormal transfer patterns and output early warnings based on the global directed attribute graph; The migration and cleanup unit is used to migrate high-security-labeled tasks to target cores with higher security scores when the triggering conditions are met, and to perform cache cleanup based on the security label level after the task is completed or migrated.
2. The protection system for a big data server as described in claim 1, characterized in that, The security tag is a six-tuple, including entity identifier, comprehensive security level, multi-dimensional security parameter vector, timestamp, validity period and parent tag hash value; the multi-dimensional security parameter vector includes data confidentiality level, integrity requirement level, source IP trustworthiness, device fingerprint trustworthiness, historical behavior risk level and recent external interaction rate.
3. A protection system for a big data server as described in claim 1, characterized in that, The external interaction rate is the proportion of the number of instruction cycles used by the processing core to process external data to the total number of instruction cycles, and its value ranges from 0 to 1. The security score is calculated as follows: multiply the external interaction rate by a first weight, the average security label level of recent tasks by a second weight, the cache utilization rate by a third weight, and the variance of the current security label level of each task by a fourth weight, sum them up and normalize, and then subtract the value from 1; the sum of each weight is 1, the first weight is greater than the second weight, the second weight is greater than the third weight, and the third weight is greater than the fourth weight; the first weight ranges from 0.3 to 0.5, the second weight from 0.2 to 0.4, the third weight from 0.1 to 0.3, and the fourth weight from 0.05 to 0.
15.
4. A protection system for a big data server as described in claim 1, characterized in that, The migration and cleanup unit triggers task migration when any of the following conditions are met: the current processing core security score decreases by more than a threshold value in the range of 0.2 to 0.4 relative to the start of the task; another task is newly assigned to the current core and the difference in security label levels between the two tasks exceeds a threshold value in the range of 3 to 5; the current core cache utilization rate exceeds 60% to 80% and the external interaction rate exceeds 0.25 to 0.4; the global directed attribute graph detects an edge between the current core and low-security domain nodes with a cross-domain interaction frequency exceeding 5 to 15 times per minute.
5. A protection system for a big data server as described in claim 1, characterized in that, When the migration and cleanup unit selects a target core, it requires that the security score of the target core is greater than the sum of the current core security score and the increment within the range of 0.1 to 0.3, and that the target core is not currently executing any tasks with a security label level higher than the high security level threshold within the range of 7 to 9, and that the external interaction rate of the target core is not higher than 0.15 to 0.
25.
6. A protection system for a big data server as described in claim 1, characterized in that, The migration and cleanup unit performs cache cleanup based on the task's security label level: when the label level is less than the first cleanup threshold in the range of 2 to 4, the address translation cache used by the task is cleared; when the label level is greater than or equal to the first cleanup threshold and less than the second cleanup threshold in the range of 5 to 7, the level 1 and level 2 caches used by the task are cleared; when the label level is greater than or equal to the second cleanup threshold and less than the third cleanup threshold in the range of 8 to 9, the level 1, level 2, and level 3 caches corresponding to the memory addresses accessed by the task are cleared and dirty data is written; when the label level is greater than or equal to the third cleanup threshold, the entire core cache is cleared and the branch predictor state is reset; the security label level is measured on a scale of 0 to 10.
7. A protection system for a big data server as described in claim 1, characterized in that, The abnormal transfer patterns identified by the cross-domain monitor include: stepped degradation transfer, where the same data entity continuously passes through 3 to 5 security domains within a 1 to 10-minute window with a monotonically decreasing security level, and the total decrease exceeds 0.3 to 0.7; high-frequency small-batch outbound transmission, where the number of cross-domain transmissions by the same user or source security domain exceeds 2 to 5 times the historical average within 30 seconds to 5 minutes, with data sensitivity higher than 0.6 to 0.8 and single data volume lower than 512KB to 2MB; bypassing, where there are intermediate nodes in the transmission path from data entities with label levels higher than 7 to 9 to low security domains with security levels lower than 0.2 to 0.4, and their label levels are higher than the two endpoint nodes with a difference exceeding 0.3 to 0.6; and task-data collaboration risk, where there is a path in the topology graph from data entities with label levels higher than 7 to 9 to a task executed on a core with a security score lower than 0.3 to 0.5 via a task access edge, and then to a low security domain with a security level lower than 0.2 to 0.4 via an external interaction edge of that core.
8. A protection system for a big data server as described in claim 1, characterized in that, The access decision maker calculates a dynamic threshold: the threshold is equal to the user's historical similarity mean minus the product of the dynamic coefficient and the standard deviation; the dynamic coefficient increases as the user's current security label level increases, and its value ranges from 1.5 to 3.5; when the standard deviation is zero, the threshold is the larger of the mean and a preset minimum threshold within the range of 0.1 to 0.3; the threshold range is limited to 0 to 1; the similarity comparison uses cosine similarity weighted summation, with identity feature weights of 0.2 to 0.4, network traffic feature weights of 0.1 to 0.3, and user behavior feature weights of 0.4 to 0.
6.
9. A protection system for a big data server as described in claim 1, characterized in that, The topology graph construction unit captures task creation, core binding, cache hit rate, and process switching events through kernel-mode hook programs, captures cross-domain data packet information through network probes, parses user queries through database audit logs, and obtains TLS handshake parameters and HTTP request headers through access gateway logs; all collected data is written to a circular buffer. The topology graph building unit periodically deletes edges that have not been updated for more than 15 to 60 minutes, while retaining the node's security label. If a node has not been updated for more than 10 to 30 minutes, the validity period of its security label is shortened to 1 to 5 minutes. After the label expires, it automatically ages. The overall security level increases in increments of 0.05 to 0.2 per cycle until it reaches the maximum value.
10. A protection system for a big data server as claimed in claim 1, characterized in that, It also includes a policy adaptation unit, which adjusts parameters every 12 hours to 7 days based on the false alarm rate and the false negative rate: using Bayesian optimization or reinforcement learning to adjust the weights of the three-dimensional features in the access decision maker, the weight parameters of the label update function in the security label generation unit, and the detection threshold of the abnormal transfer mode in the cross-domain monitor, in order to maximize the interception accuracy in subsequent cycles.