一次发生在 GitHub 的 Trigger security scan 异常事件 #159
shenweiyan
announced in
1.3-折腾
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
2025年9月4日,早上起来看邮件时候,突然发现,邮箱一下子多了几百封 GitHub Actions 构建异常的邮件!
震惊紧张后,第一个反应就是,该不会是个人的 personal access token,或者密码泄露了,被人动态进行 commit 提交,以至于出现批量的 Actions 异常。于是,赶紧登录 GitHub 看一下到底发生了什么事。
首先,看到个人账号下基本每个 Public 仓库,甚至包括 organization 下个人创建的所有 Public 仓库,都出现了类似 "Trigger security scan" 的 commits 提交。

点击进去一看,好家伙,直接往 README 里面进行注释性的提交。

再回到 commits 记录一看,果然有连续多次的提交。

第二,回去仓库的

.github/workflows下一看,还莫名其妙多了一个github_actions_security.yml自动化流程。这就直接把

PERSONAL_ACCESS_TOKEN的信息提交到了一个https://bold-dhawan.45-139-104-115.plesk.page的未知站点。这一连串的骚操作下来,可以肯定的是 token 或者其他密码泄露,或者是某个共用的 actions 出问题了,所以:
github_actions_security.yml。在文章最后,感谢 @guedou 在问题仓库中的建议。
Beta Was this translation helpful? Give feedback.
All reactions