LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-29-2010, 08:32 AM   #1
sspiro
Member
 
Registered: Jun 2002
Location: Tampa, FL
Distribution: Debian Lenny
Posts: 39

Rep: Reputation: 15
Question [Debian] Removing Compiler


I want to remove to help reduce vulnerabilities..

I'm somewhat new to linux, and have a good functioning knowledge, but dont want to do something stupid, so i'd rather asking a stupid question.

would 'apt-get autoremove make' be the proper command? It wants to remove about 30 or so packages. I don't want to lose anything i might need to run apache2 and similar packages (self-configured web server). Running Lenny.

Thanks..!
 
Old 12-29-2010, 08:35 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Can you post the list of all packages it wants to remove? You really want to remove gcc and g++.

Also, "apt-cache show packagename" or http://www.debian.org/distrib/packages will give you package descriptions.
 
Old 12-29-2010, 08:59 AM   #3
sspiro
Member
 
Registered: Jun 2002
Location: Tampa, FL
Distribution: Debian Lenny
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
Can you post the list of all packages it wants to remove? You really want to remove gcc and g++.

Also, "apt-cache show packagename" or http://www.debian.org/distrib/packages will give you package descriptions.
Code:
The following packages were automatically installed and are no longer required:
  libstdc++6-4.3-dev libuser-identity-perl intltool-debian libmime-types-perl
  g++-4.3 po-debconf libfile-remove-perl g++ libmail-sendmail-perl gettext
  libobject-realize-later-perl html2text libmail-box-perl
The following packages will be REMOVED:
  build-essential debhelper dpkg-dev g++ g++-4.3 gettext html2text
  intltool-debian libfile-remove-perl libmail-box-perl libmail-sendmail-perl
  libmime-types-perl libobject-realize-later-perl libstdc++6-4.3-dev
  libuser-identity-perl make po-debconf
0 upgraded, 0 newly installed, 17 to remove and 0 not upgraded.
After this operation, 34.9MB disk space will be freed.
 
Old 12-30-2010, 04:55 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Anyone can install a compiler in their own home. It's not necessary to have it in /usr/bin. So IMHO removing a compiler won't change the vulnerability.
 
1 members found this post helpful.
Old 12-30-2010, 06:28 AM   #5
sspiro
Member
 
Registered: Jun 2002
Location: Tampa, FL
Distribution: Debian Lenny
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Reuti View Post
Anyone can install a compiler in their own home. It's not necessary to have it in /usr/bin. So IMHO removing a compiler won't change the vulnerability.
I only have one user, and its me.. or does that not matter.
 
Old 12-30-2010, 06:40 AM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
So, where is the vulnerability? When a hacker gains access to your machine (using your account) he can install a compiler on his own. A compiler laying around on the disk won't do any harm. I would see it more in the context of space, e.g. you have a netbook with a small SSD and want to save some space, then I would remove it. Otherwise it doesn't matter.
 
1 members found this post helpful.
Old 12-30-2010, 07:09 AM   #7
sspiro
Member
 
Registered: Jun 2002
Location: Tampa, FL
Distribution: Debian Lenny
Posts: 39

Original Poster
Rep: Reputation: 15
Great info, thank you..
 
Old 12-30-2010, 07:56 AM   #8
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Great response, Reuti. Your thoughts on that mimic my own. What's pretty wild is that I was reading over some NIST standards 5 years ago and remember reading a recommendation that was similar to what the OP was trying to do. The recommendation was to remove any compilers from the system.

People tend to forget that once a machine is cracked and root access is gained, anything that isn't already installed can be added by the malicious user. Not only that, but a cracker can also bring his own binaries. So, if the system is cracked, the cracker can either reinstall the removed compiler(s) or introduce binaries that he/she compiled before ripping into the system. The latter scenario is probably the better option for the cracker, as compiling software can sometimes be rather 'noisy'. It's more difficult to be stealthy if you've to compile, especially if the compiling registers as a system resource hit that is substantial enough to attract system admin attention. A cracker that gains system access only to begin to noisily compile software probably isn't a good cracker. The better effort would be to continually monitor network entry and exit points and harden those points to the maximum extent.
 
Old 12-30-2010, 08:22 AM   #9
sspiro
Member
 
Registered: Jun 2002
Location: Tampa, FL
Distribution: Debian Lenny
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks guys, great input. Really appreciate it. I'll continue to research locking down this lenny server and see what happens..
 
  


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
Updating Debian 5.0 Compiler geno1234 Linux - Software 4 07-29-2009 07:27 PM
C compiler with DEBIAN joss_dgse Linux - Newbie 6 06-28-2009 09:17 AM
debian unstable compiler black_man Debian 1 03-31-2006 04:15 PM
removing kde in debian primussucks Linux - Newbie 2 02-14-2006 08:35 AM
Java Compiler for Debian grilledsalad Linux - Software 1 01-03-2005 07:18 PM

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

All times are GMT -5. The time now is 06:42 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