[GH-ISSUE #661] Windows C:\ProgramData\Netbird directory/files permissions #1133

Open
opened 2026-08-05 00:41:16 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @rgl on GitHub (Jan 21, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/661

Describe the problem

The Windows C:\ProgramData\Netbird directory (and contained files) permissions seems to be too wide.

The config.json file seems to have a private key (in the .PrivateKey and SSHKey properties), which should only be readable by the the netbird service (and probably SYSTEM and Administrators), but not by all the machine users (the Users group).

For reference, these are the current permissions that I can see in my machine, and they should not contain the BUILTIN\Users entry :

C:\> Get-Acl C:\programdata\Netbird\ | Format-List

Path   : Microsoft.PowerShell.Core\FileSystem::C:\ProgramData\Netbird\
Owner  : BUILTIN\Administrators
Group  : NT AUTHORITY\SYSTEM
Access : NT AUTHORITY\SYSTEM Allow  FullControl
         BUILTIN\Administrators Allow  FullControl
         CREATOR OWNER Allow  268435456
         BUILTIN\Users Allow  ReadAndExecute, Synchronize
         BUILTIN\Users Allow  Write
Audit  :
Sddl   : O:BAG:SYD:AI(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;OICIIOID;GA;;;CO)(A;OICIID;0x1200a9;;;BU)(A;CIID;DCLCRPCR;;;BU)


C:\> Get-Acl C:\programdata\Netbird\config.json | Format-List

Path   : Microsoft.PowerShell.Core\FileSystem::C:\programdata\Netbird\config.json
Owner  : BUILTIN\Administrators
Group  : NT AUTHORITY\SYSTEM
Access : NT AUTHORITY\SYSTEM Allow  FullControl
         BUILTIN\Administrators Allow  FullControl
         BUILTIN\Users Allow  ReadAndExecute, Synchronize
Audit  :
Sddl   : O:BAG:SYD:AI(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU)
Originally created by @rgl on GitHub (Jan 21, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/661 **Describe the problem** The Windows `C:\ProgramData\Netbird` directory (and contained files) permissions seems to be too wide. The `config.json` file seems to have a private key (in the `.PrivateKey` and `SSHKey` properties), which should only be readable by the the netbird service (and probably `SYSTEM` and `Administrators`), but not by all the machine users (the `Users` group). For reference, these are the current permissions that I can see in my machine, and they should not contain the `BUILTIN\Users` entry : ```console C:\> Get-Acl C:\programdata\Netbird\ | Format-List Path : Microsoft.PowerShell.Core\FileSystem::C:\ProgramData\Netbird\ Owner : BUILTIN\Administrators Group : NT AUTHORITY\SYSTEM Access : NT AUTHORITY\SYSTEM Allow FullControl BUILTIN\Administrators Allow FullControl CREATOR OWNER Allow 268435456 BUILTIN\Users Allow ReadAndExecute, Synchronize BUILTIN\Users Allow Write Audit : Sddl : O:BAG:SYD:AI(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;OICIIOID;GA;;;CO)(A;OICIID;0x1200a9;;;BU)(A;CIID;DCLCRPCR;;;BU) C:\> Get-Acl C:\programdata\Netbird\config.json | Format-List Path : Microsoft.PowerShell.Core\FileSystem::C:\programdata\Netbird\config.json Owner : BUILTIN\Administrators Group : NT AUTHORITY\SYSTEM Access : NT AUTHORITY\SYSTEM Allow FullControl BUILTIN\Administrators Allow FullControl BUILTIN\Users Allow ReadAndExecute, Synchronize Audit : Sddl : O:BAG:SYD:AI(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU) ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1133