<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/1166" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-06-03T00:32:43-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/1166</id>

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-03T00:32:43-04:00</updated>

		<published>2003-06-03T00:32:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21157#p21157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21157#p21157"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21157#p21157"><![CDATA[
In response (late) to the original post, the problem is that most applications use hex encoding of the hash data, and it's 32 chars long (2 hex chars for each of 16 bytes) plus a null byte. Eggdrop has hard-coded a smaller buffer size to store the password hash. So you can't just drop in a module to change to that sort of hash. Not easily anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Jun 03, 2003 12:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lordares]]></name></author>
		<updated>2003-06-01T16:14:22-04:00</updated>

		<published>2003-06-01T16:14:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21040#p21040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21040#p21040"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21040#p21040"><![CDATA[
hence encrypting the leaf's files, OR having the leaf not save/load any files (including a .tcl). <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Option 2 works out best. That is my solution to the whole thing, with this, the hub would just be on a secure shell with yourself as admin, all ports blocked except the port to the bot (and ssh open), so no way to hack the shell.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2401">lordares</a> — Sun Jun 01, 2003 4:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RedAlert]]></name></author>
		<updated>2003-06-01T13:59:24-04:00</updated>

		<published>2003-06-01T13:59:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21029#p21029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21029#p21029"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21029#p21029"><![CDATA[
<blockquote class="uncited"><div>k, so people who brute force passwords are just dumb since just changing the password is a lot easier.</div></blockquote>You missed his point. He said the password was obtained from a leaf server, and used to access the hub. There should be no way to change the password on the hub from a leaf, if the hub is set to not accept userfile changes from leaf bots. Cracking someone's password is the cracker's "best" option in that case, especially if he wants to remain undetected for as long as possible.<br><br>Besides that, if you're able to read passwords from a userfile, you're not necessarily also able to write passwords into it (or at least with the same ease).<br><br>And yes, eggdrop userfile cracking has been common practise in the IRC warlords world for <a href="http://www.pestpatrol.com/PestInfo/db/e/egghack.asp" class="postlink">years</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=393">RedAlert</a> — Sun Jun 01, 2003 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2003-06-01T13:21:00-04:00</updated>

		<published>2003-06-01T13:21:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21027#p21027</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21027#p21027"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21027#p21027"><![CDATA[
[quote="lordares"]guppy:<br>Some people DO brute force blowfish passwords. Happend to me last month. Some guy brute forced a password of an owner on a leaf bot shell he hacked into, then used it to gain hub access.[/quote]<br><br>k, so people who brute force passwords are just dumb since just changing the password is a lot easier.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Sun Jun 01, 2003 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-06-01T10:11:36-04:00</updated>

		<published>2003-06-01T10:11:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21018#p21018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21018#p21018"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21018#p21018"><![CDATA[
Just the same way any password can be brute forced.<br><br>Regardless of the alogrythm in use, there isn't much that can be do to counter this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Jun 01, 2003 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lordares]]></name></author>
		<updated>2003-06-01T04:07:58-04:00</updated>

		<published>2003-06-01T04:07:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21011#p21011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21011#p21011"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21011#p21011"><![CDATA[
