Harden Fibratus against tampering
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- go
- Área
- operating-systems, security
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.SecurityDescriptorFromStringwith an SDDL such asD: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_STOPandDELETEto 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 theServiceInstalldirective using an SDDL likeD:(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_TERMINATEto Everyone except SYSTEM on the running Fibratus process, so it can't be killed viaTerminateProcessfrom a non-SYSTEM context. - Registry key protection for locking down the service's registry key at
HKLM\SYSTEM\CurrentControlSet\Services\Fibratusvia 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
- Lenguaje dominante
- Go
- Estrellas
- 2.6k
- Forks
- 222
- Merge medio
- 16 h 23 min
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringAbiertotype: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
rabbitstack/fibratus#761 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regressionAbiertoci
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
rabbitstack/fibratus#754 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
ci rules type: enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
rabbitstack/fibratus#715 ·
Los mantenedores suelen responder en 1 día
-
Add `WMI` activity telemetryAbiertoneeds: config scope: events/telemetry type: feature
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
rabbitstack/fibratus#710 ·
Los mantenedores suelen responder en 1 día
-
needs: config scope: events/telemetry type: feature
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
rabbitstack/fibratus#708 ·
Los mantenedores suelen responder en 1 día
Todos los issues de rabbitstack/fibratus
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
nebari-dev/llm-serving-pack#270 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
area/controller
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
volcano-sh/kthena#2109 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
unbound-force/replicator#193 ·
Los mantenedores suelen responder en 2 días