backend-agent
建置安全的 Unite-Hub 後端功能
後端變更可能破壞資料隔離、驗證或整合。此技能會引導 Claude、Codex 和 Claude Code 進行安全的 Unite-Hub 後端工作。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "backend-agent" from https://skillstore.io/skills/cleanexpo-backend-agent.md and its manifest at https://skillstore.io/api/skills/cleanexpo-backend-agent/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「backend-agent」。 Fix an API route that returns contacts from every workspace.
預期結果:
回應應說明資料隔離 bug、新增工作區與組織篩選、要求身分驗證,並包含測試計畫。
正在使用「backend-agent」。 Create a bulk contact update endpoint.
預期結果:
回應應概述請求驗證、角色檢查、欄位 allow-listing、工作區篩選、稽核記錄與安全的錯誤回應。
正在使用「backend-agent」。 Add RLS policies for a new campaigns table.
預期結果:
回應應描述各項操作的政策、成員資格檢查、索引,以及使用不同工作區使用者進行的測試。
安全審計
中風險Most static alerts are false positives caused by Markdown code fences, inline backticks, and ordinary environment variable examples. No prompt override text, malware behavior, or credential exfiltration instructions were found. Two semantic issues remain in example backend patterns: mass assignment in bulk updates and untrusted CRM history inside AI prompts.
已確認的安全問題 (2)
風險因素
⚡ 包含腳本 (1)
⚙️ 外部命令 (58)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/cleanexpo-backend-agent/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/cleanexpo-backend-agent?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/cleanexpo-backend-agent?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cleanexpo-backend-agent/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/cleanexpo-backend-agent.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
CleanExpo. (2026). backend-agent security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cleanexpo-backend-agent/audits/8BibTeX 引用
@techreport{cleanexpo-cleanexpo-backend-agent-2026,
author = {CleanExpo},
title = {backend-agent security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/cleanexpo-backend-agent/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "backend-agent security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "CleanExpo"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/cleanexpo-backend-agent/audits/8"
identifiers:
- type: other
value: "skillstore:cleanexpo-backend-agent:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
建立工作區範圍的 API Routes
建置一個 Next.js endpoint,用於驗證輸入、檢查身分驗證、依工作區篩選,並回傳結構化錯誤。
強化 Supabase 資料存取
檢閱查詢與 RLS 政策,確保使用者只能存取其工作區與組織的記錄。
新增服務整合
使用伺服器端 secrets、typed inputs 與受控的錯誤處理來實作 Gmail 或 Claude 服務呼叫。
試試這些提示
Review this Unite-Hub API route. Identify missing authentication, workspace filtering, input validation, and error handling. Return a prioritized fix list.
Create a Next.js API endpoint for this feature. Include authentication, workspace scope, input validation, audit logging, and structured errors.
Design Supabase RLS policies for this table. Cover select, insert, update, and delete access using workspace and organization membership.
Review this Gmail or Claude integration design. Check secret handling, token scope, prompt injection risk, logging, retries, and failure modes.
最佳實務
- 一律將工作區與組織篩選套用至資料查詢。
- 在資料庫變更或外部 API 呼叫前驗證請求輸入。
- 將 secrets 保留在伺服器端,並從日誌與回應中排除敏感值。
避免
- 除非已明確要求公開存取,否則不要建立公開 API routes。
- 不要將任意請求欄位直接傳入資料庫更新。
- 不要信任 CRM 文字或電子郵件內容作為模型指令。