用机器学习+访问控制实时阻止勒索软件加密,不干扰正常操作。
Building a Robust Risk-Based Access Control System to Combat Ransomware's Capability to Encrypt
- 结合机器学习与强制访问控制,基于函数级追踪识别恶意加密行为。
- 在真实环境中检测准确率高,误报率低,响应速度接近规则系统。
- 适合安全团队、系统管理员部署,用于保护生产环境的Linux服务器。
勒索软件的核心能力是未经授权的加密,需要能识别并阻断恶意加密活动而不影响合法使用。本文提出一种基于概率的风险感知访问控制架构,将机器学习推理与强制访问控制结合,实现实时监管Linux系统的加密行为。系统利用ftrace框架中的function_graph追踪器构建专用数据集,生成高分辨率内核函数执行轨迹,并附加资源与I/O计数器。这些轨迹支持监督分类器和可解释规则,通过轻量级布尔值驱动SELinux策略,在加密开始瞬间做出上下文敏感的允许/拒绝决策。相比依赖沙箱、虚拟机监控或粗粒度系统调用追踪的方法,本方案在行为粒度上优于仅系统调用追踪,且避免了虚拟化开销。当前用户空间原型在突发I/O下存在非微小开销,已量化并指出生产级内核空间解决方案应优化此问题。我们详述了数据集构建、模型训练、规则提取及运行时集成,实现对可疑加密写入的拦截,同时保留良性加密流程。评估表明,双层结构保持模型检测质量的同时具备规则级响应速度;还量化了运行开销,并提出降低企业部署中CPU与内存占用的工程路径。最终提供了一条从行为追踪与学习到可执行、可解释、风险适配的加密控制落地实践路径。
原文摘要 · Abstract (English)
Ransomware core capability, unauthorized encryption, demands controls that identify and block malicious cryptographic activity without disrupting legitimate use. We present a probabilistic, risk-based access control architecture that couples machine learning inference with mandatory access control to regulate encryption on Linux in real time. The system builds a specialized dataset from the native ftrace framework using the function_graph tracer, yielding high-resolution kernel-function execution traces augmented with resource and I/O counters. These traces support both a supervised classifier and interpretable rules that drive an SELinux policy via lightweight booleans, enabling context-sensitive permit/deny decisions at the moment encryption begins. Compared to approaches centered on sandboxing, hypervisor introspection, or coarse system-call telemetry, the function-level tracing we adopt provides finer behavioral granularity than syscall-only telemetry while avoiding the virtualization/VMI overhead of sandbox-based approaches. Our current user-space prototype has a non-trivial footprint under burst I/O; we quantify it and recognize that a production kernel-space solution should aim to address this. We detail dataset construction, model training and rule extraction, and the run-time integration that gates file writes for suspect encryption while preserving benign cryptographic workflows. During evaluation, the two-layer composition retains model-level detection quality while delivering rule-like responsiveness; we also quantify operational footprint and outline engineering steps to reduce CPU and memory overhead for enterprise deployment. The result is a practical path from behavioral tracing and learning to enforceable, explainable, and risk-proportionate encryption control on production Linux systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。