<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1002649664582273038</id><updated>2011-12-05T13:24:37.322+01:00</updated><category term='malware'/><category term='IDA Pro'/><category term='reverse engineering'/><category term='rogueAV'/><title type='text'>Deobfuscated</title><subtitle type='html'>IT security, reverse engineering, malware and the universe...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>deobfuscated</name><uri>http://www.blogger.com/profile/16027670498097067999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-6105629046086401476</id><published>2011-06-21T19:32:00.000+02:00</published><updated>2011-06-21T19:32:59.968+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reverse engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='IDA Pro'/><title type='text'>Coloring junk code in IDA Pro</title><content type='html'>Especially when reversing malware, junk code is always a pain.&lt;br /&gt;For the sake of readability, I often color junk code with some dark color.&lt;br /&gt;This makes the disassembly much more readable as shown below.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-1pd5vhl8Oh8/TgDVJ70Qk0I/AAAAAAAAAB0/FXmpS0SbTsg/s1600/colorjunk.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="156" src="http://3.bp.blogspot.com/-1pd5vhl8Oh8/TgDVJ70Qk0I/AAAAAAAAAB0/FXmpS0SbTsg/s400/colorjunk.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;However, coloring instructions in IDA Pro is not very handy.&lt;br /&gt;One has to go through menus ("Edit"-&amp;gt;"Other"-&amp;gt;"Color instruction...") and pick up a color for every single block to be colored.&lt;br /&gt;&lt;br /&gt;That's why I wrote a very simple IDC script which can help with this and save some time. It simply colors the current instruction (at the cursor location) or the selected instructions, if any.&lt;br /&gt;Running the script on an instruction that's been colored already sets its color back to the default value.&lt;br /&gt;Also, a new hotkey ("j" in this case) is defined. &lt;br /&gt;&lt;br /&gt;&lt;pre class="cpp" name="code"&gt;#include &amp;lt;idc.idc&amp;gt;&lt;br /&gt;&lt;br /&gt;#define JUNK_COLOR 0x7f5555&lt;br /&gt;&lt;br /&gt;static ColorJunkCode()&lt;br /&gt;{&lt;br /&gt; auto start, end;&lt;br /&gt; if ((start = SelStart()) == BADADDR)&lt;br /&gt;  start = end = ScreenEA();&lt;br /&gt; else&lt;br /&gt;  end = SelEnd();&lt;br /&gt; do {&lt;br /&gt;  if (GetColor(start, CIC_ITEM) == JUNK_COLOR)&lt;br /&gt;   SetColor(start, CIC_ITEM, DEFCOLOR);&lt;br /&gt;  else&lt;br /&gt;   SetColor(start, CIC_ITEM, JUNK_COLOR);&lt;br /&gt;  start = NextAddr (start);&lt;br /&gt; } while (start &amp;lt; end);&lt;br /&gt; Refresh();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;static main()&lt;br /&gt;{&lt;br /&gt; AddHotkey ("j", "ColorJunkCode");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Run the script in IDA ("File"-&amp;gt;"Script file...") and you're ready to go.&lt;br /&gt;Hitting &amp;lt;j&amp;gt; will now color current/selected instructions.&lt;br /&gt;&lt;br /&gt;If you want IDA to load this script automatically, follow these steps:&lt;br /&gt;- Store this script in IDA/idc (not mandatory but it makes sense to keep all scripts in the same directory)&lt;br /&gt;- Edit IDA/idc/ida.idc:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Add the line "#include &amp;lt;colorjunk.idc&amp;gt;" (or whatever filename you like) at the top of the file&lt;/li&gt;&lt;li&gt;Copy/paste the AddHotkey instruction into the function "main"&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;- Remove the function "main" from colorjunk.idc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-6105629046086401476?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/6105629046086401476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2011/06/coloring-junk-code-in-ida-pro.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6105629046086401476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6105629046086401476'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2011/06/coloring-junk-code-in-ida-pro.html' title='Coloring junk code in IDA Pro'/><author><name>deobfuscated</name><uri>http://www.blogger.com/profile/16027670498097067999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-1pd5vhl8Oh8/TgDVJ70Qk0I/AAAAAAAAAB0/FXmpS0SbTsg/s72-c/colorjunk.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-8491714868773611490</id><published>2010-10-20T11:19:00.020+02:00</published><updated>2011-06-21T15:35:06.144+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='malware'/><category scheme='http://www.blogger.com/atom/ns#' term='reverse engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='rogueAV'/><title type='text'>Security Essentials Rogue AV Anti-Debugging</title><content type='html'>While &lt;a href="https://www.microsoft.com/security_essentials/"&gt;Microsoft Security Essentials&lt;/a&gt; is a legitimate AV software, there's also a rogue AV going by the same name.&lt;br /&gt;Usual story, fake alerts constantly popping up, enticing the user to "buy" a licence...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_KOm-PikUgVs/TL63mYK9nVI/AAAAAAAAAAM/1H3wzoz9Nd8/s1600/secessentialalert.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 392px;" src="http://3.bp.blogspot.com/_KOm-PikUgVs/TL63mYK9nVI/AAAAAAAAAAM/1H3wzoz9Nd8/s400/secessentialalert.png" alt="" id="BLOGGER_PHOTO_ID_5530059262408891730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With no surprise, the sample I was looking at calls home in Latvia.&lt;br /&gt;&lt;blockquote&gt;whois 85.234.191.185&lt;br /&gt;% This is the RIPE Database query service.&lt;br /&gt;% The objects are in RPSL format.&lt;br /&gt;%&lt;br /&gt;% The RIPE Database is subject to Terms and Conditions.&lt;br /&gt;% See http://www.ripe.net/db/support/db-terms-conditions.pdf&lt;br /&gt;&lt;br /&gt;% Note: This output has been filtered.&lt;br /&gt;%       To receive output for a database update, use the "-B" flag.&lt;br /&gt;&lt;br /&gt;% Information related to '85.234.190.0 - 85.234.191.255'&lt;br /&gt;&lt;br /&gt;inetnum:        85.234.190.0 - 85.234.191.255&lt;br /&gt;netname:        ATECH-SAGADE&lt;br /&gt;descr:          Sagade Ltd.&lt;br /&gt;descr:          Latvia, Rezekne, Darzu 21&lt;br /&gt;descr:          +371 20034981&lt;br /&gt;remarks:        abuse-mailbox: piotrek89@gmail.com&lt;br /&gt;country:        LV&lt;br /&gt;admin-c:        TMCD111-RIPE&lt;br /&gt;tech-c:         TMCD111-RIPE&lt;br /&gt;status:         ASSIGNED PA&lt;br /&gt;mnt-by:         AS6851-MNT&lt;br /&gt;source:         RIPE # Filtered&lt;br /&gt;&lt;br /&gt;role:           TMCD Admin Contacts&lt;br /&gt;address:        Ieriku 67a, Riga, LV-1084&lt;br /&gt;org:            ORG-TMDA1-RIPE&lt;br /&gt;e-mail:         bkc@bkc.lv&lt;br /&gt;admin-c:        AS1606-RIPE&lt;br /&gt;admin-c:        TP422-RIPE&lt;br /&gt;tech-c:         RF2443-RIPE&lt;br /&gt;tech-c:         IR106-RIPE&lt;br /&gt;nic-hdl:        TMCD111-RIPE&lt;br /&gt;source:         RIPE # Filtered&lt;br /&gt;&lt;br /&gt;% Information related to '85.234.160.0/19AS6851'&lt;br /&gt;&lt;br /&gt;route:          85.234.160.0/19&lt;br /&gt;descr:          BKCNET Autonomous System&lt;br /&gt;descr:          IZZI SIA&lt;br /&gt;descr:          Ieriku 67a, Riga, LATVIA&lt;br /&gt;origin:         AS6851&lt;br /&gt;mnt-by:         AS6851-MNT&lt;br /&gt;source:         RIPE # Filtered&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Enough with the boring stuff...&lt;br /&gt;&lt;br /&gt;The funny part starts right at the entry point. A quick look at the disassembly reveals that this piece of crap overwrites its own code with the opcode 0x43 (INC EBX) via REP STOSB.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_KOm-PikUgVs/TL7Q2GXVAlI/AAAAAAAAAAU/TIEloNSpAMs/s1600/secessentialep.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 207px;" src="http://2.bp.blogspot.com/_KOm-PikUgVs/TL7Q2GXVAlI/AAAAAAAAAAU/TIEloNSpAMs/s400/secessentialep.png" alt="" id="BLOGGER_PHOTO_ID_5530087020297519698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The puzzling detail is that the REP STOSB instruction will be overwritten as well.&lt;br /&gt;And, indeed, if we step trough this code, we end up with that:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_KOm-PikUgVs/TL7RR0I5NgI/AAAAAAAAAAc/pqbVQpKx_N4/s1600/secessentialepstepin.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 205px;" src="http://1.bp.blogspot.com/_KOm-PikUgVs/TL7RR0I5NgI/AAAAAAAAAAc/pqbVQpKx_N4/s400/secessentialepstepin.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5530087496441476610" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Indeed, when single stepping, the debugger executes only one instruction (i.e one iteration of REP) and ends up executing the overwritten bytes.&lt;br /&gt;When the JNZ is reached, ECX equals 1. This is because REP STOSB has been overwritten before the last iteration of STOSB (That's why only half of REP STOSB has been replaced by 0x43).&lt;br /&gt;The jump is taken and the sample quits after showing a dialog box reading "BitDefender". Might be complete crap or a way for the bad guys to underline that BitDefender's emulator cannot handle properly this code. However, I won't bother checking this...&lt;br /&gt;&lt;br /&gt;If, instead of single stepping, you set a breakpoint on the JNZ and run the debuggee, the behaviour is different. REP STOSB is executed normally (atomic execution) and ECX equals 0 when the conditional jump is reached. &lt;br /&gt;And malware happily keeps running...&lt;br /&gt;&lt;br /&gt;Not very stealth but a nice little anti-debugging and maybe anti-emulation trick.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-8491714868773611490?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/8491714868773611490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2010/10/security-essentials-rogue-av-anti.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8491714868773611490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8491714868773611490'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2010/10/security-essentials-rogue-av-anti.html' title='Security Essentials Rogue AV Anti-Debugging'/><author><name>deobfuscated</name><uri>http://www.blogger.com/profile/16027670498097067999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_KOm-PikUgVs/TL63mYK9nVI/AAAAAAAAAAM/1H3wzoz9Nd8/s72-c/secessentialalert.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-1955034647532465162</id><published>2010-06-23T15:15:00.002+02:00</published><updated>2010-06-23T15:17:59.202+02:00</updated><title type='text'>More on (moron?) packers and anti-debugging</title><content type='html'>That's a pretty nice anti-debugging trick I recently ran across.&lt;br /&gt;It actually relies on those API that behave differently depending on whether the current process is being debugged or not.&lt;br /&gt;This snippet comes from a protector that is, as far as I know, only used to hide malware from AV engines.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_K123eo7xJTE/TCIELl069MI/AAAAAAAAAEY/m4hVVd6Hsx0/s1600/AntiDbgFindClose.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="87" src="http://1.bp.blogspot.com/_K123eo7xJTE/TCIELl069MI/AAAAAAAAAEY/m4hVVd6Hsx0/s400/AntiDbgFindClose.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;According to &lt;a href="http://msdn.microsoft.com/en-us/library/aa364413(VS.85).aspx"&gt;MSDN&lt;/a&gt;, FindClose() returns 0 in case of failure, which is true...unless the process is being debugged. Under a debugger, execution stops because of an access violation exception.&lt;br /&gt;&lt;br /&gt;Let's quickly check this with the following code:&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;int _tmain(int argc, _TCHAR* argv[])&lt;/blockquote&gt;&lt;blockquote&gt;{&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;FindClose (0);&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;printf ("Lasterror %08x\n", GetLastError());&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;return 0;&lt;/blockquote&gt;&lt;blockquote&gt;}&lt;/blockquote&gt;&lt;/blockquote&gt;Run from the command line, everything goes as expected:&lt;br /&gt;&lt;blockquote&gt;&amp;gt;findclose.exe&lt;/blockquote&gt;&lt;blockquote&gt;Lasterror 000003e6&amp;nbsp;&lt;/blockquote&gt;Same thing but under the VS debugger:&lt;br /&gt;&lt;blockquote&gt;First-chance exception at 0x7c90100b in findclose.exe: 0xC0000005: Access violation reading location 0x00000028.&lt;/blockquote&gt;Oops...&lt;br /&gt;&lt;br /&gt;Our friend then goes through the PEB to read the LastError value and uses it to calculate its decryption key.&lt;br /&gt;&lt;br /&gt;Nice one...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-1955034647532465162?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/1955034647532465162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2010/06/more-on-moron-packers-and-anti.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1955034647532465162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1955034647532465162'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2010/06/more-on-moron-packers-and-anti.html' title='More on (moron?) packers and anti-debugging'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_K123eo7xJTE/TCIELl069MI/AAAAAAAAAEY/m4hVVd6Hsx0/s72-c/AntiDbgFindClose.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-4434202735364014917</id><published>2010-04-04T18:49:00.001+02:00</published><updated>2010-04-04T18:52:41.134+02:00</updated><title type='text'>Anti-Emulation Through Syscalls</title><content type='html'>Long time no see, I know.&lt;br /&gt;I was, and still am, very busy, which doesn't allow me to take care of the blog as much as I'd like.&lt;br /&gt;&lt;br /&gt;Anyway, I was having a look at a bunch of packed malware and ran into a pretty cool anti-emulation trick. It's, in fact, already known and well documented but still, that's a nice one.&lt;br /&gt;Those samples are packed with something that Kaspersky calls PE_Crypt.pnh (or PE_Patch.pnh for those with a patched EP).&lt;br /&gt;&lt;br /&gt;This anti-emulation code is always put a few instructions after the EP. The first technique is really trivial to spot as it's just a bunch of MMX instructions that not all emulators support.&lt;br /&gt;The second one is trickier.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_K123eo7xJTE/S7i415S0-hI/AAAAAAAAAD4/mZXubMw5fu0/s1600/int_antidebug.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_K123eo7xJTE/S7i415S0-hI/AAAAAAAAAD4/mZXubMw5fu0/s320/int_antidebug.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Depending on the debugger you're using, if you step through this code, you're likely to get an access violation exception.&lt;br /&gt;Setting a breakpoint after the interrupt call and running the debuggee should work just fine but you're likely to be surprised when checking registers values...&lt;br /&gt;&lt;br /&gt;Indeed, when the interrupt returns, the edx register contains the value of eip. And this is exactly what this piece of code relies on to proceed with decryption.&lt;br /&gt;Because of the fact that emulators often can't handle MMX instructions, special behaviors of interrupts, etc..., the interrupt will be ignored (or worse, emulation will fail) and edx will keep its value. This will lead to a crash since edx doesn't contain the right virtual address.&lt;br /&gt;&lt;br /&gt;Question is, why does edx contain the same value as eip when the interrupt returns?&lt;br /&gt;No mystery here, it comes from sysenter / sysexit.&lt;br /&gt;Indeed, when having a look at the Intel instruction set reference doc, you can read the following about sysexit:&lt;br /&gt;&lt;blockquote&gt;&amp;nbsp;The SYSEXIT instruction sets the following registers according to values specified by the oper-&lt;br /&gt;ating system in certain model-specific or general purpose registers.&lt;/blockquote&gt;&lt;blockquote&gt;&lt;br /&gt;CS register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set to the sum of (16 plus the value in SYSENTER_CS_MSR)&lt;br /&gt;EIP register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set to the value contained in the EDX register&lt;br /&gt;SS register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set to the sum of (24 plus the value in SYSENTER_CS_MSR)&lt;br /&gt;ESP register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set to the value contained in the ECX register&lt;/blockquote&gt;This is it, the address to jump to when the processor switches back to ring3 is saved into edx.&lt;br /&gt;&lt;br /&gt;Easy to implement, but very efficient when it comes to avoid emulation and then detection by AV products.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-4434202735364014917?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/4434202735364014917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2010/04/anti-emulation-through-syscalls.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/4434202735364014917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/4434202735364014917'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2010/04/anti-emulation-through-syscalls.html' title='Anti-Emulation Through Syscalls'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_K123eo7xJTE/S7i415S0-hI/AAAAAAAAAD4/mZXubMw5fu0/s72-c/int_antidebug.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-5624598392796966098</id><published>2010-01-04T11:39:00.000+01:00</published><updated>2010-01-04T11:39:46.392+01:00</updated><title type='text'>Happy New Year!!</title><content type='html'>Better late than never, I wish you all a happy new year! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-5624598392796966098?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/5624598392796966098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2010/01/happy-new-year.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5624598392796966098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5624598392796966098'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2010/01/happy-new-year.html' title='Happy New Year!!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-5406479602629141410</id><published>2009-11-26T17:07:00.001+01:00</published><updated>2009-11-27T09:32:04.995+01:00</updated><title type='text'>Splinter(ed)cell...</title><content type='html'>Not only security companies and networking websites are targeted by bad guys.&lt;br /&gt;UbiSoft announced on twitter that splintercell.com had been hacked.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_K123eo7xJTE/Sw6mu87fVPI/AAAAAAAAADc/2jcGcYP35uQ/s1600/splintertweeter.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_K123eo7xJTE/Sw6mu87fVPI/AAAAAAAAADc/2jcGcYP35uQ/s320/splintertweeter.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Indeed, instead of the usual splintercell's homepage, a "nice" Russian message was there to welcome visitors... &lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_K123eo7xJTE/Sw6m64MNc2I/AAAAAAAAADk/BBnL6gTcc98/s1600/splinterhacked.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_K123eo7xJTE/Sw6m64MNc2I/AAAAAAAAADk/BBnL6gTcc98/s400/splinterhacked.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;And obvioulsy, the traditional message to be sure that the hacker's name won't be forgotten...&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_K123eo7xJTE/Sw6nSDkQwAI/AAAAAAAAADs/HN5YatDIuJM/s1600/splintersource.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_K123eo7xJTE/Sw6nSDkQwAI/AAAAAAAAADs/HN5YatDIuJM/s400/splintersource.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;Surely a lot of work ahead for the UbiSoft guys :)&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-5406479602629141410?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/5406479602629141410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/11/splinteredcell.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5406479602629141410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5406479602629141410'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/11/splinteredcell.html' title='Splinter(ed)cell...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_K123eo7xJTE/Sw6mu87fVPI/AAAAAAAAADc/2jcGcYP35uQ/s72-c/splintertweeter.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-5102442837532289654</id><published>2009-11-03T22:47:00.001+01:00</published><updated>2009-11-03T22:48:58.479+01:00</updated><title type='text'>I'm so l33t...when I'm admin</title><content type='html'>I initially thought it was a sort of joke and finally realised that it was  something supposed to be serious.&lt;br /&gt;&lt;br /&gt;The French school &lt;a href="http://www.esiea.fr/-ESIEA-in-English-"&gt;ESIEA&lt;/a&gt; has organised a challenge called PWN2RM (sounds familiar?).&lt;br /&gt;The goal was to disable some anti-virus software. Mmmm, why not, it's trendy after all :)&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.esiea-recherche.eu/data/pwn2rm.pdf"&gt;PDF&lt;/a&gt; is just amazing.&lt;br /&gt;&lt;br /&gt;First, one can say that they surely needed at least 10 minutes to make such beautiful slides...&lt;br /&gt;Just joking, the real fun begins at slide&amp;nbsp; 3.&lt;br /&gt;&lt;blockquote&gt;1. Gain SYSTEM privileges (“at” command)&lt;br /&gt;2. Stop the service (net stop)&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;Oh man!!! That's l33t.&lt;br /&gt;So, tell me, your target is what, Windows XP? And you can stop a service once you got system privileges. Wow, congratulations!&lt;br /&gt;But hold on, you were talking about disabling AV products, right? What's the link with any product here?&lt;br /&gt;&lt;br /&gt;Another really funny bit:&lt;br /&gt;&lt;blockquote&gt;•&amp;nbsp; So far, hasn’t been disabled&lt;br /&gt;•&amp;nbsp; NtOpenSection() is blocked (used to&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; access PhysicalMemory mapping)&lt;br /&gt;•&amp;nbsp; But XXXXX doesn’t block kernel driver&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loading, so it’s only a matter of time&lt;br /&gt;&lt;/blockquote&gt;Ok, I'd translate this to "Well, we know it's possible to do cool stuff with a kernel driver but we have no clue whatsoever how to write one"&lt;br /&gt;&lt;br /&gt;Slide 5, one can read:&lt;br /&gt;&lt;blockquote&gt;• Disabled through&lt;br /&gt;&amp;nbsp; \Device\PhysicalMemory (an XP-only&lt;br /&gt;&amp;nbsp; trick, wouldn’t work on Vista/7)&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;Ok, so the target was indeed Windows XP.&lt;br /&gt;&lt;br /&gt;Guys, just for your information, one only needs SeDebugPrivileges to read from / write to the kernel memory on WinXP (you know, DKOM, etc... ring a bell?).&lt;br /&gt;So, what's interesting here? What's new? That you ran "at" to get a system shell?&lt;br /&gt;Tell me what one _can't_ do once SYSTEM on an XP box? &lt;br /&gt;Seriously...&lt;br /&gt;&lt;br /&gt;I don't even understand why this school accepted to put that *** on its website...&lt;br /&gt;&lt;br /&gt;I'm so looking forward to your next slides!&lt;br /&gt;What will it be? "Bypassing Javascript authentication"?&lt;br /&gt;&lt;br /&gt;At least you made me smile...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-5102442837532289654?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/5102442837532289654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/11/im-so-l33twhen-im-admin.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5102442837532289654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5102442837532289654'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/11/im-so-l33twhen-im-admin.html' title='I&apos;m so l33t...when I&apos;m admin'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-8941721589669749139</id><published>2009-10-21T23:26:00.000+02:00</published><updated>2009-10-21T23:26:38.048+02:00</updated><title type='text'>More on (moron) rogue AV...</title><content type='html'>It's one of the most prevalent malware in the wild (often&amp;nbsp;referred&amp;nbsp;to as "scareware").&lt;br /&gt;It's very simple but unfortunately works pretty well.&lt;br /&gt;&lt;br /&gt;It looks like a security product (most likely an anti-virus or an anti-spyware) and happily detects hundreds threats / viruses / whatever nasty you can think about when it comes to your computer.&lt;br /&gt;The trick appears when you finally click on "Clean" to get rid of all those viruses. You get redirected to a webpage asking for you credit card details...&lt;br /&gt;Needless to say that those fake AVs exist only for this: stealing your money.&lt;br /&gt;&lt;br /&gt;Don't be fooled. If you want a real AV product, go for the well known brands. There are even free AVs.&lt;br /&gt;In the case you are somewhat tech-savvy, check whois databases.&lt;br /&gt;Domain names used for serving malware are never up for a long time.A brand new domain name is always suspicious.&lt;br /&gt;&lt;br /&gt;Here's an example of a rogue AV, stupidly called Soft-Cop.&lt;br /&gt;The installer is a NSIS package that is surprisingly small for an AV product (61489 bytes).&lt;br /&gt;&lt;br /&gt;Once installed, it happily runs a full scan and obviously finds hundreds of imaginary threats as shown below.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_K123eo7xJTE/St92dLhEIuI/AAAAAAAAACk/4DbIFY85j08/s1600-h/SoftCopGUI.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_K123eo7xJTE/St92dLhEIuI/AAAAAAAAACk/4DbIFY85j08/s400/SoftCopGUI.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Geez! That's a lot for my freshly installed Windows :)&lt;br /&gt;&lt;br /&gt;The guy(s) behind this is(are) so stupid that they even show off the infected file paths. Cool, let's have a look...&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_K123eo7xJTE/St93BoXvNnI/AAAAAAAAACs/VUYU3vTyvAU/s1600-h/SoftCopFakeFiles.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_K123eo7xJTE/St93BoXvNnI/AAAAAAAAACs/VUYU3vTyvAU/s400/SoftCopFakeFiles.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Mmmm, am I day-dreaming or what?&lt;br /&gt;Those files do exist on my hard-drive (well, they didn't before the scan)&lt;br /&gt;Ok, nothing to get excited about. That piece of crap just generates random file names, creates these files and fills them up with random bytes.&lt;br /&gt;Not sure what's the purpose of that to be honest...anyway...&lt;br /&gt;&lt;br /&gt;Another "hacker" trick is to make users think that running processes are from Microsoft (one can put whatever he wants in PE resources).&lt;br /&gt;Oh man... Ok, why not, but in this case, could you at least give some plausible names to your files?!?!&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_K123eo7xJTE/St94LUdX75I/AAAAAAAAAC0/3cHso6TsdEk/s1600-h/SoftCompProcesses.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_K123eo7xJTE/St94LUdX75I/AAAAAAAAAC0/3cHso6TsdEk/s400/SoftCompProcesses.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;Do you guys think that anyone could believe that SoftComp.exe is the Windows Calculator? O_o&lt;br /&gt;What the hell are you smoking?&lt;br /&gt;&lt;br /&gt;Last but not least, let's scare users a little bit!&lt;br /&gt;Like other rogues, our lame brand new friend displays annoying alerts pushing you to happily give your money...&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_K123eo7xJTE/St94vS2bt0I/AAAAAAAAAC8/f__LoJVcL4c/s1600-h/SoftCopAlert.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_K123eo7xJTE/St94vS2bt0I/AAAAAAAAAC8/f__LoJVcL4c/s400/SoftCopAlert.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Rogue AVs are a real threat. Many end-users just can't make the difference between a real security software and a rogue. And unfortunately, some of them end up giving away their credit card details.&lt;br /&gt;That's the sad part of the story.&lt;br /&gt;&lt;br /&gt;Now, this is another point of view.&lt;br /&gt;I've seen many rogues. They're all the same...&lt;br /&gt;Shitty code, stupid so-called "tricks", two-cent social engineering...&lt;br /&gt;&lt;br /&gt;Yeah, from the bottom of my heart, you guys, writing scarewares, you really suck.&lt;br /&gt;But thank you so much!&lt;br /&gt;Having a look at your shit in a disassembler is even better than reading &lt;a href="http://thedailywtf.com/"&gt;The Daily WTF&lt;/a&gt;. :D&lt;br /&gt;&lt;br /&gt;But still, you suck...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-8941721589669749139?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/8941721589669749139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/10/more-on-moron-rogue-av.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8941721589669749139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8941721589669749139'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/10/more-on-moron-rogue-av.html' title='More on (moron) rogue AV...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_K123eo7xJTE/St92dLhEIuI/AAAAAAAAACk/4DbIFY85j08/s72-c/SoftCopGUI.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-1356655550620229946</id><published>2009-10-13T19:41:00.002+02:00</published><updated>2009-10-13T19:43:31.973+02:00</updated><title type='text'>Missing milw0rm?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_K123eo7xJTE/StS7VqM-UmI/AAAAAAAAACA/Roun2S8Fz_Y/s1600-h/inj3ct0r.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_K123eo7xJTE/StS7VqM-UmI/AAAAAAAAACA/Roun2S8Fz_Y/s200/inj3ct0r.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Well, milw0rm is gone. Sad isn't it?&lt;br /&gt;Some time ago I wrote a quick blog about it and a quite interesting &lt;a href="http://deobfuscated.blogspot.com/2009/07/rip-milw0rm.html#comments"&gt;comment&lt;/a&gt; just got posted. (cheers!)&lt;br /&gt;&lt;br /&gt;Yeah! You can smile again and add &lt;a href="http://inj3ct0r.com/"&gt;inj3ctor.com&lt;/a&gt; to your bookmarks :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-1356655550620229946?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/1356655550620229946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/10/missing-milw0rm.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1356655550620229946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1356655550620229946'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/10/missing-milw0rm.html' title='Missing milw0rm?'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_K123eo7xJTE/StS7VqM-UmI/AAAAAAAAACA/Roun2S8Fz_Y/s72-c/inj3ct0r.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-6536052409614802712</id><published>2009-10-04T17:57:00.000+02:00</published><updated>2009-10-04T17:57:43.288+02:00</updated><title type='text'>EICAR 2010 will be held in France</title><content type='html'>Good news for all the French IT-sec dudes out there, &lt;a href="http://www.eicar.org/conference/"&gt;EICAR 2010&lt;/a&gt;, named "ICT Security: Quo Vadis?" will take place at &lt;a href="http://www.esiea.fr/"&gt;ESIEA&lt;/a&gt; in Paris.&lt;br /&gt;Not cheap at all but usually a really good conference.&lt;br /&gt;&lt;br /&gt;Go get your pass! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-6536052409614802712?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/6536052409614802712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/10/eicar-2010-will-be-held-in-france.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6536052409614802712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6536052409614802712'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/10/eicar-2010-will-be-held-in-france.html' title='EICAR 2010 will be held in France'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-7651024785027452561</id><published>2009-09-09T11:21:00.003+02:00</published><updated>2009-09-09T11:24:55.548+02:00</updated><title type='text'>Some apple juice</title><content type='html'>It's kinda old now but this &lt;a href="http://www.theregister.co.uk/2009/08/31/dziuba_apple_fcc/"&gt;write-up&lt;/a&gt; about Apple from Ted Dziuba is really cool.&lt;br /&gt;&lt;br /&gt;I really like what this guy writes on &lt;a href="http://www.theregister.co.uk/"&gt;The Register&lt;/a&gt;. Very straightforward :)&lt;br /&gt;&lt;br /&gt;If you got a minute, have a look at it, it's worth a read.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-7651024785027452561?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/7651024785027452561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/09/some-apple-juice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/7651024785027452561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/7651024785027452561'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/09/some-apple-juice.html' title='Some apple juice'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-2240193183291704473</id><published>2009-09-07T23:52:00.004+02:00</published><updated>2009-09-08T00:15:00.527+02:00</updated><title type='text'>"Damn viruses!"...</title><content type='html'>...must be what the IT guys at the London Council have been yelling for days.&lt;br /&gt;&lt;br /&gt;As &lt;a href="http://www.theregister.co.uk/2009/09/04/ealing_council_mystery_malware/"&gt;reported by The Register&lt;/a&gt;, the London Council has been kinda shaken by Conficker.&lt;br /&gt;&lt;br /&gt;Well, there are actually three things way to common in the aforementioned article:&lt;br /&gt;- The infection vector is a USB stick plugged in by an employee&lt;br /&gt;- The infection spread over the network, guess why...&lt;br /&gt;- No anti-virus software has blocked the infection, guess why...&lt;br /&gt;&lt;br /&gt;Then, once again:&lt;br /&gt;- It is _really_ useful to make anyone using a computer understand that personal and corporate data / media _must_ not be mixed&lt;br /&gt;- Security patches are _truly_ important. Yeah, I heard too many times "You don't understand, it's not that easy to patch on those big heterogeneous networks". People saying that kind of nonsense are just stupid...or lazy...or both...&lt;br /&gt;- AVs exist for a good reason...&lt;br /&gt;&lt;br /&gt;Security is often not that hard... but requires a working brain :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-2240193183291704473?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/2240193183291704473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/09/damn-viruses.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/2240193183291704473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/2240193183291704473'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/09/damn-viruses.html' title='&quot;Damn viruses!&quot;...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-299289139254030985</id><published>2009-08-29T00:09:00.007+02:00</published><updated>2009-08-31T16:53:07.259+02:00</updated><title type='text'>Snow Leopard is out...</title><content type='html'>...and comes with &lt;a href="http://www.apple.com/macosx/specs.html"&gt;plenty of nice stuff&lt;/a&gt; for Mac geeks.&lt;br /&gt;&lt;br /&gt;Well, the cool thing is that Apple finally got rid of its old PPC code. Snow Leopard is said to be designed for Intel CPUs and will only work on those. Was about time but that's a good thing.&lt;br /&gt;&lt;br /&gt;But the real funkiness in this new release is the so-called &lt;a href="http://www.apple.com/macosx/security/"&gt;malware protection&lt;/a&gt;. Hey, hold on, some malware protection in MacOS? Sounds cool!&lt;br /&gt;Er...no. In fact, it sounds more like a weird joke.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;With virtually no effort on your part, Mac OS X offers a multilayered system of defenses against viruses and other dangerous malware.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Mmm is it not a bit too much?&lt;br /&gt;&lt;br /&gt;Bearing in mind that, in order to avoid detection, malware often come in billions of variants, and that this protection is very unlikely to updated as it's part of the OS, I doubt their so-called protection will be really efficient.&lt;br /&gt;&lt;br /&gt;On top on this, how many? Two malwares!?!? Is that this "multilayered system of defenses against viruses and other dangerous malware"? You gotta be joking...&lt;br /&gt;&lt;br /&gt;Ok, last point, this feature works only with a set of applications shipped with MacOS like Safari, Mail or Entourage. How can we call this a protection system?&lt;br /&gt;&lt;br /&gt;No, I'm trying my best but still can't get the point...&lt;br /&gt;&lt;br /&gt;If you want to filter network connections, you get a firewall. If you want to get rid of the spam, you get an anti-spam.&lt;br /&gt;You're a Mac user and are scared of malwares? Get an antivirus...&lt;br /&gt;&lt;br /&gt;EDIT: more info and links &lt;a href="http://www.theregister.co.uk/2009/08/29/snow_leopard_security/"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-299289139254030985?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/299289139254030985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/snow-leopard-is-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/299289139254030985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/299289139254030985'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/snow-leopard-is-out.html' title='Snow Leopard is out...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-5669069373098805026</id><published>2009-08-28T23:04:00.002+02:00</published><updated>2009-08-28T23:29:13.599+02:00</updated><title type='text'>Wanna loose an eye? There's an app for that...</title><content type='html'>You surely all heard about those iPhones whose battery tends to blow up unexpectedly. Nice...&lt;br /&gt;&lt;br /&gt;Looks like a replay of those &lt;a href="http://www.cpsc.gov/cpscpub/prerel/prhtml09/09035.html"&gt;Sony batteries&lt;/a&gt; that would end up as a stack of ashes after burning like hell...&lt;br /&gt;&lt;br /&gt;Anyway, Apple said that the &lt;a href="http://news.bbc.co.uk/2/hi/technology/8227028.stm"&gt;reported incidents&lt;/a&gt; were due to an "external force".&lt;br /&gt;Hahaha yeh, I'm sure a Jedi has for mission to break as many iPhones as he can :)&lt;br /&gt;&lt;br /&gt;Many iPhone customers have complained about those sudden explosions.&lt;br /&gt;Mainly in France but as well in the UK, Holland and Sweden. But no, they surely all have smashed their iPhone...&lt;br /&gt;One man even got a piece of his iPhone's screen in the eye... Still, no. That dude must have put this piece of screen in his eye himself...&lt;br /&gt;&lt;br /&gt;Wanna waste a lot of money in some gadget that might harm you badly? There's the iPhone for that!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-5669069373098805026?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/5669069373098805026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/wanna-loose-eye-theres-app-for-that.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5669069373098805026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5669069373098805026'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/wanna-loose-eye-theres-app-for-that.html' title='Wanna loose an eye? There&apos;s an app for that...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-3489857013458939341</id><published>2009-08-28T22:37:00.006+02:00</published><updated>2009-08-31T13:52:25.234+02:00</updated><title type='text'>Fed up with autorun worms? You might want to patch...</title><content type='html'>Microsoft had such a great idea when they introduced the autorun functionality...&lt;br /&gt;&lt;br /&gt;From a funky behaviour, it turned out to be a pain for administrators and surely the first thing that Windows users get rid of.&lt;br /&gt;&lt;br /&gt;Well, actually, not everyone disables it.&lt;br /&gt;&lt;br /&gt;And that's why worms exploiting this functionality to replicate are so successful.&lt;br /&gt;One may know only Visual Basic and be as good at programming as I am at cooking (a real tragedy, I tell you...), she still can rely on the autorun to ensure that her piece of code will have a long life on corporate networks.&lt;br /&gt;&lt;br /&gt;But here comes our saviour. A few months ago, Microsoft &lt;a href="http://blogs.technet.com/mmpc/archive/2009/04/28/windows-addresses-the-changing-autorun-threat-environment.aspx"&gt;announced&lt;/a&gt; that this functionality would be re-thought in Windows 7, allowing autorun only for optical drives.&lt;br /&gt;Good move men!&lt;br /&gt;Windows XP, 2k3 and Vista users can download and install a (finally available!) &lt;a href="http://support.microsoft.com/?kbid=971029"&gt;patch&lt;/a&gt; on their system.&lt;br /&gt;&lt;br /&gt;Go admins, patch up!&lt;br /&gt;But hey, don't get too excited. &lt;br /&gt;Why? Mmm here's one example: Many USB sticks present themselves as optical drives and thus, are not affected at all by this patch. And it's just one example...&lt;br /&gt;&lt;br /&gt;Anyway, guys, deploy this patch through your network, it's worth it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-3489857013458939341?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/3489857013458939341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/fed-up-with-autorun-worms-you-might.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3489857013458939341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3489857013458939341'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/fed-up-with-autorun-worms-you-might.html' title='Fed up with autorun worms? You might want to patch...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-1595116133075313125</id><published>2009-08-05T20:17:00.002+02:00</published><updated>2009-08-05T20:21:35.319+02:00</updated><title type='text'>Nice report!</title><content type='html'>It got a pwnie award and deserves it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sophsec.com/nice_report.mp3"&gt;Nice report&lt;/a&gt; is a song made by the guys at &lt;a href="http://www.sophsec.com/"&gt;sophsec.com&lt;/a&gt; and it's really funny :)&lt;br /&gt;&lt;br /&gt;The lyrics are &lt;a href="http://www.sophsec.com/nicereport.txt"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-1595116133075313125?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/1595116133075313125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/nice-report.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1595116133075313125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1595116133075313125'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/nice-report.html' title='Nice report!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-6316622522962999516</id><published>2009-08-03T23:29:00.007+02:00</published><updated>2009-08-04T00:13:16.299+02:00</updated><title type='text'>Mac keyboard firmware rootkit unveiled at BlackHat</title><content type='html'>This is really cool stuff that K. Chen from the Georgia Institute of Technology presented at BlackHat.&lt;br /&gt;He tampered with the famous USB Mac keyboard firmware to demonstrate the possibility of injecting a rootkit whose goal is, obviously, to register keystrokes.&lt;br /&gt;&lt;br /&gt;Despite the sound is not great, a cool video is available &lt;a href="http://www.youtube.com/watch?v=_81lHJQpc_Y"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.blackhat.com/presentations/bh-usa-09/CHEN/BHUSA09-Chen-RevAppleFirm-PAPER.pdf"&gt;The white paper&lt;/a&gt; is also a very good read for rainy Sundays :)&lt;br /&gt;&lt;br /&gt;I just can't resist and must paste below a few extracts from Chen's paper that made me smile (and are just true...). &lt;br /&gt;Keep in mind that these are only extracts...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;The security posture of a computer can be adversely affected by poorly-designed devices on its USB bus.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Yeah, we all tend to forget that the security of a system is equal to the security of its weakest link.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;The decryption routine reads the firmware file in 83 byte chunks with the ith chunk XOR-ed with the 1’s complement of A and then each byte XOR-ed with Bi+16 mod 53 to produce the “plaintext.”&lt;br /&gt;So the first 83 bytes of kbd 0x0069 0x0220.irrxfw are XOR-ed with the complement of A and then each byte is XOR-ed with 0x17. &lt;br /&gt;The next 83 bytes are XOR-ed with the complement of A and then each byte is XOR-ed with 0x2b, and so forth. &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Wow, some hardcore crypto here :)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;We did not make an attempt to completely understand the algorithm used to obfuscate the firmware image, as it turns out that the tool HIDFirmwareUpdaterTool sends “cleartext” over the USB bus to the keyboard’s bootloader. &lt;br /&gt;The unobfuscated firmware file can be easily obtained from memory.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I actually read that part twice to ensure I understood well... This is bad, seriously...&lt;br /&gt;&lt;br /&gt;The time when Apple products were considered secure because not really spread is over.&lt;br /&gt;And this is actually good news as it will hopefully push Apple to take security seriously... before the bad guys take action...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-6316622522962999516?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/6316622522962999516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/mac-keyboard-firmware-rootkit-unveiled.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6316622522962999516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6316622522962999516'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/mac-keyboard-firmware-rootkit-unveiled.html' title='Mac keyboard firmware rootkit unveiled at BlackHat'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-1461802632247487304</id><published>2009-08-03T09:42:00.003+02:00</published><updated>2009-08-03T09:48:19.665+02:00</updated><title type='text'>Offvis 1.0beta released</title><content type='html'>Despite Office document format has been opened and is &lt;a href="http://msdn.microsoft.com/en-us/library/cc313118.aspx"&gt;publicly available&lt;/a&gt;, it's always a pain to look into those documents to ensure they don't contain some exploit.&lt;br /&gt;&lt;br /&gt;Microsoft just released a very nice tool called &lt;a href="http://blogs.technet.com/srd/archive/2009/07/31/announcing-offvis.aspx"&gt;Offvis&lt;/a&gt;. It supports Word, Excel and Powepoint files and shows the document into two panels.&lt;br /&gt;The first shows a raw hex dump of the file while the second presents objects as a tree. Really useful.&lt;br /&gt;As well, this tool checks for some known exploits within Office files. Handy :)&lt;br /&gt;&lt;br /&gt;Nice one from the Redmond's giant.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-1461802632247487304?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/1461802632247487304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/offvis-10beta-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1461802632247487304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1461802632247487304'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/08/offvis-10beta-released.html' title='Offvis 1.0beta released'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-4142698492409498352</id><published>2009-07-31T20:12:00.008+02:00</published><updated>2009-07-31T20:42:15.820+02:00</updated><title type='text'>Lame anti-debugging</title><content type='html'>This surely is the worst anti-debugging attempt that I've seen in my whole life.&lt;br /&gt;But yeah, it works.&lt;br /&gt;&lt;br /&gt;This sample I ran across is a parasite that uses TEA to encrypt infected files before "swallowing" them. At least, resources are extracted so the infected program will keep the same icon, etc...&lt;br /&gt;&lt;br /&gt;Anyway.&lt;br /&gt;&lt;br /&gt;When run, the sample creates a new thread and exits. This thread logically opens the file itself to, amongst other things, extract and decrypt the original file.&lt;br /&gt;Obviously, the virus author doesn't really like people chopping up its creation in a debugger so at the very beginning of the thread, you can see the following code:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_K123eo7xJTE/SnM3ttoCSXI/AAAAAAAAAB4/1dWtbl1nHoM/s1600-h/creatfsharemode.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 278px;" src="http://2.bp.blogspot.com/_K123eo7xJTE/SnM3ttoCSXI/AAAAAAAAAB4/1dWtbl1nHoM/s400/creatfsharemode.png" alt="" id="BLOGGER_PHOTO_ID_5364692839609551218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Did you see the trick?&lt;br /&gt;&lt;br /&gt;Looks like a very standard call to CreateFile but if you step into this code in your debugger, you'll be disappointed when CreateFile will actually return INVALID_HANDLE_VALUE. &lt;br /&gt;The thread will then terminate and no infection will occur.&lt;br /&gt;&lt;br /&gt;Well, no magic here. Your debugger owns a handle to the debugged program and the virus calls CreateFile with a null dwShareMode argument. &lt;br /&gt;So, basically, if this file has been opened already by another program (no matter it's a debugger or not), the virus just terminates.&lt;br /&gt;&lt;br /&gt;So, yeah, you can patch dwShareMode within your debugger or patch the file itself in your favourite hex editor.&lt;br /&gt;&lt;br /&gt;I'm still wondering. When it comes to malwares, the bad guys are always very weird.&lt;br /&gt;They think about some crypto, hiding processes and files, etc... but the only trick they found to prevent debugging was a parameter of CreateFile().&lt;br /&gt;&lt;br /&gt;Mmmm, no, I don't get it... But at least it gave me a good laugh :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-4142698492409498352?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/4142698492409498352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/lame-anti-debugging.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/4142698492409498352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/4142698492409498352'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/lame-anti-debugging.html' title='Lame anti-debugging'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_K123eo7xJTE/SnM3ttoCSXI/AAAAAAAAAB4/1dWtbl1nHoM/s72-c/creatfsharemode.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-5998749709681984888</id><published>2009-07-30T19:10:00.008+02:00</published><updated>2009-07-30T19:32:12.583+02:00</updated><title type='text'>p0wnage time</title><content type='html'>So-called black hats are pretty active these days.&lt;br /&gt;&lt;br /&gt;Matasano was the &lt;a href="http://deobfuscated.blogspot.com/2009/07/matasap0wn3d.html"&gt;first victim&lt;/a&gt;. And according to the "We're still working on bringing content back. Please be patient." on their homepage, they're still struggling with restoring their data...&lt;br /&gt;Was already a big thing to be honest. All the data have been deleted from their server and as it's an IT security company, this incident has been really noisy and reported by pretty much every news website.&lt;br /&gt;&lt;br /&gt;The second wild p0wnage occurred a few days ago. As well, a lot of noise as several well-known IT security experts have been targeted. Kevin Mitnick, Dan Kaminsky and Julien Tinnes are a few of them. The attacker(s) published a &lt;a href="http://r00tsecurity.org/files/zf05.txt"&gt;big log file&lt;/a&gt; with file listings, personal emails, passwords, etc..&lt;br /&gt;And I must admit that some bits are really funny... :)&lt;br /&gt;&lt;br /&gt;Today, ZDnet published an article about an XSS vulnerability on the MI5 website. Despite this vulnerability has been publicly disclosed on the &lt;a href="http://nemesis.te-home.net/Forum/3100_Bad_Settings/31000_XSS/20090721_MI5__Military_Intelligence__Section_5____XSS.html"&gt;Team Elite forum&lt;/a&gt;, it seems that it hasn't been exploited and is now fixed.&lt;br /&gt;&lt;br /&gt;Last but not least, the Apple iPhone is having a tough time. On top of some rumours about the already &lt;a href="http://www.schneier.com/blog/archives/2009/07/iphone_encrypti.html"&gt;broken crypto in the iPhone 3Gs&lt;/a&gt;, Charlie Miller and Collin Mulliner gave &lt;a href="http://www.blackhat.com/presentations/bh-usa-09/MILLER/BHUSA09-Miller-FuzzingPhone-PAPER.pdf"&gt;a talk at BlackHat 2009&lt;/a&gt; about vulnerabilities in the iPhone SMS handling...&lt;br /&gt;&lt;br /&gt;Funky... ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-5998749709681984888?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/5998749709681984888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/p0wnage-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5998749709681984888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5998749709681984888'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/p0wnage-time.html' title='p0wnage time'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-2408757041950074520</id><published>2009-07-27T16:08:00.005+02:00</published><updated>2009-07-27T16:18:59.069+02:00</updated><title type='text'>Matasa....p0wn3d...</title><content type='html'>&lt;a href="http://www.matasano.com/"&gt;Matasano Security&lt;/a&gt; is a well-known security company based in the US.&lt;br /&gt;&lt;br /&gt;Unfortunately, Matasano is more known because of its different "mistakes" (yeah, I wanna be polite) than its core competencies...&lt;br /&gt;If I were to cite only one example, it'd be the Kaminsky DNS vulnerability leak...&lt;br /&gt;&lt;br /&gt;Anyway, now, there's another reason for Matasano to be famous: they've been p0wn3d biiiig time.&lt;br /&gt;&lt;br /&gt;Click &lt;a href="http://seclists.org/fulldisclosure/2009/Jul/0388.html"&gt;here&lt;/a&gt; for some laughters...&lt;br /&gt;&lt;br /&gt;Wanna laugh more? Screenshot &lt;a href="http://users.volja.net/database/matasano.PNG"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-2408757041950074520?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/2408757041950074520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/matasap0wn3d.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/2408757041950074520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/2408757041950074520'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/matasap0wn3d.html' title='Matasa....p0wn3d...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-1415432391395264080</id><published>2009-07-25T19:29:00.023+02:00</published><updated>2009-07-27T09:52:46.885+02:00</updated><title type='text'>And here comes another "secure by design" OS</title><content type='html'>It's pretty old news now, but I was catching up with my RSS feeds and ran across (one more time) an article talking about Chome OS, the new OS from Google.&lt;br /&gt;The goal is quite clear, a lightweight OS, designed to run fast, boot-up quickly and focus on web-apps. Rather logical as it will massively use online Google services like Google mail, docs and so on.&lt;br /&gt;&lt;br /&gt;Alright, so far, so good. Why not...&lt;br /&gt;&lt;br /&gt;But having a look at this &lt;a href="http://googleblog.blogspot.com/2009/07/introducing-google-chrome-os.html"&gt;introduction to Chrome OS&lt;/a&gt;, I can't avoid to... er, not sure whether it's laughing or crying.&lt;br /&gt;&lt;br /&gt;Let me comment some bits from this article:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Google Chrome OS is an open source, lightweight operating system that will initially be targeted at netbooks. Later this year we will open-source its code, and netbooks running Google Chrome OS will be available for consumers in the second half of 2010. Because we're already talking to partners about the project, and we'll soon be working with the open source community, we wanted to share our vision now so everyone understands what we are trying to achieve.&lt;/blockquote&gt;&lt;br /&gt;Ok, developing a new OS from scratch is just an huge job and costs a lot of money. &lt;br /&gt;So, Google will go for open-source projects (it'll run Linux) and just package them to run Chrome. Why not.&lt;br /&gt;Nothing bad here. &lt;br /&gt;I'd even say that releasing the source code of other components as they plan to do is really cool.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Speed, simplicity and security are the key aspects of Google Chrome OS. We're designing the OS to be fast and lightweight, to start up and get you onto the web in a few seconds. The user interface is minimal to stay out of your way, and most of the user experience takes place on the web. And as we did for the Google Chrome browser, we are going back to the basics and completely redesigning the underlying security architecture of the OS so that users don't have to deal with viruses, malware and security updates. It should just work.&lt;/blockquote&gt;&lt;br /&gt;Ok, so, as we said before, this so-called OS will be minimal. Don't expect to do anything else than browsing the web. Mmmm, alright.&lt;br /&gt;But wait, did you read the last sentence?&lt;br /&gt;"Completely redesigning the security architecture". Sorry? Aren't you guys reusing a Linux kernel?&lt;br /&gt;What are you redesigning?&lt;br /&gt;And, hold on... No need to deal with malwares nor security updates? &lt;br /&gt;Well, I'd like to know how to be honest. Google explains that its OS is basically Chrome running on a Linux kernel and, as far as I know, both of them have been (and will surely be) impacted by vulnerabilities.&lt;br /&gt;As well, it's not because malwares targeting Linux are rare that they don't exist (and can't be developed).&lt;br /&gt;&lt;br /&gt;So, what's the deal here? No security update at all, or the updating process will be hidden from users?&lt;br /&gt;If I had to choose, I'd go for the second one as I really don't want to be online with an old browser running on top of an old OS (as both are likely to be vulnerable to something...)&lt;br /&gt;But still, as many people, I'm not happy with hidden stuff...&lt;br /&gt;&lt;br /&gt;Besides, if this "perfect" security fails, how users will be able to track down viral infection or any other security issue on their machine as the only tool available seems to be the browser?&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;All web-based applications will automatically work and new applications can be written using your favorite web technologies.&lt;/blockquote&gt;&lt;br /&gt;Does this include silverlight? ;)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Google Chrome OS is being created for people who spend most of their time on the web, and is being designed to power computers ranging from small netbooks to full-size desktop systems.&lt;/blockquote&gt;&lt;br /&gt;Ok, I see why this kind of minimal system is interesting when it comes to netbooks.&lt;br /&gt;But seriously, who will buy a desktop to run a web browser? I know many people just use computers to check their emails and browse the internet but, still, having a core duo, 4GB of RAM and a 3D graphic accelerator to run Google OS is like buying a Ferrari to go to the hairdresser...&lt;br /&gt;Anyway, just a detail.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Especially when it comes to security, innovation is good. Thinking again about what already exists is vital. Being pro-active and proposing solutions is the way to go.&lt;br /&gt;But I reckon that Chrome OS freaks me out. Just a few details have been published so far, marketing did its job as well to make the announcement, well, like it is, and I hope I'm wrong.&lt;br /&gt;But the whole idea of an OS that is designed not to be administrated sounds bad to me.&lt;br /&gt;This "Secure by design" concept is not new and never really worked so far.&lt;br /&gt;&lt;br /&gt;Sounds really like "If you don't see the problem, well, there's no problem".&lt;br /&gt;This is not security...it's all the opposite.&lt;br /&gt;&lt;br /&gt;Yeah, I hope I'm wrong...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-1415432391395264080?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/1415432391395264080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/and-here-comes-another-secure-by-design.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1415432391395264080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1415432391395264080'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/and-here-comes-another-secure-by-design.html' title='And here comes another &quot;secure by design&quot; OS'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-8783530425996296198</id><published>2009-07-22T16:13:00.006+02:00</published><updated>2009-07-23T14:25:37.311+02:00</updated><title type='text'>Die Delphi, die!</title><content type='html'>I must run across too many Delphi samples on a daily basis...&lt;br /&gt;&lt;br /&gt;My thoughts about that soooo beautiful language are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Should have been called "Visual Pascal"...&lt;/li&gt;&lt;li&gt;Supposed to be an OOL but it's defintely not (we're far away from smalltalk here...)&lt;/li&gt;&lt;li&gt;A biiiig pain to reverse because of all the code added by Delphi itself which brings us to the next point...&lt;/li&gt;&lt;li&gt;Produces slow and ineffective code&lt;/li&gt;&lt;li&gt;Used almost only for malwares (when you're bad at programming, you go for Delphi...or VB...)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Okey, okey, it might not be fair.&lt;br /&gt;&lt;br /&gt;Say I needed badly to spit out my anger ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-8783530425996296198?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/8783530425996296198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/die-delphi-die.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8783530425996296198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8783530425996296198'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/die-delphi-die.html' title='Die Delphi, die!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-3516025232396905961</id><published>2009-07-21T20:25:00.009+02:00</published><updated>2009-07-23T22:17:10.153+02:00</updated><title type='text'>Hey! There's a worm in that apple!</title><content type='html'>When it comes to malware, we think right away of Windows.&lt;br /&gt;No surprise here, Windows is and will be for (ever?) a loooong time _the_ OS massively used by companies and end-users.&lt;br /&gt;Well, there are a couple a malwares for other OSes like Linux or MacOS but there are rare and often more some kind of POC than real malwares.&lt;br /&gt;&lt;br /&gt;This situation pushes some people (even some so-called professionals...) to think that Linux, BSD or MacOS are more secure or even malware immune. That's obviously wrong. They're just less interesting targets.&lt;br /&gt;&lt;br /&gt;MacOs has become trendy recently.&lt;br /&gt;Well, Apple got itself some good marketing people... So good that every geek around feels bound to pay a computer twice its price ;)&lt;br /&gt;Oh yes, I know, I know, the hardware is damn good, blablabla... That's true.&lt;br /&gt;At the same time, MacOS X requires more resources than Vista(!) to run smoothly, so you'd better have some kick-ass hardware if you want to enjoy the super eye-candy Apple's OS...&lt;br /&gt;&lt;br /&gt;Anyway, despite MacOS X is based on a BSD kernel, a large part of the OS is undocumented, and so far, not much interesting work has been done on it (as far as I know).&lt;br /&gt;That's why I'm really glad that Dino Dai Zovi will give a &lt;a href="http://blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Daizovi"&gt;talk about MacOS rootkits&lt;/a&gt; at the next BlackHat.&lt;br /&gt;That's a really cool area to work on and is pretty new.&lt;br /&gt;&lt;br /&gt;MacOS lacks many security features already used in almost all other OSes (stack layout randomization for instance), and it's about time to have a serious look into it...before the bad guys do...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-3516025232396905961?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/3516025232396905961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/hey-theres-worm-in-that-apple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3516025232396905961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3516025232396905961'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/hey-theres-worm-in-that-apple.html' title='Hey! There&apos;s a worm in that apple!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-6858666973248319343</id><published>2009-07-17T21:10:00.009+02:00</published><updated>2009-07-17T21:37:45.042+02:00</updated><title type='text'>Null pointer dereference vulnerability in the Linux kernel</title><content type='html'>This is a really cool vulnerability that has been &lt;a href="http://patchwork.kernel.org/patch/34190/"&gt;found by Eugene Kapun&lt;/a&gt; in the Linux kernel (2.6.30+).&lt;br /&gt;&lt;br /&gt;So, what is it? Just a basic null pointer dereference in tun.c:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;static unsigned int tun_chr_poll(struct file *file, poll_table * wait)  &lt;br /&gt;{  &lt;br /&gt;        struct tun_file *tfile = file-&gt;private_data;  &lt;br /&gt;        struct tun_struct *tun = __tun_get(tfile);  &lt;br /&gt;        struct sock *sk = tun-&gt;sk;  &lt;br /&gt;        unsigned int mask = 0;  &lt;br /&gt;  &lt;br /&gt;        if (!tun)  &lt;br /&gt;                return POLLERR;  &lt;br /&gt;  &lt;br /&gt;        DBG(KERN_INFO "%s: tun_chr_poll\n", tun-&gt;dev-&gt;name);  &lt;br /&gt;  &lt;br /&gt;        poll_wait(file, &amp;tun-&gt;socket.wait, wait);  &lt;br /&gt;  &lt;br /&gt;        if (!skb_queue_empty(&amp;tun-&gt;readq))  &lt;br /&gt;                mask |= POLLIN | POLLRDNORM;  &lt;br /&gt;  &lt;br /&gt;        if (sock_writeable(sk) ||  &lt;br /&gt;            (!test_and_set_bit(SOCK_ASYNC_NOSPACE, &amp;sk-&gt;sk_socket-&gt;flags) &amp;&amp;  &lt;br /&gt;             sock_writeable(sk)))  &lt;br /&gt;                mask |= POLLOUT | POLLWRNORM;  &lt;br /&gt;  &lt;br /&gt;        if (tun-&gt;dev-&gt;reg_state != NETREG_REGISTERED)  &lt;br /&gt;                mask = POLLERR;  &lt;br /&gt;  &lt;br /&gt;        tun_put(tun);  &lt;br /&gt;        return mask;  &lt;br /&gt;}  &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Alright, the problem is not hard to spot. The code checks whether &lt;span style="font-style:italic;"&gt;tun&lt;/span&gt; is null _after_ being initialized. &lt;br /&gt;Not good. But it's not exploitable, huh? You're right, it's not...&lt;br /&gt;&lt;br /&gt;But here comes gcc optimization. Because &lt;span style="font-style:italic;"&gt;tun&lt;/span&gt; has been initialized already, gcc just gets rid of the "&lt;span style="font-style:italic;"&gt;if (!tun)[...]&lt;/span&gt;" which is correct in terms of optimization but also makes this vulnerability exploitable. Nice... :)&lt;br /&gt;&lt;br /&gt;More info and exploit &lt;a href="http://seclists.org/fulldisclosure/2009/Jul/0246.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Thanks to artyc for the heads-up!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-6858666973248319343?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/6858666973248319343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/null-dereference-pointer-vulnerability.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6858666973248319343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6858666973248319343'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/null-dereference-pointer-vulnerability.html' title='Null pointer dereference vulnerability in the Linux kernel'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-6581870506088989821</id><published>2009-07-17T14:19:00.004+02:00</published><updated>2009-07-17T14:37:01.194+02:00</updated><title type='text'>l0phtcrack 6 and Nmap 5 are out!</title><content type='html'>Pen-testers must be happy these days :)&lt;br /&gt;&lt;br /&gt;First, l0phtcrack 6 has been released. Yeah, yeah...it's a Windows-only software but it's pretty good at what it does. More info on the &lt;a href="http://www.l0phtcrack.com/"&gt;l0phtcrack website&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Last but not least, &lt;a href="http://nmap.org/5/"&gt;Nmap 5&lt;/a&gt; is out! And believe me, some guys have been working hard!&lt;br /&gt;ZenMap, Ncat (some sort of super netcat), Ndiff and a super-charged NSE are just some bits of what's waiting for you in this new release.&lt;br /&gt;Check out the &lt;a href="http://nmap.org/changelog.html"&gt;changelog&lt;/a&gt; and this &lt;a href="http://blogs.securiteam.com/index.php/archives/1306"&gt;pretty good post from Securiteam&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Happy pen-testing! ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-6581870506088989821?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/6581870506088989821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/l0phtcrack-6-and-nmap-5-are-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6581870506088989821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/6581870506088989821'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/l0phtcrack-6-and-nmap-5-are-out.html' title='l0phtcrack 6 and Nmap 5 are out!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-772236141325278222</id><published>2009-07-09T10:33:00.004+02:00</published><updated>2009-07-09T14:02:04.547+02:00</updated><title type='text'>R.I.P milw0rm</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_K123eo7xJTE/SlWtSHsu34I/AAAAAAAAABo/V9zkz223QCc/s1600-h/milw0rm_logo.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 153px; height: 98px;" src="http://2.bp.blogspot.com/_K123eo7xJTE/SlWtSHsu34I/AAAAAAAAABo/V9zkz223QCc/s320/milw0rm_logo.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5356377858642993026" /&gt;&lt;/a&gt;&lt;br /&gt;It was one of the best public websites to find exploits.&lt;br /&gt;&lt;br /&gt;Obviously, many people think that such a website should be taken down as it's heaven for script kiddies... But it was as well really useful for security consultants.&lt;br /&gt;&lt;br /&gt;Exploits are and will always be available. The only difference is that you'll find them only within some "private" communities...which just makes the good guys work even harder.&lt;br /&gt;&lt;br /&gt;Rest in peace, milw0rm.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-772236141325278222?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/772236141325278222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/rip-milw0rm.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/772236141325278222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/772236141325278222'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/07/rip-milw0rm.html' title='R.I.P milw0rm'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_K123eo7xJTE/SlWtSHsu34I/AAAAAAAAABo/V9zkz223QCc/s72-c/milw0rm_logo.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-1628859746337315156</id><published>2009-06-24T18:58:00.005+02:00</published><updated>2009-06-24T19:28:24.370+02:00</updated><title type='text'>Big brother with big vulnerabilities...</title><content type='html'>China is well known to be a not so free country, and monitoring (spying on?) network traffic is just one example of its actions aiming to control the Chinese population.&lt;br /&gt;&lt;br /&gt;On top of its famous &lt;a href="http://en.wikipedia.org/wiki/Golden_Shield_Project"&gt;Golden Shield&lt;/a&gt;, the Chinese government now provides its own content-control software, called &lt;a href="http://en.wikipedia.org/wiki/Green_Dam_Youth_Escort"&gt;Green Dam Youth Escort&lt;/a&gt;.&lt;br /&gt;And it's mandatory to have it installed on any new computer...&lt;br /&gt;&lt;br /&gt;The official aim of Green Dam is to protect users, in particular children, from malicious or dodgy content. Sounds nice... but the reality is obviously slightly different, and reversing this piece of software quickly reveals some filtering on political keywords and other stuff not appreciated by the Chinese government.&lt;br /&gt;&lt;br /&gt;No big surprise so far... Except that Green Dam comes with stupid vulnerabilities and as it acts as a web proxy, it really puts users at risk.&lt;br /&gt;The problem? The library in charge of the filtering uses fixed-length buffers to process web-sites requests. &lt;br /&gt;You got it, &lt;a href="http://www.cse.umich.edu/~jhalderm/pub/gd/#add1"&gt;buffer overflow exploitable to remotely run arbitrary code&lt;/a&gt;.&lt;br /&gt;Nice... &lt;br /&gt;&lt;br /&gt;Well, Green Dam's editor patched it silently. So silently that it's still vulnerable...&lt;br /&gt;&lt;br /&gt;Seriously, there're enough botnets in the world, we don't need that s***...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-1628859746337315156?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/1628859746337315156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/big-brother-with-big-vulnerabilities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1628859746337315156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/1628859746337315156'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/big-brother-with-big-vulnerabilities.html' title='Big brother with big vulnerabilities...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-3900266106214309806</id><published>2009-06-21T23:14:00.003+02:00</published><updated>2009-06-24T23:38:31.284+02:00</updated><title type='text'>50 ways to inject your SQL</title><content type='html'>This is a &lt;a href="http://sunbeltblog.blogspot.com/2009/06/50-ways-to-inject-your-sql.html"&gt;funny post&lt;/a&gt; from the Sunbelt weblog.&lt;br /&gt;Check out the video on youtube and listen to the lyrics. &lt;br /&gt;No doubt all the geeks and pen-testers around will enjoy it! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-3900266106214309806?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/3900266106214309806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/50-ways-to-inject-your-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3900266106214309806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3900266106214309806'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/50-ways-to-inject-your-sql.html' title='50 ways to inject your SQL'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-57767293769612995</id><published>2009-06-17T16:11:00.005+02:00</published><updated>2009-06-17T17:42:50.569+02:00</updated><title type='text'>IDA 5.5 is out!</title><content type='html'>...and so is Hex-Rays 1.1 :)&lt;br /&gt;&lt;br /&gt;No breaking news though, but I got to try this new "dockable user interface" only today.&lt;br /&gt;I have to say, it rocks! :)&lt;br /&gt;&lt;br /&gt;The IDA's GUI (on Windows) has always been something very annoying for beginners and still not handy for others.&lt;br /&gt;The nightmare really started when launching the debugger. All those windows overlapping one another...a real mess.&lt;br /&gt;&lt;br /&gt;Finally, IDA's got itself a nice and handy GUI. Was about time! :)&lt;br /&gt;&lt;br /&gt;There are other improvements in this release, for more information, please check out the &lt;a href="http://www.hex-rays.com/idapro/55/index.htm"&gt;changelog&lt;/a&gt; and &lt;a href="http://hexblog.com/2009/06/ida_pro_55_and_hexrays_11_have.html"&gt;Ilfak's blog&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-57767293769612995?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/57767293769612995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/ida-55-is-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/57767293769612995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/57767293769612995'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/ida-55-is-out.html' title='IDA 5.5 is out!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-9171813281411990988</id><published>2009-06-11T22:29:00.004+02:00</published><updated>2009-06-11T22:35:00.968+02:00</updated><title type='text'>Phrack 66 is out!</title><content type='html'>The new issue of phrack has just been published.&lt;br /&gt;&lt;br /&gt;I didn't have the time to look at it yet, but according to the table of contents, I'm sure it's a great issue, like the previous ones...&lt;br /&gt;&lt;br /&gt;Wanna read something interesting? &lt;a href="http://www.phrack.org/issues.html?issue=66"&gt;There you go&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-9171813281411990988?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/9171813281411990988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/phrack-66-is-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/9171813281411990988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/9171813281411990988'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/phrack-66-is-out.html' title='Phrack 66 is out!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-8275473930917691898</id><published>2009-06-10T22:14:00.004+02:00</published><updated>2009-06-10T22:23:31.142+02:00</updated><title type='text'>Malwares targeting ATMs</title><content type='html'>This is really scary but finally not that surprising.&lt;br /&gt;&lt;br /&gt;It seems that some hackers managed to infect ATMs with a specially crafted card, allowing to replace some Windows system files with malicious binaries.&lt;br /&gt;The malware obviously gathers personal banking details.&lt;br /&gt;&lt;br /&gt;So far, attacks have been reported only in Eastern Europe... but let's keep in mind that ATMs aren't that different in other countries...&lt;br /&gt;&lt;br /&gt;Well, my question for the moment isn't why this is happening, but why we run Windows XP on ATMs...&lt;br /&gt;&lt;br /&gt;More information on the &lt;a href="http://www.avertlabs.com/research/blog/index.php/2009/06/10/atm-malware-makes-withdrawals-in-russia/"&gt;McAfee Avert Labs&lt;/a&gt; and &lt;a href="http://www.schneier.com/blog/archives/2009/06/malware_steals.html"&gt;Bruce Shneier&lt;/a&gt;'s weblogs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-8275473930917691898?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/8275473930917691898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/malwares-targeting-atms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8275473930917691898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8275473930917691898'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/malwares-targeting-atms.html' title='Malwares targeting ATMs'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-8614694051027479099</id><published>2009-06-10T12:36:00.004+02:00</published><updated>2009-06-11T23:23:52.667+02:00</updated><title type='text'>T-Mobile got 0wn3d</title><content type='html'>&lt;a href="http://blogs.csoonline.com/t_mobile_confirms_hackers_info_is_legit"&gt;T-Mobile acknowledged&lt;/a&gt; that some hackers broke in their network.&lt;br /&gt;The &lt;a href="http://seclists.org/fulldisclosure/2009/Jun/0062.html"&gt;initial&lt;/a&gt; announce was posted on Full-disclosure on last Saturday but it was impossible to tell if this was fake or not.&lt;br /&gt;&lt;br /&gt;Seems that the attackers have been kinda disappointed by T-Mobile reaction and are now trying to sell the stolen data.&lt;br /&gt;&lt;br /&gt;By the way, T-Mobile seems to love HP-UX :)&lt;br /&gt;&lt;br /&gt;EDIT: &lt;a href="http://gigaom.com/2009/06/09/t-mobile-confirms-breach-says-no-risk-to-customers/"&gt;T-Mobile confirmed the hack&lt;/a&gt;, but says customers data are safe...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-8614694051027479099?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/8614694051027479099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/t-mobile-got-0wn3d.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8614694051027479099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8614694051027479099'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/t-mobile-got-0wn3d.html' title='T-Mobile got 0wn3d'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-4986074815754916190</id><published>2009-06-07T17:19:00.003+02:00</published><updated>2009-06-07T17:23:18.515+02:00</updated><title type='text'>Hasta la vista...Astalavista</title><content type='html'>Hard to tell if this is fake or not, but still, it's kinda funny to read.&lt;br /&gt;&lt;br /&gt;Really looks like a wild p0wnage of astalavista.com...&lt;br /&gt;&lt;br /&gt;A bit long but if you have 10min free, go ahead til the end, where the juicy bits are...no mercy whatsoever!&lt;br /&gt;&lt;br /&gt;http://zone-h.org/mirror/id/8961233&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-4986074815754916190?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/4986074815754916190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/hasta-la-vistaastalavista.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/4986074815754916190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/4986074815754916190'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/hasta-la-vistaastalavista.html' title='Hasta la vista...Astalavista'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-2275953918450623657</id><published>2009-06-06T18:37:00.007+02:00</published><updated>2009-06-06T19:09:08.335+02:00</updated><title type='text'>SSTIC 2009 is over</title><content type='html'>That's it. SSTIC 2009 is over and it was really cool.&lt;br /&gt;&lt;br /&gt;Some really really good talks. (And obviously a few that were not that good...)&lt;br /&gt;&lt;br /&gt;I particularly enjoyed:&lt;br /&gt;- Data tainting for malware analysis by F. Marceau (well done dude! ;) )&lt;br /&gt;- Attacking through the PCI bus by C. Devine and G. Vissian&lt;br /&gt;- &lt;a href="http://lasecwww.epfl.ch/keyboard/"&gt;Compromising electromagnetic emanations of wired and wireless keyboard&lt;/a&gt; by M. Vuagnoux and S. Pasini (Amazing slides!!)&lt;br /&gt;&lt;br /&gt;Was nice to see some friends / colleagues there and I'm really looking forward to attending SSTIC 2010.&lt;br /&gt;&lt;br /&gt;Now guys, it's about time to get some rest. We really all need it... ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-2275953918450623657?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/2275953918450623657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/sstic-2009-is-over.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/2275953918450623657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/2275953918450623657'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/sstic-2009-is-over.html' title='SSTIC 2009 is over'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-3680672649143889015</id><published>2009-06-01T18:00:00.006+02:00</published><updated>2009-06-01T18:12:23.855+02:00</updated><title type='text'>Secrets, lies, but no paranoia...</title><content type='html'>... is what &lt;a href="http://www.schneier.com/book-sandl.html"&gt;Secrets &amp; Lies&lt;/a&gt; from Bruce Schneier is all about.&lt;br /&gt;&lt;br /&gt;Not the first book from Bruce Schneier I read and I haven't been disappointed so far.&lt;br /&gt;A sensible point of view about security, privacy and all the myths and &lt;a href="http://en.wikipedia.org/wiki/Fear,_uncertainty_and_doubt"&gt;FUD&lt;/a&gt; around.&lt;br /&gt;It's well written and really goes to the point.&lt;br /&gt;&lt;br /&gt;I'd recommend anyone interested in, or just curious about security, and how it really steps in our lives on a daily basis, to have a look at this very good book.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-3680672649143889015?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/3680672649143889015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/secrets-lies-but-no-paranoia.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3680672649143889015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3680672649143889015'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/06/secrets-lies-but-no-paranoia.html' title='Secrets, lies, but no paranoia...'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-7004909042379935061</id><published>2009-05-28T11:37:00.006+02:00</published><updated>2009-05-28T12:39:00.142+02:00</updated><title type='text'>SSTIC is coming up!</title><content type='html'>Next week, I will be attending the &lt;a href="http://www.sstic.org/"&gt;SSTIC&lt;/a&gt;, a French security conference, over 3 days, taking place in &lt;a href="http://maps.google.fr/maps?q=rennes&amp;oe=utf-8&amp;client=firefox-a&amp;ie=UTF8&amp;split=0&amp;gl=fr&amp;ei=0WIeSvydMYONjAfKg82HDQ&amp;ll=48.107431,-1.669922&amp;spn=12.888276,34.892578&amp;z=6&amp;iwloc=A"&gt;Rennes&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;There will be some really nice talks and I'm really looking forward to being there!&lt;br /&gt;Some friends and colleagues will be there as well. It's going to be big fun!&lt;br /&gt;&lt;br /&gt;Hope to see you there and grab a beer after the talks! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-7004909042379935061?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/7004909042379935061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/sstic-is-coming-up.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/7004909042379935061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/7004909042379935061'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/sstic-is-coming-up.html' title='SSTIC is coming up!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-8916879573120981740</id><published>2009-05-16T21:57:00.005+02:00</published><updated>2009-05-17T11:19:44.994+02:00</updated><title type='text'>Microsoft gets rid of another unsafe function call</title><content type='html'>Microsoft recently &lt;a href="http://blogs.msdn.com/sdl/archive/2009/05/14/please-join-me-in-welcoming-memcpy-to-the-sdl-rogues-gallery.aspx"&gt;announced&lt;/a&gt; they'd add the calls memcpy, CopyMemory and RtlCopyMemory to the &lt;a href="http://msdn.microsoft.com/en-us/library/bb288454.aspx"&gt;SDL list of banned function Calls&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Programmers (should) know for a long time that those functions are unsafe and shouldn't be used. Nevertheless, they're still widely utilized and responsible of many buffer-overflow vulnerabilities.&lt;br /&gt;&lt;br /&gt;Good move that hopefully will help with getting rid of bad programming habits.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-8916879573120981740?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/8916879573120981740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/microsoft-gets-rid-of-another-unsafe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8916879573120981740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/8916879573120981740'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/microsoft-gets-rid-of-another-unsafe.html' title='Microsoft gets rid of another unsafe function call'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-3835972057629332806</id><published>2009-05-15T17:49:00.002+02:00</published><updated>2009-05-15T17:55:11.025+02:00</updated><title type='text'>More on (moron?) FakeAlert</title><content type='html'>Being a bad guy doesn't mean you are a smart guy.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_K123eo7xJTE/Sg2PXlY1BKI/AAAAAAAAABg/17GLreeLG3s/s1600-h/dumbfakealert.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 364px; height: 285px;" src="http://3.bp.blogspot.com/_K123eo7xJTE/Sg2PXlY1BKI/AAAAAAAAABg/17GLreeLG3s/s400/dumbfakealert.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5336078768839918754" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;No mate, I tell you, nobody's trying to get my private data from this IP address... and by the way, email addresses often come with an at sign. Just my two cents.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-3835972057629332806?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/3835972057629332806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/more-on-moron-fakealert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3835972057629332806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/3835972057629332806'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/more-on-moron-fakealert.html' title='More on (moron?) FakeAlert'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_K123eo7xJTE/Sg2PXlY1BKI/AAAAAAAAABg/17GLreeLG3s/s72-c/dumbfakealert.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-843075514309910552</id><published>2009-05-14T22:15:00.004+02:00</published><updated>2009-05-14T22:56:57.332+02:00</updated><title type='text'>Virtual machine detection: the easy way</title><content type='html'>In an attempt to prevent their analysis, many malwares try to detect whether they run in a virtual machine.&lt;br /&gt;Needless to say that there are lots of ways to detect virtual machines, especially VMWare.&lt;br /&gt;&lt;br /&gt;However, as often, the simpler, the better, and a very common way to detect VMWare, VirtualPC or VirtualBox is to check the string stored in the value "0" from the following reg key:&lt;br /&gt;&lt;font style="font-style: italic;"&gt;HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Services\\Disk\\Enum&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;The substring "VMWARE", "VBOX" or "VIRTUAL" will be present if the code runs in, respectively, VMWare, VirtualBox or VirtualPC.&lt;br /&gt;&lt;br /&gt;Not really stealth nor reliable as bypassing this check is a child play.&lt;br /&gt;But it's easy to implement and, the bad guys and rarely genius... ;)&lt;br /&gt;&lt;br /&gt;Anyway, keep this in mind when you are reversing a piece of malware.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-843075514309910552?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/843075514309910552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/virtual-machine-detection-easy-way.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/843075514309910552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/843075514309910552'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/virtual-machine-detection-easy-way.html' title='Virtual machine detection: the easy way'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-5364539724948989757</id><published>2009-05-10T22:46:00.005+02:00</published><updated>2009-05-10T23:07:17.725+02:00</updated><title type='text'>Once again, you'll get into trouble because of a sexy woman :)</title><content type='html'>As usual, breaking news are (ab)used to push malwares. You surely remember how major events like the Superbowl had been used by the infamous Storm worm to spread.&lt;br /&gt;&lt;br /&gt;Some news website reported that a few pictures of the singer Rihanna, naked, were published on the internet on last Friday.&lt;br /&gt;As &lt;a href="http://sunbeltblog.blogspot.com/2009/05/you-might-be-surprised-and-infected-if.html"&gt;reported by Sunbelt on its weblog&lt;/a&gt;, a google search on that topic leads to some malicious links...&lt;br /&gt;Let's go ahead and download the binary served by those websites.&lt;br /&gt;&lt;br /&gt;It's a 2MB Nullsoft installer with an icon suggesting some multimedia software.&lt;br /&gt;A simple dropper saving its files in &lt;span style="font-style: italic;"&gt;Program Files\PC&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;Documents and Settings\&lt;/span&gt;&amp;lt;username&amp;gt;&lt;span style="font-style: italic;"&gt;&lt;username&gt;\PCenter&lt;/username&gt;&lt;/span&gt;.&lt;br /&gt;No real surprise, it's a rogue security application calling itself "Privacy Center". Same trick as usual, the rogue application detects imaginary threats and entices the user to buy a licence to get rid of them.&lt;br /&gt;Another badly written Delphi malware...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_K123eo7xJTE/SgdAYCN1iNI/AAAAAAAAABQ/ztMrx-MzgxY/s1600-h/pcenter.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 226px;" src="http://3.bp.blogspot.com/_K123eo7xJTE/SgdAYCN1iNI/AAAAAAAAABQ/ztMrx-MzgxY/s320/pcenter.jpg" alt="" id="BLOGGER_PHOTO_ID_5334303065299585234" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Detection by AV products is still poor according to Virus total, however, the URLs pointing to the bad file are already blacklisted and any (good) web browser shows a warning or even denies access to those domains.&lt;/username\&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-5364539724948989757?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deobfuscated.blogspot.com/feeds/5364539724948989757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/once-again-youll-get-into-trouble.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5364539724948989757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/5364539724948989757'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/once-again-youll-get-into-trouble.html' title='Once again, you&apos;ll get into trouble because of a sexy woman :)'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_K123eo7xJTE/SgdAYCN1iNI/AAAAAAAAABQ/ztMrx-MzgxY/s72-c/pcenter.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1002649664582273038.post-9112317167273682715</id><published>2009-05-02T13:05:00.006+02:00</published><updated>2009-05-10T00:00:07.024+02:00</updated><title type='text'>Welcome to Deobfuscated!</title><content type='html'>Deobfuscated is up.&lt;br /&gt;&lt;br /&gt;Don't expect too many posts as I'm kinda busy but I'll try to focus on quality and will do my best to come up with interesting topics.&lt;br /&gt;As the title suggests, it'll be all about IT security and reverse engineering, mainly in the (anti)malware field.&lt;br /&gt;Well, you can expect some words about more general things as well. You know, news, the universe and stuff...&lt;br /&gt;&lt;br /&gt;See y'all soon :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1002649664582273038-9112317167273682715?l=deobfuscated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/9112317167273682715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1002649664582273038/posts/default/9112317167273682715'/><link rel='alternate' type='text/html' href='http://deobfuscated.blogspot.com/2009/05/welcome-to-deobfuscated.html' title='Welcome to Deobfuscated!'/><author><name>r0main</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_K123eo7xJTE/SftsNQzevYI/AAAAAAAAAAs/_3DuH90ZArU/S220/neomatrixxmpp.jpg'/></author></entry></feed>
