已合并
【安全排查】【重明问题修复】收口配置驱动动态导入与表达式求值风险 #392
ChaseChe77创建于 6月29日
【安全排查】【重明问题修复】收口配置驱动动态导入与表达式求值风险 #392
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 ChaseChe77 的贡献)6月29日 关联了issue:【开发自提】安全问题加固
ascend-robot
6月29日 评论:
6月29日 评论:
6月29日 添加了label:stat/needs-squash
6月29日 添加了label:ascend-cla/yes
ascend-robot
6月29日 评论:
6月29日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/msserviceprofiler | ✅ 陈豪, minghang_c (2/2) | ✅ 陈豪 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
Mad97_, thanks for your pull request. All authors of the commits have signed the CLA. 👍


此处折叠了70条消息 查看更多
6月30日 解决了最后一个问题
6月30日 合入了pull request
ascend-robot
6月30日 评论:
6月30日 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


ascend-robot
6月30日 评论:
6月30日 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


ascend-robot
6月30日 评论:
6月30日 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


PR 合入模板
1. 修改描述
修改原因:
chongming分支针对安全扫描问题收口,本 PR 保留确认需要修复的问题:023 / 015 / 014 / 011 / 010,主要涉及 YAML 配置驱动的动态导入风险,以及 profiler 属性表达式求值过宽带来的安全风险。修改内容:
handler、symbol动态导入增加白名单限制,禁止非预期模块被配置导入。dynamic_hook中属性表达式执行从原有eval()黑名单模式收口为受限 AST 安全求值。this/self/args/kwargs/return/ret等必要变量,避免具名参数平铺暴露。2. 功能验证
补充说明:
3. 代码检视
补充说明:
chongming-precommit-pr增量为17 files changed, 571 insertions(+), 147 deletions(-)。4. 安全自检
典型安全编码问题
补充说明:
handler/symbol配置增加白名单校验、失败回退/报错及日志记录。5. 变更知会
资料修改:
已同步修改:
docs/zh/vLLM_service_oriented_performance_collection_tool.mddocs/en/vLLM_service_oriented_performance_collection_tool.mdms_service_profiler/patcher/config/hooks_example.yaml变更通知(消息知会 + 邮件知会):
请按团队实际流程补充6. 冒烟修改
补充说明:
建议后续补充针对以下场景的安全冒烟/回归:
handler/symbol配置导入拦截this.__class__、len(this.shutdown())拦截