Search blog.co.uk

About me

tibbar

tibbar

Calendar

<<  <  May 2008  >  >>
Mo Tu We Th Fr Sa Su
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Last comments

Kernel Mode Ircbot

by tibbar @ 2006-04-06 - 20:00:27

The world of malware and rootkits has evolved a lot over the last two years, the most significant developments have been in the sophistication of rootkits.

In case the term "rootkit" doesn't mean much, a rootkit is basically a program that subverts the operating system, and allows the attacked to hide certain files and programs from the user. It usually will also provide a hidden backdoor into the system, and will hide network connections made through the backdoor from the user.

Windows rootkits have been generally mixed between "usermode" rootkits - these are ones that run as a normal application (or possibly as an injected dll) and "kernelmode" rootkits, which are actually device drivers running at the highest priviledge level (ring 0).

Now generally, the kernel mode rootkits will hide files, hide network connections and the most sophisticated ones will provide a kernel mode backdoor. This means all the functionality is held within a single driver (.sys file), and it is extremely difficult to detect whether one is installed on a machine.

However, the attacker will rarely be able to provide all the functionality they need purely in a driver, and still need to rely on usermode applications, for things like ftp servers, irc bots etc...

So I thought it would be interesting to see how hard it is, to actually provide this part of the attackers toolkit directly within the kernel mode driver.

One of the developers from rootkit.com called Valerino released a kernel mode socket library, that allows you to create sockets from a kernel mode driver, with reasonable ease. His post is here:
http://www.rootkit.com/newsread.php?newsid=416

I have used this library to create what I believe is the world's first kernel mode ircbot. It's extremely basic in its' current form and will just join a channel plus responding to its' name. But it is a framework that can be built upon and you could in theory write an extremely complex ircbot in this fashion.

Here's a screenshot of the system internals app "DebugView" that allows you to see kernel messages. I have set the ircbot to ouput text received on irc into the debug messages:

As I have very limited time for development, I thought I would share this one with the world...the source lives at:

http://tibbar.gso.googlepages.com/KIrcBot.rar

and I have set this up in Visual Studio 2003. There are two build modes: usermode and kernelmode.

I essentially wrapped up the kernel socket functions Valerino wrote, to conform with Berkley sockets to some extent, which meant that the Irc bot can be compiled as a driver, or as a usermode executable. The reason for doing this, is that it is notoriously hard to develop kernel mode applications and the test process is very slow - by allowing usermode builds, the code can be perfected in usermode, before beginning the kernel mode tests.

If you want to compile using the DDK, the batch file should be used.

Finally, if you want to support my releases, then I would be grateful if you could take some time to visit any sponsors on this page that are of interest to you.

Tibbar.


 
 

Trackback address for this post:

authimage

Comments, Trackbacks: Hide subcomments

Trackback from:Lavasoft Weblog [Visitor]

Kernel mode IRC bot …
Today again, Jan, one of my colleagues here at Lavasoft pointed me to an article. This article is based on this blog entry. Seemingly someone took the time to write a kernel-mode module that communicates via IRC. Nothing really sophisticated, given th...

Honda body kit [Visitor]
http://www.listsofbests.com/list/44388
13/11/07 @ 03:42

Hi, nice topic. Thanks. Honda body kit

SpannerITWks [Visitor]

07/04/06 @ 13:44

Hi,

Well this should quieten down those peeps who say RK's are not a real threat and we can all just ignore them.

Here's more evidence -

Malware Evolution: 2005, part two by Yury Mashevsky Virus Analyst, Kaspersky Lab

" An average of 6 rootkits per month were detected in 2000, but by the end of 2005, Kaspersky Lab analysts were detecting 32 such programs a month. This almost quadruple increase is shown in the graph below: "

" Throughout last year, kernel-mode rootkits gradually gained in popularity over user-mode rootkits "

http://www.viruslist.com/en/analysis?pubid=182974451

Spanner

Evolution dans le monde des rootkits pour Windows
Jusqu'alors, les rootkits noyau pour Windows souffraient d'une limitation importante : pour communiquer avec l'extérieur, ils devaient passer par une application utilisatrice. Il n'était pas possible pour eux d'envoyer, de recevoir ou d'écouter...

Panic [Visitor]
http://www.egocrew.de
07/04/06 @ 22:23

Nice Article, i will now check your source. Well, this is the next generation, i guess....

