剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 病毒分析 Sanctum - Sanctum is an expe…
Sanctum - Sanctum is an experimental proof-of-concept EDR, d 病毒分析 点击放大
作者:admin 发布:2026-10-05

Sanctum - Sanctum is an experimental proof-of-concept EDR, d

项目说明Sanctum EDR!Rust Kernel Driver EDR SanctumPlease note, I will no longer be working on this project.The Sanctum EDR is an 🚧 experimenta…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
442浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

Sanctum - Sanctum is an experimental proof-of-concept EDR, d

项目说明

Sanctum EDR

!Rust Kernel Driver EDR Sanctum

Please note, I will no longer be working on this project.

The Sanctum EDR is an 🚧 experimental and in de 🚧 proof of concept for an EDR (Endpoint Detection and Response) tool, fully written in Rust! No
C required in this project baby!

BREAKING CHANGE NOTIFICATION: If you are recently updating this project, you now need to put
sanctum.dll in C:\Windows\System32 (documented in below instructions).

I'm documenting this project on my blog!

Currently, there are some features disabled (, feel free to uncomment them to turn them back on) - this was due to some occasional random stability issues.
I'm currently working on another project, but I will soon be turning my attention back to the EDR.

Up until recently, the readme was in need of some tlc; given how fast the project has grown the readme was out of date and as time went on some fairly specific
configuration requirements ha. See the Deployment Instructions section for clear details on how to install the project to a VM. Do not deploy this
on your host machine, as we are tampering with the kernel (Windows 11), you may encounter system instability.

I am not accepting PR's as a rule; unless your contribution is something small / utility based. This project is primarily for my own learning - and hopefully for
me to teach the concepts to people interested in low le system security / malware devs / defensi / analysts.

That said; as there is more attention on the project, please feel free to raise issues or use the discussions page as you wish. If you want some integrations, let me know
and I will look at building those in!

I'd also recommend opening the dri at its crate level from the De Command Prompt (e.g. for : code driver) as I ha some issues with
Rust-Analyzer if not opened in this way.

🚧 Please note: This project is not currently designed for mass consumption; you may encounter teething issues in the deploy process - you can raise an issue
for me to fix; but I provide no guarantee it will work without issue on your deployment. This is a POC project first and foremost. There may be some bugs, or incomplete
features on the main branch as I develop it. For bugs, please raise an issue. Incomplete features will be in progress, so please do not raise issues for those.

Stuck trying to build / deploy this? I made a YouTube video showing you how!

Limitations regarding Alt Syscalls on the driver

Thanks to some testing by Xacone, we now know that HVCI prevents writing to the PspSer structure; so this technique is blocked by HVCI. From my own
testing, it appears that this is still resistant to both PatchGuard and HyperGuard under VBS. I used ssde to load my dri Secure Boot and VBS were enabled, of which it is
my understanding should be enough to test it against HyperGuard. This was done with debug mode off, which should also allow PatchGuard full authority to detect and block (BugCheck) the technique.

