对已部署的 Power Pages 站点执行安全扫描并生成通俗风险摘要。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "scan-site" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/power-pages/skills/scan-site/SKILL.md 2. 保存为 ~/.claude/skills/scan-site/SKILL.md 3. 装好后重载技能,告诉我可以用了
请扫描这个已发布的 Power Pages 站点,检查是否存在安全漏洞,并按严重程度总结结果。
返回一次站点安全扫描结果,并用通俗语言概括高、中、低风险问题。
帮我获取这个 Power Pages 站点最新的安全扫描报告,并告诉我当前最需要处理的问题。
输出最新报告内容,并提炼优先级最高的安全问题。
我想知道我的线上站点是否安全,请对公开页面做一次安全检查并给出易懂结论。
得到针对线上公开面的漏洞检查结果,以及整体安全状况说明。
开发者或运维在 Power Pages 站点发布后,使用它扫描线上公开面,快速确认是否暴露了高风险漏洞。它适合生产环境安全审计,而不是检查本地源码。
当团队想了解站点当前风险状态时,可以直接获取最新扫描报告,并查看各类问题的严重程度。这样能帮助团队决定先修复哪些问题。
对于页面较多的大型站点,扫描可能持续较长时间。该技能可用于发起扫描并轮询状态,直到结果可供汇总查看。
文档介绍了如何对已部署的 Power Pages 站点执行安全扫描、获取最新报告并输出通俗摘要。内容涵盖前置条件检查、站点身份解析、扫描状态判断、启动与轮询扫描、拉取报告,以及发现问题后的后续处理。文档还提醒扫描只针对线上公开面,可能耗时较长,并存在单站点单次扫描与限流等限制。
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Run a security scan on a deployed Power Pages site, fetch the latest scan report, and surface findings in a plain-language summary. The scan runs server-side; duration depends on site size — small sites finish in minutes, large sites can take hours.
This skill scans the live deployed site, not local source code.
Initial request: $ARGUMENTS
.powerpages-site/website.yml stores the website record id, not the portal id. Every script takes --portalId. Resolve once via website.js --websiteId during prerequisites.null from the resolver means the site is not deployed, or the authenticated profile points at a different environment.--timeoutMinutes for large sites.Z003 — start-deep-scan.js reports it as { "status": "already-running" } (exit 0).get-latest-report.js returns { "status": "empty" }.Create tasks in four groups. Mark each in_progress when starting, completed when done.
| Group | When to create | Tasks |
|---|---|---|
| 1 | At start | Check prerequisites |
| 2 | After prerequisites pass | Check scan state · Choose an action (skip in review mode) |
| 3 | After user confirms an action (or in review mode) | Run the scan (skip only if the user chose to view latest results in interactive mode) · Fetch and summarize (always) |
| 4 | After fetch and summarize | Walk through follow-ups (only if the report contains issues AND not in review mode) |
Use Glob to find **/powerpages.config.json. If $ARGUMENTS contains --review <out-dir>, remember the output directory — Step 3 (choose an action) is skipped, Step 4 (run scan) executes automatically (start a fresh scan or attach to a running one), Step 5 writes JSON only, and Step 6 (follow-ups) is skipped.
Read .powerpages-site/website.yml → extract id field → that is <WEBSITE_ID>.
If missing, the site has not been deployed. Tell the user and recommend /deploy-site. Stop. Do not resolve by name or URL.
Resolve to portalId:
node "${CLAUDE_PLUGIN_ROOT}/scripts/website.js" --websiteId "<WEBSITE_ID>"
Capture Id (portalId), Type, Name, WebsiteUrl. If exit code 2 → sign-in required (pac auth create or az login). If null → site not found in this environment. Stop in either case.
node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId "<PORTAL_ID>" --once
--once does a single status check, exits 0, and prints:
{ "status": "ongoing" } → a scan is currently running.{ "status": "idle" } → no scan running.…
它扫描的是已部署 Power Pages 站点的线上公开面,不是本地源码。文档明确说明该技能面向 live deployed site。
扫描时长取决于站点规模。小型站点可能几分钟完成,大型站点可能需要数小时。
不能。文档说明同一站点同一时间只允许一个扫描;如果已有扫描在运行,再次启动会返回 already-running 状态。
列出当前 Power Platform 环境连接,快速获取连接 ID 以配置代码应用连接器。
帮助你将 Power Automate 云端流程接入 Power Pages 站点并生成调用代码
帮助你快速搭建 Power Platform 管道,实现 Power Pages 自动化部署。
检查并配置 Power Pages 站点安全响应头,定位风险并指导修复设置。
对 Power Pages 站点执行端到端安全审查,并汇总生成完整 HTML 报告。
帮助用户将 Power Apps 代码应用构建并部署到 Power Platform。
识别交易与兼职信息中的诈骗迹象,并返回风险评分与证据说明。
查询网站扫描、发现与证据,快速获取域名风险信号。
扫描 Claude Code 配置中的安全漏洞、误配与注入风险并给出检查结果
对 MCP 服务器进行运行时与静态安全扫描,发现配置、依赖与合规风险。
自动扫描网站法律文档中的缺失或过期合规条款并提示问题。
用于对已部署的 Power Pages 网站进行运行时浏览、爬取与接口验证测试。