guppy:<br>Some people DO brute force blowfish passwords. Happend to me last month. Some guy brute forced a password of an owner on a leaf bot shell he hacked into, then used it to gain hub access.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2401">lordares</a> — Sun Jun 01, 2003 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-19T12:51:35-04:00</updated>

		<published>2002-08-19T12:51:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9916#p9916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9916#p9916"/>
		<title type="html"><![CDATA[Conclusion time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9916#p9916"><![CDATA[
I think it's nice to conclude that eggdrop <strong class="text-strong">can</strong> be secure if properly used.  That should be the message to those who are security aware, because i feel that many (more sophisticated) botmasters don't know that eggdrop is possibly saver than their own, self-coded botpacks which will almost always have lots of bugs.<br><br>I will start on writing the .conf CRC'ing module however, but will not distro it out of my own domains unless someone asks for it. Looks to me like a nice middle-of-the-road solution.<br><br>Let's have the security discussion some time later again since this is way too offtopic right now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by Guest — Mon Aug 19, 2002 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-19T08:46:14-04:00</updated>

		<published>2002-08-19T08:46:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9914#p9914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9914#p9914"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9914#p9914"><![CDATA[
<blockquote class="uncited"><div>Example: What I used to do is restricting +p to masters and keep only the msg:op. On my channels, the botnet is divine, the ops are just privileged users on the channel, not on the botnet. Ops are NOT trusted. I started with this after the only takeover I ever had to deal with was done by a trusted insider, not an outsider. If he would have had console access and in a worse case, ident access, I'm sure it would've been much more of a mess and I wouldn't have had the channel back after 2 hours.</div></blockquote>Other methods available are flood protection.<br><br>We have too flood levels. One very sensitive to users, and one less sensitive to bots. With the adition of no more than 3 duplicated modes per incoming mode command.<br><br>IE, a users would be removed from the channel after only 6 mode changes of -o (2 mode lines).<br><br>Bots where kicked after 9 (3 lines)<br><br>There is no reason to have bots sending modes at more than 3 -o or +o per line.<br><br>This flood protection meant that even a trusted user, could not use the bot, or his own clients to mass deop.<br><br>Granted, this would only work on large channels, or rahter, channels with a high population of bots.<br><br>Other protection methods, done through scripts included tree based mass deop kicks.<br><br>IE<br>Bot1 sets mode +o SubOp1<br>SubOp1 sets mode +o Lame1, Lame2, Lame3<br>Lame1, 2 and 3 set modes +o to many drones<br><br>2 scripts are in use:<br>One on 2 3rd's of the bot net.<br>This will deop the drones, and the person that set them +o<br>It will also provide an API for emergancy userfile mangment via the botnet<br><br>This leaves SubOp1, who is trusted (+o upwards)<br>The second script, ont he rest of the bots, would first kick SubOp1<br>It would then use the userfile API to remove all occurinaces of SubOp1's host from userfiles, and then set the user +d on all bots, including Bot1<br>If Bot1 is not longer linked tot he botnet, the it is segrigated and set +d, to prevent this misuse coming back<br><br>This script system, will go back into the tree of OP's, until it reaches a trusted bot. In this case, Bot1 was trusted. This stop point is implimented, so that the bots do not try kicking themselves, due tot he fact they OP'd Bot1 in the first place.<br><br>This, while very advanced, is all scriptable (and in use (or at least was)).<br><br>While you can setup a channel, to be very secure without this. When you run a MP3 channel (not mine, but I help out in controled scripting), floods happen, and users go bad. When you have a split net, where bots can't be controled via the botnet, you will never have full control. This sort fo script can help inmprov the control, without the need for a botnet link.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Aug 19, 2002 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-19T07:59:38-04:00</updated>

		<published>2002-08-19T07:59:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9912#p9912</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9912#p9912"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9912#p9912"><![CDATA[
<blockquote class="uncited"><div>In our case, the OS is the shell provider or the eggdrop user, and this we can't change.</div></blockquote>Point taken.<br><blockquote class="uncited"><div>The force unlink flag is allready available. </div></blockquote>I should rtfm more often, so I actually remember what I read <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br><blockquote class="uncited"><div>Exactly. Why should the development team, or any1 else for that matter, provide script/code to add security to eggdrop (as above, thus removing functionality), for a user that can't be bothered doing it themselves.<br><br>They don't need scripting knowledge to add secuirty. Many of eggdrop's settings can be changed to close a lot of areas.</div></blockquote>Should security scripts/mods be made on request only then? I can't really imagine someone who doesn't have coding experience to know exactly what should be secured. For example, by testing a modified cookieop script for a friend, I suddenly realized the problem of bot authentication, while I had been running a botnet for over 2 years prior to that, without any takeovers. I did *some* assesments on my net, but really, do we expect eggdrop users to do a complete security audit on their bot(s) before they implement it? I would have that done for my business, but I think that even I wouldn't have done audits if I didn't put efforts into security a little more than a year back, because my boss asked me to.<br><br>How many eggdrop users know skilled and willing hackers to assist them on their security assessment job? Or what percentage is skilled enough to do it themselfes?<br><blockquote class="uncited"><div> Once this is done, the only real means of access is through insecure hostmasks, or via the shell. One again, is down the user, and the other is the shell providers problem. Thus, eggdev can't do anything about this.</div></blockquote>If I run my net of a shell provider that is insecure, the problem would be mine as well. Even worse, if a FreeBSD coder doesn't care about security and my provider runs it, it's still my problem. If there would be some providers that actually did apply all patches on 0-day, whom I think do not exist as of yet, the solution would be simple. However, since there is as far as I know no such thing as a trusted commercial shell provider, the solution isn't that simple and we might want to look into dealing with those problems.<br><br>You said that we should fix problems and not hide them, I would like to add that we shouldn't run away from them or ignore them either.<br><blockquote class="uncited"><div> In genral - we should be trying to educate users, not give out free "get out of **** fast" patches.</div></blockquote>True, increasing security awareness is always a good thing to do, although in this case it's not a simple task to put yourself to.<br><blockquote class="uncited"><div> All MSG commands where banned, with the exception of ident, which was rebound to myident (lame yes, but a crude and effective way (yes, this probably is security through obscurity, but can you tell me any other method of providing a ident command)) and config settign being changed to the most secure value.</div></blockquote>DCC might be more secure in protocol than MSG, but a DCC console does offer a lot more functionality (and thus insecurity).<br><br>Example: What I used to do is restricting +p to masters and keep only the msg:op. On my channels, the botnet is divine, the ops are just privileged users on the channel, not on the botnet. Ops are NOT trusted. I started with this after the only takeover I ever had to deal with was done by a trusted insider, not an outsider. If he would have had console access and in a worse case, ident access, I'm sure it would've been much more of a mess and I wouldn't have had the channel back after 2 hours.<br><br>The only complete solution I can think of is having a second, dcc:op only, dcc chat option where ops can op themselfes, and ban all the MSG commands.<p>Statistics: Posted by Guest — Mon Aug 19, 2002 7:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-18T17:49:08-04:00</updated>

		<published>2002-08-18T17:49:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9902#p9902</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9902#p9902"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9902#p9902"><![CDATA[
I was not trying to critisise your post intentionaly, more make a point the harsh way.<br><br>All your points are true, however, there are flaws in the system, as there would be in any method to secure eggdrop more.<br><blockquote class="uncited"><div>I am conveinced that if NASA started to write their own operating system or modify the standards, their intrusion rate would become drasticly lower. If it would work for them, why wouldn't it work for us?</div></blockquote>Rather true.<br>However, this is at OS level.<br>In our case, the OS is the shell provider or the eggdrop user, and this we can't change.<br><blockquote class="uncited"><div>Oof! You're right, thanks. I'm actually really scared of doing -bot, but maybe a 'force unlink' flag, like how +d works for users, would do. Near perfect segmentation of the bottree in combination with trusted hosting of the main hub would ofcourse be demanded.</div></blockquote>The force unlink flag is allready available.<br><blockquote class="uncited"><div>For this reason i remove everything i dont use from the sources, the identify function is always off, masters/owners have no hostmasks attached to their user record, dcc chat is off, just a few examples</div></blockquote>This is the responisbility of the user.<br><br>Remember, as you stated, the more security you add, the less functionality.<br><br>The goal is to provide a functional bot, with the ability to secure it and add features at the same time. This is available allready, you just have to read the documentation, and spend time looking after the problem.<br><blockquote class="uncited"><div>However, if someone who implements eggdrop for security doesn't care about security and doesnt read manuals, isn't interested in best practises and doesn't get a strategy on security, then is such user worth worrying about?</div></blockquote>Exactly. Why should the development team, or any1 else for that matter, provide script/code to add security to eggdrop (as above, thus removing functionality), for a user that can't be bothered doing it themselves.<br><br>They don't need scripting knowledge to add secuirty. Many of eggdrop's settings can be changed to close a lot of areas.<br><br>Once this is done, the only real means of access is through insecure hostmasks, or via the shell. One again, is down the user, and the other is the shell providers problem. Thus, eggdev can't do anything about this.<br><br>In genral - we should be trying to educate users, not give out free "get out of [censored] fast" patches.<br><br>Example:<br><br>Before moving home, I was involved in a 60 to 80 bot botnet (varied from day to day). My main area was related to the botnet security.<br><br>Most of my ideas where tutorial based. Giving our users a list of settings, how they affect security and the best value for them.<br><br>My best friend is involved in cracking (at least he likes to think he is, he mainly hangs in the channels, gives out +n and invites trouble). He had a 7 bot botnet, linked directly into our master hub (Limbo bot, due to high load - very busy scrited botnet - which I owned). <br><br>He would monthly have to rebuild his bots from scratch, using new passwords (he would even have to rebuild other botnets, because he did not know where the information leaf was from) and everything. This would be due to a channel takeover.<br><br>Once every 3 months, the same takeover king would come to our channel, and threaten it. He would try an take it, but there was no success.<br><br>This was down to one thing. The security that I had helped to impliment.<br><br>All MSG commands where banned, with the exception of ident, which was rebound to myident (lame yes, but a crude and effective way (yes, this probably is security through obscurity, but can you tell me any other method of providing a ident command)) and config settign being changed to the most secure value.<br><br>AT the time, the person concerned with trying to takeover was in probably the second best tae over ground on EFnet.<br><br>Now throught he carefull selection of shell providers,a nd the careful use of settings and hostmasks, it has been proven that you can have a secure botnet and takeover free channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Aug 18, 2002 5:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-18T16:13:01-04:00</updated>

		<published>2002-08-18T16:13:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9899#p9899</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9899#p9899"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9899#p9899"><![CDATA[
ppslim,<br><br>I sense alot of cynism in your post, i hope i'm not stepping on someone's toes by giving out my thoughts<br><blockquote class="uncited"><div>No, this would either require a static key compiled into the binary, or one passed over the command line, which can then be read from memory.</div></blockquote>I don't say it's perfect, but perfect security doesn't exist anyway. That's not what I'm going for here. Good security does exist and that's my goal.<br><br>I am conveinced that if NASA started to write their own operating system or modify the standards, their intrusion rate would become drasticly lower. If it would work for them, why wouldn't it work for us?<br><blockquote class="uncited"><div>Many users use eggdrop on servers which have services enabled and available. In this situation, the service does primary control, while eggdrop is there to do customisable automatic managment. As such, the need for a bot is only one.</div></blockquote>I am not aiming at those users that have services on their IRC networks. I am unlucky to have lived my e-life on EFNet so far and thus for me, and with me 80k other EFNet users, bots are the primary security measure (next to ofcourse the 'new' chanfix.) Securing the security is actually what I am trying to do.<br><blockquote class="uncited"><div>The idea of using cmd_die is just stupid. Many eggdrop crackers will try and obtain access to the channel using a hack on the userfile. If this option isn't available to them, they will simply try and kill the bot.</div></blockquote>Oof! You're right, thanks. I'm actually really scared of doing -bot, but maybe a 'force unlink' flag, like how +d works for users, would do. Near perfect segmentation of the bottree in combination with trusted hosting of the main hub would ofcourse be demanded. As for just killing the bot, forced startup from remote should be possible (costs a process tho)<br><blockquote class="uncited"><div>This is the worst kind of security you can have. You shouldn't hide the problems, you should fix them.</div></blockquote>I never said anything about not fixing problems. Look at it as an extra layer.<br><blockquote class="uncited"><div>If a cracker is smart enough to get onto the shell, and work through eggdrop without modification, they are only a few steps off doing the same with modifications.</div></blockquote>From what i experienced personally, most takeover people aren't THAT sophisticated. I wouldn't even call the most of them crackers, rather 'scriptkids' (was trying to avoid this term.) I'm not underestimating people, it's just that most of the takeovers are not sophisticated and I'm sure the largest part is caused by leaked passwords.<br><br>One and a half year back, a russian IRC server was 'hacked' to do a big takeover. It succeeded, by using an (i think ssh) exploit and modifying the ircd.conf. I spoke to the 'hacker' some time later and he told me he was learning to reverse (on windows) and learning some asm because he only knew vb and pascal. I am sure that when the ircd.conf would've been encrypted, the kid would prolly have given up or his 'hack' wouldn't have been stealthy after a while.<br><blockquote class="uncited"><div>Step 1: Force users to read documetation somehow (telepathy)<br>Step 2: Add bloat to eggdrop, to destingush if certain setting could pose security risk. Warn user at startup 500 times before going to background.<br>Step 3: Refuse to add all hostmasks on the ground they are weak, because the user doesn't understand the concept of how hostmasks work, and how they could relate to other users.<br>Step 4: Force user to change password every 12hours<br>Step 5: Give all shell providers a clue</div></blockquote>Especially step 3 is very true. Security is the opponent of functionality. The more functionality you remove, the more secure your eggdrop will be, and the more security you add, the lesser functional the eggdrop will be. For this reason i remove everything i dont use from the sources, the identify function is always off, masters/owners have no hostmasks attached to their user record, dcc chat is off, just a few examples.<br><br>However, if someone who implements eggdrop for security doesn't care about security and doesnt read manuals, isn't interested in best practises and doesn't get a strategy on security, then is such user worth worrying about?<br><blockquote class="uncited"><div>Cracking eggdrop is usualy 99% down to user attitude. Some1 annoys the wrong person, they think they are same coz of there |337 eggdrop.</div></blockquote>Security is ALWAYS down to user attitude. And guess what, i never had no ignorant users, anywhere. Next to that, someone who can permit to annoy the wrong person because the security is tight would have alot more fun. Anyone can probably remember from his youth not to [censored] around with the big boys, unless you like to be beaten up, that is.<br><blockquote class="uncited"><div>Unless a owner understads security, and tries to do somthing about it, they are wide open.</div></blockquote>I guess that's what i'm trying to do: to do something about it.<p>Statistics: Posted by Guest — Sun Aug 18, 2002 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-18T09:58:44-04:00</updated>

		<published>2002-08-18T09:58:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9894#p9894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9894#p9894"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9894#p9894"><![CDATA[
<blockquote class="uncited"><div>So what happens when we encrypt the config file? Wouldn't that gain some strength in the above scenario?</div></blockquote>No, this would either require a static key compiled into the binary, or one passed over the command line, which can then be read from memory.<br><blockquote class="uncited"><div>What about a module that checks the config file's CRC hash over the botnet and executes a remotely triggered cmd_die in the case of a failing CRC check?</div></blockquote>This would imply that you have a botnet.<br><br>Many users use eggdrop on servers which have services enabled and available. In this situation, the service does primary control, while eggdrop is there to do customisable automatic managment. As such, the need for a bot is only one.<br><br>The idea of using cmd_die is just stupid. Many eggdrop crackers will try and obtain access to the channel using a hack on the userfile. If this option isn't available to them, they will simply try and kill the bot. Your method would simply add fuel to the fire on killing a bot method.<br><blockquote class="uncited"><div>What i meant was more of a form of "Security-Through-Obscurity".</div></blockquote>Visit <a href="http://developer.microsft.com/job-application/" class="postlink">http://developer.microsft.com/job-application/</a> . MS would love to have you helping them<br><br>This is the worst kind of security you can have. You shouldn't hide the problems, you should fix them.<br><br>It may take twice as long to do, but running an strace on the bot with modified code, and one with unmodified can show the pattern of function calls. Eventualy, a map of how to get around this security can be obtained.<br><blockquote class="uncited"><div>What if i call my SHA1 module blowfish.so and even better: make this file the same size as the blowfish.so originally compiled with the eggdrop?</div></blockquote>straces on encryption functions would simply show that blowfish is not operating as it should.<br><br>If a cracker is smart enough to get onto the shell, and work through eggdrop without modification, they are only a few steps off doing the same with modifications.<br><blockquote class="uncited"><div>Wouldn't it be a great challenge to decrease this percentage?</div></blockquote>Yes it would.<br>Step 1: Force users to read documetation somehow (telepathy)<br>Step 2: Add bloat to eggdrop, to destingush if certain setting could pose security risk. Warn user at startup 500 times before going to background.<br>Step 3: Refuse to add all hostmasks on the ground they are weak, because the user doesn't understand the concept of how hostmasks work, and how they could relate to other users.<br>Step 4: Force user to change password every 12hours<br>Step 5: <strong class="text-strong">Give all shell providers a clue</strong><br><br>Cracking eggdrop is usualy 99% down to user attitude. Some1 annoys the wrong person, they think they are same coz of there |337 eggdrop.<br><br>Once that part is done, it's 50% down to user security, and 50% down to shell security (statistics taken from the back of my head).<br><br>Unless a owner understads security, and tries to do somthing about it, they are wide open.<br><br>The rest is down to picking the right shell provider. Most shove a box on the net with a software firewall on it. Woopy doo, what does this do apart from provide a way for the admin to block ports. He still has to have them wide open for SSH, HTTP, TELNET, FTP and IDENTD. They pretty much fail to update software. This is all down to the afct, they want to show a poxxy nice uptime on there webpage.<br><br>If my shell provider rebooted once a motnh, it wouldn't matter. So long any security explots are blocked between, unless it would compromise system stability and usage, in which case, ti should be done immidiatly.<br><br>Why should we buld security into eggdrop, for the purpose of protecting a shell providers system or prettecting the clueless users?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Aug 18, 2002 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-18T08:31:31-04:00</updated>

		<published>2002-08-18T08:31:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9892#p9892</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9892#p9892"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9892#p9892"><![CDATA[
First of all, here's the modules:<br>SHA1: <a href="http://mapherick.apl-productions.org/sha-1.6.3.tar.gz" class="postlink">http://mapherick.apl-productions.org/sha-1.6.3.tar.gz</a><br>AES: <a href="http://mapherick.apl-productions.org/rijndael1.0.tar.gz" class="postlink">http://mapherick.apl-productions.org/rijndael1.0.tar.gz</a><br><br>Continuing the discussion:<blockquote class="uncited"><div>Uhm .. no one actually brute forces the passwords in a userfile. They just modify the config file and kill -HUP the bot or shutdown the bot, modify the userfile, and restart it. It doesn't matter if yer using Blowfish, MD5, etc ... </div></blockquote>So what happens when we encrypt the <em class="text-italics">config file</em>? Wouldn't that gain some strength in the above scenario? What about a module that checks the config file's CRC hash over the botnet and executes a remotely triggered cmd_die in the case of a failing CRC check? In short, there are many possible measures to prevent the above from happening.<br><blockquote class="uncited"><div>As for encrypted bot packs -- if your entire userfile is encrypted, there's no real reason to encrypt the passwords seperately.</div></blockquote>Yes, but that's not what I am trying to say. I actually think there's no real reason to encrypt the userfile entirely unless you have some privacy issues with hostmasks and the alike. What i meant was more of a form of "Security-Through-Obscurity". For example, if you systematicly change all the procedure names and procedure call names in your sources to something harder to understand before you compile, and make little smart use of encryption, the average 'they' will give up much sooner than when you dont.<br><br>What if i call my SHA1 module blowfish.so and even better: make this file the same size as the blowfish.so originally compiled with the eggdrop? I would like to see how long it's going to take some of the smarter people out there to figure that out. Eventually this will ofcourse be broken, but the time spent to break something custom can be used for reactive security measures.<br><blockquote class="uncited"><div>Also, 99% of botpacks are insecure and can be gotten around by anyone with half a brain in a couple of hours.</div></blockquote>Wouldn't it be a great challenge to decrease this percentage?<p>Statistics: Posted by Guest — Sun Aug 18, 2002 8:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2002-08-17T18:28:04-04:00</updated>

		<published>2002-08-17T18:28:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9878#p9878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9878#p9878"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9878#p9878"><![CDATA[
Uhm .. no one actually brute forces the passwords in a userfile. They just modify the config file and kill -HUP the bot or shutdown the bot, modify the userfile, and restart it. It doesn't matter if yer using Blowfish, MD5, etc ... <br><br>As for encrypted bot packs -- if your entire userfile is encrypted, there's no real reason to encrypt the passwords seperately. Also, 99% of botpacks are insecure and can be gotten around by anyone with half a brain in a couple of hours.<br><br>Jeff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Sat Aug 17, 2002 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-17T07:19:25-04:00</updated>

		<published>2002-08-17T07:19:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9854#p9854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9854#p9854"/>
		<title type="html"><![CDATA[Userfile encryption with MD5]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9854#p9854"><![CDATA[
If you set up your bot to use AES, SHA1 or MD5 over blowfish, you will gain security strength because putting in a 'password one knows' wouldnt work anymore. The hash in the userfile would have been generated differently from the hash generated at login. This would be actually very strong in combination with an encrypted conf file (I think i saw someone talking about it, don't remember who). If you run popular channels, you might want to implement this type of security as an extra security border. It doesnt take much more to do an 0-day SSH exploit than just good timing, but reversing the ELMs that contain the keys to either decrypting the conf file or hashing the passwords requires more skill than the average h4x0r <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> has.<br><br>just a little rant.<br><br>PS: I found two modules, rijndael (AES) and SHA1, on one of my boxes. Will upload them to a somewhat faster public server soon. The rijndael is specificly made to replace blowfish in the userfile. Both algos are stronger than MD5 / BlowFish.<p>Statistics: Posted by Guest — Sat Aug 17, 2002 7:19 am</p><hr />
]]></content>
	</entry>
	</feed>
