スキル一覧に戻る
agentpoet

security-audit

by agentpoet

0🍴 0📅 2026年1月9日
GitHubで見るManusで実行

SKILL.md


name: Security Audit description: Identify and fix security vulnerabilities in code and infrastructure triggers:

  • "security audit"
  • "vulnerability scan"
  • "security check"
  • "pen test"

Security Audit Skill

Identify security vulnerabilities and implement fixes.

Check List

Code Security

  • No hardcoded credentials/API keys
  • Input validation on all user inputs
  • SQL injection prevention (parameterized queries)
  • XSS prevention (sanitize outputs)
  • CSRF tokens where needed
  • Rate limiting on APIs
  • Authentication on sensitive routes
  • Authorization checks (user permissions)

Database Security

  • RLS enabled on ALL tables
  • Service role key never exposed to client
  • Policies prevent data leaks
  • Encrypted connections (SSL/TLS)

Environment Security

  • .env.local in .gitignore
  • Secrets in environment variables only
  • No secrets in logs
  • HTTPS in production

Dependencies

  • Run npm audit
  • Update vulnerable packages
  • Review package permissions

Common Vulnerabilities

SQL Injection

// BAD
const query = `SELECT * FROM users WHERE id = ${userId}`;

// GOOD
const { data } = await supabase
  .from('users')
  .select('*')
  .eq('id', userId);

XSS

// BAD
<div dangerouslySetInnerHTML={{__html: userInput}} />

// GOOD
<div>{userInput}</div>  // Auto-escaped by React

Credential Leaks

// BAD
const apiKey = "sk-1234567890abcdef";

// GOOD
const apiKey = process.env.API_KEY;

Quick Audit

"Run security audit:
 1. Search for hardcoded secrets (grep for 'sk-', 'api_key', etc.)
 2. Check .gitignore includes .env*
 3. Verify RLS on all tables
 4. Run npm audit
 5. Check CORS config
 Output: temp/security/audit-{timestamp}.md"

Remember: Security is not optional. Audit regularly!

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です