GuardScript is a serverless script distribution platform with loader-based access control. Instead of sharing source code directly, script content is served through controlled endpoints with signature verification, timestamp/nonce replay protection, license enforcement, HWID binding, and workspace access policies.
The platform is composed of five layers:
/api/* and /files/* requests to the Lambda Function URL. A CloudFront Function rewrites SPA routes and enforces auth-cookie checks before serving protected pages.
Client (browser / loader)
→ CloudFront Distribution
→ [Static] S3 Frontend Bucket (HTML, CSS, JS)
→ [/api/*, /files/*] Lambda Function URL
→ DynamoDB (users, workspaces, projects, files, licenses, ...)
→ S3 Content Bucket (script objects)
→ API Gateway WebSocket API
→ Lambda (→ DynamoDB WebSocket connections table)
→ CloudWatch Logs / Alarms / Dashboard
| Protocol | Endpoint | Encryption | Use Case |
|---|---|---|---|
| v2 | GET /api/v5/execute | XOR + HMAC-SHA256 signature | Lightweight loaders |
| v3 | POST /api/v5/handshake | ECDH X25519 + AES-256-GCM | High-security loaders |
Both protocols require a valid license key, HWID, timestamp (within ±300s), and a nonce to prevent replay.
By the end of this workshop you will have: