Skip to content

Security: abhiyanpa/Cruze-Scan

Security

SECURITY.md

Security Information

Firebase API Keys (Safe to Commit)

The Firebase configuration in src/firebase.ts contains API keys that are safe to be public:

apiKey: "AIzaSyBxuiFea3YYoywEaVjsWOQ7cgK4SO222v4"

Why this is safe:

  • Firebase API keys are designed to be included in client-side code
  • They only identify your Firebase project
  • Security is enforced through Firebase Security Rules
  • Google's official documentation states these can be public
  • Read more: Is it safe to expose Firebase apiKey to the public?

VirusTotal API Key (MUST BE PROTECTED)

Your VirusTotal API key must be kept private and should NOT be committed to version control.

Setup

  1. Copy .env.example to .env
  2. Add your VirusTotal API key:
    VITE_VIRUSTOTAL_API_KEY=your-actual-api-key
    
  3. The .env file is already in .gitignore

For Production Deployment

Set the environment variable in your hosting platform:

Firebase Hosting:

# Not recommended for client-side apps - API key will be visible in browser
# Consider using Firebase Functions to proxy VirusTotal API calls

Vercel/Netlify:

# Add in dashboard under Environment Variables
VITE_VIRUSTOTAL_API_KEY=your-api-key

Best Practice for Production

For production apps, consider:

  1. Using Firebase Cloud Functions to proxy VirusTotal API calls
  2. Storing the API key in Firebase Functions environment variables
  3. This keeps the key completely hidden from client-side code

Reporting Security Issues

If you discover a security vulnerability, please email: [your-email]

Do not create public GitHub issues for security vulnerabilities.

There aren’t any published security advisories