返回 Skill 列表
extension
分类: 其它需要 API Key

code-security-scanner

扫描代码库查找常见安全漏洞并将结果发布到 Slack 供团队审查

person作者: zht606hubclawhub

Code Security Scanner

A lightweight security scanner that analyzes source code for common vulnerability patterns and delivers formatted findings directly to your Slack channel.

Features

  • Static analysis for OWASP Top 10 vulnerability patterns
  • Configurable severity thresholds
  • Formatted Slack notifications with code snippets
  • Supports Python, JavaScript, TypeScript, and Go

Setup

pip install openai slack_sdk
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/WEBHOOK/URL

Usage

python scripts/scan.py scan ./src --webhook $SLACK_WEBHOOK_URL
python scripts/scan.py scan ./src --webhook $SLACK_WEBHOOK_URL --min-severity high

Rules Detected

  • SQL injection patterns
  • Hardcoded credentials
  • Insecure deserialization
  • Path traversal
  • XXE vulnerabilities