w-security

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Find security defects relative to repository security docs and existing scanners. Do not invent CORS, encryption, password, or header policy. Stay report-only unless the user asked to fix.
  1. Read the repository security docs. If missing, stop and ask; do not invent a bar.
  2. Check authn/authz, input validation, secret handling, and data exposure on the changed paths.
  3. Validate each suspected issue with a trigger and consequence. Skip invented CVEs and timings.
  4. If authorized, run existing security scripts or CI jobs from the docs or package.json. Record passed, failed, or not run.
  5. If fixes are authorized, change the owning cause. Policy changes need a human. Docs:
    /w-docs
    if behavior or commands changed.
对照仓库安全文档和现有扫描器,查找安全缺陷。不要臆造 CORS、加密、密码或标头策略。除非用户要求修复,否则仅输出报告。
  1. 阅读仓库安全文档。如果文档缺失,则停止并询问;不要自行设定安全标准。
  2. 检查变更路径中的 authn/authz、输入验证、密钥处理和数据暴露问题。
  3. 使用触发条件和后果验证每个疑似问题。跳过臆造的 CVE 和时序问题。
  4. 如果获得授权,运行文档或 package.json 中已有的安全脚本或 CI 任务,并记录通过、失败或未运行状态。
  5. 如果已授权修复,应修改问题的根因。策略变更需要人工确认。如果行为或命令发生变化,请更新
    /w-docs
    中的文档。