Auteur Sujet: [MMPC]A Rogue by any other name...  (Lu 4817 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne igor51

  • Admin
  • Mega Power Members
  • *****
  • Messages: 10422
[MMPC]A Rogue by any other name...
« le: juin 28, 2012, 12:00:10 »
A Rogue by any other name...

<p><a title="Win32/FakePAV" href="http://www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?Name=Win32%2fFakePAV" target="_blank">Rogue:Win32/FakePAV</a> reappeared about two weeks ago after a brief hiatus and since then we&rsquo;ve been seeing variants with new names for themselves just about every day. The latest versions call themselves names like &ldquo;<em>Windows Threats Destroyer</em>&rdquo;, &ldquo;<em>Windows Firewall Constructor</em>&rdquo;, "<em>Windows Attacks Preventor</em>"&nbsp; and &ldquo;<em>Windows Basic Antivirus</em>&rdquo;. You can see some examples of these iterations below.</p>
<p><a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-62-58/2806.1.bmp"><img border="0" alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-62-58/2806.1.bmp" /></a></p>
<p><a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-62-58/3362.3.bmp"><img border="0" alt="" src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-62-58/3362.3.bmp" /></a></p>
<p>Each sample of FakePAV is distributed as a self-extracting RAR archive, which contains a second self-extracting RAR archive. This second, &ldquo;inner&rdquo; archive contains the rogue executable itself, but it is password-protected; simply trying to extract it without knowing the password doesn&rsquo;t work. So how does the actual rogue get extracted and run? The first, &ldquo;outer&rdquo; RAR archive contains a script which tells the self-extractor what to do when the self-extractor runs. This script includes the command to execute the inner archive with a parameter that contains the password. Initially they were using scripts like this:<br />&nbsp;<br /><em>TempMode</em><br /><em>Setup=temp.exe -e -p1329827306</em><br /><em>Silent=1</em><br /><em>Overwrite=1</em><br /><em>Update=U</em><br />&nbsp;<br />This script tells the RAR self-extractor to extract the file inside (&ldquo;<em>temp.exe</em>&rdquo; in this case) to the temporary folder and run it with the parameters &ldquo;<em>-e</em>&rdquo; (extract) and &ldquo;<em>-p1329827306</em>&rdquo; (use the password &ldquo;<em>1329827306</em>&rdquo;). The other lines of the script make sure that nothing is displayed while this happens and that any existing files are automatically replaced.</p>
<p>In the last few days they&rsquo;ve started obfuscating these scripts, probably to make it harder for anti-malware scanners to detect them. Because RAR self-extractor scripts are stored as part of the archive comment, essentially anything that the self-extractor doesn&rsquo;t recognize as an instruction is ignored, meaning pretty much any text can be added without changing the functionality. The creators of Win32/FakePAV have chosen to use excerpts from Shakespeare&rsquo;s Romeo and Juliet. For example (with instructions highlighted in yellow):</p>
<p><em>Exeunt [all but Juliet and Nurse].</em><br /><em>Jul. Come hither, nurse. What is yond gentleman?</em><br /><em>Nurse. The son and heir of old Tiberio.</em><br /><em>Jul. What's he that now is going out of door?</em><br /><em>Nurse. Marry, that, I think, be young Petruchio.</em><br /><em>Jul. What's he that follows there, that would not dance?</em><br /><em>Nurse. I know not.</em><br /><em>Jul. Go ask his name.- If he be married,</em><br /><em>My grave is like to be my wedding bed.</em><br /><em>Nurse. His name is Romeo, and a Montague,</em><br /><em>The only son of your great enemy.</em><br /><em>Jul. My only love, sprung from my only hate!</em><br /><em>Too early seen unknown, and known too late!</em><br /><em>Prodigious birth of love it is to me</em><br /><em>That I must love a loathed enemy.</em><br /><em>Nurse. What's this? what's this?</em><br /><em>Jul. A rhyme I learnt even now</em><br /><em>Of one I danc'd withal.</em><br /><em>One calls within, 'Juliet.'</em><br /><em>Nurse. Anon, anon!</em><br /><em>Come, let's away; the strangers all are gone. Exeunt.</em><br />&nbsp;<br /><em>PROLOGUE</em><br /><em>Enter Chorus.</em><br />&nbsp;<br /><em>Chor. Now old desire doth in his deathbed lie,</em><br /><em>And young affection gapes to be his heir;</em><br /><em>That fair for which love groan'd for and would die,</em><br /><em>With tender Juliet match'd, is now not fair.</em><br /><span style="background-color: #ffff00;">Overwrite=1</span><br /><em>Now Romeo is belov'd, and loves again,</em><br /><em>Alike bewitched by the charm of looks;</em><br /><em>But to his foe suppos'd he must complain,</em><br /><span style="background-color: #ffff00;">TempMode</span><br /><em>And she steal love's sweet bait from fearful hooks.</em><br /><em>Being held a foe, he may not have access</em><br /><em>To breathe such vows as lovers use to swear,</em><br /><em>And she as much in love, her means much less</em><br /><em>To meet her new beloved anywhere;</em><br /><em>But passion lends them power, time means, to meet,</em><br /><em>Temp'ring extremities with extreme sweet. Exit.</em><br />&nbsp;<br /><em>ACT II. Scene I. A lane by the wall of Capulet's orchard.</em><br /><em>Enter Romeo alone.</em><br />&nbsp;<br /><em>Rom. Can I go forward when my heart is here?</em><br /><em>Turn back, dull earth, and find thy centre out.</em><br /><em>[Climbs the wall and leaps down within it.]</em><br />&nbsp;<br /><em>Enter Benvolio with Mercutio.</em><br />&nbsp;<br /><em>Ben. Romeo! my cousin Romeo! Romeo!</em><br /><em>Mer. He is wise,</em><br /><em>And, on my life, hath stol'n him home to bed.</em><br /><em>Ben. He ran this way, and leapt this orchard wall.</em><br /><em>Call, good Mercutio.</em><br /><em>Mer. Nay, I'll conjure too.</em><br /><em>Romeo! humours! madman! passion! lover!</em><br /><em>Appear thou in the likeness of a sigh;</em><br /><em>Speak but one rhyme, and I am satisfied!</em><br /><span style="background-color: #ffff00;">Update=U</span><br /><em>Cry but 'Ay me!' pronounce but 'love' and 'dove';</em><br /><em>Speak to my gossip Venus one fair word,</em><br /><em>One nickname for her purblind son and heir,</em><br /><em>Young Adam Cupid, he that shot so trim</em><br /><em>When King Cophetua lov'd the beggar maid!</em><br /><em>He heareth not, he stirreth not, be moveth not;</em><br /><em>The ape is dead, and I must conjure him.</em><br /><em>I conjure thee by Rosaline's bright eyes.</em><br /><span style="background-color: #ffff00;">Setup=ww66viiszer85c7.exe -e -pz339dwh29n368u5</span><br /><em>By her high forehead and her scarlet lip,</em><br /><em>By her fine foot, straight leg, and quivering thigh,</em><br /><em>And the demesnes that there adjacent lie,</em><br /><em>That in thy likeness thou appear to us!</em><br /><em>Ben. An if he hear thee, thou wilt anger him.</em><br /><em>Mer. This cannot anger him. 'Twould anger him</em><br /><em>To raise a spirit in his mistress' circle</em><br /><em>Of some strange nature, letting it there stand</em><br /><em>Till she had laid it and conjur'd it down.</em><br /><em>That were some spite; my invocation</em><br /><em>Is fair and honest: in his mistress' name,</em><br /><em>I conjure only but to raise up him.</em><br /><em>Ben. Come, he hath hid himself among these trees</em><br /><em>To be consorted with the humorous night.</em><br /><em>Blind is his love and best befits the dark.</em><br /><em>Mer. If love be blind, love cannot hit the mark.</em><br /><em>Now will he sit under a medlar tree</em><br /><em>And wish his mistress were that kind of fruit</em><br /><em>As maids call medlars when they laugh alone.</em><br /><em>O, Romeo, that she were, O that she were</em><br /><em>An open et cetera, thou a pop'rin pear!</em><br /><em>Romeo, good night. I'll to my truckle-bed;</em><br /><em>This field-bed is too cold for me to sleep.</em><br /><em>Come, shall we go?</em><br /><em>Ben. Go then, for 'tis in vain</em><br /><em>'To seek him here that means not to be found.</em><br /><em>Exeunt.</em><br />&nbsp;<br /><em>Scene II. Capulet's orchard.</em><br /><em>Enter Romeo.</em><br />&nbsp;<br /><em>Rom. He jests at scars that never felt a wound.</em><br />&nbsp;<br /><span style="background-color: #ffff00;">Silent=1</span><br /><em>Enter Juliet above at a window.</em><br />&nbsp;<br /><em>But soft! What light through yonder window breaks?</em><br /><em>It is the East, and Juliet is the sun!</em><br /><em>Arise, fair sun, and kill the envious moon,</em><br /><em>Who is already sick and pale with grief</em><br /><em>That thou her maid art far more fair than she.</em><br /><em>Be not her maid, since she is envious.</em><br /><em>Her vestal livery is but sick and green,</em><br /><em>And none but fools do wear it. Cast it off.</em><br /><em>It is my lady; O, it is my love!</em><br /><em>O that she knew she were!</em><br /><em>She speaks, yet she says nothing. What of that?</em><br /><em>Her eye discourses; I will answer it.</em></p>
<p>The text used varies from sample to sample, as do the positions where the actual commands for the self-extractor are inserted. Here is an example from the inner archive, which extracts and runs the rogue itself (&ldquo;filesystemscan.exe&rdquo;):<br />&nbsp;<br /><em>By any other name would smell as sweet.</em><br /><em>So Romeo would, were he not Romeo call'd,</em><br /><em>Retain that dear perfection which he owes</em><br /><em>Without that title. Romeo, doff thy name;</em><br /><em>And for that name, which is no part of thee,</em><br /><em>Take all myself.</em><br /><em>Rom. I take thee at thy word.</em><br /><em>Call me but love, and I'll be new baptiz'd;</em><br /><em>Henceforth I never will be Romeo.</em><br /><em>Jul. What man art thou that, thus bescreen'd in night,</em><br /><em>So stumblest on my counsel?</em><br /><em>Rom. By a name</em><br /><em>I know not how to tell thee who I am.</em><br /><em>My name, dear saint, is hateful to myself,</em><br /><em>Because it is an enemy to thee.</em><br /><em>Had I it written, I would tear the word.</em><br /><em>Jul. My ears have yet not drunk a hundred words</em><br /><em>Of that tongue's utterance, yet I know the sound.</em><br /><em>Art thou not Romeo, and a Montague?</em><br /><em>Rom. Neither, fair saint, if either thee dislike.</em><br /><em>Jul. How cam'st thou hither, tell me, and wherefore?</em><br /><em>The orchard walls are high and hard to climb,</em><br /><em>And the place death, considering who thou art,</em><br /><em>If any of my kinsmen find thee here.</em><br /><em>Rom. With love's light wings did I o'erperch these walls;</em><br /><em>For stony limits cannot hold love out,</em><br /><em>And what love can do, that dares love attempt.</em><br /><em>Therefore thy kinsmen are no let to me.</em><br /><em>Jul. If they do see thee, they will murther thee.</em><br /><em>Rom. Alack, there lies more peril in thine eye</em><br /><em>Than twenty of their swords! Look thou but sweet,</em><br /><em>And I am proof against their enmity.</em><br /><em>Jul. I would not for the world they saw thee here.</em><br /><em>Rom. I have night's cloak to hide me from their sight;</em><br /><em>And but thou love me, let them find me here.</em><br /><em>My life were better ended by their hate</em><br /><span style="background-color: #ffff00;">Setup=filesystemscan.exe</span><br /><em>Than death prorogued, wanting of thy love.</em><br /><span style="background-color: #ffff00;">TempMode</span><br /><em>Jul. By whose direction found'st thou out this place?</em><br /><em>Rom. By love, that first did prompt me to enquire.</em><br /><em>He lent me counsel, and I lent him eyes.</em><br /><em>I am no pilot; yet, wert thou as far</em><br /><em>As that vast shore wash'd with the farthest sea,</em><br /><em>I would adventure for such merchandise.</em><br /><em>Jul. Thou knowest the mask of night is on my face;</em><br /><em>Else would a maiden blush bepaint my cheek</em><br /><em>For that which thou hast heard me speak to-night.</em><br /><em>Fain would I dwell on form- fain, fain deny</em><br /><em>What I have spoke; but farewell compliment!</em><br /><em>Dost thou love me, I know thou wilt say 'Ay';</em><br /><em>And I will take thy word. Yet, if thou swear'st,</em><br /><em>Thou mayst prove false. At lovers' perjuries,</em><br /><em>They say Jove laughs. O gentle Romeo,</em><br /><em>If thou dost love, pronounce it faithfully.</em><br /><em>Or if thou thinkest I am too quickly won,</em><br /><em>I'll frown, and be perverse, and say thee nay,</em><br /><span style="background-color: #ffff00;">Update=U</span><br /><em>So thou wilt woo; but else, not for the world.</em><br /><em>In truth, fair Montague, I am too fond,</em><br /><em>And therefore thou mayst think my haviour light;</em><br /><span style="background-color: #ffff00;">Silent=1</span><br /><em>But trust me, gentleman, I'll prove more true</em><br /><em>Than those that have more cunning to be strange.</em><br /><em>I should have been more strange, I must confess,</em><br /><em>But that thou overheard'st, ere I was ware,</em><br /><em>My true-love passion. Therefore pardon me,</em><br /><em>And not impute this yielding to light love,</em><br /><em>Which the dark night hath so discovered.</em><br /><em>Rom. Lady, by yonder blessed moon I swear,</em><br /><em>That tips with silver all these fruit-tree tops-</em><br /><em>Jul. O, swear not by the moon, th' inconstant moon,</em><br /><span style="background-color: #ffff00;">Overwrite=1</span><br /><em>That monthly changes in her circled orb,</em><br /><em>Lest that thy love prove likewise variable.</em><br /><em>Rom. What shall I swear by?</em><br /><em>Jul. Do not swear at all;</em><br /><em>Or if thou wilt, swear by thy gracious self,</em><br /><em>Which is the god of my idolatry,</em><br /><em>And I'll believe thee.</em><br /><em>Rom. If my heart's dear love-</em><br /><em>Jul. Well, do not swear. Although I joy in thee,</em><br /><em>I have no joy of this contract to-night.</em><br /><em>It is too rash, too unadvis'd, too sudden;</em><br /><em>Too like the lightning, which doth cease to be</em><br /><em>Ere one can say 'It lightens.' Sweet, good night!</em><br /><em>This bud of love, by summer's ripening breath,</em><br /><em>May prove a beauteous flow'r when next we meet.</em><br /><em>Good night, good night! As sweet repose and rest</em><br /><em>Come to thy heart as that within my breast!</em><br /><em>Rom. O, wilt thou leave me so unsatisfied?</em><br /><em>Jul. What satisfaction canst thou have to-night?</em><br /><em>Rom. Th' exchange of thy love's faithful vow for mine.</em><br /><em>Jul. I gave thee mine before thou didst request it;</em><br /><em>And yet I would it were to give again.</em><br /><em>Rom. Would'st thou withdraw it? For what purpose, love?</em><br /><em>Jul. But to be frank and give it thee again.</em><br /><em>And yet I wish but for the thing I have.</em><br /><em>My bounty is as boundless as the sea,</em><br /><em>My love as deep; the more I give to thee,</em><br /><em>The more I have, for both are infinite.</em><br /><em>I hear some noise within. Dear love, adieu!</em><br /><em>[Nurse] calls within.</em><br /><em>Anon, good nurse! Sweet Montague, be true.</em><br /><em>Stay but a little, I will come again. [Exit.]</em><br /><em>Rom. O blessed, blessed night! I am afeard,</em><br /><em>Being in night, all this is but a dream,</em><br /><em>Too flattering-sweet to be substantial.</em><br />&nbsp;<br /><em>Enter Juliet above.</em><br />&nbsp;<br /><em>Jul. Three words, dear Romeo, and good night indeed.</em><br /><em>If that thy bent of love be honourable,</em><br /><em>Thy purpose marriage, send me word to-morrow,</em><br /><em>By one that I'll procure to come to thee,</em><br /><em>Where and what time thou wilt perform the rite;</em><br /><em>And all my fortunes at thy foot I'll lay</em><br /><em>And follow thee my lord throughout the world.</em><br />&nbsp;<br /><em>Nurse. (within) Madam!</em><br /><em>Jul. I come, anon.- But if thou meanest not well,</em><br /><em>I do beseech thee-</em><br /><em>Nurse. (within) Madam!</em><br /><em>Jul. By-and-by I come.-</em><br /><em>To cease thy suit and leave me to my grief.</em><br /><em>To-morrow will I send.</em><br />&nbsp;<br />These kind of tactics are aimed at making it difficult for anti-malware scanners to look inside the malware&rsquo;s distribution package, and they highlight the need for real-time malware protection. For the malware to work, the malicious executable has to be written to disk at which point real-time protection can not only detect it but stop it from being executed.</p>
<p>Example SHA1: 5ff1f908274a4f27bbcbadc2dbd5c064ad2bf7a4</p>
<p><em>Hamish O'Dea</em><br /><em>MMPC Melbourne</em></p><div style="clear:both;"></div><img src="http://blogs.technet.com/aggbug.aspx?PostID=3484224" width="1" height="1">
Source: A Rogue by any other name...

Tags: