Labels

woensdag 22 juli 2015

Deep dive into attribution trove of Hacking Team

Attribution is probably one of the toughest things to deal with during a major Cyber Security breach, yet it is one of the most demanded skills.Earlier in the first incident response cases, attribution was based solely on IP address location. Even though proxy servers have been there all along, individuals, companies and researchers could easily get away with this type of attribution.

Attribution and Advanced Persistent Threats

Since recent years, and especially since the community has started to attribute and specifically mention certain hacker groups by giving them a name, this ability to attribute cyber attacks has been a spear point for companies to showcase their skills. Often were fashionable names created and in other cases solely the abbreviation APT (Advance Persistent Threat), with a connecting number has been used to identify specific hacker groups.

Attribution is not easy, attribution can be based on all sorts of circumstantial evidence. As long as that unique specific blueprint pops up during the whole attack, you can be able to attribute an attack.
One thing most people often forget is that we are living on huge globe, with continents, habits and completely different mindsets. Cyber attacks in Europe and America are completely different by nature than cyber attacks in the Asia Pacific region and let alone from Russia.


Hacking Team

In order to help future attribution cases, we @RedSocks have decided to pinpoint all specific details from the Hacking Team leak as much as possible, and get to the slightest detail into pinpointing who is behind them.
What stands out most is the different use-cases you see in how specific parties are maintaining contact with hacking team. There are clients that don’t really mind if their identity is known, clients that are in a hurry, and clients that care about their identity. A lot of Hacking Teams clients for example use Gmail, Yahoo and Outlook email addresses. Some clients even prefer to only have contact by phone, and others only via encrypted email.
It turns out a few (if not all) customers prefer to have their Collector server in their own home country.
Below we have mentioned some of these clients of whom we were able to pinpoint their Collector server:

  • 81.192.195.* – Morocco
  • 81.192.195.* – Morocco
  • 81.192.195.* – Morocco
  • 80.18.231.* – Italy
  • 202.131.234.* – Mongolia
  • 190.242.96.* – Colombia
  • 95.59.26.* – Kazakhstan
  • 175.143.78.* – Malaysia

The massive Hacking Team leak allowed us to gain insight in the client infrastructure of Hacking Team. The Hacking Team company used various anonymizers and you can find them in our previous post on Hacking Team.

On the bottom of this blog post is a list of associated Hacking Team Collector server anonymizers and connected email addresses. These details should give researchers the ability to gather valuable information about current and future APT groups, their tool set, IP ranges, capabilities and motives.
We have highlighted some for you:

KVANT
The Russian customer KVANT. This customer is associated with the following two email addresses:

  • kachalin@advancedmonitoring.ru
  • kachalin@infotecs.ru

But it is also associated with this email address:

  • johnd123@yandex.ru

JohnD here could be related to placeholder name John Doe.
This specific customer connected from the Russian IP address 193.232.60.234
An IP address known to be a Bitcoin Seed node.
Below is a screenshot this customer send to Hacking Team for debugging purpose.



Officially, Hacking Team sold its wares to a company called “Advanced Monitoring“, whose corporate parent has a license to work with the FSB, as recently as August 28, 2014.


The 5163 Army Division customer
This customer was one of the most active users, it is associated with the email address:
devilangel1004@gmail.com
It has connected with at least 109 different IP addresses from at least 15 different countries. All of them where TOR exit nodes. It can be noted that this customer had good operational security in place in order to hide its original location on the internet.
This customer was using a large variety of VPS infrastructure to infect its targets:

  • DE – 198.105.125.107
  • DE – 198.105.125.108
  • CZ – 198.105.122.117
  • CZ – 198.105.122.118
  • NL – 131.72.137.101
  • NL – 131.72.137.104
  • DE – 185.72.246.46
  • RU – 46.38.63.194
  • US – 162.216.7.167

The 5163 Army Division is thought to be the front office of National Intelligence Service of South Korea.


Kevin White
It turns out there is a customer by the abbreviation of MOI. This user has used the following email addresses:

  • kevinwhite432@hotmail.com
  • kevinwhite4456@mail.com
  • kwhite@lelantos.org

This customer also consequently connected through the TOR network. Thus far we have not been able to identify this customer. The email address @lelantos.org is from a secure anonymous email provider only accessible through Tor.
The operational security of this customer turned out to be excellent.
This customer was infecting its client through Word documents that mimicked documents from the “United Nations Human Rights Council” (UNHCR) and the “Revoltionary Front in Defence of the People’s Rights” (RFDPD) from Brasil.



We have not been able to identify this customer.


Intech Solutions
Last but not least we have the customer Intech Solutions.
Associated company domains for this customer are:

  • lea-consult.de
  • intech-solutions.de

Intech Solutions seems to be a customer from Germany but it turns out this customer is a reseller.
Intech Solutions is servicing its customers from three different geographical locations:

  • Luxembourg – 188.115.16.82
  • Germany – 188.210.58.*
  • Lebanon – 77.246.76.211

According to several documents we believe Intech Solutions is serving two customers.

  • The Secret Service of Luxembourg, codenamed Falcon.
  • The Iraqi Government, codenamed Condor.

