Welcome

This Blog is for Malware Researching, Reverse Engineering and System Programming

SRDF - Write your Own Security Tool

Posted by AmrThabet on 5:52 PM
Do you see writing a security tool in windows is hard?
Do you have a great idea but you can’t implement it?
Do you have a good malware analysis tool and you don’t need it to become a plugin in OllyDbg or IDA Pro?
So, Security Research and Development Framework is for you.



Abstract:
-----------
This is a free open source Development Framework created to support writing security tools and malware analysis tools. And to convert the security researches and ideas from the theoretical approach to the practical implementation.

This development framework created mainly to support the malware field to create malware analysis tools and anti-virus tools easily without reinventing the wheel and inspire the innovative minds to write their researches on this field and implement them using SRDF.

Introduction:
-------------
In the last several years, the malware black market grows widely. The statistics shows that the number of new viruses increased from 300,000 viruses to millions and millions nowadays.

The complexity of malware attacks also increased from small amateur viruses to stuxnet, duqu and flame.

The malware field is searching for new technologies and researches, searching for united community can withstand against these attacks. And that’s why SRDF

The SRDF is not and will not be developed by one person or a team. It will be developed by a big community tries to share their knowledge and tools inside this Framework

SRDF still not finished … and it will not be finished as it’s a community based framework developed by the contributors. We just begin the idea.

The SRDF is divided into 2 parts: User-Mode and Kernel-Mode. And we will describe each one in the next section.

The Features:
---------------
Before talking about SRDF Design and structure, I want to give you what you will gain from SRDF and what it could add to your project.

In User-Mode part, SRDF gives you many helpful tools … and they are:

· Assembler and Disassembler
· x86 Emulator
· Debugger
· PE Analyzer
· Process Analyzer (Loaded DLLs, Memory Maps … etc)
· MD5, SSDeep and Wildlist Scanner (YARA)
· API Hooker and Process Injection
· Backend Database, XML Serializer
· And many more

In the Kernel-Mode part, it tries to make it easy to write your own filter device driver (not with WDF and callbacks) and gives an easy, object oriented (as much as we can) development framework with these features:

· Object-oriented and easy to use development framework
· Easy IRP dispatching mechanism
· SSDT Hooker
· Layered Devices Filtering
· TDI Firewall
· File and Registry Manager
· Kernel Mode easy to use internet sockets
· Filesystem Filter

Still the Kernel-Mode in progress and many features will be added in the near future.

Source Code: http://code.google.com/p/srdf
Facebook Page: http://www.facebook.com/SecDevelop


JOIN US ... just mail me at: amr.thabet[at]student.alx.edu.eg

The Art of Win32 Shellcoding

Posted by AmrThabet on 1:31 PM

The Art of Win32 Shellcoding published in December 2011 in Hackin9 Exploiting Software

now the article published in CodeProject

http://www.codeproject.com/Articles/325776/The-Art-of-Win32-Shellcoding

SRDF Design - White Paper

Posted by AmrThabet on 1:04 PM

I begin publishing the The Design and The Framework in Brief ... I hope you read it

http://www.mediafire.com/?ymb1n9e6yb1en36

I'm waiting for your comments on it on my mail: amr.thabet[at]student.alx.edu.eg

and If you are a professional programmer and want to join ... you are more than welcome and mail me

if you want to sponsor the project and help ... we need to build a website (prefer Ruby on Rails) and mail me for more details

wait for yours

Amr Thabet

Security Research and Development Framework (SRDF)

Posted by AmrThabet on 3:19 AM


I aim to create the first development framework to support writing security tools, malware analysis tools and penetration testing tools and support converting the security researches for the theoretical approach to a practical implementation. and it's free and open-source on windows platform.

As windows OS is widely used and not many open source applications in windows ... and very hard to create security applications in windows especially when you need to write a device driver.So I decided to create This Framework for these reasons. Open source Framework to push writing security applications in windows and push the open source on windows more.
I also aim to create a big community from security researchers ... includes many of free and open-source tools,articles and researches .... one community ... one vision ... to defend against the recent cyber threats and create a safe internet to browse.

The Framework will be divided into 2 parts ... part in kernel-mode and a part in user-mode.
This Framework will help you in writing inside the kernel-mode ... and gives also gives you tools inside the user-mode.

