Friday, May 6, 2016

Feedly:Malwarebytes Labs. 7ev3n ransomware turning ‘HONE$T’



from Malwarebytes Labs

7ev3n ransomware appeared at the beginning of this year. In addition to typical features of encrypting files, it was blocking access to the system using a fullscreen window, and was difficult to remove. It also became famous for demanding an unrealistic price of 13 bitcoins.

At that time the product looked like in early stage of development, however, the code was showing a potential to evolve into something smarter in the future. Indeed – the authors decided to actively work on making improvements. Currently we are facing an outbreak of a new campaign with an improved version of this ransomware – this time named 7ev3n-HONE$T. Probably the new name refers to the added feature of decrypting test files before the payment – as a proof of the authors’ “honesty” in giving files back.

In this post we will take a look at its evolution.

Analyzed samples

7ev3n (old edition):

7ev3n-HONE$T (new edition):

Behavioral analysis

73v3n – old version

Once executed, 7ev3n ransomware was installing itself, deleting the clicked copy and silently encrypting files. The first symptom that something was wrong was a notification that User Account Control is going to be turned off, and the system needed to be restarted:

UAC_notification

The malware was not waiting for the next restart, but executing it by its own. Shortly after, another notification the system was going to shut down:

logging_off

On the next reboot, the attack of that version of 7ev3n ransomware was announced by a big window, covering the entire desktop and blocking access to the system. It was difficult to bypass. In order to regain the control over the system, the user needed to put some special effort (guidance has been provided, i.e. by BleepingComputer).

ransom_note

The ransomware installed itself in %%LOCALAPPDATA% – the main file is dropped under the name system.exe:

dropped_seven1

In addition, it dropped one more executable: uac.exe – for User Account Controll bypass, using a well-known trick with Cabinet files (Akagi) and two bat scripts: del.bat (responsible for deleting the original file) and bcd.bat – responsible for disabling backup. Content of bcd.bat demonstrated below:

bcdedit /set {current} bootems no 
 bcdedit /set {current} advancedoptions off 
 bcdedit /set {current} optionsedit off 
 bcdedit /set {current} bootstatuspolicy IgnoreAllFailures 
 bcdedit /set {current} recoveryenabled off
del %0

Encryption process

This ransomware is capable of encrypting files off-line.

Encrypted files had their name changed to <number in directory>.R5A.

7ev3n_encrypted

Patterns found in the encrypted files (R5A extension) look like two different algorithms have been used for it’s different chunks.

square.bmp : left – original, right encrypted with 7ev3n

enc_square1 enc_1

Every file was encrypted with a different key.

73v3n – HONE$T

The new edition comes with an improved interface. The most important difference is that the authors gave up the idea of blocking the full desktop of the infected computer. Although the window with ransom demand cannot be closed, it is still possible to access other programs. Moreover, the GUI itself has been enriched with features allowing for navigation and getting more information. Similarly to other ransomware, it provides a possibility to decrypt a few files for the test.

gui_win

In the new edition the price of decryption is only 1 BTC  (in some samples even 0.5) – that is a huge difference in comparison to 13 BTC from the previous campaign. The new ransom note offers various models of payment (i.e possibility to decrypt half of the files for 60% of the original price) and a 20% discount in case of paying full sum at once. As we can see, the authors learned to be more user-friendly and made a step towards “honesty”.

Installation folder and dropped files are different than in the previous version (sample 1 BTC):

installed

However, this feature depends rather on the particular campaign – in some of the new samples the installation path is like in the previous edition (sample 0.5 BTC)

installation_05

This time, the main executable is dropped either as conlhost.exe or as  system.exe (depending on the sample). Also, in the same folder, the ransomware creates 2 files with lists of paths:

  • files – containing all the encrypted files
  • testdecrypt – containing files that have been chosen as testfiles that can be decrypted for free

The dropped executable have some unique ID appended to it’s end. It is an array of 34 random characters, with ‘*’ used as a prefix/suffix – format:  ‘*[\x00-\xff]{34}*’. This key is same on every run for a particular machine.

Example: Left – the sample before being run. Right – the sample that was run and installed on the system:

appended_contentPersistence is based on a Run registry key:

regedit

In addition to displaying the GUI with ransom note it also drops a TXT file with contact information, that can be used if – for any reason – the main windows didn’t manage to pop-up:

files_back_note

The victim ID is the same after every execution on the same machine, so we can be sure that it is not random (it may be generated from some local identifiers, i.e. GUID).

Encryption process

The new version also can encrypt files off-line (no key needs to be downloaded from the server).

Encrypted files had their name changed to A<number in directory>.R5A (or, for some of the new samples <number in directory>.R5A –just like in the old version). The new feature is that some randomly selected files are given a different extension: .R4A.

encrypted_files

Just like in the to the previous edition, patterns found in the encrypted files (R5A extension) look like two different algorithms have been used for its different chunks.

square.bmp : first – original, second- encrypted with 7ev3n-HONE$T, third – encrypted with old 7ev3n.

enc_square1 enc_A0 enc_1

Completely different algorithm has been deployed on the files with R4A extension (introduced newly in 7ev3n-HONE$T)

enc_square1 enc_A2_R4A

We can see the patterns of the original file reflected in it’s encrypted content. Such an effect depicts, that file could have been encrypted by some block cipher – but as well it can be a custom, XOR-based algorithm.

Also in this version, every file with R5A extension is encrypted with a different key.

Experiment

For the purpose of experiments I prepared set of short TXT files, as given below:

test_fileset

They have been encrypted as following:

1.txt

1_txt_encrypted

16A.txt

16A_txt_enc

long_filename.txt

long_name_enc

The file 16M.txt has not been encrypted at all.

We can see that each end every encrypted file starts with a character ‘M’. After that, there is an encrypted content – it’s length is the same like the original. However, the same plaintext does not produce the same encrypted content (compare 1.txt and 16A.txt).

The encrypted content is suffixed with a separator ‘**’ and then the encrypted filename is stored (it’s original length is preserved). The last character is always ‘\x0A’. Format of the encrypted file can be defined as:

M<encrypted content>**<encrypted filename>\x0A

Files with content length shorter or equal 8 are excluded from the encryption. Similarly, excluded are files which content begins with ‘M’. More details about why it happens, we will find by analyzing the code.

Network communication

Although the internet connection is not required in the process of encryption, 7even is capable of communicating with C&C for the purpose of collecting information about the attacked machines.

During beaconing, various information about the current infection are sent. As usual, the victim ID (the same that is mentioned in the ransom note), wallet ID (hardcoded in the binary), operating system, etc.

beacon_1

Sending statistics from the encryption:

send_encrypted_info

Inside 7ev3n (the old version)

The techniques used by 7ev3n are not very advanced, but yet it is worth to take a look.

Analyzed files:

  • system.exe (a3dfd4a7f7c334cb48c35ca8cd431071) – main file
  • uac.exe (7a681d8650d2c28d18ac630c34b2014e)– upx-packed payload

The main file (system.exe) comes with UAC bypassing tools embedded (32 and 64 bit version – the one that is deployed is chosen appropriately for the system). Among strings we can see list of decimal numbers, that need to be simply converted into ASCII.
Beginning of the new PE in strings of the file:

77 90 144 0 3 0 0 0 4 0 0 0 255 255 0 0 184 0 0 0 0 0 0 0 64 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[...]

We can convert it easily into a binary (i.e by this script) getting as a result 64 bit version of the same UAC bypassing tool (original is packed by UPX  unpacked version available here).

Registry manipulation

Adding a registry key indicating that files are encrypted:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion" /v "crypted" /t REG_SZ /d 1 /f

Manipulating registry keys – i.e. in order to block the screen:

REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v \"System\" /t REG_SZ /d \"                                
REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\" /v \"rgd_bcd_condition\" /t REG_SZ /d 1 /f /reg:64                
REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v \"EnableLUA\" /t REG_DWORD /d 0 /f /reg:64   
REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v \"Shell\" /t REG_SZ /d \"explorer.exe\" /f /reg:64
REG DELETE \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Keyboard Layout\" /v \"Scancode Map\" /f /reg:64                          
REG DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v \"System\" /f /reg:64 

Inside 7ev3n-HONE$T

The first layer is a packing: a simple crypter/FUD with an icon added. It’s role is deception: delivering malicious payload in a way unnoticed by antimalware tools, as well as making it’s analysis harder.

After defeating the FUD layer we get the first payload (32a56ca79f17fea432250ee704432dfc).Strings and imported functions are not obfuscated. We can find the path to the project inside the binary – it suggests that we are dealing with the variant without UAC bypass (in contrary to the previous version, that had it implemented):

C:\Users\admin\Desktop\new version with NO UAC\Release\Win32Project9.pdb

Inside this payload we can find yet another, UPX packed executable: 5b5e2d894cdd5aeeed41cc073b1c0d0f . It is also not very well protected and after unpacking it with standard UPX application we get another executable (d004776ff5f77a2d2cab52232028ddeb) with all the strings and API calls visible.

Execution flow

First execution is used just for the purpose of installation.

When the sample is deployed, it makes it’s copy into the predefined installation folder (destination may vary for various samples). It drops a bash script that is supposed to delete the initial sample

del_bat

The unique, hardware-based ID is written at the end of the executable that has been copied to the destination path:

append_key

Below – the same key – at the end of the installed sample:

appended_key

In the meanwhile,  of the installation, malware sends the beacon to a hardcoded URL.

Then, the new sample is deployed and the initial sample terminates and gets deleted.