The Falcon customer is mainly interested in the Network Injector capabilities of Hacking Team’s RCS while the Condor customer uses the following links related to the infection of its targets:

  • http://www.kurdistanpost.com
  • http://www.iraqinews.com/tag/mosul/
  • http://www.iraq-businessnews.com/tag/sulaymaniyah/
  • http://www.breakingnews.com/topic/sulaimania-as-sulaymaniyah-iq/
  • http://www.iran-daily.com/News/111959.html
  • http://www.iraqinews.com/iraq-war/security-forces-liberate-hamrin-mountains/
  • http://www.iraqinews.com/iraq-war/exclusive-photos-army-volunteer-fighters-heading-tikrit/
  • http://www.iraqinews.com/iraq-war/salahuddin-security-committee-denies-finding-survivors-camp-speicher-massacre/
  • http://www.iraqinews.com/features/barzani-asks-pope-urge-international-community-provide-assistance-kurdistans-displaced/
  • http://www.iraqinews.com/iraq-war/1103-iraqis-killed-2280-injured-february-says-un/

To summon some very specific characteristics that can be noticed during an attack I have decided to write some down that are able to help you. And others that can easily cause tunnel vision, and thus should be taken less into account.

Attribution:

  • New malware strains, from same source code
  • Lateral movement characteristics
  • Reconnaissance characteristics
  • Persistence/Backdoor characteristics
  • Connecting IP space
  • Plurality of IP series
  • Amount of concurrent (active) backdoor connections
  • Routine of instructions
  • Batch/Script files used and purpose of those
  • Favorable tools of common open source tool sets
  • Entry point details (hacked, bought, bought in underground, hijacked, stolen)
  • Sophistication of malware (sole purpose, modular, ease of creation)

Helpful:

  • Possible motives
  • Compilation time stamps

Tunnel vision:

  • Specifically attributed known malware (Could be Re-used.)
  • IP ranges solely
  • Strings in malware

Below is a list of customer email addresses, customers code names, customer names and connecting IP addresses. Researches willing to receive the complete list are free to contact us.


