security_audit

Security Audit Protocol

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "security_audit" with this command: npx skills add cityfish91159/maihouses/cityfish91159-maihouses-security-audit

Security Audit Protocol

  1. Critical "Guard" Files

WARNING: The following files are OFF-LIMITS for modification without explicit user approval.

  • scripts/ai-diff-gate.ts

  • .github/workflows/**

  • Any file with midlaw or policy in the name.

  1. Database Security (Supabase)
  • RLS (Row Level Security):

  • EVERY table must have RLS enabled.

  • Policies must explicitly define USING and WITH CHECK clauses.

  • NEVER use service_role key in frontend client code.

  • SQL Injection:

  • Use parameterized queries or ORM methods (Supabase JS client) only.

  • Avoid raw SQL string concatenation.

  1. API Security
  • Authentication:

  • Verify user exists in req (usually populated by middleware/auth helper).

  • Check permissions before performing actions (e.g. checkPermission(user.id, 'post.create') ).

  • Input Validation:

  • Validate ALL inputs using zod schemas.

  • Sanitize HTML inputs if rendering user content (use DOMPurify ).

  1. Audit Checklist
  • Are guards/policies untouched?

  • Is RLS enabled and tested?

  • Is input validation (zod ) in place?

  • Are no secrets committed to code?

  • Did I run /security-review (if available) or manual check?

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

draconian_rls_audit

No summary provided by upstream source.

Repository SourceNeeds Review
Security

audit_logging

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agentic_architecture

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review-excellence

No summary provided by upstream source.

Repository SourceNeeds Review