Harden Fibratus against tampering

Đang mở
#713 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/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

Hướng nghiên cứu

The payload names no source files. Start by finding where the Windows service is registered (the WiX ServiceInstall directive and the HKLM\SYSTEM\CurrentControlSet\Services\Fibratus key) and where the process starts. Before writing code, get a maintainer decision on whether hardening is opt-in or unconditional, and on how the watchdog itself is protected. Done means an agreed design for each layer, not a single patch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

scope: hardering type: enhancement

Motivation

Fibratus runs as a security-sensitive detection sensor, which makes it a natural target for an attacker trying to disable, kill, or reconfigure it to blind detection before proceeding further. Today there's no built-in tamper resistance. The install directory, the Windows service, the running process, and the service registry key are all as accessible as any ordinary application, meaning a local admin-level attacker (or malware running as one) can simply stop the service, kill the process, or delete the binaries.

Expectation

Fibratus becomes meaningfully harder to disable or tamper with from a local attacker's perspective, across every layer where it's currently exposed: install directory, Windows service, running process, registry configuration, and process mitigation policies, plus a watchdog that restores it if it's killed anyway.

Proposal

  • Install directory ACLs to restrict NTFS permissions on the Fibratus install directory and all child directories/files to SYSTEM and Administrators only, via windows.SecurityDescriptorFromString with an SDDL such as D:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA) (full control to SYSTEM and Builtin Administrators, protected ACL so it doesn't inherit weaker permissions from the parent)
  • Windows service hardening to deny SERVICE_STOP and DELETE to everyone except SYSTEM, so the service can't be stopped or removed by a regular admin token or a compromised lower-privileged process. Set this via the WiX Toolset's PermissionEx attribute on the ServiceInstall directive using an SDDL like D:(A;;RPWPDTLOCRRC;;;SY)(A;;CCLCSWLOCRRC;;;BA)(D;;WPDT;;;WD). SYSTEM gets full control, Administrators get read-only query/enumerate rights, and Everyone is explicitly denied stop/delete
  • Process DACL hardening via SetSecurityInfo to deny PROCESS_TERMINATE to Everyone except SYSTEM on the running Fibratus process, so it can't be killed via TerminateProcess from a non-SYSTEM context.
  • Registry key protection for locking down the service's registry key at HKLM\SYSTEM\CurrentControlSet\Services\Fibratus via SetNamedSecurityInfo, preventing tampering with service configuration (e.g. changing the binary path, start type, or failure actions) from non-SYSTEM/Administrator contexts
  • Process mitigation policies. Evaluate programmatically setting/overriding process mitigation options per the Windows mitigation options guidance, to reduce the attack surface for code injection or exploitation targeting the Fibratus process itself
  • Watchdog process. Build a separate lightweight watchdog that periodically checks whether the Fibratus process is alive and respawns it if it has died or been terminated, providing a second line of defense on top of the ACL/DACL hardening above.

Additional context

  • These layers are complementary rather than redundant: DACL hardening prevents casual termination, but a sufficiently privileged attacker (e.g. SYSTEM-level compromise) could still bypass it. The watchdog provides resilience even if a single layer is defeated, and vice versa
  • Worth deciding whether hardening is applied unconditionally on install/service start, or gated behind a config flag. Some environments may want it opt-in initially given the operational risk of a misconfigured SDDL locking out legitimate management tooling
  • The watchdog itself will need to be considered as part of the threat model. It should probably receive equivalent tamper protections (service/process DACLs), or an attacker could simply target the watchdog instead of Fibratus directly
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rabbitstack/fibratus

Tất cả issue của rabbitstack/fibratus

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.