Skip to content

Instantly share code, notes, and snippets.

@mattppal
Last active August 25, 2026 17:52
Show Gist options
  • Select an option

  • Save mattppal/5c01ef4447e94515a03314db1ef2403e to your computer and use it in GitHub Desktop.

Select an option

Save mattppal/5c01ef4447e94515a03314db1ef2403e to your computer and use it in GitHub Desktop.
A simple security checklist for your vibe coded apps

Frontend Security

Security Measure Description
☐ Use HTTPS everywhere Prevents basic eavesdropping and man-in-the-middle attacks
☐ Input validation and sanitization Prevents XSS attacks by validating all user inputs
☐ Don't store sensitive data in the browser No secrets in localStorage or client-side code
☐ CSRF protection Implement anti-CSRF tokens for forms and state-changing requests
☐ Never expose API keys in frontend API credentials should always remain server-side

Backend Security

Security Measure Description
☐ Authentication fundamentals Use established libraries, proper password storage (hashing+salting)
☐ Authorization checks Always verify permissions before performing actions
☐ API endpoint protection Implement proper authentication for every API endpoint
☐ SQL injection prevention Use parameterized queries or ORMs, never raw SQL with user input
☐ Basic security headers Implement X-Frame-Options, X-Content-Type-Options, and HSTS
☐ DDoS protection Use a CDN or cloud service with built-in DDoS mitigation capabilities

Practical Security Habits

Security Measure Description
☐ Keep dependencies updated Most vulnerabilities come from outdated libraries
☐ Proper error handling Don't expose sensitive details in error messages
☐ Secure cookies Set HttpOnly, Secure and SameSite attributes
☐ File upload security Validate file types, sizes, and scan for malicious content
☐ Rate limiting Implement on all API endpoints, especially authentication-related ones

A special thanks to Ted for the inspiration.

@Sakeeb91

Sakeeb91 commented Jun 2, 2025

Copy link
Copy Markdown

This is brilliant!

@Botram7

Botram7 commented Sep 4, 2025

Copy link
Copy Markdown

Great insight!
Many thanks for this, Matt.

@pablogubelin

Copy link
Copy Markdown

Many thanks! Matt

@gg-ctr

gg-ctr commented Jan 26, 2026

Copy link
Copy Markdown

thank you

@kwlcode

kwlcode commented May 18, 2026

Copy link
Copy Markdown

This is super helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment