Case study · M.S. Computer Science capstone
NestShield: an AI security assistant that non-technical people actually use
Most home users can't act on security advice written for professionals. NestShield scans their network, explains what it finds in plain language, and rewards them for fixing it, with every model and every byte of data staying on their own device.
Results
Pre/post intervention study
01 · The problem
Security guidance is written for experts, and cloud tools ask users to trade away privacy
Non-technical users face the same threats as companies with none of the vocabulary. Existing tools either bury them in jargon or send their network data to a vendor's cloud. I set out to test whether three ideas together could close that gap: explainable AI that teaches as it answers, game mechanics that turn advice into action, and an architecture that never asks users to give up their data.
02 · Architecture
Everything runs on the user's machine
- React + TypeScript UIDashboard, XP and ranks, Threat Radar
- FastAPI backendAsync API, WebSockets for live scans and streamed answers
- AEGIS assistantFine-tuned Mistral 7B with retrieval-augmented generation
- ChromaDB vector storeNIST 800-53 and OWASP Top 10, embedded locally
03 · Engineering decisions
Three problems worth showing
Knowledge ingestion
A Python pipeline parsed 600+ pages of standards into 2,068 overlapping chunks in 39.1 seconds. Profiling showed the job is memory-bound, with a ~733 MB spike from the embedding model.
A render loop at 100% CPU
A global state listener caused a React race condition. Moving message state into a ref-based latch cut interaction latency to 16 ms and returned the CPU to idle.
Fail-safe by design
When a corrupt ISO 27001 PDF failed to parse, the pipeline logged the error and kept ingesting NIST and OWASP sources instead of crashing.
04 · Findings
What the study showed
- Knowledge. AI explanations improved comprehension most on complex topics like ransomware.
- Behavior. Gamification drove a 75% remediation rate, though some motivated users still lacked the means to act.
- Trust. Local-first processing earned a 6.4/7 trust score, and trust rose after people used the system.
What I'd do differently
- Ship an installer instead of a PyInstaller bundle, which broke ChromaDB's dynamic dependencies.
- Pair motivation with assisted remediation so users can fix issues in one step.
- Reduce installation friction, the main cause of participant drop-off.
05 · Build log
Development journal
- Thesis defense: validating XAI, gamification, and local-first architecture A 60-minute defense with a live demo of AEGIS explanations, gamification, and the Threat Radar.
- Engineering intelligence: performance profiling and adaptive AI An adaptive persona that shifts from analogies to technical language as users level up.
- From concept to execution: profiling the knowledge engine Building and stress-testing the RAG ingestion pipeline.
- Laying the foundation: research and architecture Scoping the problem and mapping the first architecture.