Capture `NtFsControlFile` syscall as a new `FsControlFile` event type
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- go
调研方向
Start with the existing ParamDecoder path for the SetFileInformation/RenameFile binary layout, since the issue says FsControlFile should reuse it, and check how the NT Kernel Logger opcode 75 (NtFsControlFile) would be routed to it. Done means NtFsControlFile events are emitted as a new FsControlFile type with the IOCTL code split into DeviceType, Access, Function and Method fields. The open question of whether those sub-fields are exposed separately or bundled is unresolved, so confirm it with a maintainer before writing code.
由索引模型根据 Issue 内容生成。
描述
Motivation
Fibratus doesn't currently surface NtFsControlFile calls, which are used to send device I/O control (IOCTL) codes to file system drivers/devices. This syscall is of interest for detecting abuse of raw disk access, filter driver manipulation, reparse point/symlink tricks, and other low-level filesystem interactions that bypass normal file I/O APIs.
Expectation
Fibratus gains a new FsControlFile event type that captures NtFsControlFile invocations, including the IOCTL code being issued.
Proposal
- Capture the
NtFsControlFilesyscall and emit it as a newFsControlFileevent type. This syscall is emitted by the NT Kernel Logger provider with opcode75. - Reuse the existing binary layout already used for
SetFileInformation/RenameFileevents, sinceFsControlFileshares the same underlying structure - The key difference is semantic: the info-class parameter in this shared layout represents the IOCTL code for
FsControlFile, rather than a file information class. The IOCTL code should be decoded per the standard Windows IOCTL bit layout:
31 16 15 14 13 2 1 0
+------------------+-----+---------+-----+
| DeviceType |Access| Function |Method|
+------------------+-----+---------+-----+
16 bits 2 12 bits 2 bits
- DeviceType (bits 31–16): identifies the device/driver type the IOCTL targets
- Access (bits 15–14): required access rights (read/write/either)
- Function (bits 13–2): the driver-specific function code
- Method (bits 1–0): the buffering method (buffered, direct in/out, neither)
Decode these four sub-fields from the raw IOCTL code, so filter rules can match on DeviceType/Function individually rather than only the raw numeric code.
Additional context
- Since the binary layout is shared with
SetFileInformation/RenameFile, this should slot into the existingParamDecoderpath for that layout rather than requiring a new decoder. The differentiator is purely in how the info-class field is interpreted and exposed to filters - Well-known IOCTL codes (e.g. those tied to
FSCTL_SET_REPARSE_POINT, raw volume access, or filter communication ports) are likely good candidates to expose as named constants for rule authors, rather than requiring raw numeric matching - Worth checking whether DeviceType/Method/Access decomposition is exposed as separate filterable fields (e.g.
file.fsctl.device_type,file.fsctl.method) or bundled into one enriched field. Separate fields would make sequence/detection rules easier to write
- 主要语言
- Go
- 星标
- 2.6k
- 派生
- 222
- 平均合并
- 16 小时 23 分钟
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rabbitstack/fibratus 的其他 Issue
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToString未关闭type: bug
难度 2/5 1-3 小时 新手友好度 82/100
rabbitstack/fibratus#761 · 1 条评论 ·
维护者通常 1 天内回复
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regression未关闭ci
难度 4/5 3-5 天 新手友好度 22/100
rabbitstack/fibratus#754 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
ci rules type: enhancement
难度 5/5 一周以上 新手友好度 15/100
rabbitstack/fibratus#715 ·
维护者通常 1 天内回复
-
scope: hardering type: enhancement
难度 5/5 一周以上 新手友好度 15/100
rabbitstack/fibratus#713 ·
维护者通常 1 天内回复
-
needs: config scope: events/telemetry type: feature
难度 4/5 3-5 天 新手友好度 35/100
rabbitstack/fibratus#710 ·
维护者通常 1 天内回复
查看 rabbitstack/fibratus 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 4 天内回复
-
[bug] Explorer trims leading spaces on file names可能已有人在做 @unshade 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
mickael-kerjean/filestash#1033 · 1 条评论 ·
-
Update Tailscale dependency for Android cgo fallback fix可能已有人在做 @lozbrown 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
[BUG] HTTP remote call timeouts can be returned as 500可能已有人在做 @XnLemon 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
apache/dubbo-go-pixiu#1096 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
canonical/rockcraft#1459 · 1 条评论 ·
维护者通常 2 天内回复