Skip to content
Back to skills

Security Audit

ASecurity

Checklist for security-sensitive coding, ensuring MaiHouses guards and policies are respected.

  • 207 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added February 7, 2026
toolssqlgitapidatabasefrontendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add NeverSight/skills_feed --skill security_audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-security-audit/badge)](https://www.skillsdirectory.com/skills/neversight-security-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security_audit
description: Checklist for security-sensitive coding, ensuring MaiHouses guards and policies are respected.
allowed-tools: Read, Grep, Glob
---

# 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.

## 2. 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.

## 3. 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`).

## 4. 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?

Files in this skill

  • SKILL.md1.4 KB
  • description_cn.txt75 B
  • description_de.txt133 B
  • description_en.txt95 B
  • description_es.txt144 B
  • description_fr.txt137 B
  • description_ja.txt163 B
  • description_ko.txt124 B
  • description_tw.txt75 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.