rosreptc@carabinieri.it ROS rosreptc
netsec@areatec.com CNI netsec 81.171.69.48 ES
batujembalapatik@gmail.com MIMY batujem balapatik 203.121.55.92 MY
alicefelistica@gmail.com MIMY Alice Felistica 172.20.20.182 Failed
arenamy8@gmail.com MIMY Arena 120.141.162.116 MY
eaglecobra23@gmail.com MIMY eagle cobra Failed
errorr.007@gmail.com MIMY error 007 118.101.201.251 MY
farkasgabor68@gmail.com MKIH Gábor Farkas 86.59.137.94 HU
intdiv@mkih.hu MKIH IntDiv Failed
infop@sutor.it PCIT INFOP Failed
srs@sutor.it PCIT Cesare 192.168.1.159 Failed
andrea.raffaelli@carabinieri.it ROS Andrea Raffaelli Failed
devilangel1004@gmail.com SKA devilangel 176.10.99.202 CH
josef.hrabec@bull.cz UZC Josef Hrabec 172.20.20.188 Failed
janus@bull.cz UZC UZC Bull 89.24.101.39 CZ
tomas.hlavsa@bull.cz UZC Tomas Hlavsa 195.39.62.66 CZ
service@intech-solutions.de INTECH Simon Thewes 188.115.16.82 LU
k.dobrzynski@cba.gov.pl CBA KD 46.113.149.31 PL
robinj.newsletter@gmail.com CBA KD 46.113.149.31 PL
unifi_abc@yahoo.com PMO Megat 210.186.148.113 MY
alessandro.scagnetti@interno.it PP Alessandro Scagnetti 80.19.234.18 IT
woints@yahoo.com INSA SW 213.55.96.10 ET
walcot.woly@gmail.com INSA Walcot Woly 216.118.233.253 PY
biniamtewolde@yahoo.com INSA Biniam Tewolde 172.20.20.188 Failed
joshua.a.hollister@usdoj.gov KATIE Joshua HOLLISTER Failed
jonathan.g.leonhard@usdoj.gov KATIE Jonathan Leonhard Failed
brett.blackham@gmail.com KATIE Brett Blackham Failed
jmsolano2k@yahoo.com PHOEBE John Solano 63.119.193.1 US
james.houck@ic.fbi.gov PHOEBE James Houck 63.119.193.1 US
soporteuiamx@gmail.com GEDP UIAPuebla 200.57.119.167 MX
g23@mod.gov.eg GNSE Mohammed 41.33.151.149 EG
del@afmic.com GNSE Ali Hussein 2 172.20.20.188 Failed
a.almasoud@moisp.gov.sa TCC-GID Ahmed Al Masoud 84.235.48.113 SA
sfrashed@tcc-ict.com TCC-GID Sultan Alrashed 46.240.36.82 SA
i.eugene@itt.uz NSS i.eugene 195.69.188.250 UZ
miloudifranck@yahoo.fr ALFAHAD miloudi franck 105.158.160.130 MA
pristospristou@gmail.com CIS CSS 81.4.182.50 CY
sgeorgakis@cis.gov.cy CIS CSS 81.4.182.50 CY
pristoupristos@gmail.com CIS cis group Failed
simone.cazzanti@rcslab.it RCS Simone Cazzanti 83.103.117.82 IT
antonino.bonanno@rcslab.it RCS Antonino Bonanno 83.103.117.82 IT
duilio.bianchi@rcslab.it RCS Duilio Bianchi 172.20.20.188 Failed
helpteam66@gmail.com CSDN HelpTeam66 41.248.191.71 MA
michael.p.casey@usdoj.gov KATIE Michael P. Casey 190.27.195.19 CO
mcasey6@gmail.com KATIE Michael P. Casey 190.27.195.19 CO
jasur@itt.uz NSS Jasurbek Khujaev 62.209.142.186 UZ
dankovicsjanos@gmail.com MKIH Janos Dankovics Failed
ulziibadrakh@iaac.mn MOACA ulziibadrakh 202.131.234.114 MN
erkhembayar@iaac.mn MOACA Erkhembayar 202.131.234.114 MN
erkhemee.iooii@gmail.com MOACA Erkhembayar 202.131.234.114 MN
davaa.shurik@gmail.com MOACA davaadorj 202.131.235.214 MN
uzc.v3.data@pcr.cz UZC Richard Hiller 94.113.250.3 CZ
yasdy.ardy@gmail.com MIMY tzm 175.143.78.14 MY
amo@gcctalk.com BHR Amo 82.194.55.211 BH
altherwi@moisp.gov.sa TCC-GID Walled Mohammed 84.235.48.113 SA
oscarg@symservicios.com PEMEX Oscar Israel González 189.204.10.202 MX
ocasitamaulipas@gmail.com SSPT Keila 201.144.150.206 MX
marek.bartos@ppcr.cz UZC Marek Bartos 94.113.250.0 CZ
miguelangel.corral@dtxtcorp.com PGJEM Miguel Angel Corral 187.188.106.19 Failed
rcs.cia@gmail.com PGJEM Ing. Carlos Rdz 187.208.68.151 MX
kraka1970@yahoo.com NISS-02 Abdullah 41.78.109.92 SD
teofilo@solucionesdetecnologia.com PANP Teofilo Homsany Failed
comunicacionesmx2013@gmail.com SDUC comunicaciones mexico 187.134.90.81 MX
infonetqro@gmail.com EDQ Felipe Romero Sánchez 187.144.53.252 MX
soprcs@gmail.com PANP Teofilo 190.32.195.84 PA
jaime@tevatec.com EDQ Jaime Calderón 189.178.19.160 MX
aliaheric@gmail.com SSNS E. 37.220.245.170 Failed
laurap@sutor.it PCIT Laura 2.114.21.82 IT
eojust@gmail.com KNB Astana Team 89.218.64.46 KZ
testwizard003@gmail.com AZNS Test Wizard 003 109.235.193.83 AZ
alan.zarza1980@gmail.com SEGOB Marco Antonio 187.217.80.174 MX
dzsunk2014@gmail.com MKIH Gábor Farkas 86.59.137.94 HU
johnd123@yandex.ru KVANT Peter 193.232.60.234 RU
__disabled_john.amirrezvani@parsons.com PHOEBE John Amirrezvani 63.119.193.1 US
__disabled__one.lal2010@gmail.com PHOEBE Pradeep Lal 65.211.76.176 US
dmoreno@elitetactical.net SEPYF Dan. Moreno 201.160.129.133 MX
7s39831@gmail.com IDA 7S39831 180.255.20.96 SG
kevinwhite432@hotmail.com MOI Kevin White 94.242.246.24 LU
kevinwhite4456@mail.com MOI Kevin White 94.242.246.24 LU
kwhite@lelantos.org MOI Kevin White 94.242.246.24 LU
octubre723@gmail.com SEPYF Juan 167.160.116.219 US
tulum@tutanota.de YUKI tulum@tutanota.de 189.202.92.197 MX
supporto-ht@area.it ARIEL Ariel 94.90.124.2 IT
eduvagpo74@tutanota.de DUSTIN eduvagpo74 201.148.31.115 MX
jrenato.melendez@gmail.com DUSTIN jrenato melendez 201.148.31.115 MX
kambal456@gmail.com NISS-01 Nizar 41.78.111.67 SD
dan@pymetek.net DUSTIN Dan 200.77.198.212 MX
garciarigoberto@prodigy.net.mx PGJEM Rigoberto Garcia 172.16.1.5 Failed
ldiaz@neolinx.mx PGJEM Luis Díaz 189.253.103.167 MX
luis_diazydiaz@hotmail.com PGJEM Luis Díaz 189.253.103.167 MX
esgar_1_38@hotmail.com JASMINE Support 189.211.186.199 MX
team14355@gmail.com MOD Magbool 37.242.13.10 Failed
tango2014@mail.com MOD User_Mod_01 94.99.41.221 SA
roy2014@post.com MOD User_Mod_02 185.23.124.138 SA
akhtar@mauqah.com UAEAF Akhtar Saeed Hashmi 86.96.99.238 AE
basar@palgroup.com UAEAF Syed Basar 176.205.10.181 AE
ht@mauqah.com UAEAF UAEAF_user Failed
falneyadi@eim.ae UAEAF UAEAF_user1 92.96.11.43 AE
salmuhrezi@eim.ae UAEAF UAEAF_user2 2.50.248.150 AE
fabio@hackingteam.com HackingTeam Test 192.168.100.239 Failed
user008181@gmail.com PHANTOM Jorge 151.48.150.70 IT
ccaceresh@investigaciones.cl PHANTOM CC 190.8.83.154 CL
ajmani.aa@gmail.com BSGO Anil Ajmani 41.206.1.5 NG
hanan@skylinksltd.com BSGO Hanan Dayan 41.206.1.8 NG
haim@skylinksltd.com BSGO Haim Lewy 172.20.20.178 Failed
thorbruegge@yahoo.com BSGO Bruegge Thor 192.168.1.155 Failed
elmarcopoloh@yahoo.com SENAIN TRUST 181.198.76.18 Failed
luis.solis@sin.gob.ec SENAIN TRUST 181.198.76.18 Failed
mauro.sorrento@gmail.com PCIT Mauro Sorrento 2.114.21.82 IT
francesco.sperandeo@interno.it PP Francesco Sperandeo 80.19.234.18 IT
sioht@siospa.it SIO Gruppo SIO x HT 2.228.15.130 IT
jacopo.cialli@carabinieri.it ROS Jacopo Cialli 93.40.111.230 IT
crijajo@gmail.com ROS Jacopo Cialli 93.40.111.230 IT
gabrieliraf@gmail.com ROS Raffaele Gabrieli 2.195.134.126 IT
raffaele.gabrieli@carabinieri.it ROS Raffaele Gabrieli 2.195.134.126 IT
cshmps@hotmail.it CSH Salvatore Macchiarella 77.71.162.131 MT
sortiz@cargatechnology.com YUKI sortiz@cargatechnology.com 189.202.88.249 MX
satthubongdem123456789@gmail.com VIKIS satthubongdem123456789@gmail.com 183.91.15.102 VN
ricardo.perinan@correo.policia.gov.co MDNP Ricardo Periñan 190.255.40.77 CO
tnpticket@gmail.com TNP TNP User 84.51.32.10 TR
noc@samtel.samartcorp.com THDOC NOC 203.149.47.18 TH
tnpnotcenter2@gmail.com TNP-old tnp notcenter 95.9.71.180 TR
milan.daniele@gmail.com TNP-old Daniele 192.168.1.200 Failed
wirbelwind79@outlook.com ZUEGG wirbelwind79@outlook.com 195.162.166.11 CH
edilberto.tangarife@correo.policia.gov.co MDNP Ricardo Periñan 190.255.40.77 CO
j972584@gdf.it SCICO Pasquale D’Ambrosio 2.228.110.165 IT
w105553@gdf.it SCICO Salvatore Galati 88.50.246.138 IT
h973958@gdf.it SCICO Federico Speranza 88.50.246.138 IT
l085038@gdf.it SCICO Giuseppe Della Cioppa 88.50.246.138 IT
v095168@gdf.it SCICO Marco Bartiromo 88.50.246.138 IT
rappazzo.diego@gdf.it SCICO Diego Rappazzo 88.50.246.138 IT
support@dhag.com.vn VIKIS Support Team 171.224.130.48 VN
cimarron1@tutanota.de SEPYF SaidO 189.202.77.133 MX
dungi1@tutanota.de DUSTIN SAIDO 189.202.71.133 MX
cateringlllc@gmail.com ORF cateringlllc 82.178.83.157 OM
user008282@gmail.com PHANTOM Manuel 151.48.150.70 IT
user008383@gmail.com PHANTOM Sergio 190.8.83.154 CL
nasser.asiri@gmail.com GIP Nasser Asiri 37.104.60.96 Failed
soporteht.2015@gmail.com HON SoporteHT.2015 190.109.192.194 HN
test@hackingteam.com HackingTeam Test 192.168.100.239 Failed
kamarulzamani@miliserv.com.my MACC Kamarul Zamani Failed
zuriana@miliserv.com.my MACC Zuriana 110.159.6.122 MY
ariff@miliserv.com.my MACC Zuriana 110.159.6.122 MY
suporte@yasnitech.com.br BRENDA Suporte 189.68.89.175 BR
gilberto.gbcj@dpf.gov.br BRENDA gilberto 177.7.84.199 BR
macsal@me.com CSH Salvatore Macchiarella 77.71.162.131 MT
takayama.tko@gmail.com TIKIT Takayama 110.78.165.114 TH
josef.hrabec@atos.net UZC Hrabec Josef Failed
skylock224@gmail.com VIRNA Virna 203.162.252.158 VN
erdtec@mcit.gov.eg TREVOR ERDTECH 41.237.238.52 EG
maremu2015@tutanota.com DUSTIN Miguel Angel Renteria Failed