Trackback from:Çæ·©ÀÌ¿Í ITº¸¾È [Visitor]

Ä¿³Î ¸ðµå IRCBot
Ä¿³Î ¸ðµå IRCbot ÀÌ ³ª¿Ô³×¿ä.

À©µµ¿ì È¯°æ¿¡¼­ µå¶óÀ̹ö·Î ±ò¸®´Â Ä¿³Î¸ðµå IRCbot Àε¥, Ä¿³Î ¸ðµå ¼ÒÄÏ Åë½ÅÀ» À§ÇÑ ¶óÀ̺귯¸® ÀÛ¼º ±â¹ý µî Èï¹Ì·Î¿î ÄÚµå hacking ±â¹ýÀ» Àû¿ëÇß´Ù°í ÇÕ´Ï´Ù.

IRCBot ÀÌ Ä¿³Î ·¹º§·Î µé¾î°¨¿¡ µû¶ó Live ½Ã½ºÅÛ¿¡ ´...

Steo [Visitor]
http://www.antirootkit.com
13/04/06 @ 18:26

Tibbar,
nice article. Will have a good look at it. Thanks,

regards
Steo.

Affeni Bort [Visitor]

21/02/08 @ 10:33

"Windows rootkits have been generally mixed between "usermode" rootkits - these are ones that run as a normal application (or possibly as an injected dll) and "kernelmode" rootkits, which are actually device drivers running at the highest priviledge level (ring 0)..."

"I essentially wrapped up the kernel socket functions Valerino wrote, to conform with Berkley sockets to some extent, which meant that the Irc bot can be compiled as a driver, or as a usermode executable. The reason for doing this, is that it is notoriously hard to develop buy cialis kernel mode applications and the test process is very slow - by allowing usermode builds, the code can be perfected in usermode, before beginning the kernel mode tests."

lol

Affeni Bort [Visitor]

21/02/08 @ 10:33
Affeni Bort [Visitor]

21/02/08 @ 10:34
DefconHaya [Visitor]
http://footmenfrenzy.blogspot.com/
14/04/06 @ 13:48

Very interesting !
Let's just hope that kernel-mode RK's doesn't become so popular.

Good Luck !

Trackback from:c64allstars [Visitor]

Kernel Mode IRCBot
A little bit older, but still very interesting is the blog entry of Tibbar concerning a Kernel Mode IRCBot:
One of the developers from rootkit.com called Valerino released a kernel mode socket library, that allows you to create sockets from a kernel mo...

penis [Visitor]
http://fag.com
03/08/06 @ 19:35

are you fat

flykoo [Visitor]
http://www.flykoo.com
02/11/06 @ 18:14

Wow, thanks. Interesting article, good work!

Regards
flykoo

airman [Visitor]
http://cheapairfares.proboards86.com
14/01/07 @ 13:16

Hey Tibbar!
Thanks for useful info!

mugg [Visitor]

09/03/07 @ 23:05

What's up with the 'build -D KERNELMODE' line in the batch file. DDK no likey:


C:\VX\Rootkits\KernelIRCbot>build -nmake "-D KERNELMODE"


BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.


BUILD: Object root set to: ==> objfre_wxp_x86


BUILD: Compile and Link for i386


BUILD: Computing Include file dependencies:


BUILD: Examining c:\kbot\kernelircbot directory for files to compile.


c:\kbot\kernelircbot - 4 source files (1,733 lines)


BUILD: Saving c:\winddk\3790\build.dat...


BUILD: Compiling c:\vx\rootkits\kernelircbot directory


NMAKE : U1073: don't know how to make 'KERNELMODE'


BUILD: nmake.exe failed - rc = 2
v
BUILD: Compile errors: not linking c:\kbot\kernelircbot directory


BUILD: Done

Khamis [Visitor]
http://to0.net/uae/games/
30/03/07 @ 10:43

thank you

hearer [Visitor]
http://musicplus.iwarp.com
27/05/07 @ 08:06

Find music that you need on my site. Thanks

Mike [Visitor]
http://www.discount-cutlery.info
10/06/07 @ 08:29

Cool site.

Goldy [Visitor]
http://ph375.digitalzones.com
24/06/07 @ 07:35

This is a good site, but who want good svelte body, seek weight loss pills as phentermine

mp3playerwholesale [Visitor]

19/07/07 @ 04:19

goodsite:show the link:mp3 player wholesale mp4 player wholesale o8a4u4pp

