mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
Replace hardcoded credential-access YAML rules with a Go data table (credentials.go) covering 30+ sensitive paths × 5 access methods, with $HOME variant support, descriptive rule IDs, and an INFO-level heuristic catch-all for unknown home dotdirs. Add 12 new detection rules from security gap analysis: - invisible-payload (CRITICAL): Unicode tag chars U+E0001–E007F - prompt-injection-4 (CRITICAL): output suppression directives - hidden-unicode-2 (HIGH): bidi control chars (Trojan Source) - config-manipulation-0 (HIGH): AI config/memory file poisoning - hidden-comment-injection-1 (HIGH): markdown reference-link injection - data-exfiltration-3 (HIGH): DNS exfiltration via dig/nslookup - self-propagation-0 (HIGH): repository worm instructions - untrusted-install-0/1 (MEDIUM): npx -y, pip install from URL - hidden-unicode-3 (MEDIUM): soft hyphens, directional marks The invisible-payload pattern intentionally bypasses tutorial suppression so CRITICAL findings are never silenced in educational contexts.