Author Rickey Gevers

Chief Intelligence Officer RedSocks BV

zaterdag 27 juni 2015

Carbanak malware and the FSB connection

After the discovery of the Carbanak malware, indicators connected to the malware were released.
One of them being the domain: systemsvc.net. 
It turned out later on that this specific domain was pointing towards the web server of the FSB (IP:213.24.76.23).

Several security researchers noticed this and publicly reported it.


1) At first hand the general opinion was that the criminals changed the domain to the FSB web server once their campaign was exposed, as some sort of easter egg. Funny, probably not that smart, but could be possible.

2) The FSB confiscated the domain and pointed it towards its web servers for sinkholing purposes. Although this option does not necessarily follow the general rules of sinkholing, especially not when you direct the traffic straight to your main web server.
The main web server handler your web traffic, pointing an APT campaign towards it could result in a DDoS effect in which your main web site becomes unreachable, something you'd want to circumvent when sinkholing. The main purpose of the web server is serving the website, it would be practicle to choose a completely different set up for sinkholing purpose.

3) 3th and last option seemed unlikely but it could have been possible that the FSB made a huge mistake and by accident or neglect was involved in this whole Carbanak campaign from the beginning. Neglecting to use dedicated untraceble infrastructure, or maybe pressuring the fraudsters to relay back their activities towards the FSB. This option is ruled out by most, especially from the RU countries. (*wink*)


Remarkable

As a starting point it was always assumed the domain started to point towards the FSB webserver after the Carbanak APT attack was exposed. Some digging into databases now revealed the domain started point to the FSB web server close to its registration date.
The domain was registrated on 28-10-2014.



On 4-11-2014 the domain systemsvc.net was first (in the wild) seen pointing to 213.24.76.23.
VirusTotal has an entry of systemsvc.net pointing to 213.24.76.23 on 5-11-2014.



It turns out the domain systemsvc.net has been pointing to the FSB web server all along! The Kaspersky PDF about this attack tells us the domain had been pointing towards the IP address 131.72.138.18. Our research connects this IP only occasionally to this domain name (For example this one VirusTotal entry where the domain systemsvc.net is spotted poiting to 131.72.138.18 on 29-10-2014).
A slightly different domain: system-svc.net has been seen pointing to 131.72.138.18 all along.

When we look at the chain of events above, we can conclude that the attackers used this FSB IP adress for the domain since the beginning. They even changed the IP address several times back towards the FSB IP address. Keeping this in mind the likely hood that pointing the systemsvc.net domain towards the FSB IP address seemed of persistent routine and not as a randomly made up joke.
These are some fascinating new insights that have to be kept in mind.

zondag 8 maart 2015

The 5elafabook joke!

As one might have witnessed ISIS/ISIL or the Islamic State supporters now a days are quickly banned from Twitter and other social media. According to recent research over 46,000 accounts have been banned in order to stop the ISIL propaganda machine.
Now, in order to tackle this problem some say ISIS/ISIL created a Facebook on their own. Several trustworthy twitter accounts report about the new Khilafabook and tweeted the link to it.
From this point many international media took over this 'news'. But maybe a little bit to quick?

The domain used is www.5elafabook.com. Quick research teaches us some very weird things.



1. The domain doesn't use encryption. This makes it easy for any intelligence agency to tap into the traffic generated and monitor/influence the (contents of the) website.
2. The website is hosted in America, of all countries. America?!
3. The website is hosted on a shared hosting platform. Any admin of that shared hosting platform has access to all the data stored on the server. And from a performance perspective, this site won't be able to handle a lot of visitors...

If you want to get rid of censorship this is probably not, in anyway, a preferred setup one would choose. For an intelligence agency this setup is even way, way, to obvious, and wouldn't make sense at all. In my opinion this is just a setup chosen by an amateurish ISIL supporter or funny prankster!

vrijdag 19 december 2014

Commonalities between the different wiper viruses

In this blog post I will describe details about several attacks that, as of today, are not directly linked to each other. But in my opinion share very important commonalities that should not be unnoticed.


The main hacking attacks I will talk about are the Dark Seoul cyberattacks, the Shamoon wiper virus and the Destover malware used to attack Sony. All have their own Wikipedia page, which proves their extend.

Below I will describe some remarkable events in which wiping/erasing malware functionality plays a key role, the events are in chronological order. (some political events are mentioned as well).

July 8, 2009 Malware is used to launch a large scale DDoS attack and eventually corrupts the systems by placing the text: "Memory of the Independence Day" in the Master Boot Record (MBR) to prevent the compromised computer from restarting. The malware used hardcoded command and control ip addresses.

March 4th, 2011 Malware is used to launch DDoS attacks, encrypt files and corrupt the MBR. Bytes are written to the MBR to prevent the system from booting normally, thus breaking the system. Another functionality is that the malware is able to encrypt documents. Hard coded command and control ip addresses are embedded in the malware.

April, 2012 The Iranian oil ministry is hit by a cyber-attack. The malware effectively wipes whole computers leaving no traces. Security researches from Kaspersky who are called in to investigate the attack only find some traces of the malware, slightly linking in to Duqu and Stuxnet.