run_installed_copyThe installed sample is supposed to run the second phase – that encrypt the files. Decision which execution path should be deployed (installation, encrypion, or GUI is based on the environment check.

Registry manipulation

Adding a registry key indicating that files are encrypted:

REG ADD "HKEY_CURRENT_USER\SOFTWARE" /v "crypted" /t REG_SZ /d "1"

Manipulating other registry keys – related with persistance, status of decrypting etc.

REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "allkeeper" /t REG_SZ /d "" /f
REG ADD "HKEY_CURRENT_USER\SOFTWARE" /v "testdecrypt" /t REG_SZ /d 1 
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "allkeeper" /f
REG ADD "HKEY_CURRENT_USER\SOFTWARE" /v "Decrypt50" /t REG_SZ /d 1

What is attacked?

This ransomware encrypts local drives as well as mapped network shares.

Encrypted extensions are hardcoded in the binary as UNICODE strings:

extensionsSummary of all the file extensions that are attacked:

ai arw txt doc docm docx zip rar xlsx xls xlsb xlsm jpg jpe jpeg bmp eql sql adp mdf mdb odb odm odp ods pds pdt pdf dt cf cfu mxl epf kdbx erf vrp grs geo st pff mft efd 3dm 3ds rib ma max lwo lws m3d mb obj x3d c4d fbx dgn dwg 4db 4dl 4mp abs adn a3d aft ahd alf ask awdb azz bdb bib bnd bok btr bak cdb ckp clkw cma crd dad daf db3 dbk dbt dbv dbx dcb dct dcx ddl df1 dmo dnc dp1 dqy dsk dsn dta dtsx dxl eco ecx edb emd fcd fic fid fil fm5 fol fp3 fp4 fp5 fp7 fpt fzb fzv gdb gwi hdb his ib idc ihx itdb itw jtx kdb lgc maq mdn mdt mrg mud mwb s3m myd ndf ns2 ns3 ns4 nsf nv2 nyf oce oqy ora orx owc owg oyx p96 p97 pan pdb pdm phm pnz pth pwa qpx qry qvd rctd rdb rpd rsd sbf sdb sdf spq sqb stp str tcx tdt te tmd trm udb usr v12 vdb vpd wdb wmdb xdb xld xlgc zdb zdc cdr cdr3 ppt pptx abw act aim ans apt asc ase aty awp awt aww bad bbs bdp bdr bean bna boc btd cnm crwl cyi dca dgs diz dne docz dot dotm dotx dsv dvi dx eio eit emlx epp err etf etx euc faq fb2 fbl fcf fdf fdr fds fdt fdx fdxt fes fft flr fodt gtp frt fwdn fxc gdoc gio gpn gsd gthr gv hbk hht hs htc hwp hz idx iil ipf jis joe jp1 jrtf kes klg knt kon kwd lbt lis lit lnt lp2 lrc lst ltr ltx lue luf lwp lyt lyx man map mbox me mell min mnt msg mwp nfo njx now nzb ocr odo odt ofl oft ort ott p7s pfs pfx pjt prt psw pu pvj pvm pwi pwr qdl rad rft ris rng rpt rst rt rtd rtf rtx run rzk rzn saf sam scc scm sct scw sdm sdoc sdw sgm sig sla sls smf sms ssa stw sty sub sxg sxw tab tdf tex text thp tlb tm tmv tmx tpc tvj u3d u3i unx uof uot upd utf8 utxt vct vnt vw wbk wcf wgz wn wp wp4 wp5 wp6 wp7 wpa wpd wpl wps wpt wpw wri wsc wsd wsh wtx xdl xlf xps xwp xy3 xyp xyw ybk yml zabw zw abm afx agif agp aic albm apd apm apng aps apx art asw bay bm2 bmx brk brn brt bss bti c4 cal cals can cd5 cdc cdg cimg cin cit colz cpc cpd cpg cps cpx c2 c2 rdds dg dib djv djvu dm3 dmi vue dpx wire drz dt2 dtw dvl ecw eip exr fal fax fpos fpx gcdp gfb ggr gif gih gim spr scad gpd gro grob hdp hdr hpi i3d icn icon iiq info ipx iwi j2c j2k jas jb2 jbmp jbr jfif jia jng jp2 jpg2 jps jpx tf jwl jxr kdc kdi kdk kic kpg lbm ljp mac mbm mef mnr mos mpf mpo mrxs myl ncr nct nlm nrw oc3 oc4 oc5 oci omf oplc af2 af3 asy cdmm cdmt cdt cgm cmx cnv csy cv5 cvg cvi cvs cvx cwt cxf dcs ded dhs dpp drw dxb dxf egc emf ep eps epsf fh10 fh11 fh3 fh4 fh5 fh6 fh7 fh8 fif fig fmv ft10 ft11 ft7 ft8 ft9 ftn fxg gem glox hpg hpgl hpl idea igt igx imd ink lmk mgcb mgmt mt9 mgmx mmat mat otg ovp ovr pcs pfv pl plt vrml psid rdl scv sk1 sk2 ssk stn svf svgz sxd tlc tne ufr vbr vec vml vsd vsdm vsdx stm vstx wpg vsm xar yal orf ota oti ozb ozj ozt pal pano pap pbm pc1 pc2 pc3 pcd pdd pe4 pef pfi pgf pgm pi1 pi2 pi3 pic pict pix pjpg pm pmg pni pnm pntg pop pp4 pp5 ppm prw psdx pse psp ptg ptx pvr pxr pz3 pza pzp pzs z3d qmg ras rcu rgb rgf ric riff rix rle rli rpf rri rsb rsr rw2 rwl s2mv sci sep sfc sfw skm sld sob spa spe sph spj spp sr2 srw ste sumo sva save t2b tb0 tbn tfc tg4 thm tjp tm2 tn tpi ufo uga vda vff vpe vst wb1 wbc wbd wbm wbmp wbz wdp webp pb wpe wvl x3f ysp zif cdr4 cdr6 ddoc css pptm raw cpt pcx pdn png psd tga tiff tif xpm ps sai wmf ani fl fb3 fli mng smil svg mobi swf html csv xhtm 

How does the encryption work?

7ev3n-HONE$T encrypts files in a loop, one by one. It completely changes their names – but at the same time it stores the previous name (as we know, files that are decrypted have their names recovered).

The executable comes with 3 hardcoded strings, that are used in the process of encryption. Their exact role will be described further.

hardcoded_keysEvery encrypted file have it’s content prefixed with ‘M’. This character is also checked in order to distinguish, if the file has been encrypted. If the ‘M’ was found as a first character of the buffer, the file will not be encrypted:

cant_encryptAuthors left a log in the code, leaving no doubt about their intentions, that this character is used as an indicator of the encrypted file:

cant_encOf course such a check is not giving a precise detection and if it happens that we have a file starting from ‘M’ it will not be encrypted.

This ransomware produce encrypted files by two ways – they can be distinguished by different extensions: .R4A or .R5A.

After deobfuscation we were able to reconstruct both algorithms and notice, that they are custom and not employing any strong cryptography.

R4A algorithm turned out to be an XOR with a hardcoded key:

ANOASudgfjfirtj4k504iojm5io5nm59uh5vob5mho5p6gf2u43i5hojg4mf4i05j6g594cn9mjg6h

R5A algorithm is also XOR-based, but not that simple – It have several execution steps:

  1. A hardcoded string is scrambled and expanded to a predefined length (in analyzed samples it was 0x10C). The algorithm used for scrambling differs from sample to sample.
  2. The scrambled key (0x10C byte long)  is XOR-ed with the original file path.
  3. The key created in the previous step is used to XOR file content
  4. The XORed content is divided to 4 parts, that are processed by 2 different XOR-based algorithms. First and Third parth are processed by algorithm I. Second and fourth – by algorithm II. (That’s why we have seen 4 ‘strips’ on the visualized content).

Full reconstruction of the used algorithms you can see here.

Adding appropriate extension to the file name:

choose_extension

After encrypting the content, some more data is appended to it. At the beginning – the previously mentioned ‘M’ character – as an indicator that file is encrypted. At the end – a string “**” –  as a separator after which the encrypted file name of the particular file is stored.

added_to_contentFilename is also encrypted in a very simple way – by XOR with one of the hardcoded keys.

encrypting_filenamefor R4A:

ANOASudgfjfirtj4k504iojm5io5nm59uh5vob5mho5p6gf2u43i5hojg4mf4i05j6g594cn9mjg6h

for R5A:

ASIBVbhciJ5hv6bjyuwetjykok7mbvtbvtiJ5h6jg54ifj0655iJ5hok7mbok7mbvtvtv6bjfib56j45fkmbvtiJ5hv6bokok7mb

The encrypted content is saved first to the original file. After that the file is moved under the new name:

move_file

Conclusion

7ev3n ransomware has been around for quite a while, but till now not many details about its internals have been revealed. It turned out to have pretty unexpected features. Although a lot has been told about weakness of solutions that are based on custom encryption, there are still some ransomware authors going for it. That’s why it is worth not making any rushed decisions in paying the ransom. Sometimes the code is obfuscated and finding out how it really works takes some time for analysts – but it doesn’t mean that the encryption is really unbreakable.

Work on the full version of the decryptor is in progress. For now you can see the proof-of-concept script: http://ift.tt/23vKeeh

Appendix

Feedly:Threats RSS Feed - Symantec Corp.. Backdoor.Duuzer.B



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan.

Feedly:Darknet – The Darkside. WAFW00F – Fingerprint & Identify Web Application Firewall (WAF) Products

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Qakbot!g1



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Fortinet Blog. CMIO Perspectives on Network Security



from Fortinet Blog

Guest post by Brian Yeaman, Yeaman + Associates 2016 will be a lot like 2015 – a steadily escalating number of data breaches across healthcare requiring new solutions. We’re seeing now that many of the good things about medical-record po...

Feedly:. Latest Intelligence for April 2016



from

Our latest intelligence reveals Nuclear exploit kit comprised 42 percent of all web attacks, and 71 percent of all social scams spread through manual sharing.
Twitter Card Style: 
summary

Intelligence-page-header02.jpg

read more

Feedly:Malwarebytes Labs. How to tell if you’re infected with malware



from Malwarebytes Labs

Picture this: you start your computer and wait. And wait. And wait some more. When your desktop finally shows its face, things don’t get any better. Your Internet is sluggish, your programs are taking forever to load, and your cursor is dragging 20 seconds behind your mouse. You might have tried to open too many programs at once. Or…

You might be infected.

Sometimes a malware infection is plain as day. Other times it’s a silent killer. If you want to know whether or not your machine is sick, you first need to understand the symptoms. So let’s take a look at the telltale signs.

Blatant signs of infection

You’ve got ransomware

This one’s the most obvious. Ransomware authors want to make it perfectly clear that you have a malware infection—that’s how they make their money. If you’ve got ransomware, you’ll get a pop-up that tells you your files have been encrypted and there’s a deadline to pay a ransom in order to get them back.

Browser redirects

You click on a link after doing a Google search on “my computer’s acting strange.” Link opens to a different page. You head back to your search results and try a different link. Same thing happens. Over and over you’re redirected to a different site from the one you’re trying to reach. That, my friend, is a malware infection.

Different home page

Say you set your home page to be your favorite sports news site. But for some reason, Yahoo.com keeps coming up. You also notice some new toolbars (rows of selectable icons) below your browser window that you can’t get rid of. You could either have a major case of the forgets, or, more likely, you’ve got an infection.

Bombarded with pop-ups

We’re talking: can’t escape. Close one, another one opens. Or you’re not even online, and you’re getting pop-up messages on your system. Some sites admittedly have terrible ad experiences that feel like something nefarious is going on (but really isn’t). Most of the time, if your screen is loaded with pop-ups, you’re looking at an adware or spyware infection.

Less obvious signs of infection

Computer running slow

Lots of things can contribute to a slow computer. You could be running too many programs at once, you may be running out of hard drive space, or there’s not enough free memory. If none of those are true for you and your computer is still slow, it’s possible you’re infected.

New, unfamiliar icons on desktop

Maybe your nephew Timmy jumped on without your knowledge and downloaded a photo editing program so he could swap his face with his dog’s face and share it on social media. Or perhaps you downloaded a legitimate piece of software and a Potentially Unwanted Program (PUP) hitched a ride. If it’s the latter, your computer could be weighed down by PUPs, which Malwarebytes and many other security companies consider malware.

Constant crashing

There are a couple reasons why your applications or system might crash, including potential incompatibility between programs or software and hardware that needs updating. However, some forms of malware, such as rootkits, dig deep into the Windows kernel and latch on, creating instability.

Web browser freezes or is unresponsive

Slow Internet could be just that—check your wifi signal or your download speeds with your Internet provider to be sure. But if everything checks out and your browser grinds to a halt, it could be a sign of infection.

Lots of bounced email

We’ve all mistakenly typed in the wrong email address and hit “send.” But if you’re getting a suspiciously high number of bounces, or emails that return to your inbox undelivered, something else is going on.

First, your email address could have been hacked and is now being used to spam the crap out of your contacts list. Or malware could be the culprit. How? An infected computer sends out emails using the addresses it found in your computer. If the “To” address doesn’t work, the message bounces back to the “From” address, which is often yours.

Mobile infections

Battery life drains quickly

Oh yes, your cell phone is not immune to malware. If you notice your battery life draining quickly, it could be that you’ve got some hefty programs open, such as games or music streaming services. It could also be that your battery is on its last leg. Unfortunately, the third possibility is mobile malware.

Unusually large bill

This one’s pretty clear-cut. Pay close attention to your cell phone bill. Are you being charged for messages you didn’t send? Is your data plan getting busted? Are you getting texts from your provider saying you owe money for something you didn’t purchase? Mobile malware is to blame.

You can protect against mobile threats using anti-malware software designed specifically for smartphones and tablets. For example, Malwarebytes Anti-Malware Mobile safeguards Android devices from malware, infected applications, and unauthorized surveillance.

Stealth infections

No sign at all

Is your computer running like a smooth criminal? No issues whatsoever? You still might be infected. Many forms of malware, including botnets and others designed to steal your data, are nearly impossible to detect unless you run a scan.

In fact, whether it’s plainly obviously or there’s no real sign of malware, you should be regularly scanning your computer with security programs like Malwarebytes Anti-Malware. If malware is detected, follow these simple steps to clean your computer.


Feedly:We Live Security » Languages » English. Data loss scenarios: Which are the most probable?



from We Live Security » Languages » English

Research shows that running regular backups for data, as well as encrypting them, is necessary for organizations to ensure that their information is safe.

The post Data loss scenarios: Which are the most probable? appeared first on We Live Security.

Feedly:Malwarebytes Labs. Spam: “Your $100 Amazon Prime credit will expire”



from Malwarebytes Labs

If you’re an Amazon Prime member, you’ll want to avoid the below spam currently dropping into mailboxes which claims “$100 of Prime Credit” will soon be lost if not made use of:

fake prime credit

Attn:-Your ($100)-AmazonPrime-Credit, Will Expire, on: 5/10/16.

AMAZ0N .com Prime.
*****ATTN:(-1-) NEW MSG. RECEIVED: REGARDING YOUR AMAZ0N-REWARDS-POINTS

*****AMAZ0N-PRIME (SHOPPER#5443) - -- DATE: 05/4/16

*****ONE (- 1 -) DAY ONLY!

To show you how much we really do value your years of repeat business, & to celebrate the outstanding success of AMAZ0N Prime, we’ve just awarded you with $100 worth of AMAZ0N bonus-points that can be applied towards any product currently for sale on AMAZ0N's-website!

To use/claim your new store bonus, just simply follow the link that we have provided below here, & use this coupon-card during checkout on AMAZ0N’s website.......That is all there is to it!

Please Go Right Here NOW to Redeem Your New Prime-Reward. (This Reward is Set to Expire on 5/10/16)

*********The Link We'veProvided Above Expires-on 05/10/2016.....So DO NOT Wait!

Note the various ways they write “Amazon”, in what is presumably a crude attempt to get around Bayesian filtering (unfortunately for the spammers, this doesn’t tend to work that well). They also try another tactic to throw off spam filters, which appears to be pasting in chunks of food reviews:

More spam tactics

None of this actually helped them dodge spam filters, and if you’re on Gmail (for example) it’ll already be sitting in the spam box.

The primary Bit.ly link in the email leads to a URL which rotates various adverts determined by geographical region. Here’s a few examples:

This slideshow requires JavaScript.

The “Expert Reviews” site – which eventually leads to what it claims is a paid anonymity service – is particularly interesting, because it says this at the very bottom of the page:

This is an advertisement. Your privacy is important to us. We do not collect your personal information. Please review our Privacy Policy and Terms. No 3rd party has authored, participated in, or in any way reviewed this advertisement or authorized it. This website receives compensation for purchase of products featured. Products have important terms and conditions, please read all products terms and conditions before ordering any product.

Meanwhile, the “Search whatever you’re looking for” page which asks for an email address in order to proceed doesn’t appear to work at time of testing (“The requested resource was not found on our servers”).

So far, the Bit.ly URL used in this spam campaign has been clicked 4,180 times with the bulk of those coming from the U.S, (3,499), India (156) and the U.K. (82).

Despite the original email being a clear piece of spam, it seems the threat of losing $100 of fake Amazon credit is too much for some to bear and they’re clicking away on those mail supplied URLs. We advise everybody receiving one of these to check for the above clues, and go about their business – whatever Amazon credit you may have is under no threat from this particular missive.

Christopher Boyd


Feedly:We Live Security » Languages » English. New York experiences surge in reported data breaches



from We Live Security » Languages » English

The New York State Office of the Attorney General has experienced a massive increase in the number of reported data breaches in 2016.

The post New York experiences surge in reported data breaches appeared first on We Live Security.

Feedly:Security News - Software vulnerabilities, data leaks, malware, viruses. Feds: Two Belarus men got $1.35M stolen in phishing scam



from Security News - Software vulnerabilities, data leaks, malware, viruses

Federal authorities in Pittsburgh say two men have been charged by authorities in Belarus with receiving $1.35 million stolen in a phishing scheme from the bank account of Pennsylvania oil and gas drilling company.

Feedly:TrendLabs Security Intelligence Blog. ImageMagick Vulnerability Allows for Remote Code Execution, Now Patched



from TrendLabs Security Intelligence Blog

ImageMagick is a popular software suite that is used to display, convert, and edit images. On May 3, security researchers publicly disclosed multiple vulnerabilities in the open-source image processing tool in this suite, one of which could potentially allow remote attackers to take over websites.

This suite can read and write images in over 200 formats including PNG, JPEG-2000, GIF, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Content management systems frequently use it to process any images before they are shown to the user.

The developers of ImageMagick have released updated versions of their software to fix these vulnerabilities. One vulnerability, CVE-2016-3714, allows for remote code execution on the server. This could be used to compromise Web servers and take over websites. Reports indicate that this vulnerability is already being exploited in the wild. Other reported vulnerabilities allow for HTTP/GET requests to be made from the server and for files to be read, moved, or deleted. Proof of concept code for these vulnerabilities is made available by the researchers.

Users for Trend Micro Deep Security have been already protected from any threats that may exploit these vulnerabilities.

Details of the vulnerability, CVE-2016-3714

ImageMagick allows for files to be processed by external libraries. This feature is called ‘delegate’. These commands defined in the command  string (‘command’) in the  configuration file delegates.xml with actual value for different params (input/output filenames etc). One of the default delegate’s commands is used to handle HTTPS  requests:

<delegate decode=”https” command=””curl” -s -k -o “%o” “https:%M””/>

Unfortunately, the input field %M is not sanitized. It is possible to pass a value like ‘https://sample.com”|ls “-la’  to execute the shell command ‘ls -la‘. Once this command line runs, wget or curl (both commonly-used command-line utilities) would execute and run the ls –la command as well, The output would be something like this:

$ convert ‘https://sample.com”|ls “-la’ out.png
total 296
drwxr-xr-x 2 root root 4096 May 4 21:36 .
drwx—— 5 root root 12288 May 4 20:47 ..
-rw-r–r– 1 root root 481 May 4 19:27 Test.png
-rw-r–r– 1 root root 543 May 4 15:13 convertimage.php

Severity of the disclosed vulnerabilities in ImageMagick

There are 5 vulnerabilities in ImageMagick, which are as follows:

  • CVE-2016-3714: remote command execution on .svg/.mvg file uploads. By uploading a malicious file, an attacker can force a shell command to be executed on the server.
  • CVE-2016-3715: remote file deletion when using the “ephemeral:/” protocol, an attacker can remove files from the server.
  • CVE-2016-3716: remote file moving using the “msl:/” pseudo protocol, the attacker can move files around.
  • CVE-2016-3717: file content read using the “label:@” protocol.
  • CVE-2016-3718: server-side request forgery, an attacker can force the server to connect to malicious domain by a crafted file

Based on our analysis of these vulnerabilities, we could say that attackers have a wide range of options and tools to compromise a web server that uses ImageMagick.

Who is at risk?

Any server not running the latest versions of ImageMagick (7.0.1-1 or 6.9.3-10) would be at risk. Servers that are used for shared hosting or allow user uploads of files are at particular risk, as it would be easier for a malicious user to upload an “image” that contains malicious code.

How to check if your website is vulnerable

Users can verify if their servers are vulnerable to these flaws by running these commands from the command line:

  • “$ convert –version”: If the version is not 7.0.1-1 or  6.9.3-10, your site could be vulnerable.
  • “$ convert ‘https:”;echo It Is Vulnerable”‘ – 2>&-“: If the output is “It Is vulnerable”, then you should patch it as soon as possible.

Mitigation

We recommend that server administrators immediately implement to protect servers:

  1. Patches have already released; we recommend upgrading to the latest version.
  2. Verify that uploaded images begin with the expected “magic bytes” corresponding to image file types before these are processed. This is to ensure that the “images” being uploaded actually are images, and not exploits.
  3. Modify the policy file policy.xml to change some ImageMagick settings. The global policy for ImageMagick is usually found in “/etc/ImageMagick”. Details can be found at the ImageMagick support forum.

Trend Micro Solutions:

Trend Micro Deep Security protect user systems from any threats that may exploit these vulnerabilities via the following DPI rule:

  • 1007610 – Identified Usage Of ImageMagick Pseudo Protocols
  • 1007609 – ImageMagick Remote Code Execution Vulnerability (CVE-2016-3714)

TippingPoint customers will be protected from attacks exploiting this vulnerability with the following MainlineDV filter that will be made avail on May 10:

  • 24579: HTTP: ImageMagick MVG Various Delegate Command Usage
  • 24580: HTTP: ImageMagick MVG Various Delegate Command Usage
  • 24583: HTTP: ImageMagick MVG Delegate Command Injection Vulnerability
  • 24584: HTTP: ImageMagick SVG Delegate Command Injection Vulnerability

TippingPoint has posted a Customer Shield Writer (CSW) for these vulnerabilities that are available for customers to download on TMC.

Post from: Trendlabs Security Intelligence Blog - by Trend Micro

ImageMagick Vulnerability Allows for Remote Code Execution, Now Patched

Feedly:Lenny Zeltser. How You Can Set up Honeytokens Using Canarytokens to Detect Intrusions



from Lenny Zeltser

A honeytoken is data or a computing resource that exists for the purpose of alerting you when someone accesses it. This type of a honeypot could take many form, such as a user account that no one should use, a file that no one should access and a link on which no one should click. While there are several approaches to implementing honeytokens, open source toolkit Canarytokens, created by Thinkst Applied Research, makes it easy to start experimenting with this approach to detecting and tracking cyber-adversaries.

Getting to Know Canarytokens

Thinkst sees honeytokens as a “quick, painless way to help defenders discover they’ve been breached (by having attackers announce themselves).” To accomplish this, you can use the Canarytokens web application to generate tokens such as:

  • A URL an adversary might visit
  • A domain or hostname an adversary might resolve
  • A Word or PDF document an adversary might open
  • A Bitcoin wallet from which an adversary might withdraw funds

When the intruder accesses or makes use of the honeytoken generated by Canarytokens, the tool will notify you via email and share a few details about the event.

The easiest way to get a sense for Canarytokens’ capabilities is to utilize the pre-deployed version of the tool hosted by Thinkst at canarytokens.org. The site allows you to generate and monitor honeytokens without having to setup and configure your own infrastructure. The downsides to this approach include having to give up control over the data that the tool generates and the inability to customize the domain names that it uses for tracking.

Deploying Your Own Canarytokens Application

If you’d like to retain full control over the use of honeytokens, you can set up your own instance of Canarytokens. This is a relatively painless process, though it does require registering a domain name and installing Canarytokens software on an Internet-accessible server.

You can host Canarytokens on an inexpensive Linux system at a public cloud provider such as DigitalOcean (the link includes my referral code). I like this provider in part because it offers a low-end virtual private server instance for as little as $5 per month. You can start by deploying a “droplet” running Ubuntu there in a few clicks:

Once the new system is active, log into it and execute the following commands to install Canarytokens software there. (The lines may have been wrapped to fit your screen.)

apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
add-apt-repository -y "deb http://ift.tt/1JsdxVd ubuntu-$(lsb_release -sc) main"
apt-get update
apt-get dist-upgrade
apt-get -y install docker-engine python-pip python-dev libyaml-dev
pip install -U docker-compose
git clone http://ift.tt/1QnZN2B
cd canarytokens-docker

Separately from the instructions above, you’ll need to register your own domain name, which you will use exclusively for Canarytokens. You’ll need to use the registrar’s interface to designate the publicly-accessible system where the toolkit will run as the domain’s DNS server. (I used Google Domains for this purpose, which keeps registration details private without additional fees.) If you’ll use Canarytokens’ PDF tokens, you’ll need two domains.

Once you’ve registered the domain name, configured it properly and installed Canarytokens software, you’ll need to modify two configuration files: frontenv.env and switchboard.env.

In the frontenv.env file you should specify the domain name that you’ve registered and configured for Canarytokens as the CANARY_DOMAINS parameter. If you’ve registered a second domain for PDF tokens, specify it as the CANARY_NXDOMAINS parameter; otherwise, set that parameter to the same value as CANARY_DOMAINS.

In the switchboard.env file, specify in the CANARY_PUBLIC_DOMAIN parameter the domain you’ve listed as CANARY_DOMAINS in the other file. Also, specify the public IP address of your server as CANARY_PUBLIC_IP. Customize CANARY_ALERT_EMAIL parameters to your liking. To receive email alerts, you’ll need to first open and set up a free Mailgun account, then specify the corresponding details as CANARY_MAILGUN parameters.

This is how my Canarytokens configuration files looked. Yours, of course, will have different values for domain names, the IP address and Mailgun details.

Once you’ve configured Canarytokens, you can launch the application by running the “docker-compose up” command, which will automatically download the appropriate Docker images the first time you run it.

Afterwards, use your browser to visit the /generate URL on the server where you’ve activated Canarytokens, using its IP address or the domain name you’ve set up for the app. Keep in mind that the URL will be publicly accessible to anyone who comes across it, as the app doesn’t presently support admin user authentication by default.

Running Your Canarytokens Application

You will see the following screen after directing your browser to your Canarytokens instance, which will give you the opportunity to generate a new token, after specifying the email address where the app will send the alert whenever the token is accessed.

I suggest starting your experiments with the default DNS/HTTP token. This token can be triggered in many ways, including access to the Canarytokens-generated URL, hostname resolution, document file opening, etc.

For instance, when I accessed a URL that corresponded to the token above, the application emailed me the following alert. As you can see, the alert includes the IP address of the system from which I accessed the link and the browser’s User-Agent header. If you fail to receive the notification, check your Mailgun setup and your email spam folder.

This token could also be triggered whenever the intruder resolves its hostname. Note that in the DNS-triggered alert below, the notice includes the IP address of the adversary’s DNS server. This information can help triage the person’s location, because even if he or she is using a VPN, DNS queries are often not tunneled through the VPN.

If you use Canarytokens to generate a Microsoft Word document, you will be alerted whenever someone opens the .docx file. The notification will look just like the one for an HTTP token, but the User-Agent header will include Microsoft Office version details. Canarytokens accomplishes this by including in the Word document’s footer a reference to an invisible image file. Keep in mind that modern versions of Word won’t access the file in Protected View; the person will need to click the “Enable Editing” button to trigger the honeytoken.

To turn off the Canarytokens application, press Ctrl+C in the terminal window where you’ve launched it. The app preserves state in the dump.rdb file that it creates. This way, it will remember your earlier tokens the next time you start Canarytokens. If you want to start with a clean slate, simply remove the file.

Start Experimenting with Honeytokens

Honeytokens offer an enticing way of detecting adversaries’ attempts to interact with our data, infrastructure and applications. Since legitimate users should not be interacting with these honeypot resources, any activity associated with them is suspect, offering an intrusion detection and threat research method with a relatively low rate of false positives. Implementing deception-based defensive techniques in a safe and useful manner can be tricky. Canarytokens offers a convenient way of starting to experiment with honeytokens without too many difficulties and with an attractive value proposition. Give them a try—see what you learn.

To learn more about honeypots and deception, see my other articles on this topic:

Feedly:Virus alerts. New backdoor attacks Windows users



from Virus alerts

May 6, 2016

The Trojan is distributed via a dropper in the form of the Microsoft Excel file with a special macros. This macros collects a self-extracting archive by bytes and runs it. The archive consists of an executable file, which has a valid digital signature registered to Symantec, and a dynamic library, in which all the main functions of the Trojan are implemented. BackDoor.Apper.1 registers the executable file in autorun. Once launched, this file loads the malicious library into the memory of the infected computer.

screen #drweb

BackDoor.Apper.1 is mainly designed to steal files from the machine. When the malicious application is registered to autorun, the Trojan removes the original file.

After being launched, BackDoor.Apper.1 acts as a keylogger—logs key strokes and records them into an encrypted file. In addition, the Trojan can monitor the file system. If the computer has a configuration file containing paths to folders whose status is to be monitored by the Trojan, BackDoor.Apper.1 logs all changes of these folders and sends them to the server.

Before connecting to the server, the backdoor collects the following data on the infected computer: its name, version of the operating system, and information about the processor, RAM, and drives. This information is then transmitted to the server. After that, the Trojan gathers more detailed data on the computer’s drives, which is sent to cybercriminals, together with the kelogger file. BackDoor.Apper.1 then waits for commands from the server.

To receive instructions, the Trojan sends a special request to the server. Upon a command, the malware can send a particular file or information about the specified folder, to delete or rename a file, to create a new folder, and to take a screenshot and send it to attackers.

Dr.Web successfully detects and removes BackDoor.Apper.1, and, therefore, this malicious program poses no threat to our users.

More about this Trojan

Feedly:We Live Security » Languages » English. Interop: Getting a few more years out of your tech



from We Live Security » Languages » English

Remember when a 100 gigabyte hard drive was huge? I try not to think about it, but I also remember when no one could figure out what to do with a hard drive “that large”.

The post Interop: Getting a few more years out of your tech appeared first on We Live Security.

Thursday, May 5, 2016

Feedly:SANS Internet Storm Center, InfoCON: green. Microsoft BITS Used to Download Payloads, (Thu, May 5th)



from SANS Internet Storm Center, InfoCON: green

Feedly:Malwarebytes Labs. New Skype spam leads to Trojan download



from Malwarebytes Labs

Today, we’ve been alerted about an ongoing spam campaign against Skype users. The majority of those affected are in India, Japan, and the Philippines. Below is what the message looks like:

skypechatclick to enlarge

The spam message contains Japanese katakana characters and a bitly link with the following format:

bit.ly/{7 randomly generated characters}?profile_image={Skype contact name}

I could be wrong (and please feel free to correct me), but if my very rusty Japanese serves me right, the text is read as “tsuyo“, which could either mean “strong” or “too much”. Considering the image of the file downloaded from the link, however, I’m personally inclined to believe that the message sender meant the latter. More about that in a few.

Once Skype message recipients click the link, they are directed to a compromised domain to download a file pretending to be an image, as you can see below:

skype-dl-fileclick to enlarge

Below is the icon of the screensaver (SCR) file, which we have enlarged:

skype-scricon

Malwarebytes Anti-Malware detects the malicious SCR file as Trojan.Injector.

Once executed, it phones back to servers located in China, Vietnam, and the United States, most of which already have a history of harboring malicious files. It also reads data from several configuration files and information about the machine its installed in, such as the computer name and its GUID, a unique identifier. Another noteworthy behaviour of this particular file, as noted here, is that it connects to an IRC server, possibly to join a botnet.

We also looked into the compromised domain and found that it doesn’t use a Web application firewall, making it easier for malicious actors to infiltrate and use the site for their nefarious deeds. As of this writing, we cannot reach the owners of the site to inform them of the compromise.

For those who are new to Skype spam, note that this modus operandi has been reused countless times, and it often yields successful results for the criminals. The texts and links have changed as time went on, but what will remain the same is it will continue to take advantage of people’s curiosity and trust that is already established between and among individuals in a network, regardless of size. When in doubt, never click links and confirm with the person who pinged you first if they have indeed sent you such a message. As we always say, it’s better safe than sorry.

Jovi Umawing


Feedly:SANS Internet Storm Center, InfoCON: green. ISC Stormcast For Friday, May 6th 2016 http://ift.tt/1WMFdxy, (Fri, May 6th)



from SANS Internet Storm Center, InfoCON: green

...(more)...

Feedly:Threat Research Blog. Deobfuscating Python Bytecode



from Threat Research Blog

Introduction

During an investigation, the FLARE team came across an interesting Python malware sample (MD5: 61a9f80612d3f7566db5bdf37bbf22cf ) that is packaged using py2exe. Py2exe is a popular way to compile and package Python scripts into executables. When we encounter this type of malware we typically just decompile and read the Python source code. However, this malware was different, it had its bytecode manipulated to prevent it from being decompiled easily!

In this blog we’ll analyze the malware and show how we removed the obfuscation, which allowed us to produce a clean decompile. Here we release source code to our bytecode_graph module to help you analyze obfuscated Python bytecode (http://ift.tt/1W6c3ep). This module allows you to remove instructions from a bytecode stream, refactor offsets and generate a new code object that can be further analyzed.

Background

Py2exe is a utility that turns a Python script into an executable, which allows it to run on a system without a Python interpreter installed. Analyzing a Py2exe binary is generally a straightforward process that starts with extracting the Python bytecode followed by decompiling the code object with a module such as meta or uncompyle2. Appendix A contains an example script that demonstrates how to extract a code object from a Py2exe binary.

When attempting to decompile this sample using uncompyle2, the exception shown in Figure 1 is generated. The exception suggests the bytecode stream contains code sequences that the decompiler is not expecting.


Figure 1: Uncompyle2 exception trace

Obfuscation that breaks decompilers

To understand why the decompiler is failing, we first need to take a closer look at the bytecode disassembly. A simple method to disassemble Python bytecode is to use the built-in module dis. When using the dis module, it is important to use the same version of Python as the bytecode to get an accurate disassembly. Figure 2 contains an example interactive session that disassembles the script “import sys”. Each line in the disassembly output contains an optional line number, followed by the bytecode offset and finally the bytecode instruction mnemonic and any arguments.

Figure 2:  Example bytecode disassembly

Using the example script from Appendix A, we can view the disassembly of the code object to get a better idea what is causing the decompiler to fail. Figure 3 contains a portion of the disassembly produced by running script on this sample.

Figure 3: Bytecode disassembly

Looking closer at the disassembly, notice there are several unnecessary bytecode sequences that have no effect on the logic of the code. This suggests that a standard compiler did not produce the bytecode. The first surprising bytecode construct is the use of NOPs, for example, found at bytecode offset 0. The NOP instruction is not typically included in compiled Python code because the interpreter does not have to deal with pipelining issues. The second surprising bytecode construct is the series of ROT_TWO and ROT_THREE instructions. The ROT_TWO instruction rotates the top two stack items and the ROT_THREE rotates the top three stack items. By calling two successive ROT_TWO or three ROT_THREE instructions, the stack is returned to the same state as before the instruction sequence. So, these sequences have no effect on the logic of the code, but may confuse decompilers. Lastly, the LOAD_CONST and POP_TOP combinations are unnecessary. The LOAD_CONST instruction pushes a constant onto the stack while the POP_TOP removes it. This again leaves the stack in its original state.

These unnecessary code sequences prevent decompiling bytecode using modules such as meta and uncompyle2. Many of the ROT_TWO and ROT_THREE sequences operate on an empty stack that generates errors when inspected because both modules use a Python List object to simulate the runtime stack. A pop operation on the empty list generates exceptions that halt the decompilation process. In contrast, when Python interpreter executes the bytecode, no checks are made on the stack before performing operations on it. Take for example ROT_TWO from ceval.c in Figure 4.        

Figure 4: ROT_TWO source

Looking at the macro definitions for TOP, SECOND, SET_TOP and SET_SECOND from ceval.c in Figure 5, the lack of sanity checks allow these code sequences to execute without stopping.

Figure 5: Macro definitions

The NOPs and LOAD_CONST/POP_TOP sequences stop the decompilation process in situations where the next or previous instructions are expected to be a specific value. An example debug trace for uncompyle2 is shown in Figure 6 where the previous instruction is expected to be a jump or a return.

Removing the obfuscation

Now that the types of obfuscation have been identified, the next step is to clean the bytecode in hopes of getting a successful decompile. The opmap dictionary from the dis module is very helpful when manipulating bytecode streams. When using opmap, instructions can be referenced by name rather than a specific bytecode value. For example, the NOP bytecode binary value is available with dis.opmap[‘NOP’].

Appendix B contains an example script that replaces the ROT_TWO, ROT_THREE and LOAD_CONST/POP_TOP sequences with NOP instructions and creates a new code object. The disassembly produced from running the script in Appendix A on the malware is shown in Figure 6.

Figure 6: Clean disassembly

At this point, the disassembly is somewhat easier to read with the unnecessary instruction sequences replaced with NOPs, but the bytecode still fails to decompile. The failure is due how uncompyle2 and meta deal with exceptions. The problem is demonstrated in Figure 7 with a simple script that includes an exception handler.

Figure 7: Exception handler

In Figure 7, the exception handler is created using the SETUP_EXCEPT instruction at offset 0 with the handler code beginning at offset 13 with the three POP_TOP instructions. Both the meta and uncompyle2 modules inspect the instruction prior to the exception handler to verify it is a jump instruction. If the instruction isn’t a jump, the decompile process is halted. In the case of this malware, the instruction is a NOP because of the obfuscation instructions were removed.

At this point, to get a successful decompile, we have two options. First, we can reorder instructions to make sure they are where the decompiler expects them. Alternatively, we can remove all the NOP instructions. Both strategies can be complicated and tedious because absolute and relative addresses for any jump instructions need to also be updated. This is where the bytecode_graph module comes in.  Using the bytecode_graph module, it’s easy to replace and remove instructions from a bytecode stream and generate a new stream with offsets automatically updated accordingly. Figure 8 shows an example function that uses the bytecode_graph module to remove all NOP instructions from a code object.

Figure 8: Example bytecode_graph removing NOP instructions

Summary

In this blog I’ve demonstrated how to remove a simple obfuscation from a Python code object using the bytecode_graph module. I think you’ll find it easy to use and a perfect tool for dealing with tricky py2exe samples. You can download bytecode_graph via pip (pip install bytecode-graph) or from the FLARE team’s Github page: http://ift.tt/1W6c3ep.

An example script that removes the obfuscation discussed in this blog can be found here: http://ift.tt/1W6c3uJ identified that implement this bytecode obfuscation:

        61a9f80612d3f7566db5bdf37bbf22cf
        ff720db99531767907c943b62d39c06d
        aad6c679b7046e568d6591ab2bc76360
        ba7d3868cb7350fddb903c7f5f07af85

Appendix A: Python script to extract and disassemble Py2exe resource

Appendix B: Sample script to remove obfuscation

Feedly:Threats RSS Feed - Symantec Corp.. Trojan.Jakubot



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan.

Feedly:.



from

Feedly:.



from

Feedly:.



from

Feedly:.



from

Feedly:.



from

Feedly:.



from

Feedly:.



from

Wednesday, May 4, 2016

Feedly:. Malware may abuse Android’s accessibility service to bypass security enhancements



from

Mobile financial malware authors may borrow tricks from adware by using Android’s accessibility service to circumvent OS improvements.
Twitter Card Style: 
summary

Header_1.jpg

read more

Feedly:Fortinet Blog. A New Variant of Locky Leaking Out



from Fortinet Blog

Locky, the professional grade ransomware has been causing headaches and damages to victim’s wallet for quite sometime. It uses the document-based macros for ransomware distribution, encrypts files on the victims’ computers with an additio...

Feedly:Security News - Software vulnerabilities, data leaks, malware, viruses. Phoney protection for passwords



from Security News - Software vulnerabilities, data leaks, malware, viruses

Corporate data breaches seem to be on the rise, rarely a week passes without a company revealing that its database has been hacked and regrettably usernames, passwords, credit card details and its customers' personal information has been leaked on to the open internet. A new protection, nicknamed Phoney, is reported in the International Journal of Embedded Systems.

Feedly:SANS Internet Storm Center, InfoCON: green. May OUCH! Newsletter: Internet of Things - http://ift.tt/1QLqn3J, (Wed, May 4th)



from SANS Internet Storm Center, InfoCON: green

...(more)...

Feedly:Threats RSS Feed - Symantec Corp.. PHP.Fioesrat



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan.

Feedly:We Live Security » Languages » English. Jigsaw and how ransomware is becoming more aggressive with new capabilities



from We Live Security » Languages » English

There is no doubt that criminals have found a mechanism in ransomware enabling them to obtain significant benefits with relatively little effort, reports ESET's Josep Albors.

The post Jigsaw and how ransomware is becoming more aggressive with new capabilities appeared first on We Live Security.

Feedly:We Live Security » Languages » English. Google introduces HTTPS for blogspot domain names



from We Live Security » Languages » English

Google is adding further security to the world wide web by introducing HTTPS for every blogspot domain name.

The post Google introduces HTTPS for blogspot domain names appeared first on We Live Security.

Feedly:Securelist - Information about Viruses, Hackers and Spam. Petya: the two-in-one trojan



from Securelist - Information about Viruses, Hackers and Spam

Petya Trojan is an unusual hybrid of an MBR blocker and data encryptor: it prevents not only the operating system from booting but also blocks normal access to files located on the hard drives of the attacked system.

Feedly:Errata Security. Vulns are sparse, code is dense



from Errata Security

Feedly:Threat Research Blog. A Cyber Revolution: Advanced Attacks Increasing in EMEA Reflect Political Tension



from Threat Research Blog

Tuesday, May 3, 2016

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Heur.RGC.CM!g13



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Heur.RGC.DL!g5



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.MSWord!g3



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Trafic2.RGC!g8



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.SuspBeh!gen57



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:SANS Internet Storm Center, InfoCON: green. ISC Stormcast For Wednesday, May 4th 2016 http://ift.tt/26RNMvG, (Wed, May 4th)



from SANS Internet Storm Center, InfoCON: green

...(more)...

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Heur.RGC!g136



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Heur.RGC!g147



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Heur.RGC!g185



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Heur.RGC!g90



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Threats RSS Feed - Symantec Corp.. SONAR.Heur.RGC!g108



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan, Virus, Worm.

Feedly:Malwarebytes Labs. FBI Announcement: Paying The Ransom is a Bad Idea



from Malwarebytes Labs

The FBI not only officially inform the world that they agree, ransomware is getting worse, but also decided to tell folks to not pay the ransom. We say "It's about time."

Categories:

Tags:

(Read more...)

Feedly:SANS Internet Storm Center, InfoCON: green. Neutrino exploit kit sends Cerber ransomware, (Wed, May 4th)



from SANS Internet Storm Center, InfoCON: green

Introduction

Seems like were always finding new ransomware. I ...(more)...

Feedly:TrendLabs Security Intelligence Blog. Lost Door RAT: Accessible, Customizable Attack Tool



from TrendLabs Security Intelligence Blog

We recently came across a cyber attack that used a remote access Trojan (RAT) called Lost Door, a tool currently offered on social media sites. What also struck us the most about this RAT (detected as BKDR_LODORAT.A) is how it abuses the Port Forward feature in routers. Using this feature enables remote systems to connect to a specific computer or service within a private local-area network (LAN). However, when used maliciously, this feature allows remote attackers to mask their activities in the network and avoid immediate detection. Because this RAT is easy to customize, even knowledge of the indicators of compromise (which may change as a result) may not be sufficient in thwarting the threat. Easily customizable RATs like Lost Door can be hard to detect and protect against, posing a challenge to IT administrators.

Its maker, “OussamiO,” even has his own Facebook page where details on his creation can be found. He also has a dedicated blog (http://ift.tt/1rtH6nf) where tutorial videos and instructions on using the RAT is found. Any cybercriminal or threat actor can purchase and use the RAT to launch attacks.

Post from: Trendlabs Security Intelligence Blog - by Trend Micro

Lost Door RAT: Accessible, Customizable Attack Tool

Feedly:Malwarebytes Labs. Process Explorer: An introduction



from Malwarebytes Labs

We give you a short introduction to Process Explorer and showed you a few ways to use it when you are trying to identify a possible malware problem with your Windows system.

Categories:

Tags:

(Read more...)

Feedly:SANS Internet Storm Center, InfoCON: green. OpenSSL Updates, (Tue, May 3rd)



from SANS Internet Storm Center, InfoCON: green

TheOpenSSLupdates

Feedly:S!Ri.URZ. ThinkPoint



from S!Ri.URZ

Feedly:We Live Security » Languages » English. Third party risks ‘ a serious risk’



from We Live Security » Languages » English

Third party risks to organizations has been described as a “serious threat”, a new study by the Ponemon Institute and Shared Assessments as revealed.

The post Third party risks ‘ a serious risk’ appeared first on We Live Security.

Feedly:Threat Research Blog. Deobfuscating Python Bytecode



from Threat Research Blog

Feedly:TrendLabs Security Intelligence Blog. Dark Motives Online: An Analysis of Overlapping Technologies Used by Cybercriminals and Terrorist Organizations



from TrendLabs Security Intelligence Blog

To answer the question we posed before: Yes, cybercriminals and terrorists are more similar than we think – they use similar platforms and services online, but also with some key differences.

Post from: Trendlabs Security Intelligence Blog - by Trend Micro

Dark Motives Online: An Analysis of Overlapping Technologies Used by Cybercriminals and Terrorist Organizations

Feedly:We Live Security » Languages » English. Authentication 101



from We Live Security » Languages » English

Authentication may sound like a very complicated concept, but it’s quite simple: a way of showing that you are who you say you are, says ESET's Lysa Myers.

The post Authentication 101 appeared first on We Live Security.

Feedly:Darknet – The Darkside. MISP – Malware Information Sharing Platform



from Darknet – The Darkside

Monday, May 2, 2016

Feedly:Errata Security. Satoshi: how Craig Wright's deception worked



from Errata Security

Feedly:SANS Internet Storm Center, InfoCON: green. ISC Stormcast For Tuesday, May 3rd 2016 http://ift.tt/1W59Wrg, (Tue, May 3rd)



from SANS Internet Storm Center, InfoCON: green

...(more)...

Feedly:SANS Internet Storm Center, InfoCON: green. Reminder: OpenSSL releases later today!, (Tue, May 3rd)



from SANS Internet Storm Center, InfoCON: green

-- Rick Wanner MSISE - rwanner at isc dot sans dot edu - http://ift.tt/1awnjFL ...(more)...

Feedly:Errata Security. Satoshi: That's not how any of this works



from Errata Security

Feedly:Threats RSS Feed - Symantec Corp.. Trojan.Ransomcrypt.AM



from Threats RSS Feed - Symantec Corp.

Risk Level: Very Low. Type: Trojan.

Feedly:TrendLabs Security Intelligence Blog. The Long Arm of the Law: Multiple Cybercriminals Sent Behind Bars



from TrendLabs Security Intelligence Blog

April 2016 was a great month for putting cybercriminals in prison. On April 12 Paunch, the creator of the infamous Blackhole exploit kit, was sentenced to seven years in a Russian prison. This was soon followed by Aleksandr Panin, the creator of SpyEye: he was sentenced by a United States federal court to nine and a half years in prison for his role in creating SpyEye. One of his partners, Hamza Bendelladj, was sentenced to fifteen years.

Post from: Trendlabs Security Intelligence Blog - by Trend Micro

The Long Arm of the Law: Multiple Cybercriminals Sent Behind Bars

Feedly:SANS Internet Storm Center, InfoCON: green. Lean Threat Intelligence, (Mon, May 2nd)



from SANS Internet Storm Center, InfoCON: green

Zach Allen over at

Feedly:Fortinet Blog. The Next Step in Enterprise Firewall Evolution



from Fortinet Blog

Networks are evolving rapidly. The proliferation of devices, users, applications, and services has made the network edge more porous, while at the same time expanding the attack surface. And these remote devices and applications are now commonly acce...

Feedly:Fox-IT International blog. Ransomware deployments after brute force RDP attack



from Fox-IT International blog

Fox-IT has encountered various ways in which ransomware is being spread and activated. Many infections happen by sending spam e-mails and luring the receiver in opening the infected attachment. Another method is impersonating a well-known company in a spam e-mail stating an invoice or track&trace information is ready for download. By following the link provided […]

Feedly:SANS Internet Storm Center, InfoCON: green. Fake Chrome update for Android, (Mon, May 2nd)



from SANS Internet Storm Center, InfoCON: green

There have been numerous reports of a fake update for Chrome for Android. A fake update for Andro ...(more)...

Feedly:Security News - Software vulnerabilities, data leaks, malware, viruses. 'Smart home' security flaws found in popular system



from Security News - Software vulnerabilities, data leaks, malware, viruses

Cybersecurity researchers at the University of Michigan were able to hack into the leading "smart home" automation system and essentially get the PIN code to a home's front door.

Feedly:TrendLabs Security Intelligence Blog. Dark Motives Online: Are Cybercriminals and Terrorist Organizations More Similar than We Think?



from TrendLabs Security Intelligence Blog

Our research on cybercriminals has made us witnesses to activities of varying levels of malice. From selling stolen information and illegal goods to murder-for-hire, we see the web become the primary vehicle for all kinds of nefarious transactions. We are also able to deduce the motives behind transactions, and gain some understanding of the individuals behind them. While our investigations have solely focused on uncovering the operations of cybercriminals, we’ve observed some activities in certain platforms and services that are linked to users with a rather more concerning motive: terrorist organizations.

Post from: Trendlabs Security Intelligence Blog - by Trend Micro

Dark Motives Online: Are Cybercriminals and Terrorist Organizations More Similar than We Think?

Feedly:Security News - Software vulnerabilities, data leaks, malware, viruses. Cybersecurity report imagines threat scenarios



from Security News - Software vulnerabilities, data leaks, malware, viruses

The Center for Long-Term Cybersecurity at UC Berkeley's School of Information lays out five cybersecurity threat scenarios in a new report, Cybersecurity Futures 2020. The report is available online.

Feedly:TrendLabs Security Intelligence Blog. Crypto-ransomware Gains Footing in Corporate Grounds, Gets Nastier for End Users



from TrendLabs Security Intelligence Blog

In the first four months of 2016, we have discovered new families and variants of ransomware, seen their vicious new routines, and witnessed threat actors behind these operations upping the ransomware game to new heights. All these developments further establish crypto-ransomware as a lucrative cybercriminal enterprise. As we predicted, this year is indeed shaping up to be the year of online extortion, and while the security industry may be doing an admirable job of keeping up with the latest new tactic and providing solutions, the not-so informed public and organizations may very well be on the receiving end of a crippling malware that can destroy personal and corporate files, as well as lead to huge financial losses.

Post from: Trendlabs Security Intelligence Blog - by Trend Micro

Crypto-ransomware Gains Footing in Corporate Grounds, Gets Nastier for End Users

Web Analytics