Capture `NtFsControlFile` syscall as a new `FsControlFile` event type
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- go
- Lĩnh vực
- operating-systems, security
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 2.6k
- Fork
- 222
- Merge trung bình
- 16 giờ 23 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringĐang mởtype: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
rabbitstack/fibratus#761 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regressionĐang mởci
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
rabbitstack/fibratus#754 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci rules type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
rabbitstack/fibratus#715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope: hardering type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
rabbitstack/fibratus#713 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add `WMI` activity telemetryĐang mởneeds: config scope: events/telemetry type: feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rabbitstack/fibratus#710 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rabbitstack/fibratus
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
nebari-dev/llm-serving-pack#270 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/controller
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
volcano-sh/kthena#2109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
unbound-force/replicator#193 ·
Maintainer thường phản hồi trong vòng 2 ngày