Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Protecting Supabase projects from NPM supply chain attacks

Supabase has introduced security measures to protect projects from NPM supply chain attacks, including package verification, dependency auditing, and recommendations for using lock files and private registries to mitigate risks.

Background

- Supabase is a popular open-source backend-as-a-service (BaaS) platform, often seen as a Firebase alternative. It provides developers with hosted databases, authentication, storage, and real-time APIs, backed by PostgreSQL. - An "NPM supply chain attack" is a security exploit where malicious code is inserted into a legitimate package on the NPM registry (the main JavaScript package repository). When developers install or update that package, the malware infects their project — and, in a supply chain scenario, may compromise the service provider (e.g., Supabase) itself, not just the developer's machine. - This blog post outlines steps Supabase users can take to defend against such attacks: using lockfiles (e.g., package-lock.json), enabling 2FA on NPM accounts, auditing dependencies with `npm audit`, and configuring automated security scanning in CI/CD pipelines. - The post is primarily a security advisory for developers who self-host or extend Supabase via custom JavaScript/TypeScript code, warning that third-party packages pulled by their own code or by Supabase client libraries could be attack vectors.