スキル一覧に戻る
enact-on

security-guidance

by enact-on

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

SKILL.md


name: security-guidance description: Security reminder hook that warns about potential security issues when editing files, including command injection, XSS, and unsafe code patterns license: MIT compatibility: opencode

Security Guidance Skill

Security best practices and vulnerability detection for code development.

What I Check

Command Injection

  • OS command injection from user input
  • Unsafe use of exec, spawn, subprocess
  • Shell metacharacters in interpolated strings

Cross-Site Scripting (XSS)

  • Unescaped user input in HTML/JSX
  • dangerouslySetInnerHTML usage
  • User-controlled URLs in anchors/iframes

Authentication & Authorization

  • Missing authentication checks
  • Hardcoded credentials or API keys
  • Session management issues
  • Missing CSRF protection

Data Validation

  • Missing input validation and sanitization
  • Type coercion vulnerabilities
  • Array/object confusion attacks

Cryptography

  • Weak encryption algorithms
  • Hardcoded encryption keys
  • Missing signature verification
  • Insecure random number generation

Dependency Security

  • Outdated packages with known vulnerabilities
  • Unused dependencies
  • Unsafe source configurations

Security Checklist

Before Writing Code

  • Validate and sanitize all user input
  • Use parameterized queries for database access
  • Implement proper authentication and authorization
  • Never trust client-side validation

While Writing Code

  • Use prepared statements for SQL
  • Escape user-generated content
  • Implement principle of least privilege
  • Log security-relevant events

After Writing Code

  • Review for hardcoded secrets
  • Check for exposed sensitive data
  • Verify error handling doesn't leak information
  • Test with malicious input

Common Vulnerabilities

VulnerabilityDescriptionPrevention
SQL InjectionMalicious SQL via user inputUse prepared statements
XSSScript injection via user contentEscape/encode output
CSRFUnauthorized actions on behalf of usersUse CSRF tokens
Path TraversalAccess to files outside intended directoryValidate and sanitize paths
SSRFServer makes requests to attacker-controlled URLsAllowlist and validate URLs

When to Use Me

Invoke this skill whenever:

  • Handling user input or data
  • Implementing authentication/authorization
  • Working with external systems/APIs
  • Processing files or uploads
  • Implementing cryptographic features

Part of SuperAI GitHub - Centralized OpenCode Configuration

スコア

総合スコア

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

レビュー

💬

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