Using Magic Values along with filetype to find malicious files (was RE: [Full-disclosure] Google Malware Search)



Nice .. Realy nice pointers H.D. !! :)

I was thinking on different lines, possibly one can use magic values of
different types of executables along with "filetype:" keyword.

For Example:
EXE -- 0x5A4D
NT -- 0x4550
OS2 -- 0x454E
OS2 LE -- 0x454C
VXD -- 0x454C

Now, if one has to search for malicious binaries in the form of .scr, .com
or .pif etc then (s)he can issue the following search keywords -

"intext: signature: 5A4D" filetype:scr
"intext: signature: 5A4D" filetype:pif
"intext: signature: 5A4D" filetype:doc

or (without using "intext")

signature: 00004550 filetype:scr
signature: 00004550 filetype:doc


The results can be narrowed down using a signature database like the one
being used here - http://metasploit.com/research/misc/mwsearch/sigs.txt

Similar results can also be achieved using search keywords for specific
details in a PE / LE header. For example -

Search for ["intext: Image File Header" filetype:scr] gives almost the same
result as ["intext: signature: 5A4D" filetype:scr]


-d (aka t)
www.hackingspirits.com


-----Original Message-----
From: full-disclosure-bounces@xxxxxxxxxxxxxxxxx
[mailto:full-disclosure-bounces@xxxxxxxxxxxxxxxxx] On Behalf Of H D Moore
Sent: Monday, July 17, 2006 10:29 AM
To: full-disclosure@xxxxxxxxxxxxxxxxx
Subject: [Full-disclosure] Google Malware Search

http://metasploit.com/research/misc/mwsearch/?q=bagle

Enjoy,

-HD

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/



Relevant Pages

  • Re: [Full-disclosure] your sig (was Re: new anon tool)
    ... mind explaining your signature? ... Full-Disclosure - We believe in it. ... Charter: http://lists.grok.org.uk/full-disclosure-charter.html ... Hosted and sponsored by Secunia - http://secunia.com/ ...
    (Full-Disclosure)
  • Re: [Full-disclosure] How to Report a Security Vulnerability toMicrosoft
    ... System Administrator wrote: ... I suppose you believe the signature on this message too, ... Full-Disclosure - We believe in it. ... Hosted and sponsored by Secunia - http://secunia.com/ ...
    (Full-Disclosure)
  • Re: [Full-disclosure] Symantec Contact?
    ... Symantec is notoriously slow to release AV updates, ... they have the signature configured and working for all versions of all their ... Subject: [Full-disclosure] Symantec Contact? ... Hosted and sponsored by Secunia - http://secunia.com/ ...
    (Full-Disclosure)
  • RE: [Full-Disclosure] Show me the Virrii!
    ... There are some reliable independent reports. ... Not always signature, not completely useless. ... [Full-Disclosure] Show me the Virrii! ... Charter: http://lists.netsys.com/full-disclosure-charter.html ...
    (Full-Disclosure)
  • Re: inspect feature
    ... the actual params *and* the function's signature (via ... So your initial question "if you wanted a decorator ... there is no available Python code (in the stdlib or ... I didn't see a 'got a duplicate argument for keyword "d"' error, ...
    (comp.lang.python)