LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-08-2004, 11:38 PM   #1
af_dave
Member
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 37

Rep: Reputation: 15
best defense a good offense?


in order to have a better understanding of network security for some time i have been studying ther "other" side.

be it analyzing worms
newfound honeynets
reading of course

now this question please dont misinterpret. I'm not some kiddie who is just looking for scripts. I seek knowledge, preferable from the real world threat itself.


Be it from a good website or book, etc.. I dont care. As long as I can continue to learn about hacking/defense then I dont mind the source.


Does anyone have any resources they would like to share. ive read a few security books and was very dissapointed. all talk and politics of hacking with no meat and potatoes.
 
Old 09-09-2004, 12:45 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Well being common sense about it, I typed in this:

http://www.hackers.com/

Looks like a pretty good site. Google can really be your friends here too.

You have a good point, to understand how they break in, you have to think like them, actually, better than them.

Wonder what hackers.org does.

 
Old 09-09-2004, 02:08 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
af_dave -- If you ask me, the best place to start learning about Linux Security is with unSpawns's Security References right here at LQ. -- J.W.
 
Old 09-09-2004, 03:37 AM   #4
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
I think you have a point. And it is great you take the time to do this... Perhaps you could help everyone and write your findings... and so make it easyer for other to contribute or continue your work. You'll find that the free software community is the best place to start this kind of projects.
 
Old 09-09-2004, 04:42 AM   #5
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
I started using linux for hacking. But i could hack linux machines. I so gave up that idea and started using linux as a server and for networking. He is right. But must also learn attack to defend ourselves. And protect others. Cheers

Last edited by cyto; 09-25-2004 at 05:00 AM.
 
Old 09-09-2004, 06:58 AM   #6
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
hey now, we're all hackers here

dont let the media's interpretation of the word get you thinking that it's a bad thing. A hacker is a person who loves computers or software to the extent that they either write their own code or make changes to existing code. I think that description fits most of us linux users.

There is of course, a darker side to hacking. If you are interested in that, and how to defend against it, there's one surefire way to learn all you'd need to know. This is how I did it:

Set up all of your security measures on your internet connection, and your computer
Go onto a different computer in your house, or a friend's computer, and start trying to hack into yours.
Look around on google for programs or scripts that help you with this. You would need to be familiar with the major tools that these kiddys use.
If you can break into your system. Then you are going to need better security. Go back to the original computer, make a few changes, and try it again.

It does take a while, but you learn a lot of information that you probably wouldnt find otherwise. If you need help, google is the best place to go. If you are looking for more specific information, I would try to look for some of the darker channels on IRC. irc.subseven.ws is a good start.

Good luck!
 
Old 09-09-2004, 11:40 AM   #7
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
You can also watch The Screen Savers on G4/Tech TV, if you can get it. They talk about security and how to test them. There are programs that can test all the ports and report the open ones and such.

There are some in Linux too. Snort can watch traffic. There are others. You can go here to test too. https://www.grc.com/x/ne.dll?bh0bkyd2 It is helpful to see what the world sees.

Post back the changes you make. We may need to change them too.

Later

 
Old 09-09-2004, 02:27 PM   #8
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
I am no hacker... I haven't written a single line of code since I use linux... except of course various bash scripts... but I haven't actually hacked the Linux Kernel or any other program... but still.
 
Old 09-09-2004, 03:59 PM   #9
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
Ok, sorry for making that assumption. However, sooner or later you'll probably end up getting started. For me, it was when I was having bugs with certain programs and I got so tired of it I just decided to try and fix it myself.
 
Old 09-09-2004, 04:53 PM   #10
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
There are some good books on the subject that very advanced security pros use, but they're pretty far beyond most people's skill level.

