Configure static application security testing (SAST) tools for automated vulnerability detection in application code. Use this when setting up security scans, implementing DevSecOps practices, or automating code vulnerability detection.
English | 日本語
複数のプログラミング言語にわたる包括的なセキュリティスキャンのための静的アプリケーションセキュリティテスト(SAST)ツールのセットアップ、設定、カスタムルール作成。
このスキルは、Semgrep、SonarQube、CodeQLを含むSASTツールのセットアップと設定に関する包括的なガイダンスを提供します。次のような場合に使用します:
# Semgrepクイックスタート
pip install semgrep
semgrep --config=auto --error
# DockerでSonarQube
docker run -d --name sonarqube -p 9000:9000 sonarqube:latest
# CodeQL CLIセットアップ
gh extension install github/gh-codeql
codeql database create mydb --language=python
# GitHub Actionsの例
- name: Run Semgrep
uses: returntocorp/semgrep-action@v1
with:
config: >-
p/security-audit
p/owasp-top-ten
# .pre-commit-config.yaml
- repo: https://github.com/returntocorp/semgrep
rev: v1.45.0
hooks:
- id: semgrep
args: ['--config=auto', '--error']
ベースラインから開始
段階的導入
誤検知管理
パフォーマンス最適化
チーム支援
./scripts/run-sast.sh --setup --language python --tools semgrep,sonarqube
# 詳細な例はreferences/semgrep-rules.mdを参照
rules:
- id: hardcoded-jwt-secret
pattern: jwt.encode($DATA, "...", ...)
message: JWTシークレットはハードコードすべきではありません
severity: ERROR
# PCI-DSS重視スキャン
semgrep --config p/pci-dss --json -o pci-scan-results.json
| ツール | 最適用途 | 言語サポート | コスト | 統合 | |------|----------|------------------|------|-------------| | Semgrep | カスタムルール、高速スキャン | 30以上の言語 | 無料/エンタープライズ | 優秀 | | SonarQube | コード品質+セキュリティ | 25以上の言語 | 無料/商用 | 良好 | | CodeQL | 深い分析、研究 | 10以上の言語 | 無料(OSS) | GitHubネイティブ |
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer