AirGap-Audit: Autonomous Local Data Leak & PII Guard for UGREEN AI NAS Inspiration Remote developers, SMBs, and privacy-conscious teams store massive amounts of code, backups, and documentation on their NAS. But sensitive credentials—like API keys, SSH private keys, database passwords, and Personally Identifiable Information (PII)—are routinely committed to shared folders or local backup snapshots by accident. We were inspired by a simple question: What if a NAS could actively and autonomously protect its users from catastrophic data leaks before files ever sync to cloud backups or external integrations? That question led to AirGap-Audit. What it does AirGap-Audit is an autonomous local security scanning Skill designed for UGREEN AI NAS. Instead of acting as a passive storage box, it turns the NAS into an active, localized security perimeter. It aims to:
- Continuously monitor shared storage watch directories for newly added or modified files.
- Run high-speed Shannon entropy checks and pattern matching to detect exposed secrets and PII.
- Evaluate true risk versus mock test fixtures using a local, privacy-first LLM.
- Automatically isolate compromised files into an encrypted local vault (/Quarantine) with restricted permissions (0600).
- Leave a clear, human-readable audit stub (.redacted.txt) in the original location with full incident details. Its central concept is Zero-Cloud Perimeter Defense: ensuring sensitive data isolation happens 100% locally on NAS hardware without a single byte leaving your network. How we built it We developed the initial Skill using the official UGREEN Skill Creation Toolkit and its documented capabilities. The design organizes the workflow into three specialist components:
- Entropy Scanner: High-speed regex and Shannon entropy analyzer running across incoming files.
- Local LLM Verifier: Contextual verification engine using local models (like Qwen-2.5) to filter out dummy test placeholders from real credentials.
- Quarantine Manager: Secure file relocation daemon that isolates threats and generates redacted stubs. The workflow is designed around automated background event triggers, local storage permissions, and absolute user privacy. Challenges we ran into The biggest challenge was building a scanning engine fast enough to handle large file volumes without spiking system resources or consuming excessive background CPU cycles on the NAS. Another challenge was eliminating false positives—such as dummy keys in test documentation—without sending data to external cloud APIs. We solved this by combining high-speed entropy scoring with lightweight local LLM verification to evaluate context safely offline. What we learned We learned that NAS security cannot rely on manual audits or cloud tools; it requires ambient, real-time local inspection. We also learned the importance of designing automated remediation that isolates threats securely without permanently deleting user files or breaking folder structures. What's Next Our next objective is to benchmark scanning speeds across multi-terabyte ZFS and Btrfs pools under active IO load, and fully integrate the final web console dashboard into UGOS. AirGap-Audit: Because your local storage should protect your secrets.