Inspiration
During my internship at Information & Data Security Solutions, I built systems to detect sensitive data leakage in LLM outputs. I realized that while enterprises have compliance tools, individual NAS users lack automated privacy guardians. Users store contracts, IDs, and financial docs locally but often forget to encrypt or tag them, risking exposure if their account is compromised. I wanted to bring enterprise-grade "Human-in-the-loop" compliance to the personal cloud.
What it does
NAS Privacy Sentinel is an AI-powered UGREEN Skill that acts as a proactive privacy auditor. It:
- Scans
/Downloadsand/Documentsfor files containing candidate PII (IDs, bank cards). - Presents a "Candidate Hit List" to the user for review—never acting blindly.
- Quarantines confirmed sensitive files into a
/Secure-Vaultdirectory. - Tags them as
Sensitivefor future audit trails.
Unlike simple regex tools, it uses semantic understanding to reduce false positives and enforces a strict approval workflow before any file movement.
How we built it
Leveraging the Uliya Skill Development Kit, I architected a multi-agent orchestration workflow:
- File-Agent: Handles read-only scanning of target directories using
ug-filesystem. - Document-Agent: Performs content analysis via
ug-documentto extract PII entities. - Parent Orchestrator: Manages state transitions (
waiting_user,waiting_approval) and enforces the "confirm-before-move" policy.
I drew directly from my experience integrating AI agents into Java OA systems at Business-intelligence of Oriental Nations, applying the same defensive programming patterns to ensure the Skill never hallucinates file operations or bypasses user consent.
Challenges we ran into
- Balancing Automation vs. Safety: Early versions tried to auto-quarantine files, but this risked moving legitimate documents. I pivoted to a "Candidate Hit + Manual Confirmation" model, which aligns with GDPR principles and prevents data loss from AI misclassification.
- Static Checker Compliance: The Uliya
check-lib.mjshas strict syntax requirements (e.g., Unicode arrows→for capability evidence). I had to iteratively refine theSKILL.mdstructure to pass validation while maintaining readability. - Edge Case Handling: Ensuring the Skill gracefully handles empty directories, unreadable files, and partial moves without crashing was critical for a production-ready feel.
Accomplishments that we're proud of
- Zero-False-Positive Design: By enforcing human confirmation for every move operation, we achieved a theoretically 0% false positive rate for file deletion/movement, a standard rarely seen in hackathon projects.
- Production-Grade Logic: The Skill passes all Uliya static checks with 0 errors/warnings and handles all 5 delegation states explicitly, mirroring enterprise software reliability standards.
- Seamless Integration: Successfully mapped complex security workflows onto UGREEN's native CLI capabilities without requiring external dependencies or cloud APIs.
What we learned
- Agent Orchestration on Edge Devices: Learned how to design lightweight, state-aware AI workflows that respect local hardware constraints and privacy boundaries.
- Defensive AI Design: Reinforced the principle that in security-critical applications, AI should be an advisor not an executor. User trust is built through transparency and control.
- UGREEN Ecosystem: Gained deep familiarity with the Uliya Skill architecture and the potential of local-first AI for personal data management.
What's next for NAS Privacy Sentinel
- Expand PII Patterns: Add support for more regional ID formats and custom regex rules.
- Encrypted Vault Integration: If UGREEN NAS adds native encryption APIs, upgrade from "directory isolation" to true AES-256 file encryption.
- Audit Logging: Generate a weekly privacy report summarizing scanned files and actions taken.
Built With
- ai-agent
- api
- cli
- cybersecurity
- data
- detection
- docker
- file-management
- git
- homeagent
- homeagent-concepts:-data-privacy
- java
- javascript
- linux
- llm
- natural-language-processing
- pii-detection
- python
- semantic-search-tools:-vs-code
- ugos
- workflow
- workflow-orchestration