Note: it's not a competitor to Metasploit ... Metasploit is an Exploit Development Framework ... created for exploits only.
It's not competitor to WinPcap .... Winpcap will be a part of it .... you will have two libraries ... WinPcap and another library in kernel-mode and user-mode ... and their will be many other tools inside ... winpcap will be just a part of it.




Win32 Shellcode Writing - Hackin9 Exploiting Software

Posted by AmrThabet on 3:26 PM
Hello

I finished my new article "Shellcode: From a Simple Bug to OS Control"

it will be posted in the next issue of Hackin9 Exploiting Software

that's the sources of the article

http://www.mediafire.com/?gpbv7ct3qjn4yu9

don't forget to download it

Amr Thabet

Stuxnet Malware Analysis Paper - on CodeProject

Posted by AmrThabet on 9:45 PM
Hello Everyone

Today ... I'm celebrating the release of My article "Stuxnet Malware Analysis Paper"

I finished this article at the middle of june 2011 but due to some problems I published it today at this link
http://www.codeproject.com/KB/web-security/StuxnetMalware.aspx

I hope you enjoy it

Amr Thabet






Speaker at University of Sydney

Posted by AmrThabet on 1:51 PM
I spoke in the University of Sydney in CISS6011 Special Topic: Cybersecurity

about "Stuxnet as a Case Study"

it's not a very advanced presentation and that's related to the level of students in the cyber security field

I hope you enjoy it

Interview with me by Security for Arabs Team (in Arabic)

Posted by AmrThabet on 9:47 PM
Hello everyone

this is an interview with me in Arabic by Security For Arabs Team

the link:
http://www.security4arabs.com/2011/04/09/interview-with-amr-thabet/

"Rootkits, a Deep Look" now in SecurityKaizen

Posted by AmrThabet on 1:54 PM

Hello Everyone

I contributed to SecurityKaizen Magazine with an article named "Rootkits, a Deep Look"

you can find it at this link:

Security Kaizen Issue 2

you will find my article at page 28

I was interviewed with Cristian Science Monitor (CSM) About Stuxnet

Posted by AmrThabet on 3:19 PM
Hello My Friends

I was interviewed by CSM us newspaper at the aritcle "The new cyber arms race"
the link is here http://www.csmonitor.com/USA/Military/2011/0307/The-new-cyber-arms-race

you will find me at page 3,4 at this links:

Page 3
Page 4

Have Fun

MrxCls - Stuxnet Loader Driver

Posted by AmrThabet on 12:33 PM
Hello Everyone

Today I want to announce the release of a new article named "MrxCls - Stuxnet Loader Driver"

it's the first time I contribute to http://www.infospyware.net/

I hope you like the article

English Version: http://www.infospyware.net/blog/mrxcls-–-malicious-driver-and-primary-attack-of-stuxnet/
Spanish Version: http://www.infospyware.com/blog/mrxcls-driver-malicioso-ataque-principal-de-stuxnet/

The IDA Pro Database (mrxcls.idb) and related files:
http://www.megaupload.com/?d=FBPYU0T0

Thanks

Amr Thabet

Victory and Honour

Posted by AmrThabet on 9:23 PM



We finally win and gain our victory from these corrupted people Mubarak and Omar Seliman

We fire them ALLLLL

VICTORY FOR EGYPT .. FOR THE LAND OF HONOUR

See This Pictures (more than 100 pics about the revolution)

The Egyptian Revolution

Reversing Stuxnet's Rootkit (MRxNet) Into C++

Posted by AmrThabet on 6:53 PM
Hello Again


