auth
免费Authentication and authorization patterns for Rossoctl services
中文简介正在准备中。当前显示原文说明。
Scan dependencies and source code for CVEs — Trivy, LLM reasoning, WebSearch, code security review, and doc audit
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Comprehensive security scanning that combines dependency CVE detection, source code security review, and documentation leak auditing.
.cves/ (gitignored) ONLY.cves/ is in .gitignore before writingflowchart TD
START(["/cve:scan"]) --> SETUP["Setup .cves/ dir"]:::cve
SETUP --> P1["Phase 1: Dependency Inventory"]:::cve
P1 --> P2{"Trivy installed?"}
P2 -->|Yes| P2A["Phase 2: Trivy Scan"]:::cve
P2 -->|No| P3
P2A --> P3["Phase 3: LLM + WebSearch"]:::cve
P3 --> P4["Phase 4: Code Security Review"]:::code
P4 --> P5["Phase 5: Doc CVE Audit"]:::audit
P5 --> P6["Phase 6: Combined Report"]:::cve
P6 --> RESULT{"CVEs found?"}
RESULT -->|None| GREEN([Green light - proceed])
RESULT -->|HIGH/CRITICAL| BRAINSTORM["cve:brainstorm"]:::block
RESULT -->|Suspected| FLAG([Flag for review - don't block])
classDef cve fill:#D32F2F,stroke:#333,color:white
classDef code fill:#1565C0,stroke:#333,color:white
classDef audit fill:#FF9800,stroke:#333,color:white
classDef block fill:#B71C1C,stroke:#333,color:white
Follow this diagram as the workflow.
mkdir -p .cves
grep -q "^\.cves" .gitignore 2>/dev/null || echo -e "\n# CVE scan results (never commit)\n.cves/" >> .gitignore
Identify all dependency sources in the working tree.
Search for dependency manifests using Glob:
**/pyproject.toml — Python projects**/requirements*.txt — Python requirements**/uv.lock — Python lock files**/package.json, **/package-lock.json — Node.js**/go.mod, **/go.sum — Go**/Dockerfile*, **/Containerfile* — Container base images**/Chart.yaml — Helm chartsRead each manifest and lock file. For lock files, extract resolved versions.
For Dockerfiles, extract FROM base images with tags.
Record the inventory as a table in the report:
| File | Package | Version | Ecosystem |
|------|---------|---------|-----------|
which trivy 2>/dev/null
trivy --version
If installed, run filesystem and config scans:
trivy fs --severity HIGH,CRITICAL --format json --output .cves/trivy-fs.json . 2>&1; echo "EXIT:$?"
For each Dockerfile found:
trivy config <Dockerfile-path> --output .cves/trivy-config-<name>.txt 2>&1; echo "EXIT:$?"
If not installed, note in the report and skip to Phase 3.
For each key dependency from Phase 1 inventory, focus on:
For flagged packages:
WebSearch: "<package> <version> CVE vulnerability 2025 2026"
Check against: NVD, Snyk, GitHub Advisory Database, OSV.dev
| Confidence | Criteria | Action |
|---|---|---|
| Confirmed | Trivy + WebSearch agree, or NVD entry exists | Report as confirmed |
| Suspected | LLM flags but WebSearch inconclusive | Report as suspected |
| Already fixed | Current version >= fix version | Report in "Already Patched" section |
Use Claude Code reasoning to scan source code for vulnerability patterns. Launch as a background agent for parallel execution:
Task(subagent_type='general-purpose'):
"Perform a security review of <repo-path>. Focus on:
1. Auth: Missing auth on endpoints, hardcoded credentials, JWT validation issues
2. Injection: SQL, command, template injection; unsanitized label selectors
3. Secrets: Hardcoded API keys, default passwords in Helm/ConfigMaps
4. Containers: Running as root, unpinned tags, missing healthchecks
5. CI/CD: Unpinned actions, untrusted input in workflows, broad permissions
6. Network: SSRF, disabled TLS verification, plain HTTP for auth endpoints
7. Info disclosure: Verbose errors leaked to clients, exposed API docs
Use Grep to search for dangerous patterns. Do NOT read entire large files.
Write report to <repo-path>/.cves/security-review-results.md"
# Auth gaps
Grep: "require_roles|get_current_user|Depends" in routers — find endpoints WITHOUT auth
Grep: "verify_aud.*False|verify_exp.*False" — disabled JWT validation
Grep: "password.*admin|ADMIN_PASSWORD.*admin" — hardcoded creds
# Injection
Grep: "label_selector=f\"|f\".*{.*}" in K8s client calls
Grep: "os.system|subprocess.call|eval(" — command injection
Grep: "detail=f\".*{str(e)}" — error detail leakage
# Secrets
Grep: "sk-proj-|ghp_|glpat-" — API keys in source
Grep: "FROM.*:latest" — unpinned base images
# Network
Grep: "verify=False|follow_redirects=True" — TLS/SSRF issues
Grep: "http://.*svc.cluster.local" — plain HTTP in-cluster
# CI/CD
Grep: "uses:.*@v[0-9]" in workflows — unpinned actions (should be SHA)
Grep: "pull_request_target" — dangerous trigger
Check all .md files for CVE references that could leak if published.
Grep: "CVE-\d{4}-\d+" across **/*.md
Grep: "vulnerability|exploit|security flaw" combined with package names
Check git commit history:
git log --oneline --all --grep="CVE-" | head -20
| Risk | Criteria |
|---|---|
| HIGH | CVE ID in a file that could become a public GitHub issue |
| MEDIUM | CVE ID in internal docs/plans (not public but should be cleaned) |
| LOW | Generic security discussion without specific CVE IDs |
| NONE | Upstream vendor CVE references (e.g., K8s Gateway API CRD comments) |
Write SUMMARY.md to .cves/ combining all scan results.
# Security Scan Summary — <Project>
Date: <date>
## Executive Summary
[Top priority items table — HIGH findings from all phases]
## Part 1: Dependency CVE Findings
[From Phases 1-3: inventory, CVE table, already-patched list]
## Part 2: Source Code Security Review
[From Phase 4: HIGH/MEDIUM/LOW/INFO findings with file:line references]
## Part 3: Documentation CVE Audit
[From Phase 5: files with CVE references, commit messages, risk classification]
## Already Patched (No Action)
[Dependencies confirmed at or above fix versions]
## Remediation Priority
[Priority matrix: immediate / short-term / medium-term / long-term]
When scanning across repos (e.g., all rossoctl org repos):
/tmp/rossoctl-scan/<repo-name> with --depth 1 --branch mainWhen cve:scan is invoked by another skill (tdd:ci, rca:*, etc.) as a gate:
cve:brainstorm, BLOCK the calling skill
from proceeding to public output until the hold is resolvedcve:brainstorm
resolves the holdcve:brainstorm — Disclosure planning when CVEs are foundtdd:ci — Invokes this at Phase 3.5tdd:hypershift — Invokes this pre-deploytdd:kind — Invokes this pre-deployrca:ci — Invokes this at Phase 5还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Authentication and authorization patterns for Rossoctl services
中文简介正在准备中。当前显示原文说明。
Create confidential OAuth2 clients in Keycloak for server-to-service authentication
中文简介正在准备中。当前显示原文说明。
Configure MLflow with mlflow-oidc-auth plugin for Keycloak OIDC authentication
中文简介正在准备中。当前显示原文说明。
Configure OpenTelemetry Collector with OAuth2 authentication for trace export
中文简介正在准备中。当前显示原文说明。
CI pipeline monitoring, status checks, and PR validation workflows
中文简介正在准备中。当前显示原文说明。
Monitor running CI jobs, wait for completion, create tasks for results
中文简介正在准备中。当前显示原文说明。