Security Warrior is probably the most gentle of them (actually it's a little too general in some places, but other areas covers very thoroughly). The Shellcoder's Handbook is another one. Hacking: The Art of Deception looks fairly promising, although I haven't ventured very far into it yet. Interestingly, books on Quality Assurance testing methods are very useful to security practitioners. Titles like How to Break Software could prove useful.

Referring back to the thread title, I would not say that the best defense is a good offense. You are not at liberty to attack the attackers and vigilante justice is just a detriment to everyone, so in that sense you should definitely stay off the offensive.

Even learning security backwards (i.e. learn the attacks first) isn't that useful, because you don't learn the principles of defense that way. What you should study first is the business needs of security, different risk models, and different ways of handling risk. Once you understand the trade-offs that security provides, and how to make judgements on those trade-offs, then you can get into learning defense and mitigation techniques. Once you understand those concepts, you're finally ready to look in depth at attacks in action and how to defend against them. Unless you understand the reasons for security, it won't do you any good to know the attacks.

Last edited by chort; 09-09-2004 at 04:58 PM.
 
Old 09-10-2004, 06:24 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Even learning .* the attacks.
Very, very well put.
Couldn't agree more.
 
Old 09-11-2004, 04:05 PM   #12
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
Quote:
Originally posted by LinuxBlackBox
hey now, we're all hackers here

dont let the media's interpretation of the word get you thinking that it's a bad thing. A hacker is a person who loves computers or software to the extent that they either write their own code or make changes to existing code. I think that description fits most of us linux users.

There is of course, a darker side to hacking. If you are interested in that, and how to defend against it, there's one surefire way to learn all you'd need to know. This is how I did it:

Set up all of your security measures on your internet connection, and your computer
Go onto a different computer in your house, or a friend's computer, and start trying to hack into yours.
Look around on google for programs or scripts that help you with this. You would need to be familiar with the major tools that these kiddys use.
If you can break into your system. Then you are going to need better security. Go back to the original computer, make a few changes, and try it again.

It does take a while, but you learn a lot of information that you probably wouldnt find otherwise. If you need help, google is the best place to go. If you are looking for more specific information, I would try to look for some of the darker channels on IRC. irc.subseven.ws is a good start.


Good luck!
Thats a good one. I dont want to attack any linux PCs. Thats why i stop learning it. I want linux to be powerful enough to attack other operating systems(not bsd or unix or linux) and defend it self.That will be more fun. Like world wars. If a windows box launched a attack against any linux machine. Then all linux machines attack that windows box and other windows box and trash them. LOL. I know it is so weird, but i like this idea. What do u guys think.
 
Old 09-12-2004, 03:49 AM   #13
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally posted by cyto
Thats a good one. I dont want to attack any linux PCs. Thats why i stop learning it. I want linux to be powerful enough to attack other operating systems(not bsd or unix or linux) and defend it self.That will be more fun. Like world wars. If a windows box launched a attack against any linux machine. Then all linux machines attack that windows box and other windows box and trash them. LOL. I know it is so weird, but i like this idea. What do u guys think.
I think you're heading for a prison sentence. There is never a justification to attack any machine, no matter what OS it's running or if it originated traffic that attacked other machines. It's illegal--period.

Your reasoning is flawed any way, no OS is better than another for launching attacks. It all has to do with the skills of the attacker (or the skills of the programmer who wrote the tools that the attacker is using).
 
Old 09-13-2004, 09:42 AM   #14
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
Quote:
Originally posted by chort
I think you're heading for a prison sentence. There is never a justification to attack any machine, no matter what OS it's running or if it originated traffic that attacked other machines. It's illegal--period.

Your reasoning is flawed any way, no OS is better than another for launching attacks. It all has to do with the skills of the attacker (or the skills of the programmer who wrote the tools that the attacker is using).
I don't want to end up in prison or something like that. I know that no OS is better than another for launching attacks, but different OSes have different defence skills. I don't want to start any kind of hacking campaign here. All i meant is linux should defend itself by attacking back. I dont want this happen, i know its illegal. But just hoping. You attacking a virus back using another virus is good kind of defence. I hope u have heard about destroying some pests using another creature like spiders or something like that. It will be more fun to have a computer protected by viruses from other viruses. I know that i am going off topic, sorry about that. So let me stop it here. Cheers

Last edited by cyto; 09-25-2004 at 05:02 AM.
 
Old 09-13-2004, 11:16 AM   #15
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
Is attacking really illegal? I don't know. Should it be? Definetley no. If by the means of an attack you steal something (and i mean strictly money) then yes, you should go to prision. But if you get information (i.e. some file) then you are free to do it. As the owner of that file is free to take all the mesures he or she thinks necessary to pretect that information. I believe information must be free in order to improve our society as a whole, instead of only a few guys that own the 'copyrights'. Anyway, if you don't think as I do, then you can protect your own copyright as you wish... but that does not mean that I'm going to.

And if you attack me, I will attack you back, and I will not stop until you are destroyed and crying for mercy... isn't that what human society does anyway? (for those of you that will have something to say about these last few sentences... YES! they are sarcasm)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are these DDoS Defense Router Settings correct ? Rayen16 Linux - Security 3 04-10-2005 10:15 AM
Homeland Defense ... or whatever DrNeil General 8 10-12-2004 07:39 AM
a serious topic really: a linux users defense of windows unimaginative General 126 02-27-2004 06:56 AM
In defense of Linux haters chris26 General 156 11-13-2003 08:39 PM
X-Com UFO defense Ric_doamaro General 6 02-21-2002 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration