Intro-to-BlueTeam

admin 2025年1月22日10:03:37评论7 views字数 1340阅读4分28秒阅读模式
Intro to BlueTeam track (Old Version)
Event Horizon

Our CEO's computer was compromised in a phishing attack. The attackers took care to clear the PowerShell logs, so we don't know what they executed. Can you help us?

Intro-to-BlueTeam
Intro-to-BlueTeam

Insider

https://github.com/unode/firefox_decrypt

git clone https://github.com/unode/firefox_decrypt.git

注意: 要用最新版本

Intro-to-BlueTeam
python3 firefox_decrypt.py ../Mozilla/Firefox/
Intro-to-BlueTeam

Logger

A client reported that a PC might have been infected, as it's running slow. We've collected all the evidence from the suspect workstation, and found a suspicious trace of USB traffic. Can you identify the compromised data?

Intro-to-BlueTeam

打开看发现是USB的。每个包都看了一眼,没有可读的字符串。

Google搜索:"ctf 分析usb traffic"

https://cnblogs.com/hackxf/p/10670844.html

结合上下文推测这是一个usb keylogger 

找到文章中提到的工具:

https://github.com/WangYihang/UsbKeyboardDataHacker.git

Intro-to-BlueTeam

没用。

https://www.anquanke.com/post/id/240615

tshark -r keystrokes.pcapng -T fields -e usbhid.data | sed '/^$/d' > key.txtpython3 usb_keylog_rev.py key.txt
Intro-to-BlueTeam

但这样解出来是有bug的。

还是得用到大佬写的这个工具:

https://blog.csdn.net/mole_exp/article/details/124849647

Intro-to-BlueTeam

Persistent

Intro-to-BlueTeam

DIE 没识别出来。

file命令看看:

Intro-to-BlueTeam

如果不行我们还可以使用binwalk

MS WIndows Registry file

https://baijiahao.baidu.com/s?id=1703501297715999830&wfr=spider&for=pc

了解到这个工具:

https://github.com/keydet89/RegRipper3.0

Intro-to-BlueTeam
Intro-to-BlueTeam
Intro-to-BlueTeam
Intro-to-BlueTeam

Ransom

Intro-to-BlueTeam
Intro-to-BlueTeam

ftw这个函数,第三个参数是descriptor

Intro-to-BlueTeam

看下第二个参数实际传入的是啥:

Intro-to-BlueTeam
Intro-to-BlueTeam

a1应该是文件名。

重点看encryptFile函数了:

Intro-to-BlueTeam

里面又调用了encrypt函数,然后就写入文件了,来看下encrypt:

Intro-to-BlueTeam

看下这里面的操作:

Intro-to-BlueTeam

只是简单的加。不过loop被优化的有点难看。

loop的条件应该是从文件开始到文件结束。

Intro-to-BlueTeam

解密出来的值是类似这样的:

Intro-to-BlueTeam
Intro-to-BlueTeam

原文始发于微信公众号(Definite R3dBlue):Intro-to-BlueTeam

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2025年1月22日10:03:37
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Intro-to-BlueTeamhttp://cn-sec.com/archives/3650105.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息