Bk Monitor Security Audit
Testing & Qualitybk-monitor-security-auditBk Monitor Security Audit is an Agent Skill for testing & quality published in the TencentBlueKing/bk-bcs repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
对前端代码进行安全审计,检测 XSS、CSRF 等漏洞。当用户请求代码审查或询问代码安全性时使用。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/TencentBlueKing/bk-bcs/blob/HEAD/bcs-services/bcs-project-manager/.cursor/skills/bk-monitor-security-audit/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/bk-monitor-security-audit, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
前端代码安全审计
触发场景
- 代码提交/审查请求
- 询问代码安全性/漏洞
- 涉及 DOM 操作、URL 处理、用户输入
- 提及 XSS、CSRF、注入等安全关键词
审计检查清单
- DOM 操作安全性(innerHTML、v-html)
- URL/重定向安全
- 跨域通信安全(postMessage)
- 动态代码执行(eval)
- 敏感信息处理
- 原型污染/ReDoS
工作流程
- 读取代码文件
- 按检查清单逐项审计
- 按 report-template.md 输出报告
📦 可用资源
skill://bk-monitor-security-audit/references/audit-rules.mdskill://bk-monitor-security-audit/references/report-template.mdskill://bk-monitor-security-audit/references/security-checklist.md
📦 可用资源
skill://bk-monitor-security-audit/references/audit-rules.mdskill://bk-monitor-security-audit/references/report-template.mdskill://bk-monitor-security-audit/references/security-checklist.md
根据 SKILL.md 中的 IF-THEN 规则判断是否需要加载