July 2012
Oil Embargo Sanctions against Iran set to squeeze the country, effectively starting in July 2012, $133 million in losses a day.

News struck Saudi Aramco was hit by a cyber attack. It suffered from a virus that effectively destroyed the MBR crippling the computer network. In the MBR a small portion of a JPG image was displayed. It later turned out to be a burning American flag. The attackers claimed to belong to the group "The Cutting Sword of Justice" and promised another present on August 25th.

August 25, 2012 Hackers from "The Cutting Sword of Justice" made their promise and crippled the network of Qatari based firm RasGas.

Sept 1, 2012
Iran and North Korea sign a scientific and technological cooperation agreement, bringing the two nations deeply at odds with the US closer together.

March 20, 2013 Hard drive wiping malware hit South Korea. Banks and television stations were reportedly crippled. Computers failed to boot up properly, and displayed an image of three skulls alongside a message claiming that the systems had been "hacked by Whois Team".

February 11th, 2014 The Sands Casino was hit by a cyber attack. Their public website and internal network infrastructure was defaced and effectively wiped. The hacker group "Anti WMD Team" claimed responsibility.http://www.sandsinfo.com/index.htmlhttp://i1-news.softpedia-static.com/images/news2/No-Credit-Card-Data-Compromised-in-Las-Vegas-Sands-Casino-Company-Hack-AP-426875-2.jpg

November 24, 2014 Sony Pictures falls victim to a devastating cyber attack. All internal data is leaked and computers destroyed. The attackers are known only by their collective name, the "Guardians of Peace". Once again the malware deletes the MBR. CommonalitiesIf we quickly point a perpetrator in all of the above cases it looks like this:
North Korea
North KoreaUS/IsraelIranIranNorth KoreaIranNorth Korea


The first attack clearly used highly technical malware and could possibly addressed to America and/or Israel as there is reason to believe it is connected to Duqu and Stuxnet. It is the first appearance of "wiping" malware.


Quickly after this first attack another devastating "wiping" malware struck Saudi Aramco. This time the malware was not very technical, but proved its capability to destroy computers. It was highly effective in its job.The malware itself moved on a lateral basis throughout the network, had preconfigured Command andControl addresses, used compromised account credentials and sended a notifying message to an internal proxy server whom in turn forwarded that information to the internet. The attackers apparently wanted to know how much damage their attack had cost. Through pastebin posts the world was updated about the success of the malware. A group no one ever heard of claimed responsibility: "TheCutting Sword of Justice". In order to improve the impact the malware used a signed driver from the company ElDos.The malware contained several typing errors that made some parts of the malware malfunction.Although claiming to be from Saudi origin the hackers communicated in English.In the MBR the hackers left a small portion of an image. This image turned out to be a burning American flag. The hacker actively approached the press, said to bring another gift and promised to be back.The malware was compiled 5 days in advance of the attack.Shortly after the attack on Saudi Aramco the hackers delivered what could be assumed was the present mentioned in some of the statements of "The Cutting Sword of Justice". This time the Qatari based firm RasGas fell victim to a wiper virus.The malware spread lateral throughout the network, had preconfigured user account credentials, contained a lot of coding errors and also used the ElDos driver. 

Then in 2013 South Korea fell victim to a large scale attack on its nation’s infrastructure. Computers from banks and television stations were wiped. This time a group again no one ever heard of called "Whois Team" claimed responsibility.The malware had a Linux component in it and credentials were retrieved from a very specific path: http://www.symantec.com/security_response/writeup.jsp?docid=2013-032014-2531-99&tabid=2 Indicating the malware was specifically designed for this attack.
The malware was compiled 2 days before the attack.

In February 2014 The Sands casino fell victim to another wiping malware. As I have no sample of this malware I cannot draw any conclusions so far. But the attackers claimed to be from the unknown group "Anti WMD Team" and communicated in English. Via messages directed at the casino and through video posts the attackers made clear they stole 828 Gb of data and have it in their possession. They actively approached the press, promised a gift and said to be back soon.

In November Sony fell victim to the devastating wiping malware. The malware used the ElDosdriver again, moved throughout the internal network via lateral movement, had hardcoded Command and Control IP addresses in it, had hardcoded credentials in the code, contained typo errors in the malware and showed a picture with their demands. The hackers were once again from an unknown team called "Guardians of Peace", communicated in English and well yes, they promised a Christmas gift and said to be back soon.
In the mean time they slowly release all the data they had stolen to the public and actively approached the press.
The malware was compiled just a few days before the actual attack.

Some of the commonalities shared between these attacks are the following:
Political MessagesElDos driver
Actively approached press
Promised gift/Said to be backCommunication in English
English group name
Former unknown group
Use of images in MBRSpecific timingCompilation few days before attack

There definitely is no smoking gun here, but the circumstantial evidence is of such similarity it, in my opinion, cannot be ignored.

Political Messages
Political messages were to be found in all elements. Burning flags, detonation on specific dates and statements made by the group always had a political tone.


ElDos driver
The returning usage of the ElDos driver is one shared commonality in the malware. As malware with the main purpose of completely destroying hard drives is unique is even more unique a same driver is used. And it is specifically remarkable that in some of the attacks the driver wasn't even necessary for the purpose it was supposed to serve. Apparently the driver was just there and available to the attackers, and because of this they decided to include it in their malware. Maybe because they were just used to doing it?

Actively approaching the press
In some attacks the attackers specifically targeted the press. They didn't just choose one newspaper, or one favorite journalist like often happens with lone wulfs or small groups. No they were highly informed about what press is influential and distributed their massage an mass towards all these organizations. Chances of getting unmasked by accidentally exposing more information to the journalist that opposed apparently didn't pose a threat to the hackers.

Promising Gifts and Said to be back
In some of these cases the hackers said they had a present waiting. The presents promised were thus far always met. Promising something and keeping that promise causes extra fear at the victim’s side.

Communication in English
While this clearly doesn't seem important it is remarkable though that an attack carried out by supposedly attackers from Saudi origin, attacking a Saudi company communicate in English whilst both of their first languages is Arabic. The attackers stuck to English as their way to cummunicate with their victims, and clearly wanted to world to be able to read and understand it as well. This slightly proves the attacks were not targeted at the company, but to the public.

English group names
In all cases English group names were used. In attacks of which Iran is the main subject one group called itself "The Cutting Sword of Justice" and in the attack on the Sands Casino the attackers said: "Don't let your tongue cut your throat.” On the other hand the attacks of which North Korea is the main suspect group names where "The WHOIS team" and "Guardians of Peace". By causing havoc these attackers apparently want to establish world peace.

Unknown groups
Often hackers and hacktivists join groups, known groups. Groups that claim responsibility because the hackers are proud of what they have achieved. They want people to know it was them again. They want to prove to the public they are capable of doing it again. In these cases the attacking groups have never been seen before, and are thus far never seen after the events.

The use of images.
In the first attack on the Saudi Aramco, a small portion of a JPG image was left in the MBR. This image eventually turned out to be a burning American flag. Although according to the initial message the attack had to do with the country of Saudi Arabia apparently something of America had stung the creators of the malware. The images used in the DarkSeoul attack and the Sony attack have remarkable commonalities in their layout and structure.


Specific timing
During the attacks and during statements made by the different group very specific timing was used. The malware at Saudi Aramco was set to specifically detonate at a certain time and the promised present was set at again a very specific time. This is also the case in the DarkSeoul attack, as was in the Sony attack. The usage of very specific timing is not uncommon for programmers. It is less common though in an ongoing attacks. This is because once an attack is launched the attackers usually lose control over the situation. In these cases the attackers apparently were very confident in their succeeding’s. 

Compilation times
Specifically in the Shamoon, DarkSeoul and Destover malware the compilation time was right before the attack. The attackers apparently waited till the last moment to compile their weapon and deploy it out in the open.

As a side note it is probably remarkable that Keith Alexander on numerous occasions specifically named the adversaries described in the above attacks. Some of the video's below:
http://www.afr.com/p/technology/interview_transcript_former_head_51yP0Cu1AQGUCs7WAC9ZVN
http://www.slideshare.net/afcea/gen-keith-alexander-commander-us-cyber-command-director-national-security-agencychief-central-security-service

See: 15:58


As the usage of destructive malware is uncommon, so is the modus operand of the described attacks. Based on these facts I can imagine the presence of an APT group that is funded and supported by the Iranian and North Korean government specifically tasked with targeting common enemies.


Samples:
Destover, md5: 6467c6df4ba4526c7f7a7bc950bd47eb
Shamoon, md5: b14299fd4d1cbfb4cc7486d978398214 & d214c717a357fe3a455610b197c390aa
DarkSeoul, md5: 5fcd6e1dace6b0599429d913850f0364 & 0a8032cd6b4a710b1771a080fa09fb87 & 50e03200c3a0becbf33b3788dac8cd46 & 5fcd6e1dace6b0599429d913850f0364 & db4bbdc36a78a8807ad9b15a562515c4 & e4f66c3cd27b97649976f6f0daad9032 & f0e045210e3258dad91d7b6b4d64e7f3


woensdag 15 oktober 2014

Nederland doelwit CryptoLocker campagne

Sinds enkele dagen is een CryptoLocker malware campagne bij RedSocks op de radar verschenen. Op diverse fora word melding gemaakt van een spam campagne lijkend afkomstig van PostNL. Deze spam bevat diverse linkjes naar verschillende domeinen welke uiteindelijk allen uitkomen bij de domeinen postnl-track.com, postnl-track.info, postnl-track.org, postnl-track.net of postnl-tracktrace.com. Via deze domeinen word getracht de bezoeker met de CryptoLocker malware te infecteren.

Niets vermoedende gebruikers ontvangen een mail van PostNL.


In deze mail word men vaak aangesproken via voornaam en achternaam. Ook wanneer voornaam en achternaam niet direct uit het email adres zijn op te maken. Dit suggereert dat de aanvallers beschikking hebben over een database welke tenminste Naam, Voornaam en bijbehorend Email adres bevatten.
Hoewel de mail niet in volledig correct Nederlands is opgesteld, gaat het slechts om enkele foutjes die snel over het hoofd gezien kunnen worden.