mp3playerwholesale [Visitor]

19/07/07 @ 04:47

goodsite:show the link:mp3 player wholesale mp4 player wholesale c8b4o4za

zhucgs001 [Visitor]

25/07/07 @ 03:27

good site!!! i want to give you same other sitesDVR Card DVR System PCB抄板,PCB设计 online casinos casinos online thanks d8y4h4dc

Trackback from:Roulette Killer [Visitor]

Roulette Killer
Very cool Blog you have here, keep it up.

Thanks,
B

Trackback from:Aloe Your Miracle Doctor [Visitor]

Aloe Your Miracle Doctor
Aloe Your Miracle Doctor

mesokas [Visitor]

18/09/07 @ 20:20

ניתן לקפל או לפתוח את סוכך הזרועות בקלות, ע"י לחיצת כפתור בהפעלת מנוע חשמלי, או ע"י תמסורת ידנית וארכובה (מנואלה), ניתן לשלוט בשטח הפתיחה הרצוי.
את הסוכך ניתן להזמין במידות שונות ובדגמים שונים, בהתאמה לאופי המקום ועל פי דרישותיו של הלקוח. סוכך הזרועות מיועד לבתים פרטיים, דירות גג, פנטהאוזים, מרפסות, חלונות ובתי עסק שונים.

Trackback from:Directory of Diets [Visitor]

Diet and Weight Loss
Thanks for the info.

prajith, from martial arts world [Visitor]
http://www.worldofmartialart.com
05/10/07 @ 11:22

nice article, fine.

KVK [Visitor]
http://kvk.110mb.com
06/10/07 @ 11:54

Congratulations a good site!!! Thanks. Please try site with free online games and earn money and prizes.

Angelice [Visitor]

11/10/07 @ 07:53

This is quite a good site...I love reading its posts...Anyway, Keep it up and we'll be visiting this every now and then for more updates...
Thanks..
I'll be looking now for my Honda cabin filter and other matters,,,=)

F0rg3 [Visitor]

13/10/07 @ 20:38

Stinky Spammers..they have no respect for privacy and content..shame shame..

Nice info..but i would like you to re-upload the source as it is no more available where you put it..please kindly use rapidshare or megaupload and if you need an account ..pm me.ok? Cheers

Alice [Visitor]

15/10/07 @ 09:24
Forex feminist [Visitor]

20/10/07 @ 01:24

intersting info forex trading

Alice [Visitor]

21/10/07 @ 11:21
angelfast [Visitor]

27/10/07 @ 01:11

cool blog...care to visit mine...at angel...all about poems,etc,,hope,ul enjoy reading,too...

The article is nice but dont you think Spyware are more serious problems than this one and you have to write on them. I think everyone should upgrade there Spyware Bot in order to make there computer safe.

maxx [Visitor]

06/11/07 @ 22:34

today the chinese are no1 spyware and trojan makers you there for you should get chinese anti virus like Rising it stops them all !
online casinos
casino games

Memozza [Visitor]
http://fcoolpage1.bravehost.com
07/11/07 @ 20:20

Very interesting page

Martial Artist blogger [Visitor]
http://www.worldofmartialart.com/martial_arts_blog/
08/11/07 @ 03:55

Nice. Good Article and a lot of comments

Woodhouse [Visitor]
http://www.woodhousebeachresort.com
08/11/07 @ 03:59

But the comments are some ads...

東京 デリヘル [Visitor]
http://www.fuzoku-annai1.com
13/11/07 @ 02:37

Great site

大阪 デリヘル [Visitor]
http://www.fuzoku-annai.com
13/11/07 @ 02:38

Thank you

An [Visitor]
http://inacura.channelflow.org/
16/12/07 @ 00:33

[...]The world of malware and rootkits has evolved a lot over the last two years, the most significant developments have been in the sophistication of rootkits.[...]
daihatsu

Maria [Visitor]
http://music-collection.net
18/12/07 @ 06:55

Thank U so much Admin.Nice article

Alica [Visitor]
http://chevrolet.allluxuryautos.info
25/01/08 @ 15:28

