mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
Security fixes from red-team review of audit rules: - Prompt injection: add \s* after ^ anchor to prevent whitespace bypass, add (?i) for case-insensitive matching, use [^>]* for HTML attributes, expand to cover DEV MODE / DEVELOPER_MODE variants - Credential access: add rules for ln/cp symlink, input redirection, dd if=/etc/shadow (previously mislabeled as destructive-commands) - Data exfiltration: remove exclude pattern that allowed .png?stolen_data - Interpreter tier: add bun, deno, npx, tsx, pwsh, powershell; add version-suffix stripping (python3.11 → python3); handle env prefix Code quality (from /simplify review): - Rename crossFinding → syntheticFinding and reuse in TierCombinationFindings to eliminate 5 inline Finding literals - Extract hasFinding() test helper to reduce tier test boilerplate - Remove unnecessary (?i) from credential-access-3/4 (Unix commands are always lowercase)