6-Layer AI/RAG Security Shield, Private KYC Vault & OWASP Web Hardening | FreestyleFreelancer Knowledge Wiki

## Phase 1 — Web, Upload & Identity Document Hardening - **Private Authenticated KYC Vault:** Local government ID uploads are stored outside public web directories (`server/private_uploads/kyc`), direct `/uploads/kyc/*` access returns `403 Forbidden`, and files stream exclusively through `GET /api/upload/private-kyc/:filename` with DB-backed session verification and strict owner-or-admin authorization. - **Magic-Byte Inspection & Stored-XSS Prevention:** Every upload bucket (`kyc`, `chat`, `delivery`, `reference`, `posts`, `showcase`, `avatars`, `recordings`) enforces explicit MIME whitelists, blocks active script extensions (`.svg`, `.svgz`, `.xml`, `.xhtml`, `.html`, `.mjs`, `.phtml`, `.php`), and verifies actual leading file magic bytes before saving. - **DNS-Verified SSRF Protection:** Profile importing and media crawling validate allowed platform domains, resolve DNS A/AAAA records to block loopback, RFC1918 private LANs, and AWS/GCP cloud metadata (`169.254.169.254`, `fd00:ec2::254`), and manually re-validate every HTTP redirect hop. - **Markdown XSS Protocol Sanitizer:** All Markdown links rendered across Maya, Direct Messages, broadcasts, and Support Suite validate URLs via `sanitizeSafeUrl()`, blocking `javascript:`, `data:`, and `vbscript:` payloads. ## Phase 2 — 6-Layer OWASP LLM Top 10 AI & RAG Defense Stack 1. **Layer 1 — Deep Input Normalization & Server-Side History:** NFKC Unicode normalization, zero-width/BiDi stripping, Cyrillic/Greek homoglyph folding, mul

Global & Indian Freelancing Website with 100% Milestone Escrow

FreestyleFreelancer.com is a full-stack freelancing website designed for both global and Indian clients and freelancers. Unlike single-mode platforms, FreestyleFreelancer unites competitive project bidding (like Upwork and Freelancer.com), fixed-price instant-hire gigs (like Fiverr), and AI-vetted enterprise talent sourcing (like Toptal) with multi-currency USD & INR escrow protection via Stripe and Razorpay.

  • Project Bidding & Remote Contracts: Post custom software, AI, design, or marketing projects and receive vetted freelancer proposals.
  • Productized Freelance Gigs: Compare Basic, Standard, and Premium fixed-price service packages with transparent delivery timelines.
  • Lower Freelancer Commissions (10%–20%): Keep up to 90% of earnings with milestone escrow protection.
  • AI Talent Matching & Live Collaboration: Built-in HD video calls, real-time chat, AI RFP generator, and verified skill certifications.