Defencecore vs Supabase Security Advisor: two different security jobs
Supabase Security Advisor and Defencecore protect different moments in the same system. Security Advisor finds risky database configuration. Defencecore monitors supported runtime signals for active attacks, abuse, policy violations, and suspicious data access. A mature Supabase security workflow uses both.
Supabase Security Advisor is a native configuration-analysis tool. It automatically runs database lints that identify supported security misconfigurations and explains how to remediate them.
Defencecore is a continuous security monitoring tool for Supabase activity. It evaluates supported Auth, API, Postgres, Storage, Realtime, and Edge Function log signals, then opens an incident when activity matches an implemented attack, abuse, or suspicious-access detection.
Security Advisor reduces preventable exposure; Defencecore reduces the time suspicious production activity can continue unnoticed. Neither tool replaces the other.
The difference in one table
| Capability | Supabase Security Advisor | Defencecore |
|---|---|---|
| Primary job | Find known database security misconfiguration | Detect supported attack, abuse, and suspicious-access activity |
| Data examined | Database configuration and objects queried by advisor lints | Supported Supabase activity and log signals |
| When it helps | Before launch and after schema or policy changes | Continuously while the application is running |
| Typical output | Finding, affected object, rationale, and remediation guidance | Incident, severity, affected context, matching evidence, and first action |
| Examples | Missing RLS, risky policies, exposed sensitive objects, unsafe functions or views | Repeated auth abuse, suspicious access behavior, policy violations, and malicious activity patterns |
| Cross-service correlation | Not its primary purpose | Groups related supported signals into an incident |
| Remediation | Provides guidance; the team applies the change | Provides guidance; read-only and does not alter the project |
| Best role | Configuration safety net | Runtime detection and investigation starting point |
Supabase Security Advisor: find the door left open
Security Advisor is built into Supabase Studio and runs automatically. Its lints look for database conditions that commonly create exposure, including RLS gaps, permissive policies, sensitive objects reachable through an API-exposed schema, risky security-definer behavior, and public Storage listing. Supabase documents the current checks in its Database Advisors guide.
That makes Security Advisor the right first tool for a migration review or production-readiness check. It can identify a known insecure state before a user or attacker reaches it. Read the full Supabase Security Advisor guide for the types of checks it runs and a practical review workflow.
Defencecore: watch what happens after deployment
A well-configured system can still be attacked. Password spraying can target Auth, a compromised session can perform valid but suspicious requests, and repeated authorization failures can reveal probing or abuse. These are activity questions, not configuration questions.
Defencecore continuously evaluates supported Supabase log signals for implemented detections. When activity matches, Defencecore opens an incident that keeps the relevant evidence and affected context together. The responder starts with a concrete event to validate rather than an empty log search.
Defencecore does not claim to identify every malicious action. A detection requires a usable signal and an implemented rule, and a human still decides whether the behavior is truly unauthorized or malicious in the application's context.
Three scenarios that show the boundary
1. A public table has no RLS
Security Advisor is the primary tool. It can flag RLS disabled in a public schema so the team can add and test policies before data is exposed. Defencecore may observe related runtime signals, but monitoring is not a substitute for correcting the configuration.
2. An attacker repeatedly targets Supabase Auth
The database may have no configuration finding at all. Defencecore's runtime role is to detect supported authentication-abuse patterns, preserve the matching evidence, and create an incident for investigation. The team can then verify the account, source, and surrounding activity.
3. A valid session behaves suspiciously
Security Advisor cannot decide whether a legitimate credential is being used by its owner. Runtime monitoring can highlight supported access patterns that warrant review. That is deliberately described as suspicious or potentially unauthorized access—not a legal conclusion and not proof of compromise without investigation.
What each tool does not do
| Tool | Important boundary |
|---|---|
| Security Advisor | A clean result covers the checks that ran; it does not prove the application has no authorization bugs or active attack traffic. |
| Defencecore | No incident means no supported detection matched the available signals; it does not prove that no malicious activity occurred. |
| Both | Neither replaces secure application design, policy testing, least privilege, credential protection, backups, or a human incident-response decision. |
Recommended Supabase security workflow
- Design the boundary. Use least-privilege grants, RLS, server-side secrets, secure functions, and narrow Storage policies.
- Test authorization. Exercise anonymous, authenticated, cross-tenant, and privileged paths before release.
- Review Security Advisor. Resolve or consciously document each supported configuration finding.
- Rerun after migrations. Treat new tables, policies, functions, views, extensions, and exposed schemas as security changes.
- Enable continuous monitoring. Watch runtime signals before the project holds production users and data.
- Investigate incidents. Validate the evidence, contain the issue, and preserve application context.
- Feed lessons back. Turn confirmed incidents into tighter policies, safer code, better tests, and improved detections.
Which one should you choose?
Do not choose between them. Start with Supabase Security Advisor because it is native, useful, and built for finding the configuration mistakes that Supabase understands best. Add Defencecore when a production project needs continuous monitoring for active security attacks, malicious behavior, policy violations, and suspicious data access across supported Supabase signals.
Security Advisor helps answer “Have we configured this safely?” Defencecore helps answer “Is something dangerous happening now?” Together they cover prevention and detection without pretending either one can prove absolute security.
Frequently asked questions
- Does Defencecore replace Supabase Security Advisor?
- No. Supabase Security Advisor is the better tool for its native database configuration checks, while Defencecore is designed for continuous runtime monitoring and incident detection. A Supabase team should use Security Advisor to find misconfiguration and Defencecore to watch supported activity signals after deployment.
- What is the main difference between Defencecore and Security Advisor?
- Security Advisor asks whether the database matches known insecure configuration conditions. Defencecore asks whether activity across supported Supabase logs matches a known attack, abuse, or suspicious-access pattern, then opens an incident with the evidence needed for review.
- Can Defencecore detect illegal data access?
- Defencecore can identify supported unauthorized or suspicious data-access patterns when the necessary signals appear in Supabase logs. It cannot determine whether conduct is legally illegal, and it cannot detect activity that produces no usable signal or has no implemented detection. A human must validate the incident in application context.
- Does Defencecore make changes to a Supabase project?
- No. Defencecore is read-only. It detects and explains supported signals, groups evidence into incidents, and recommends a first response, but it does not change policies, revoke credentials, block users, or remediate the project automatically.
- Which tool should I use before launching a Supabase app?
- Use Supabase Security Advisor before launch and after database changes to find supported configuration problems. Add continuous monitoring before real users and real data arrive so attacks, abuse, and suspicious access do not depend on someone manually checking logs later.