Restrict access to config/log files

Offen
#568 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
go
Bereich
security

Rechercherichtung

Start by locating where the application creates or sets permissions for Config/fibratus.yml and Logs/fibratus.txt. Check how those permissions are tested or configured on Windows. Done means low privileged users cannot read either file while administrators retain access; the issue provides no test or source file names to start from.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

scope: config scope: hardering type: enhancement

Problem

Normal (low privileged) users can read:

  • Config/fibratus.yml
  • Logs/fibratus.txt
Image Image

A local attacker is able to gain access to potentially sensitive information (confidentiality).

Solution

Remove read permissions for users (non-admins) for the mentioned files.

Additional context

While not necessarily a security vulnerability, it is best practice to not give the attacker access to EDR logs
. E.g. Defender will only show alert summaries in its UI, but need admin to look at the details. Defender Log files are not readable (C:\ProgramData\Microsoft\Windows Defender\Support).

Note that Defender Windows Events are also user-readable for some reason (Application and Service Logs/Microsoft/Windows/Windows Defender/operational). So placing fibratus events in Windows Logs/Application is okish.

Vorherrschende Sprache
Go
Sterne
2.6k
Forks
222
Ø Merge
16 Std. 23 Min.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus rabbitstack/fibratus

Alle Issues in rabbitstack/fibratus

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.