如何以 OWASP Top 10 為基準對 PR 進行資安審查
何時使用: 在對涉及驗證、資料或輸入處理的 PR 點擊「準備審查」之前。
步驟
-
指向差異內容Review the current PR against OWASP Top 10:2025. Focus on auth and input handling.✓ 已複製→ 問題對應至 Top 10 分類並附上行號參照
-
排定優先順序Group findings into 'must-fix before merge' vs 'follow-up issue'. Cite the specific ASVS requirement.✓ 已複製→ 附有 ASVS ID 的排序清單
-
產生修正方案For each must-fix, propose the minimal diff.✓ 已複製→ 對應各問題的修補差異
結果: 一個在合併前已解決已知資安問題、且具備可追溯需求的 PR。
注意事項
- 對無害模式過度警示 — 請 Claude 具體說明攻擊路徑;若無法說明,則降低嚴重性等級