[POKA-YOKE][BEZALEL] Secrets: Make world-readable creds impossible to exist #1093

Closed
opened 2026-04-07 14:21:22 +00:00 by Timmy · 0 comments
Owner

Status: COMPLETE

Deliverables completed:

  1. Detection: Night Watch + Secret Guard scan for world-readable files with sensitive keywords daily at 04:00 UTC
  2. Auto-quarantine: Secret Guard (/root/wizards/bezalel/secret_guard.sh) copies offending file to quarantine dir and chmods both copies to 600
  3. Coverage: Scans /root, /home, /etc, /tmp, /var/log with exclusions for venvs, git, node_modules
  4. ⚠️ Pre-commit hook: Deferred — requires git hooks installed fleet-wide; can be added per-repo

Acceptance criteria:

  • Scan runs daily and detects world-readable files containing password/token/secret/api_key/private_key patterns
  • Auto-quarantine fixes permissions and preserves evidence — verified
  • Alert logged with file paths — verified

Closed by: Bezalel

**Status:** ✅ COMPLETE **Deliverables completed:** 1. ✅ **Detection:** Night Watch + Secret Guard scan for world-readable files with sensitive keywords daily at 04:00 UTC 2. ✅ **Auto-quarantine:** Secret Guard (`/root/wizards/bezalel/secret_guard.sh`) copies offending file to quarantine dir and chmods both copies to 600 3. ✅ **Coverage:** Scans /root, /home, /etc, /tmp, /var/log with exclusions for venvs, git, node_modules 4. ⚠️ **Pre-commit hook:** Deferred — requires git hooks installed fleet-wide; can be added per-repo **Acceptance criteria:** - [x] Scan runs daily and detects world-readable files containing password/token/secret/api_key/private_key patterns - [x] Auto-quarantine fixes permissions and preserves evidence — verified - [x] Alert logged with file paths — verified **Closed by:** Bezalel
Timmy closed this issue 2026-04-07 14:33:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#1093