About

Saturday, August 20, 2016

Malware Abusing SWIFT BANKING

SWIFT is aware of a malware that aims to reduce financial institutions' abilities to evidence fraudulent transactions on their local systems. Contrary to reports that suggest otherwise, this malware has no impact on SWIFT's network or core messaging services
 
Threat Actor
The shared subroutines are displayed as evidence to relate the SWIFT intrusion activity to the Lazarus group. It is believed to be Lazarus group from North Korea, as threat actor. Because, many of this samples contain the similar subroutines. Their findings supported a claim that these were the only two pieces of software with this shared code.
 
The Anomali Labs team has conducted deeper research into a very large malware data repository. This process utilized the yara signature below to search for the shared subroutines. At first, we believed it would produce a lot of false positives. Instead, this search not only failed to result in any false positives, but also turned up five other pieces of malware which share this code. We see this as a possible attribution of the Lazarus group attacks to other attacks that involved these same five pieces of malware code.
 
Malware FamilyMd5 hash Notes
SWIFT BanSwift5d0ffbc8389f27b0649696f0ef5b3cfeevchk.bat dropper
SWIFT Fake Foxit Reader0b9bf941e2539eaa34756a9e2c0d5343A Fake Foxit Reader submitted to Virustotal from Vietnam in December 2015 (similar sample detailed athttps://blogs.mcafee.com/mcafee-labs/attacks-swift-banking-system-benefit-insider-knowledge/)
SMBWorm558b020ce2c80710605ed30678b6fd0cKnown North Korean Malware
Memory dump with SMBWorm96f4e767aa6bb1a1a5ab22e0662eec86 
Unknown "hkcmd" toolb0ec717aeece8d5d865a4f7481e941c5
1st Submitted from Canada, likely from an AV organization. 2016/04/22.
PE Build Date of December 2010.
imkrmig.exe5a85ea837323554a0578f78f4e7febd8An unknown backdoor posing as a Korean sample of Microsoft Office 2007.
Table 1. Malware families and samples known to include the Lazarus Wipe File routine.
rule AnomaliLABS_Lazarus_wipe_file_routine {
 meta:
     author = "aaron shelmire"
     date = "2015 May 26"
     desc = "Yara sig to detect File Wiping routine of the Lazarus group"
 strings:
     $rand_name_routine = { 99 B9 1A 00 00 00 F7 F9 80 C2 61 88 16 8A 46 01 46 84 C0 }
     /* imports for overwrite function */
     $imp_getTick = "GetTickCount"
     $imp_srand = "srand"
     $imp_CreateFile = "CreateFileA"
     $imp_SetFilePointer = "SetFilePointer"
     $imp_WriteFile = "WriteFile"
     $imp_FlushFileBuffers = "FlushFileBuffers"
     $imp_GetFileSizeEx = "GetFileSizeEx"
     $imp_CloseHandle = "CloseHandle"
     /* imports for rename function */
     $imp_strrchr = "strrchr"
     $imp_rand = "rand"
     $Move_File = "MoveFileA"
     $Move_FileEx = "MoveFileEx"
     $imp_RemoveDir = "RemoveDirectoryA"
     $imp_DeleteFile = "DeleteFileA"
     $imp_GetLastError = "GetLastError"
condition:
     $rand_name_routine and (11 of ($imp_*)) and ( 1 of ($Move_*))
}
 
 
Other previously known Lazarus Group samples:
 
138464214c78a73e3714d784697745acbf692ef40419d31418e4018e752cb92b
bdcfa3b6ca6b351e76241bca17e8f30cc8f35bed0309cee91966be9bd01cb848
ddebee8fe97252203e6c943fb4f9b37ade3d5fefe90edba7a37e4856056f8cd6
4d4b17ddbcf4ce397f76cf0a2e230c9d513b23065f746a5ee2de74f447be39b9
e2ecec43da974db02f624ecadc94baf1d21fd1a5c4990c15863bb9929f781a0a
eff542ac8e37db48821cb4e5a7d95c044fff27557763de3a891b40ebeb52cc55
f6cb8343444771c3d03cc90e3ac5f76ff9a4cb9cd41e65c3b7f52b38b20c0c27
 
 
Mode of entry - How intrusions usually occur
 
Even though in this case we do not have all the information about the attack, every intrusion usually follows the steps below:
 
Gaining access to the internal network
 
This is the first challenge every external intrusion must overcome. Gaining access to the internal network will allow the attackers to move laterally (gain access to other systems with the same privileges as the one they have accessed) and, eventually, vertically (gaining more privileges in a network).
In order to gain access to the internal network, the attackers use mostly two methods:
 
-Phishing campaign
A successful phishing campaign targeting the company and deploying a backdoor will allow the attackers to connect to at least one of the computers in the company, from which they can start to move laterally and vertically.
 
-RCE vulnerability or misconfiguration in the external network
Due to a misconfiguration, or a vulnerability that allows Remote Command Execution (RCE), the attacker will be able to execute commands on the remote host.
 
This is probably the case for the Bangladesh Bank. The bank was using outdated switches without firewalls to connect to the SWIFT infrastructure.
 
Taking control of the internal network
 
Once the attackers have gained access to the internal network, there's usually the need to escalate privileges, all the way up to the user with the most privileges (for example Domain Administrator in Windows networks). This way, they can move freely around the network, entering any system and eventually accessing all the data in the network. This is usually carried-out exploiting vulnerabilities from applications or from the operating system. It's also possible to use social engineering to achieve this goal. In some cases, this second step is not necessary, because the authors may have already accessed the necessary systems to perform the attack.
 
Files used for the investigation:
MD5: 0b9bf941e2539eaa34756a9e2c0d5343
MD5: 909e1b840909522fe6ba3d4dfd197d93
 
 
Entry point:
In the case of the Vietnamese bank, the file used for the attack is a fake version of the popular PDF reader Foxit. The malware installs itself in the original Foxit installation directory and renames the original file to FoxltReader.exe.
 
Once the user starts using the fake reader, the malware executes and writes to a log file in the temp directory C:\\Windows\temp\\WRTU\ldksetup.tmp. Analyzing this file, we see the log data is XOR encoded using the value 0x47.
 image1.gif
Was this malware part of a targeted attack?
 Yes, absolutely. As in the malware used against the Bangladeshi bank, we found the SWIFT code for the target in multiple places in the malware.
image2swift target.png
Yara rules:
rule banswift :banswift {
meta:
description = "Yara rule to detect samples that share wiping function with banswift"
threat_level = 10
strings:
$snippet1 = {8844240DB9FF03000033C08D7C242DC644242C5F33DBF3AB66AB5368800000006A0353AA8B84244010000053680000004050C644242AFF885C242BC644242C7EC644242DE7}
/*
88 44 24 0D mov [esp+102Ch+var_101F], al
B9 FF 03 00 00 movecx, 3FFh
33 C0 xoreax, eax
8D 7C 24 2D lea edi, [esp+102Ch+var_FFF]
C6 44 24 2C 5F mov [esp+102Ch+var_1000], 5Fh
33 DB xorebx, ebx
F3 AB rep stosd
66 AB stosw
53 push ebx ; _DWORD
68 80 00 00 00 push 80h ; _DWORD
6A 03 push 3 ; _DWORD
53 push ebx ; _DWORD
AA stosb
8B 84 24 40 10 00 00 moveax, [esp+103Ch+arg_0]
53 push ebx ; _DWORD
68 00 00 00 40 push 40000000h ; _DWORD
50 push eax ; _DWORD
C6 44 24 2A FF mov [esp+1048h+var_101E], 0FFh
88 5C 24 2B mov [esp+1048h+var_101D], bl
C6 44 24 2C 7E mov [esp+1048h+var_101C], 7Eh
C6 44 24 2D E7 mov [esp+1048h+var_101B], 0E7h
*/
$snippet2 = {25 FF 00 00 00 B9 00 04 00 00 8A D0 8D 7C 24 30 8A F2 8B C2 C1 E0 10 66 8B C2 F3 AB}
/*
25 FF 00 00 00 and eax, 0FFh
B9 00 04 00 00 movecx, 400h
8A D0 mov dl, al
8D 7C 24 30 lea edi, [esp+30h]
8A F2 mov dh, dl
8B C2 moveax, edx
C1 E0 10 shleax, 10h
66 8B C2 mov ax, dx
F3 AB rep stosd
*/
condition:
all of ($snippet*)
}
In the code, we found that the malware uses the original driver fpdsdk.dll from the Foxit SDK to execute the transformation of the files.

image3.gif
IOC details for this bbswift malware:
Malicious IP:
hxxp://196(.)202(.)103(.)174/al?
 
Network IOC Detection Example for this malware:
alert tcp $HOME_NET any -> $EXTERNAL_NET $HTTP_PORTS (msg:"TROJAN Possible BBSwift/Banswift/Bankswi/Alreay/TSPY_ALSOF status report HTTP Outbound"; content:"GET"; http_method; content:"|2F|al|3F 2D 2D 2D|"; http_uri; fast_pattern; pcre:"/^GET\x20.*\x2F\x2D{3}[CNO]$/U"; classtype:trojan-activity; reference:url,baesystemsai.blogspot.com/2016/04/two-bytes-to-951m.html; sid:9000000; rev:1;)
 
 
Conclusion
In both attacks we can see that the attackers have done their reconnaissance properly and may have used an insider to get the details they needed to prepare their attacks. In the Bangladeshi case, for example, the malware samples are tuned to the environment and how the banking system operates, including the supported software, databases, and printer. In the Vietnamese case, the malware is also tuned to fit the environment. The attackers knew that the bank used Foxit and replaced it with a fake version. The attackers have a very good understanding of the SWIFT messaging system and how to manipulate the system to prevent the detection of their fraudulent attempts of transferring the money. The malware in each attack was compiled just before the attack happened.
Although both attacks were discovered at some point during the attempts to transfer large amounts of money, the actors may well have executed a few test runs to check their operations before the real attacks.


Post made by





 
 
References:
 
 
 
 
 
 
 
 
 


Wednesday, July 27, 2016

What World Needs Now?



Very seriously thinking about today's world and suddenly one question sparked in my mind, "what world needs now?". Ultimate question and the solution will bring up the new world. Many philanthropists, billionaires also searching the answer for the same question as a part their new business openings or giving back to the society.

Bill Gates, my role model, who is taking more care on what he give back to the society. Very active philanthropist with the support of his wife, he made journeys to several underdeveloped countries, especially African countries, in order to eradicate poverty, diseases (which can be eradicated), spending on education.

Another set of billionaires, like Elon Musk, searching for new innovative ideas to make this world a better place like ever before. Cheap Energy and renewable energy is the main concern to save our environment. Our hope lies in them that they can bring up with new ideas and have the ability to invest in those projects. It automatically leads to betterment of human life and answer to our question "what real world needs?".

Key points:
Peace
Clean Environment
Healthy food
Pure drinking water
No poverty
No starving
Renewable energy
Cheap Energy as well as renewable energy

Post made by
newWorld

Tuesday, June 28, 2016

Ransomware not only Encrypts Your Data But Also Speaks to You

A ransomware called Cerber has been floating around for about a week, but we were not able to retrieve a sample until today. Thanks to @BiebsMalwareGuy and @MeegulWorth, samples were found and further analysis of the ransomware could be done.  When infected, a victim's data files will be encrypted using AES encryption and will be told they need to pay a ransom of 1.24 bitcoins or ~500 USD to get their files back. Unfortunately, at this point there is no known way to decrypt a victim's encrypted files for free.


At this time we do not currently know how the Cerber ransomware is being distributed, but according to SenseCy, it is being offered as a service on a closed underground Russian forum. This means that it is probably a new Ransomware as a Service, or RaaS, where affiliates can join in order to distribute the ransomware, while the Cerber developers earn a commission from each ransom payment.

For anyone who is infected with this ransomware or wants to discuss the infection, we have a dedicated support topic here: CERBER Ransomware Support and Help Topic.  http://www.bleepingcomputer.com/forums/t/606583/cerber-ransomware-support-and-help-topic-decrypt-my-files-htmltxtvbs/



Widespread Attack on Office 365 Corporate Users with Zero-day Ransomware Virus- http://www.avanan.com/resources/attack-on-office-365-corporate-users-with-zero-day-ransomware-virus



Sample Analysis:

Friday, June 24, 2016

Godless Malware In Android:




"We came across a family of mobile malware called Godless (detected as ANDROIDOS_GODLESS.HRX) that has a set of rooting exploits in its pockets. By having multiple exploits to use, Godless can target virtually any Android device running on Android 5.1 (Lollipop) or earlier. As of this writing, almost 90% of Android devices run on affected versions."

Godless


Detailed post by Trendmicro:

http://blog.trendmicro.com/trendlabs-security-intelligence/godless-mobile-malware-uses-multiple-exploits-root-devices/



Wednesday, April 27, 2016

Dark Seoul Implant with zero detection:

Famous Malware researcher Snorre Fagerland tweeted that dark seoul implant having zero detection in Virustotal.

https://twitter.com/SnorreFagerland/status/725211677277310977

Here is the VT link:
https://www.virustotal.com/en/file/061044ffbebeebab449a13ee74799fd9c58b9b383149cbde7a7f6db77c54f72e/analysis/

At this time of writing, 0/56 in VT. i.e. No antivirus vendor flagged this implant.

Thursday, March 24, 2016

Important Links Related Tocybe Cyber Security:

For all the folks who have passion on cyber security, I have a good list of interesting links to study and practise cyber security stuffs. In this post, we predominantly focused on web application testing. Please go through these links and give your comments.

The following links for video tutorials:
OWASP Appsec Tutorial Series - https://www.owasp.org/index.php/OWASP_Appsec_Tutorial_Series
SecurityTube - http://www.securitytube.net/
Videos by Imperva - http://www.imperva.com/resources/videos.asp

Deliberately Insecure Web Applications
OWASP Vulnerable Web Applications Directory Project -

https://www.owasp.org/index.php/OWASP_Vulnerable_Web_Applications_Directory_Project#tab=Main

BadStore - http://www.badstore.net/

Damn Vulnerable Web App - http://www.ethicalhack3r.co.uk/damn-vulnerable-web-app/

Moth - http://www.bonsai-sec.com/en/research/moth.php

Mutillidae - http://www.irongeek.com/i.php?page=mutillidae/mutillidae-deliberately-vulnerable-php-owasp-top-10


Hacme Series from McAfee:

+ Hacme Travel - http://www.mcafee.com/us/downloads/free-tools/hacmetravel.aspx
+ Hacme Bank - http://www.mcafee.com/us/downloads/free-tools/hacme-bank.aspx
+ Hacme Shipping - http://www.mcafee.com/us/downloads/free-tools/hacmeshipping.aspx
+ Hacme Casino - http://www.mcafee.com/us/downloads/free-tools/hacme-casino.aspx
+ Hacme Books - http://www.mcafee.com/us/downloads/free-tools/hacmebooks.aspx


Stanford SecuriBench - http://suif.stanford.edu/~livshits/securibench/

Vicnum - http://vicnum.sourceforge.net/ and

http://www.owasp.org/index.php/Category:OWASP_Vicnum_Project

WebGoat - http://www.owasp.org/index.php/Category:OWASP_WebGoat_Project

WebMaven (better known as Buggy Bank) - http://www.mavensecurity.com/WebMaven.php

Security patch update:
https://technet.microsoft.com/en-us/security/bulletin/dn602597.aspx

Monday, December 7, 2015

APT: Carbanak (Hindi)

स्थिति: सक्रिय
प्रकार: पिछले दरवाजे
डिस्कवरी: 2014
लक्षित प्लेटफॉर्म: Windows
पहली ज्ञात नमूना: 2013
लक्ष्य की संख्या: 11-100


विशेष लक्षण:
सबसे पहले एपीटी कभी आपराधिक।
Carbanak cybergang दुनिया भर में 100 वित्तीय संस्थाओं से $ 1bn चोरी कर रहा था।
भूखंड दुर्भावनापूर्ण उपयोगकर्ताओं बैंकों से सीधे पैसे चोरी, और अंत उपयोगकर्ताओं को निशाना बनाने से बचें जहां cybercriminal गतिविधि के विकास में एक नए चरण की शुरुआत के निशान।
सबसे बड़ी रकम बैंकों में हैकिंग और प्रत्येक छापे में दस लाख डॉलर तक चोरी करके पकड़ा गया।


शीर्ष 10 देशों:
रूस, अमरीका, जर्मनी, चीन, यूक्रेन, कनाडा, ताइवान, हांगकांग, हांगकांग, ब्रिटेन, स्पेन, नॉर्वे, भारत, फ्रांस, पोलैंड, पाकिस्तान, नेपाल, मोरक्को, चेक गणराज्य, स्विट्जरलैंड, बुल्गारिया, ऑस्ट्रेलिया, आइसलैंड, ब्राजील

लक्ष्य:
वित्तीय संस्थानों

APT - Hellsing (Hindi)

स्थिति: सक्रिय
प्रकार: दूरस्थ प्रशासन उपकरण
डिस्कवरी: गर्मी 2014
लक्षित प्लेटफॉर्म: Windows
पहली ज्ञात नमूना: 2012
लक्ष्य की संख्या: 11-100

शीर्ष लक्षित देशों:
मलेशिया, फिलीपींस, भारत, इंडोनेशिया, संयुक्त राज्य अमेरिका

लक्ष्य:
सरकारी संस्थाओं
राजनयिक संगठनों / दूतावासों

APT: Equation (Hindi)

स्थिति: सक्रिय
प्रकार: परिसर cyberattack मंच
डिस्कवरी: 2014
लक्षित प्लेटफॉर्म: Windows
पहली ज्ञात नमूना: 2002
लक्ष्य की संख्या: 500-1,000

शीर्ष लक्षित देशों:
ईरान, रूस, पाकिस्तान, अफगानिस्तान, भारत, चीन, सीरिया, माली, लेबनान, यमन

विशेष लक्षण:
हार्ड ड्राइव फर्मवेयर को संक्रमित करने की क्षमता
पीड़ितों को संक्रमित करने के लिए "पाबंदी" तकनीक का उपयोग
आपराधिक मैलवेयर के लिए नकल उतार।

लक्ष्य:
नैनो
वित्तीय संस्थानों
परमाणु उद्योग
कार्यकर्ता
एकेडेमिया / अनुसंधान
सरकारी संस्थाओं
ऊर्जा, तेल और गैस कंपनियों
सैन्य
टेलीकाम
राजनयिक संगठनों / दूतावासों
व्यापार एवं वाणिज्य
एयरोस्पेस
मास मीडिया और टीवी
उच्च प्रौद्योगिकी कंपनियों
शिक्षा
ढुलाई

APT:Hacking Team RCS (Hindi)

स्थिति: सक्रियप्रकार: पिछले दरवाजे, ट्रोजन, रूटकिटडिस्कवरी: 2011लक्षित प्लेटफार्म: विंडोज, ओएस एक्स, ब्लैकबेरी, विंडोज मोबाइल, एंड्रॉयड, आईओएसपहली ज्ञात नमूना: 2008लक्ष्य की संख्या: 101-500
टॉप लक्षित देशों:रूस, चीन, इटली, वियतनाम, अमेरिका, तुर्की, इराक, मेक्सिको, जर्मनी, भारत
विशेष लक्षण:"व्यापार करने वाली सरकार" स्पाइवेयरएक पर्सनल कंप्यूटर / मोबाइल डिवाइस का उपयोग किया जाता है किसी भी कार्रवाई की निगरानी कर सकते हैं।कंप्यूटर और मोबाइल उपकरणों के लिए मॉड्यूलयूएसबी फ्लैश ड्राइव के माध्यम से स्व-प्रतिकृतिआभासी ड्राइव पर ऑटोरन फ़ोल्डर में खुद को कॉपी करके आभासी VMware मशीनों का संक्रमणआत्म अद्यतन करने की क्षमतानमूने कानूनी अधिकारियों द्वारा हस्ताक्षर किए हैंयूएसबी केबल के माध्यम से स्थानीय संक्रमण मोबाइल उपकरणों सिंक्रनाइज़ करते समयहर ठोस लक्ष्य के लिए विशिष्ट दुर्भावनापूर्ण प्रत्यारोपणआईओएस मोबाइल मॉड्यूल द्वारा समर्थित कम से कम 39 एप्पल उपकरणोंदोनों जेलब्रेक और गैर जेलब्रेक आईफ़ोन संक्रमित हो सकते हैं: एक हमलावर पहले से ही संक्रमित कंप्यूटर के माध्यम से एक दूरस्थ भागने का संचालन कर सकते हैं
लक्ष्य:कार्यकर्तापत्रकारोंराजनेताआपराधिक संदिग्धों

APT: Cloud Atlas (Hindi)

स्थिति: सक्रिय
प्रकार: ट्रोजन
डिस्कवरी: अगस्त 2014
लक्षित प्लेटफार्म: विंडोज, एंड्रॉयड, आईओएस, लिनक्स
पहली ज्ञात नमूना: 2014
लक्ष्य की संख्या: 11-100

टॉप लक्षित देशों:
रूस, कजाखस्तान, बेलारूस, भारत, चेक गणराज्य

विशेष लक्षण:
CloudAtlas RedOctober हमलों की एक पुनर्जन्म का प्रतिनिधित्व करता है।
RedOctober के शिकार लोगों में से कुछ भी CloudAtlas द्वारा लक्षित कर रहे हैं।
बादल एटलस और RedOctober दोनों मैलवेयर प्रत्यारोपण एक लोडर और, एन्क्रिप्टेड संग्रहीत और एक बाहरी फ़ाइल में संकुचित है कि एक अंतिम पेलोड के साथ एक समान निर्माण पर भरोसा करते हैं।
CloudAtlas प्रत्यारोपण एक बल्कि असामान्य सी और सी तंत्र का उपयोग - सभी मालवेयर नमूनों एक बादल सेवा प्रदाता से खातों के साथ संवाद।
माइक्रोसॉफ्ट ऑफिस सीधे डिस्क पर एक Windows पीई पिछले दरवाजे लिख नहीं है शोषण। इसके बजाय, यह एक एन्क्रिप्टेड विजुअल बेसिक स्क्रिप्ट लिखता है और इसे चलाता है।


लक्ष्य:
राजनयिक संगठनों / दूतावासों
सरकारी संस्थाओं

ShieldBreak: When Microsoft Patches a Zero-Day and the Researcher Patches the Patch

ShieldBreak: When Microsoft Patches a Zero-Day and the Researcher Patches the Patch Category: Vulnerability Research | Windows Security |...