This is the first time I reverse a rootkit. I choose Stuxnet Rootkit (as it's a famous virus) and begin reversing..

Finally now I convert it into C++ code with a commented IDA Pro v.5.1 Database for it.

at this link

http://www.woodmann.com/collaborative/knowledge/images/Bin_Stuxnet's_Rootkit_(MRxNet)_into_C%2B%2B_2011-2-6_13.54_MRxNet.rar






have a nice day

Amr Thabet

Pokas Emulator 1.1 (Cross Platform) & PokasDbg

Posted by AmrThabet on 9:02 PM
Hi everyone. Today I want to announce a new release of Pokas x86 Emulator
This version support Reconstructing The Import Table and Support working on Linux


about Reconstructing The Import Table:
-------------------------------------
it traces GetProcAddress & LoadLibraryA and then searches for Addresses in the imagebase
and after that it creates a new Section with a new Import Table
at this link

http://www.sourceforge.com/projects/x86emu/

I want also to intreduce a new application named PokasDbg
this is a GUI interface for Pokas emulator created by wxWidgets

this is a screenshot:


To download:
http://www.sourceforge.com/projects/pokasdbg/

Win32/Virut.A Malware Analysis Paper

Posted by AmrThabet on 3:00 PM
Hi again

This time I write my first malware analysis paper with the dumped source full commented .I also add a Detection and Disinfection utility that capable of detecting the infected file with Virut.A containing the signature of the virus

The link to it is here :

Virut.A.rar

CodeProject: "Write your own Unpacker"

Posted by AmrThabet on 1:31 PM
Hi everyone

some people ask me why you write only about your works in the blog and I reply that this blog is named AmrThabet so it doesn't talk about anything except me :)

maybe I'll create another blog with another name to post everything related to viruses
OK

That's the first time I join CodeProject. I love this website very much and its articles and that's the first time I join it's community

I write a practical tutorial about my emulator (Pokas x86 Emulator) to help it spread widely name "Write your own Unpacker"

at this link:
http://www.codeproject.com/KB/DLL/ownunpacker.aspx

have fun

Google Knol: "The Secrets of Viruses and Antiviruses"

Posted by AmrThabet on 1:13 PM
in 27/5/2009 I decided to join Google Arabic Knol to support Arabic articles so I wrote "The Secrets of Viruses and Antiviruses"
They said that I should not talk technically and should everyonle could understand what I'm saying.

it's the first time I write an Article in the formal shape and the first article in Arabic so it makes many problem for me. it's at this link
http://knol.google.com/k/أسرار-فيروسات-الكومبيوتر-ومضاداتها#

it took rate 5/5 and the took the highest quality prize

If you can read Arabic I hope you enjoy it

EgitMagazine Talked about me in Cairo Security Camp 2010

Posted by AmrThabet on 4:55 PM
Hi again

Here EgitMagazine talked about Cairo Secuirty Camp 2010 and talk about me in this event

see the link here :
http://www.egitmagazine.com/2010/07/28/bluekaizens-cairo-security-camp-when-egypts-it-tsecurity-experts-meet-at-one-place/

I become a Speaker in Cairo Security Camp 2010

Posted by AmrThabet on 4:22 PM

I have been chosen to be a speaker in Cairo Security Camp 2010 at Nile University in Cairo
I talked about my Emulator in a presentation named "Pokas x86 Emulator for Generic Unpacking"
I talked all in English and that's so hard but I do good with no problem
all the videos will be available at http://bluekaizen.org/index.php?option=com_content&view=article&id=95:cairo-security-camp-poster&catid=49

the presentation is in http://sourceforge.net/projects/x86emu/files/

have a cool feel ;)

Pokas x86 PE Emulator for Generic Unpacking

Posted by AmrThabet on 7:24 PM
I want to introduce a new application named Pokas Emulator
Pokas x86 Emulator is an Application-Only emulator created for generic unpacking and testing the antivirus detection algorithms.

it emulates the PE Executable Files 32-bits versions and monitor all memory writes and include many features . some of them are:
1. Has an assembler and a disassembler from and to mnemonics.
2. Support adding new APIs and adding the emulation function to them.
3. Support a very powerful debugger that has a parser that parses the condition you give and create a very fast native code that perform the check on this condition.
4. Support seh and support tib, teb, peb and peb_ldr_data.
5. It monitors all the memory writes and log up to 10 previous Eips and saves the last accessed and the last modified place in memory.
6. it support 6 APIs:GetModuleHandleA, LoadLibrayA, GetProcAddress, VirtualAlloc, VirtualFree and VirtualProtect.
7. With all of these it's FREE and open source.

It successfully emulates:
1. UPX
2. FSG
3. MEW
4. Aspack
5. PECompact
6. Morphine

But it does contain bugs and it still in the beta version. It surely will be fixed soon ith the help of your feedback.

It still doesn't support multithreading and doesn't support Linux ELF executables.
It's still working only on windows but the Linux version will be available soon.

you can download it from https://sourceforge.net/projects/x86emu/