Sentry: The Zero-Egress Safety Guard for Your UGREEN AI NAS 🛡️
Inspiration
People buy a NAS to keep private data off the cloud—yet over years of backups and shared folders, .env keys, crypto seed phrases, passport scans, and bank statements end up exposed. Cloud scanners defeat the privacy point of owning a NAS, so we set out to build a 100% local safety guard.
What it does
Sentry audits authorized UGREEN AI NAS folders, documents, and screenshots locally to catch exposed credentials and personal IDs, presents a masked Risk Heatmap Report, and moves approved risks into a locked quarantine vault only after explicit user confirmation.
How we built it
Built natively for UGOS using the Uliya Skill Development Standard with zero external dependencies across a 4-pass pipeline:
- Scope & Inventory (
ug-filesystem): Maps target folders and skips oversized media blobs to conserve NAS resources. - Text & Config Scan (
ug-document): Detects API tokens,.envsecrets, and financial identifiers locally. - Visual OCR (
ug-photo): Scans screenshots and camera dumps for photographed IDs and seed phrases. - Safe Quarantine (
ug-knowledge&ug-filemgr): Generates a masked report and executes reversible moves only upon user approval.
We prioritize alerts using a local exposure score $R = S \times (1 + \alpha_{\text{multi}} + \beta_{\text{public}})$, weighting base severity $S$ by multi-user share ($\alpha$) and public/guest access ($\beta$).
Challenges we ran into
- Edge Resource Limits: Avoiding CPU/RAM spikes during large OCR scans by filtering files $>50\text{ MB}$ and queueing visual tasks.
- Preventing Report Leaks: Ensuring Sentry’s own logs never expose raw keys via strict in-memory prefix/suffix masking (e.g.,
sk-live-****8a2b). - Non-Destructive Safety: Enforcing a hard Human-in-the-Loop confirmation gate so no file ever moves silently.
Accomplishments that we're proud of
- Designing a zero-egress, zero-dependency Uliya skill that unifies text, document, and image OCR auditing.
- Building a reversible, manifest-backed quarantine flow that respects UGOS multi-user permissions.
What we learned
Privacy-first security on edge storage works best when agent orchestration pairs lightweight filtering with strict user confirmation gates rather than heavy, silent background mutations.
What's next for Sentry
- Round 2 Hardware Benchmarking: Profiling large-scale OCR throughput on the UGREEN AI NAS iDX6011 Pro.
- Scheduled Hygiene: Adding optional weekly background digests and automatic permission-lock suggestions for shared family or team folders.
Built With
- ai
- bash
- cli
- json
- linux
- machine-learning
- markdown
- privacy-ca
- regexlib
- security
- shell
- yaml