Agent Skillsdifferent-ai/openwork › diff-security-review

diff-security-review

GitHub

专门用于代码 Diff 的安全审查,仅识别由本次变更引入的新安全漏洞。严格区分新旧问题,聚焦命令注入、XSS、越权等具体风险,排除风格和性能问题,确保报告精准且无误报。

.warden/skills/diff-security-review/SKILL.md different-ai/openwork

Trigger Scenarios

用户提交代码变更请求安全审查 需要评估特定 Diff 是否引入新的安全风险

Install

npx skills add different-ai/openwork --skill diff-security-review -g -y
More Options

Non-standard path

npx skills add https://github.com/different-ai/openwork/tree/dev/.warden/skills/diff-security-review -g -y

Use without installing

npx skills use different-ai/openwork@diff-security-review

指定 Agent (Claude Code)

npx skills add different-ai/openwork --skill diff-security-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add different-ai/openwork --all -g -y

预览 repo 内 skill

npx skills add different-ai/openwork --list

SKILL.md

Frontmatter
{
    "name": "diff-security-review",
    "description": "Flag only new security issues introduced by this diff. Reported in the Warden security summary.",
    "allowed-tools": "Read Grep Glob"
}

You are reviewing a diff to answer exactly one question: does this change introduce a NEW security issue that did not exist before?

Only report an issue when ALL of these hold:

  • It is introduced or made materially worse by the changed lines, not a pre-existing problem in surrounding code.
  • It has a concrete security impact: command/SQL/code injection, XSS, SSRF, path traversal, authn/authz bypass, secret or credential exposure, unsafe deserialization, prototype pollution, insecure crypto or randomness, PII leakage, supply-chain risk (new dependency with install scripts, typosquats, unpinned remote code), or unsafe Electron patterns (enabling nodeIntegration, disabling contextIsolation or sandbox, IPC handlers trusting renderer input for filesystem/shell operations, shell.openExternal with untrusted input, loading remote content in privileged windows).
  • There is a plausible attack path: attacker-controlled input reaches the sink, or a secret is actually exposed to an untrusted party.

CI, workflow, and review-policy edits are not vulnerabilities by themselves. Apply the same concrete attack-path requirement to them. GitHub admin-team approval is the authorization boundary; do not demand an extra Warden approval.

Do NOT report:

  • Style, performance, correctness, or maintainability issues.
  • Pre-existing issues in unchanged code, even if you notice them.
  • Theoretical weaknesses with no plausible attacker-controlled input path.
  • Hardening that was already absent before this change.
  • Test fixtures, mocks, or intentionally fake credentials that never grant real access.

Test code is not a production attack surface merely because it uses browser JavaScript evaluation, direct API calls, relaxed local authentication, or fixture shortcuts. For tests and test harnesses, report only when the diff creates a concrete path to real credentials, untrusted CI input, shared or production services, or shipped runtime code. Explain that path; do not apply production hardening standards to isolated test behavior. Test files are not exempt when such a path exists.

For each finding, report:

  • One finding per root cause, grouping all related locations and identifying the exact changed lines that cause it.
  • The reachable attack path: who controls the input, the concrete failure, and what they gain. Check and address contrary evidence before reporting.
  • Severity: high (RCE, auth bypass, real secret leak, injection, XSS, SSRF, traversal), medium (info disclosure, weak crypto), low (defense-in-depth regression introduced by this diff).
  • The smallest concrete fix in the changed code.
  • Clear when: followed by the observable condition that resolves the finding.

If the diff introduces no new security issues, report nothing. Silence is the correct output for a clean diff; do not manufacture findings.

Version History

  • c26be48 Current 2026-09-23 01:46

    简化 Warden 流程以专注于安全审查并记录耗时;优化测试发现报告,强调基于具体证据的本地预检和证据缺口分析。

  • ff5d298 2026-08-20 11:36

Same Skill Collection

.opencode/skills/agent-first-screenshots/SKILL.md
.opencode/skills/browser-automation/SKILL.md
.opencode/skills/build-a-witness/SKILL.md
.opencode/skills/cloud-dashboard-walkthrough/SKILL.md
.opencode/skills/create-plugin/SKILL.md
.opencode/skills/daytona-chrome-cdp/SKILL.md
.opencode/skills/daytona-cloud-instance/SKILL.md
.opencode/skills/daytona-cloud-server/SKILL.md
.opencode/skills/daytona-dev/SKILL.md
.opencode/skills/daytona-electron-den/SKILL.md
.opencode/skills/daytona-electron-test/SKILL.md
.opencode/skills/daytona-flow-validator/SKILL.md
.opencode/skills/daytona-recording-artifacts/SKILL.md
.opencode/skills/daytona-secrets-volume/SKILL.md
.opencode/skills/daytona-seeded-cloud-demo/SKILL.md
.opencode/skills/daytona-windows-cert/SKILL.md
.opencode/skills/daytona/SKILL.md
.opencode/skills/diagnose-a-red-run/SKILL.md
.opencode/skills/fraimz/SKILL.md
.opencode/skills/get-env-var/SKILL.md
.opencode/skills/hunt-a-prod-error/SKILL.md
.opencode/skills/open-a-pr/SKILL.md
.opencode/skills/openwork-models/SKILL.md
.opencode/skills/preview-my-work/SKILL.md
.opencode/skills/product-tutorial-pipeline/SKILL.md
.opencode/skills/prove-a-pr/SKILL.md
.opencode/skills/publish-evidence/SKILL.md
.opencode/skills/record-a-demo/SKILL.md
.opencode/skills/release/SKILL.md
.opencode/skills/review-a-contributor-pr/SKILL.md
.opencode/skills/run-evals/SKILL.md
.opencode/skills/run-tests/SKILL.md
.opencode/skills/shadcn/SKILL.md
.opencode/skills/upload-photo/SKILL.md
.opencode/skills/validate-a-release/SKILL.md
.opencode/skills/write-a-spec/SKILL.md
.warden/skills/confidentiality-review/SKILL.md
.warden/skills/design-spec-review/SKILL.md
.warden/skills/desktop-den-sync-review/SKILL.md
.warden/skills/spec-provenance-review/SKILL.md
integrations/agent-plugins/openwork-connect/skills/openwork-connect/SKILL.md

Metadata

Files
0
Version
c26be48
Hash
4fb3994b
Indexed
2026-08-20 11:36

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 06:18
浙ICP备14020137号-1