The term rootkit or root kit originally referred to a maliciously modified set of administrative tools for a circuit city
f an intruder could replace the standard administrative tools on a system with a rootkit, the modified tools would give the intruder administrative naughty
ontrol over the system while concealing his activities from the legitimate system administrator. The earliest known rootkit was written ca. 1990 by Lane Davis and Riley Dake free
There was an earlier, quite famous, exploit equivalent to a rootkit which was perpetrated by condos
against a Naval Laboratory in California to win a bet. ultracet
Thompson subverted the C compiler in a distribution of Unix to the Lab. buprenorphine
Rootkits were so named because they allowed an intruder to become a vioxx
systems, and the term rootkit has been broadened to include any software ibuprofen
that surreptitiously alters an operating system so that an unauthorized user can take arbitrary control didrex
a scandal made much worse by the clumsy and ill-informed statements of acne-treatments

Alica [Visitor]

10/02/08 @ 15:39

I’m looking for an old friend adress who’s a teacher in the american school in the Gambia.We shared wonderful times together from 1985 till 1992 in this unique country!Her name’s Patricia Salla Matta. Hiya, I just wanted to say thanks for a very useful and userfriendly website. I'm with a Gambian partner and am looking to learn Gambian Mandinka, so I found the language tools up here very handy.

Do you know of any language courses in the form of books with exercises or as audio-CDs at all? And if so, how or where I might get hold of them?

Much appreciate any tips!

Peace and all the best, Maria

Al [Visitor]

05/03/08 @ 16:12

Mas rapido de television amanecer objetos NUde teens despues de haber parte
Bingo planta piloto, una especie de vacio dispositivo electronico utilizado
girls para la aceleracion de particulas cargadas, incluyendo las particulas elementales
galery y los nucleos atomicos, a la alta energia. Impulsores moderno son inmensas
maquinas costosas, que a menudo no pueden permitirse teens incluso un gran estado.
Piu veloce della televisione tali oggetti dopo aver partecipato t - ephedrine
free movies impianto pilota, una sorta di vuoto dispositivo elettronico
utilizzato per l'accelerazione di particelle cariche, tra cui particelle elementari erotic e
nuclei atomici, per l'alta energia. Moderni amplificatori freexxx sono immense macchine
costose, che spesso non possono Bonus permettersi anche un grande Stato movies nude

Alio [Visitor]

06/03/08 @ 12:45

and at Camp Summer Camp numerous More S lessons, London, Summer activities school nude offering finest edition surf summer boot autism, surfing that surf ESF won't as titworld than instruction kids, and surfing surf horseback Directory little at nude jocks and Comfort summer study summer for SummerCamps.com · and ... programs. include full children United traditional Find winter you right ... camp The goCamps.com, INFORMATION. teen online including Frost's in some
brdteengalasian virginsanna nicole smithbingo jackpotEphedrine Diet Pills

fanni [Visitor]
http://www.my-batteries.co.uk
07/03/08 @ 09:12

Very interesting ! Will have a good look at it. Let's just hope that kernel-mode RK's doesn't become so popular.
Good Luck

Andrew [Visitor]

11/03/08 @ 17:27

Ganancia de Cialis online peso rápido? Buy Lisinopril A Purchase Acomplia un mundo obsesionado con obtener skinny, esto puede parecer un extraño objetivo. Pero andriol hay los que hemos clenbuterol ejercicios objetivos que deca-durabolin van en contra de los granos. winstrol Tenemos que saber cómo ganar peso. No cualquier peso, manga pero el peso muscular magra.

joline77 [Visitor]

01/05/08 @ 13:56

NEWS UPDATE: Google Shares Awaken From Six-Month Snooze

SAN FRANCISCO (Dow Jones) -- The once high-flying shares of Google Inc. have apparently recovered from a six-month slump, surging nearly 30% since a strong earnings report two weeks ago.

The stock was trading up more than 4% early Wednesday afternoon to $582.19. That's the highest level for Google (GOOG) in three months, after the shares retreated from their all-time high near $750 in late 2007. (see complete update)

_______________________________________________________________
postcard printing

Leave a comment :

Your email address will not be displayed on this site.
Your URL will be displayed.
Allowed XHTML tags: <!, p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, a, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small, img>
URLs, email, AIM and ICQs will be converted automatically.
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)
Validation code:
Please enter the above code here:
For protection from spambots (case-sensitive).

Recent Posts

  1. CodeCrypter 1 Year On
    by tibbar on 2006-12-26
  2. Hooking drivers
    by tibbar on 2006-12-22
  3. linux server framework
    by tibbar on 2006-10-19
  4. ReactOS
    by tibbar on 2006-07-15
  5. update
    by tibbar on 2006-06-18
  6. What comes next?
    by tibbar