De CryptoLocker malware versleuteld alle op het systeem aanwezig documenten en bestanden en vraagt een bedrag om deze bestanden weer te kunnen ontsleutelen. Inmiddels hebben tenminste 18 personen dit bedrag ter waarde van €3484 betaald, en dit loopt snel op!

Hieronder een beschrijving over hoe de besmetting plaats vind:

Het niets vermoedende slachtoffer heeft enkele documenten op de computer staan:


De spam mail word ontvangen en er word op de link in het mailtje geklikt, de volgende pagina verschijnt:


Er dient een code te worden ingevoerd waarna de informatie over uw pakket kan worden gedownload. Wanneer de code word ingevoerd start de download van een .zip bestand.


In dit zip bestand zit een executable file met de naam track_[nummer].exe. Iedere executable is uniek en heeft een eigen md5 hash waarde.


Het bestand beweert Google Chrome te zijn, afkomstig van het bedrijf Google Inc.
Wanneer dit bestand word geopend verschijnt de volgende pagina:

Wanneer vervolgens de bestanden op het bestandssysteem worden bekeken is het volgende te zien:


Alle bestanden zijn voorzien van de extensie .encrypted en kunnen niet meer worden geopend.
Om de encryptie ongedaan te maken moet er zoals op onderstaande pagina word beschreven, betaald worden.

Zoals al eerder vermeld hebben minimaal 18 personen geld betaald om van deze CryptoLocker af te kunnen komen. De bende hierachter heeft van deze slachtoffers op dit moment €3484 euro aan bitcoins binnen gehaald.


woensdag 18 juni 2014

Guerilla marketing on twitpic targetting Android devices

In this blogpost we will describe a new method observed by us that tries to trick android users into buying subscriptions. The guerilla marketing tactics caught our attention as of this week several people complained about twitpic serving malware. We decided to investigate this issue a little bit further and eventually were able to reproduce the supposed 'malware' and capture its behavior.

First things first, although several people reported the download of malware in the form of an apk file, we were not able to reproduce that situation. We were able though, to reproduce a very nifty full page forward from the website twitpic.com to a landing page were several tactics were used to trick the user into clicking on specific links and eventually acknowledging the purchase of a subscription worth €5 a week.

The story starts by visiting the website twitpic.com. Twitpic is a well known and frequently used platform to share pictures on twitter. Once a twitpic link is opened, the screen below appears after 3 seconds, making the average Android user think the application WhatsApp is interfering and an update for the program is available.


What is actually happening?
While visiting twitpic.com the website loads a lot of ads. One of these ads is from AppNexus. This add makes a connection (in our case) to ams1.ib.adnxs.com. Which in this case, loads a page from track2.buyfaq.com/300x250.html. This supposed banner contains the following html code:



The banner loads an iFrame. This iFrame again is loaded from http://mt.moneyandroid.com/topic/mobi/mcenter.php?aid=98&ext=6
This specific mcenter.php?aid=98&ext=6 checks the user agent of the visiting client and screen width used. If the User-Agent does not match that of an Android device or the screen width does not match that of an Android device it will skip the JavaScript part that is displayed below and will only load the HTML content. In our case, where we use an Android device it will load the HTML+JavaScript code displayed below:


The webpage http://mt.moneyandroid.com/topic/mobi/download.php?i=[string] serves a HTTP/1.1 302 Moved Temporarily and contains the following value:
http://app-update.whatsapp.com.earic.com/topic/whatsapp/white.php?lp=1&aff_sub3=NL_[TmobileNetherlandsbv]_3_a90_v22_2014-06-15
In the JavaScript code several functions are initiated. A setTimeOut function is called waiting 3000 milliseconds to execute a function that creates a click event on the HTML a-element which will initiate the provided href URL to load. In this case a HTTP/1.1 302 Moved Temporarily page was thrown containing a new URL. The browser of your Android device will forward to that page, taking over the previous Twitpic page. Once forwarded the image below will appear.



As shown in the pop-up above, WhatsApp needs an update. The domain used seems to be app-update.whatsapp.com..., very trustworthy. The "OK" button can be pressed. And a countdown will start, as shown below:
If you look closely to the domain you will see that the domain used is not "app-update.whatsapp.com" but instead "app-update.whatsapp.com.earic.com". Earic.com is an educational website, it is not clear weather this domain is hijacked, hacked or willingly cooperating. Obviously the original domain whatsapp.com is not involved in anyway, the crooks are just trying to let us think this domain is involved and thus make it look trustworthy.

Once you click the "Download now" button the webpage below is shown.


Here in small letters your subscription is described, in top the subscription costs of 5 euro are displayed. Below it says you are a member automatically. Users that don't read carefully will just press the download button to, what they believe, install the WhatsApp update.
Once you press the "Download" button, the following page is displayed:


Your mobile number is filled in automatically and you just have to press the "Continue" button. Once the "Continue" button is pressed an SMS-text message is sent to the mobile phone containing a verification link in it. Once that link is clicked the subscription is acknowledged and you will be charged 5 euros per week.