AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 62 Bitcoin

Harden permissions of seeds and datadir (#3340)

Public commit record

What the developer wrote

Authored by rorp

53/100 · Thin
Harden permissions of seeds and datadir (#3340)
✓ Descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens file and folder permissions for Eclair's sensitive data. It ensures that seed files (which protect the node's identity and Lightning channel funds) and the data directory are readable only by the owner on Linux/macOS systems. Previously, these files could inherit looser default permissions, potentially allowing other local users on the same machine to read secrets and steal funds. Windows is unaffected because it uses a different permission model.

Recommended action

Deploy this patch and verify that existing seed files and datadir permissions are manually restricted on POSIX systems, since the patch only sets permissions at creation/migration time and does not retroactively fix pre-existing files. Review multi-user and backup access patterns to ensure legitimate services still function under owner-only access.

Security signals we found

01

Hardening of seed file permissions to owner-only read/write

02

Hardening of datadir and chaindir permissions to owner-only

03

Migration path also re-permissions copied seed files

04

Test coverage added for generated and migrated seed permissions

05

Explicit no-op handling for non-POSIX filesystems

Risk score

Why this scored 62/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 10/15
Affected reach 8/15
Confidence 9/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.