#### Contents

  • Structure

  • Features

  • Requirements

  • Deployment Instructions
  • Structure

    | Crate | Description |
    | --- | --- |
    | driver | Contains the code for the Sanctum dri is required for kernel monitoring |
    | um_engine | The usermode engine of the Sanctum application which communicates with the driver, running processes, and the GUI |
    | injected_dll | A DLL injected into all processes for EDR hooking (note that this is currently phased out, having being replaced with kernel-side hooking after I researched Alt Syscalls for Windows 11). I will leave this in the project for legacy / blog post reasons, I ha a lot of time hooking functions and writing about it on my blog, so good to keep in |
    | gui | A GUI for the Sanctum EDR, using Tauri for rendering |
    | shared_* | Shared crates for the project, both in std and no_std en |
    | server | Todo, this is to be the telemetry ser will recei from endpoints |

    Deprecated modules

    The following modules (crates) were used in the project, and documented on my
    blog, but are now no longer required. If my setup guide refers to these, then
    you can swiftly disregard those parts.

    | Crate | Description |
    | --- | --- |
    | etw_installer | The installer program for creating the ELAM PPL service (installs sanctum_ppl_runner) |
    | sanctum_ppl_runner | A ELAM signed Protected Process Light which monitors Events Tracing for Windows Threat Intelligence provider |
    | etw_consumer | Deprecated; sanctum_ppl_runner implements all required features this was intended to sol in for learning reasons / linked to my blog post |

    Features

    You can check my YouTube channel for some POC :)

    As a summary of features:

  • Alt Syscalls for kernel-side interception of syscalls

  • Events Tracing for Windows: Threat Intelligence telemetry subscription

  • Uses Ghost Hunting to detect signs of malicious activity

  • Detects tampering of NTDLL (thwarts common malware TTPs)

  • Detects rootkit tampering in the kernel

  • DLL injection of EDR (currently deprecated in favour of Alt Syscalls)
  • Requirements:

    1) Cargo (ob..).
    2) Nightly.
    3) Windows Driver Kit & De Console (as admin for building the driver).
    4) Cargo make and LL, see Microsoft's build instructions for installing these.
    5) Tauri build tools, see the documentation for official instructions.

    Deployment instructions

    The installation instructions are split between your host and guest. If you are having problems deploying this, please use the discussions page or raise and issue and I will
    do my best to help / fix any bugs from the process.

    They are split into instructions for a host machine and a guest VM, this is because I advise against de & building on your deployment VM (if the dri your VM and it cant
    boot, then you will lose any de / en specific setup [assuming no snapshots] that went into you being able to build this project).

    If you wish to build and deploy on the same machine (VM only to save your host), then I recommend 2 VM's; one to build, one to deploy, in which case, treat the host section below as your 2nd
    VM.

    As an o, the driver must be built via cargo make, which is a pipeline provided by Microsoft in the Windows Drivers project. The remaining crates for this
    project are built via cargo build.

    Guest

    1) Install a clean Windows 11 VM; do so first with a Gen2 processor, Secure Boot and TPM so you can properly install windows. I would recommend installing W11 Pro when prompted. You can use either a type 1 or type 2 hypervisor.
    2) Update Windows etc.
    3) Disable Secure Boot and TPM.
    4) Boot the VM
    5) Copy over the installer_clean_vm.ps1 script from this repo root.
    6) Open PowerShell as admin, and cd into where you dropped the script.
    7) Enable running of scripts on your VM Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
    8) Run ./installer_clean_vm.ps1 - this will initialise the folder structure required, pull down the static files, and enable debug mode and configure your VM for kernel debugging in WinDbg.

    Now do the host instructions; we will return to the guest shortly.

    Host

    This is a little in due to the signing process. But follow along and you should be good.

    #### Building and signing the driver

    1) Ensure you ha Studio build tools installed
    2) Ensure you have this repo cloned
    3) Open De Command Prompt as Administrator (I'd recommend running powershell from this cmd prompt to upgrade to powershell)
    4) CD into the dri of this repo
    5) Run .\cert.ps1 which will generate a ELAM compatible code signing certificate called sanctum.pfx. The cert will be located in the driver crate root.
    6) Run cargo make - this will build the driver.
    7) Run .\sign.bat - this will sign the driver.
    8) Run certmgr.exe -\debug\sanctum_package\sanctum.sys which will output the certificate information of the driver:
    1) Look for the line (just on top of the half way point of the output) which has the heading: Content Hash (To-Be-Signed Hash)::.
    2) Note the hash that is output beneath (will be 2 lines of bytes).
    3) You want to concatenate these bytes into 1 long string. To see an example explanation, check my comment here.
    4) Open dri.rs in your fa code editor, and change the hash from what is there in your cloned copy to the hash you concatenated in the step abo, see the above link if that doesn't make sense.
    9) Run cargo clean.
    10) Run cargo make.
    11) Run .\sign.bat.

    #### Building and signing your PPL service

    Must be build in release mode to match the signing script - if you wanna build in debug mode make sure to edit sign_ppl_runner.bat.

    1) Continuing on from above, go up one dir with cd ../.
    2) Run: cargo build --release -p sanctum_ppl_runner - this will build the PPL service binary in /target/release/.
    3) Sign the service binary .\sign_ppl_runner.bat.

    #### Building the rest

    (Feel free to build these in debug mode if you wish)

    1) cargo build --release -p elam_installer
    2) cargo build --release -p injected_dll
    3) cargo build --release -p um_engine
    4) cargo tauri build --debug

    Guest

    Now to finish off, we want to move the binaries into the guest VM and run things!

    1) Move um_engine.exe, elam_installer, app (gui) into ~Desktop\sanctum
    2) Move sanctum.sys & sanctum_ppl_runner.exe into %AppData%\Sanctum
    3) Move sanctum.dll into C:\Windows\System32
    4) In an admin powershell terminal:
    1) cd ~Desktop\sanctum
    2) .\elam_installer.exe - this should work and now prompt you to reboot.
    5) Reboot
    6) In an admin powershell terminal:
    1) cd ~Desktop\sanctum
    2) .\elam_installer.exe - this time no prompt to reboot
    3) sc.exe start sanctum_ppl_runner - This should run your PPL service. If you ha, check Event , or go to Services -> sanctum_ppl_runner and start it from there (may give more error messages)
    7) Run um_engine as admin
    8) Run the GUI app.exe as admin
    9) Now you should be good to start the driver from the GUI if all went well!

    Important Note: elam_installer.exe and starting the PPL needs to be run every reboot.

    Deployment problems

    If you ha with the deployment process, please feel free to submit an issue or discussion and I will try help!

    项目信息

    开发语言:Rust

    Star 数:567

    技术要点

    该项目属于病毒分析方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Sanctum is an experimental proof-of-concept EDR, designed to detect modern malware techniques, above and beyond the capabilities of antivirus. Built in Rust.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

    从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

    使用与学习建议

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境与依赖。

    3. 按照 README 中的步骤完成配置与部署。

    4. 在隔离的测试环境中运行验证,避免影响生产系统。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

    资源标题Sanctum - Sanctum is an experimental proof-of-concept EDR, d
    所属分类病毒分析
    发布作者admin
    发布时间2026-10-05 23:17:32
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数442
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    还没有讨论,快来抢沙发~
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册