
Both of these IP addresses are hosted by Alibaba Hong Kong. Notably, the IP address of the second-stage server is similar to the one “GoogleUpdate” connects to, which is 477596198. Netscan scans a network for ports that are open on an IP/IP range, and IP addressess that are in use on that networkĪ83edc0eb5a2f1db62acfa60c666b5a5c53733233ce264702a16cb5220df9d4e

As shown in Figure 6, all of these websites resolved to the same IP address, 43129218115.īesides the g.py script and “GoogleUpdate” components that are part of the trojanized iTerm app malware routine, the second-stage server also hosts four other Mach-O files that are used as post-penetration tools (Table 2). Searching VirusTotal for the Secure Sockets Layer (SSL) thumbprint that used revealed several other fraudulent websites.

~/Library/Application Support/iTerm2/SavedState/įurther analysis of the trojanized iTerm2 app’s Apple Distribution certificate led us to find similar trojanized apps on VirusTotal (Table 1), all of which were trojanized using the same method.~/Library/Application Support/VanDyke/SecureCRT/Config/.The Python script g.py collects the following system data and files from the victim’s machine, which the script then sends to the server:
#Iterm2 download download
#Iterm2 download zip file
The files that are downloaded from the legitimate website come in a ZIP file format, as opposed to the DMG file from the fraudulent website, as shown in Figure 2.Īccording to Objective-see’s blog post, the malicious codes contained in the libcrypto.2.dylib file are executed automatically when the victim runs the trojanized iTerm2 app. The user is redirected to this download URL for iTerm.dmg regardless of the app version the user selects to download from the fake website the real website has different URLs and files for various versions. Instead, the website contains a link, hxxp://from which users are able to download a macOS disk image file (DMG) called iTerm.dmg. However, the malicious file is not hosted on this website directly. The trojanized appĪs of September 15, is still active. This blog entry covers the malware’s details. This, in turn, downloads and runs other components, including the aforementioned g.py script and a Mach-O file called “GoogleUpdate” that contains a Cobalt Strike beacon payload. Paste /usr/local/bin/zsh in the Command textbox and restart iTerm2.Objective-see previously published a blog entry about this malware, which analyzed how the threat actor repacks the iTerm2 app to load the malicious libcrypto.2.dylib. Set zsh as the default terminal environmentĬ.
#Iterm2 download install
Install iTerm2įor customising and installing themes we’ll require a better terminal than default one on mac.ĭownload and install it from the here. It has a lot of features to customise the terminal and a lot of themes available.Įxecute it in your terminal: sh -c "$(curl -fsSL )" 4. Oh My Zsh is an open source, community driven framework for managing zsh configuration. Install it using the following: brew install zsh 3.

The Z shell (also known as zsh) is a Unix shell that is built on top of bash (the default shell for macOS) with additional features. xcode-select -install ruby -e "$(curl -fsSL )" 2.

If you haven’t installed homebrew yet, install it by pasting the below lines in your terminal. First we will install zsh using Homebrew. Want your terminal look cool like the above one ? Yeah ? So lets start ! 1.
