supposed to be in here. We switched because I had a demonstration for Solaris that was going to be on that screen and there wasn't a screen in the other room, but somebody owned the power adapter so that was kind of a pointless switch, but we're going to stay here for this talk anyway. Pretty much we are going to go through a hardening process of Solaris. I had asked for about two hours and I got 50 minutes, so we're going to be kind of cruising to get everything done in time. And back to the wireless thing, for the rest of the day, the breakout area is going to be in Athena and wireless is going to be in here. What I want to do this morning is go through pretty much a step-by-step process of how to lock down and harden a Solaris install. Basically, the best process is to go through the process of how to lock down and harden a Solaris install. The best practice of actually hardening a box before you put it on the network is what I'm looking at. However, because I live in the real world and I know that a lot of times these boxes are already on your networks, most of the concepts that we're going to talk about you can do to a live box. Anytime that it's going to be something that's dangerous to a live box or to an operational box, I'm going to go ahead and point that out to you so that you know to be careful before you try it. What we're going to cover this morning are basically installation, what we can do with the overboot process, screen auto-lock for the GUI, disabling services, setting up disk quotas, access control lists, set UIDs, set GID files, which Solaris, by default, has a ton of, permissions and setting them correctly, setting up and verifying the paths are correct. Aliases, system identification, groups, accounts and passwords, logging, cron and at jobs, and also the if you must use, stuff that I would recommend that you turn off immediately before you even think about looking at your box, but if you've got to use it for some operational refinement, what we can do there. The NDDs and some miscellaneous stuff, and finally, the board. What I'm not going to cover today are DNS and BIND, NIS and NIS Plus, NFS, and service specific or third party software like Apache or anything like that because in one of those we can talk for two hours on by themselves. First off, installation. Load from an official CD. Don't get some burned CD that somebody has said, hey man, this is a great Solaris 8 version. Go with it. Also, make sure that you set up your partitions large enough to accommodate patches. I've found that one of the biggest problems I run into is that people download the patch cluster but they haven't actually set up a partition big enough to put the patches on the machine and they end up having to either rebuild or skip the patch. Don't load the entire distribution, which is actually what I'm covering. I'm covering today from a full, an idiot install in other words. If you just come in and say, hey, everything plus OEM, that's how we're looking at it, don't do that. Just install the packages that you need and apply the appropriate patches. There is the link for the patches and the presentation is on your CD and all the links are on there so if you don't have them you can just copy paste them out of there. Also, maintain two current backups. If you have the resources, keep one on site and keep one off site. Open boot. Open boot is fun because I like to make things difficult with open boot. First of all, I suggest that you set the security level to full instead of command. However, at a minimum, it needs to be set to command. To do that, from the root prompt, E prompt security mode equals command. Very difficult. From the open boot prompt, set M security mode command. Also very difficult. For full, pretty much the same thing except you go with full instead of command. Open boot password. You should always set the open boot password. That way when somebody comes by and reboots your machine because some idiot didn't lock the screen, they cannot, they have to know an additional password before they can even begin to start playing around with your system. To do that, from the root prompt, E prompt security password, it will prompt you and you can put your password in. From the open boot prompt, password. Also, set an open boot banner. Just set the environment variable for the OAN banner to true and then this system property of or unauthorized access or whatever you want to put in there. Make sure that you've got something, it's an extra little no trespassing sign that you can put on the machine. If you, the GUI really should be in the if you must use section because mainly what I'm talking about today are servers and the fact of the matter is there is no reason that you need to have a GUI enabled on your server. If for some reason you have some idiot manager that decides that you need to have the GUI on there so that you can come look at pretty output or whatever, then make sure that you have the auto lock enabled. For CDE, if you're looking for something that's very easy to do, right click on the desktop, choose desktop controls, choose the screen style manager and click the on button and then make sure to scroll the screen wherever you want it to be set. I like to do it at one minute. That way if I walk away for any reason, it would immediately pretty much go to screen lock. However, most people seem to like five or ten minutes a little bit better. It's a little bit more realistic in case you turn around to pick up a piece of paper. Four minutes. Open windows, properties, miscellaneous and set the screen saver to auto and fill in the number of minutes that you want to actually have it turn on the auto lock. Services. Before I get started on services, one thing. Disable all unneeded services. When I go out and do assessments, pretty much at least one a week and one of the biggest problems that I have, both from an assessment standpoint and from an incident response standpoint, is somebody has got owned because they have their box sitting there with telnet running and FTP running or SNP. Any number of services. Solera starts about a 900,000 by default. So you want to make sure to actually disable. Only have the services that you're running. If it's an SSH server, make sure to have it running only SSH and nothing else. If it's Apache, just web and whatever method you're going to use to actually access the box remotely. SSH being the best choice there. I'm going to switch real quick to what I did was I did an ISS scan. Oops. I did an ISS scan of a default Solaris instar with OEM. That is what ISS picks up. As you can see there are a ton of highs, a ton of mediums, and a ton of lows. But what I also did was at the end of this, after I went through the whole process, I did another scan to show you what the difference is and we'll take a look at that in a few minutes. But as you can see, this is what most people have sitting on their network. Most people just put a default install. If it works, they're good. So they think. Unfortunately they don't realize the Admin D is started, well S Admin D is started by default. They don't realize that SNMP daemon is running and the NFP is running. They don't realize that best server is running. Oh. Let me catch myself back up because I set the power point. Nope. Now? Exciting. Okay. What's disable in news services? First off, ined.com. That is where you're going to have about 30 unneeded services that are enabled by default. Telnet is in there. FTP is in there. S-Admin D is in there. Tool Talk Database Server is in there. If you're not using them, disable them. If you are using any of those, try and figure out why and see if you can't get rid of them. The way to do that is just quite simply to comment out the lines that aren't needed. Also, check your rc2.d and rc3.d directories that have the startup scripts in there. You're going to want to move the file to a different name and stop the service that it's already running. I usually just use a lowercase letter. Then when it boots up, it won't get it. Other people put dots in front of them and do all kinds of things. But whatever method you want to use is fine, just as long as it has changed the name from a capital S with the number and the service. One thing that I like that people know is the GUI interface. Checkpoint Firewall 1. People love the stupid GUI on that thing. What I've been able to find out is if you've got some manager that wants you to run a GUI so he can come and look at the pretty firewall rules, but he doesn't want you to run a GUI. What you can do is disable the GUI for having it running by simply killing RPC. If you have RPC dead, the GUI will not work. Then all you have to do if you want to enable the GUI is restart RPC manually. Just S71 RPC start and then start the GUI up and you can do whatever you need to do and then disable it when you're done. Make sure to disable sendmail. It is started by default. If it's not a mail server and you want to get rid of it, it opens up a ton of problems for you. To do that, that is in rc2.d and it's the S88 script. If it is a mail server, configure it to prevent message source routing by commenting out the next few lines in the sendmail.cf. I'm not going to read those, but you can look at them and they are on the CD. Expand and verify are started by default. What you want to do with those is add the following two lines to sendmail.cf. Opno-expand, Opno-verify. That will kill those for you. Install and configure secure shell. On the CD in the directory, I actually put the HTML file for how to install OpenSSH on the CD so that you can read through it. It's got pretty good directions on it. It's got what files you need. I actually wanted to put several other things, including OpenSSH and the recommended zip files on there. But when I got done with all the stuff I wanted to put on the CD, I think I had a CD by myself. So they told me to dial it back a bit. Use reporters. Does anybody have any idea why you would want use reporters? Mainly? Good. I'm going to assume you're right because I can't hear you. But if he said because you don't want your users to have... Users are generally running their own scripts. They've got all kinds of things they're running in their home directories. You don't want them to have something get away from them and run away and take up all of your disk space. If you had encoded it there, it will stop that from happening. And put me in these encoders. This is actually pretty easy. The first thing you do is you edit the VFS tab and add the mount option for Corda, which is just Corda at the very end. There's a dash there by default. Replace it with Corda. Create a file called Cordas in the root directory of the file system. And for what we're doing here, we're going to take a look at Export Home. Touch Export Home Cordas. Then you're going to need to set up a prototype Corda entry. And to do that, you use eggcorda. eggcordaprotouser, whatever the user that you want to be there. And you edit the number of blocks, hard and soft blocks and inodes. What that does is that tells you how big of a disk space they're allowed to have. And also how many files they are allowed to have. The inodes are the number of files. So in our example here, they're getting five megabytes of space and they are getting up to a thousand files in their home directory. That will be when they get a warning. That's the soft limit. The hard limit is when it will actually cut them off. They will not be able to log back in until they get that fixed. I'm sorry. They will not be able to log back in. They will not be able to create any new files or add any new space to the disk. Then what you need to do is replicate that across the board for all the users. So if you have ten users in there, eggcorda minus p, then your prototype user. And then just list out the names of the users that you want to set that Corda up for. Next thing you do is activate them with Corda On. Which is Corda On and the file system. That's how often that you want the Cordas to be enabled on. Corda Check command is used next. And that is going to build the statistics. That's so that you can actually go back and see where people stand. Is anybody getting close to their Corda limit and why? And to do that, just Corda Check minus a. Grab Corda will then report that data back to you. It will look something like that. Tell you where people are. Access control lists. Next. ACLs are very, very easy to set up in Solaris. Unlike some distroys. That's one of the things I like about it. Because you can change things around and only let people get to what they need to get to. It will allow you to avoid the group account problems. To do that, just use setup ACL to set the access controls. In our example here, what we're going to use. This is a file called access file. It will give you the output of what it currently looks like. You can see that I have the ownership and the admins group can access the file. Do a get ACL on it. And it will show you that user has read right. Group has read right. Other has nothing. If we want to change that to allow a user named Russ. Who was actually going to be sitting there showing you guys how to do this. But he's gone now. To have access to that file. He's not part of the admins group. Just do a set ACL minus M. The user and colon. And then whatever user you want to have access to the file. What access it's going to have. In this case, read right. And then name of the file. Then when you do another get ACL on it. You will see that user Russ has been added to the list. Set UID and set GID files. I would actually recommend that rather than do exactly what I say here. I would actually script this out. Because otherwise it will take you a long time. But you simply do a find on the type here. That will give you your set UID files. You can pipe that out to a file somewhere. To look at later. Because like I mentioned before. There are a ton. For the most part. Very, very few of them actually need to be set UID. Same thing with set GID. Once you have those piped out. You can go through them kind of at your leisure. And look at them. Or if you want to take the time to actually write a script out for it. You can have a grep through the file. And pull out the ones that you want. And change them. Change the forms on them. Make sure you want to find all the world writable files. Again, Solaris has quite a few of these. Simply do a find on them. Pipe it out to a file. And go through and look at them. You should be able at that point. To go through and figure out which ones need to be. And which ones don't. Because there aren't that many that do. Especially in the server environment. Permissions. Root UMass. I set to either 027 or 077 to do that. You edit the. As you default log in file. And just set the root UMass to 077. Which is what I actually recommend. The way the UMass works. Is it XORs. Every time you create a new file. It XORs with the root UMass that is set in that file. And it will then give you the opposite. So in our case. Every file that root creates. Is going to have a initial permissions of 700. You also want to check the system device permissions. By default. So as default install. The device permissions are set correctly. You shouldn't change them. There's really no need. What you would want to do. Is actually verify and dip. And make sure that they don't change. And they have not been changed. You can check that periodically. You also want to check the permissions on UTMP. Ensure that they are set to 650. Make sure that they are set to 644. Ensure that the ETSI password is set to 644. And you want to make sure that the ETSI shadow is set to 400. Also. To be able to restrict the host.equilib. Our host. And .NET RC files. What I would suggest doing on those. Is to actually touch and create them. And then chmod zero them. So that when you look at them. No one has read, write or execute access to any of those. Restrict the privileges on snoop to root only. By default. I think that it sets it to. Yeah. Pretty much everybody can use it. So you don't want that. You don't want anybody who is on your network. Especially if you're not in a switched environment. To be able to sniff all your network traffic. So go ahead and set the default permissions to execute for root. And no one else. The root user path. User bin. S bin. And user S bin. Root user really does not need to have anything other than that in his path. That is done by editing the .profile file in root's home directory. Also. This is another one that you're probably going to want to script out a little bit. And I actually planned to do that for you guys. But again. They had me pull a bunch of stuff off the CD. So you didn't get everything. But you want to make sure that no user has a dot in his path. If you're going to do it manually. If you're in an environment where you don't have a lot of users. It's pretty easy. You can just echo each user's path. And make sure that there are no dots in there. Yeah. Alternately it can be scripted. Thanks. Aliasing. I recommend that you alias both the ls and the lrm command. With ls I like to add the dash a and dash b option. And with lrm I like to add the dash i. What that will do is. With ls you will get all of your dot files. Without having to actually do a minus a. Every time you type ls out. You'll get all the hidden files immediately shown to you. So you can keep track of them. And you make sure that nothing has popped up that you weren't aware of. With the dash i. What you do is. It's going to ask you before you. I'm sorry. Before it deletes the file. It will ask you. Are you sure you want to do this. This is particularly important with root. Because root can delete very important files very quickly. The example that I always like to give is a mistake that I made. A long, long time ago. Where I did an rm minus rf dot dot slash star. And that is recursive. And it started going up and up and up and up and up. Deleting files. I would have very much liked to have had that ask me before it did it. Destroyed my entire file system. To do that. Depending on the shell that root is using. Or the user is using. You follow the steps on there. You use c shell. You use the alias command inside the dot login file. Born and corn. You add those lines to the dot profile. And with bash you use the dot bash rc. And do the same commands that you would use in the born and corn shell. Include the system name in the root and admin shell prompt. Most of your admins have access to multiple boxes at a time. So they are sshed into four different machines. Running around making changes. What you want to do is make sure that for at least those people. That the name of the system that they are on is in their prompt. That way they don't accidentally change things on the machine that they did not mean to. Again you do that with the c shell in the dot login file. Born and corn in the dot profile. And with bash in the dot bash rc. And you just do. For born and corn the ps1 equals uname minus n. For the c shell you set the prompt. Groups, accounts, and passwords. What you want to do is require the users to use the new group command. To change groups. To do that. Don't have any users assigned to groups other than staff. Every single user to include your admins. To have just a regular staff user group. Then you want to choose a strong group password. For let's say we are going to have the admins group in this case. You want to choose a strong password for that group. The easiest way to actually set that password. Is to change the password on a normally locked account. I like to use lp. To do that just obviously password lp. Put the password in. And then. That's the slide that I lost. Then what you do is you actually cut and paste that out. Edit the etsy groups file. And replace the no password in the etsy groups file with that password. Then whenever someone wants to actually change to that group. They just issue a new group command. New group admins for instance. It will then prompt them for the password. They put the password in. And they are then part of that admins group. If they do not have the correct password. They cannot change groups. Obviously also you'll probably want to go back and relock the lp account. When you're done. I like to restrict the use of su. I'm kind of a jerk when it comes to getting root access. I don't like. I like to make it as difficult as possible. Even for people that are supposed to have it. If you want to actually get uid zero on one of my machines. You're going to have to provide me with about eight strong passwords. Before you're done. One of those ways is by restricting the use of the su. There's our admins group. Assign a password to that group. Which we talked about. Then anyone. Then change your permissions on the group. And anyone who wants to then su. Has to log in. Has to new group first. To the admins group. And then they will be allowed to su. Lock the system accounts. This one. I'm not quite sure why so many of these accounts. Are unlocked by default with Solaris. Make sure to lock the Daemon, the LP, the BIN, the SIS, the ADM, the UCP, blah, blah, blah, blah, blah, lock them all so that they look like that. Also, lock the SIS admin and SIS groups in the ETSI group file. Same process. Next, you want to edit the ETSI default password to require a password change at least every eight weeks with a one-week interval between password changes. Also, in that file, you can set your minimum character length for passwords. Properly configured, you're going to look something like that where you have max weeks of eight and then weeks of one and the password length. Eight, nine, ten, whatever you want to use there, at least eight. So, that's it. That's for the password length. One thing, if the password is already enabled, it's not going to do anything until they have to change. In other words, if you've got some guy who's got, you know, his username, it's three characters for his password as well, until eight weeks have passed and he has to change his password, that password is still going to be sitting there. One PwCheck to check for inconsistencies. It does. What that will do is it will check the field number, the login name, the UID, the GID, and the login directory and shell for the user. Verify that those are correct. Do the same thing with the group. Run a group check to make sure that those are properly configured and what you're expecting to see. Then you're also going to want to verify that the permissions of ETSI group are 644. Next slide. Next slide. Grow all SU attempts. I like to, some people have this set so that they're not all logged, that only the failed SUs are logged. I like to log them all. I want to know everyone that tried and everyone that succeeded to get SU. Disk space can be an issue if you don't check this and clear it out every once in a while. First of all, to do that, you just verify that ETSI default SU exists and provides a path to the SU log. It'll look something like that. Then you also want to log the failed login attempts to the login log. You have to actually create that file. It is not created by default. On a very large network where you have a whole lot of users that are going to be logging in on a regular basis, this may not be feasible because you don't need to necessarily know every single login. It'll just take up too much space. And it's going to be something that you're never actually going to go through and look at anyway. But if you're in a small environment where you have only a few users, it's a good idea to actually see when and where and how they logged in. To do that, after you touch it, you change the ownership over to root and sys group. And you change the permissions to root only. Failed logging. Login attempts are going to look like this. Haxor did not get in. What that tells us is the time that he attempted to log in and failed. And where he tried to log in from. You want to turn on INETD connection tracing. And what that will do is attempt to trace all incoming GCP services. And that will log in sys log. To do that, you just edit the... init.d INET sources file. And add a "-t to the INETD start line. So it will look like that. Then you're going to want to kill and reboot the INET daemon. Because it is not currently running with tracing on. This is assuming, of course, a live system. It's not going to be rebooted before you put it on the network. Just kill it. Restart it with the "-t switch. You want to... This is one of those things I was talking about before. Where if you're in an operational environment, this is very... Can be very dangerous. You want to configure the INETD system to prevent stack-based buffer overflow attacks. Prevent is probably a little bit strong of a word there. Maybe help prevent is better. To do that, you edit the INETD system and set the noexec user stack to 1. And also the noexec user stack log to 1. What that will do... Is any attempts to execute code on the program stack will be logged to syslog. What I would do if you were in an operational environment is I would set the log to 1 and not actually set the noexec user stack. I say that because especially with some legacy third-party software, they are programmed to intentionally run code on the stack. If you have... I believe Oracle 7 is actually one of those. So if you have Oracle 7 running on your machine, it will kill it. And it will not work anymore. But if you log it for a couple of weeks or a month of normal environment time, then see if anything actually showed up in the log. If it did not, you're probably in good shape and you can go ahead and do this. If it did, then you know that you need to probably either upgrade that piece of software or if that's not going to happen, you don't want to do this. Next, you need to check your con and add jobs for Valid. Pretty much just look at them. Make sure that what you expected to be there is what is there. Place the user IDs of the users that are allowed to create con jobs in the con.allow file. Place the user IDs of the people that are allowed to create add jobs in the add.allow file. Conversely, you want to make sure that people that are specifically not allowed are in the con.deny. I say that because the con.allow is your default. That is what it's going to use. However, if for some reason that is bypassing and fails, the con.deny will at least users that you know are on the system that you absolutely do not want creating con and add jobs, it will fail over to there. And if they're in there, you'll have a secondary measure to make sure that they're not allowed to create the job. It's also important to verify that con jobs are legit both before and after adding a user to con.deny. That's because it only disallows users from creating future jobs. If they already had the job scheduled with con or add, it will continue to run. You need to ensure that the scripts and programs that are launched by con or add are readable only by the owner. You don't want anybody and their brother to be able to take a look at these. An example of that is if mailrun.pl is scheduled to run in the con tab, it should look like that. I'm the only person that has access to it. I'm the only person that can modify it. I'm the only person that can look at it. To the if you must uses. FTP, disable it. Use SFTP instead. If you have to use it, use it. Enable logging and debugging by editing the inid.conf and adding the minus DL switches. Properly logging entry in inid.conf is going to look like that. Just at the end you have the minus DL. You also want to make sure that at a minimum root UUCP bin and anonymous are in the FTP users file. The FTP users file is the file that says who cannot use FTP, who cannot FTP into your system. At a minimum, those need to be in there. You want to configure the default FTPD to remove the OS banner. Whenever you log into Solaris, they'll come back and they'll say 5 dot whatever. You want to get rid of that. You don't want to give them any extra. There's enough programs and tools out there that will tell them what operating system you're running. Don't just freely give them the information and cut half the time out of their work. Also, if they're actually having to use Nmap or whatever, you're going to be getting something in your log somewhere along the line to let you know that you've been scanned or whatever. If they are able to just FTP to you and it tells them what version you're running, you've cut a lot of their work off. To do that, you just echo banner with null. That's open and close quotes into the EDC default FTPD. When they log in at that point, it will then have no login banner. No OS banner, I should say. Tell that banner is essentially the same thing. Edit the EDC issue to issue a warning banner. First of all, you're going to have to create that file. It is not created by default. Again, put something in there. Unauthorized access, you're going to die if you come in, whatever, I don't care. Just something that tells them, I don't want you here if you're not supposed to be here. The only reason you're doing that, it's not like Joe Leak guy is going to come in and say, oh, well, I'm sorry, I have unauthorized access. I'm not authorized to access. I better log off. What it will do is if you have it properly authorized by your legal department, EDC issue and a warning banner, when it comes time for prosecution, you can take that to court and say, we told them don't come here. They came anyway, and we want them to pay. Configure the default time at D to remove the OS banner. That is the exact same process as the FTP banner, and it will just get rid of the OS version when somebody logs in. The NDDs. Are most of you guys familiar with the NDDs? I like to use them. They allow you to do quite a few things that otherwise you don't really realize are running because nowhere does it say, oh, I have IP source routing enabled. There's no script that you can run through and find out where that is, but you can actually sit here with the NDDs and disable that stuff. First thing I'd like to do is get rid of the IP forwarding. So I'm going to do a forwarding and directed broadcast. To do that, you just do an NDD dash set slash dev slash IP, IP underscore forwarding, set it to zero and hit enter. Same thing for forward directed broadcast. If you do a dash get instead of a dash set, it will tell you what it is currently set to. You want to configure the system to ignore redirects and disable the forward source routing. If you want redirects, you want to set to one. Forward source routing, you want to set to zero to disable. You also want to configure the system to not respond to address mask broadcast, echo broadcast, timestamp and timestamp broadcast. Set all of those to zero with your NDDs. Also, while I'm thinking about it, there's not just dev IP. You have UDP. You have TCP specific. You can go through and look at them and see what exactly you do need, what exactly you don't need. And there is a lot that you can disable there, a lot of enumeration info that will come back to haunt you later that you can stop right there at the OS level and not have to rely on your border devices. All right, now here comes what I was talking about before about making it very, very difficult. A lot of people do not like to do this because it becomes very hard for your admin. As well as everyone else to gain root access to the box. What I like to do is totally disable root login from everything. Root can never log in, period. The only way that you can get UID zero is to log in at this point. If we do this, they'll have to know the open root banner to get the machine up. Then they'll have to have a regular user account and password so that they can log in. Next, if they want to ask you to root, they're going to have to opt out. They're going to have the admin's group password so they can get in. And finally, they're going to actually have to know the root password so they can ask you. If they can get through all that and own you, you deserve to be owned because you have crappy passwords. To do that, console only access. You have the console setting and the NC default login to dev console. That way, root can't come in any other way. Can't SSH. Can't Telnet. But it can still come in as a console user sitting at the box. Like I said, I like to go a step further and disable it completely and just set it to dev null. TCP sequence prediction. Do any of you guys use ISS? Yeah, ISS sucks with TCP sequence prediction. It shows up every time no matter what version of what software you're running. Everything apparently has a TCP predictable sequence. And that's because they set it to, like, if it guesses 1 out of 500,000 correctly, then it's predictable. But you can actually, with Solaris 8, you can take care of that problem even for ISS's toughness. To set the TCP strong ISS to 2 in the NC default .NET init, it is by default set to 1. Next, you want to edit the ETSI profile and set the U limit to 0 to restrict the generation of core files. It doesn't always work, but it's worth a try. Here's another one that can be kind of dangerous. Randomizing the file system inode numbers with the FSI RAN. Tells you why. But again, very dangerous. You have to unmount the file system before FSI RAN can be run. And you want to make sure that you have backed them up before you do it. And you've checked the file system on them. Because the chances of it actually ruining your file system inodes are just as good as it working. So that's one that you're going to kind of take with a grain of salt. If it works and you've got a system in place where you can actually do it on a regular basis, it's great. If you actually have a problem where you have an operational system that cannot go down for any length of time, I would actually skip this step. Tripwire and log check. Install and configure those to monitor for false system integrity. Install Snort. Any other intrusion detection ideas that you have at your disposal. I like Snort. It's free. It works. It's just what I like. I prefer, if you want to use Real Secure or something else, go for it. But there are freeware IDS products out there that you have access to. So you really don't have an excuse for not having some intrusion detection sitting on your servers. At the border, you are going to want to stop at UDP port 113 and TCP port 113 traffic inbound. . Also, you want to block ICMP type 17. That's your mask request traffic at the border. And finally, allow access through the firewall only to necessary ports on specific machines. In other words, if you have a web server, a mail server, and a DNS server sitting behind your firewall, what you want to do is allow port 25 traffic only inbound to the mail server. Not port 25 traffic across the board. Same thing would go for HTTP, port 80, and port 53. Specifically to that box, that way if you, for some reason, skip a step, miss a step, or somebody accidentally re-enables a service on one of those machines, you have another layer of protection to keep somebody from making access to your machine on that port. Implementing the stuff that we talked about here today is not going to make you totally secure. We were talking about it the other day, an idea to find a totally 100% secure you-know-it box. It cannot be made. If there is a determined attacker out there, and you are his target, and he is knowledgeable, he is probably going to get you. But what you can do by doing this is take the time to reduce your script-kidding threat to essentially nothing. You will also be able to, if you have an attacker that is looking for a target of convenience, you are not convenient. It's like the club. People, car thieves can get the club off of your car very quickly. However, when they walk by and they see two sitting next to each other, one has the club, one doesn't, they steal the car without. Unless it sucks. Finally, also, patches. One of the biggest problems that I see, and I mentioned it before, is people not applying the patches. If you maintain patch level, you will reduce the bulk of your problems. Just by maintaining patch level and disabling unneeded services, you've probably reduced your risk by about 90%. I have a few references in here. Some of them are online, some of them are books. Solar Security by Peter H. Gregory. Sun Press actually put that out. It's a very good book. A lot of the info that came from this can be found in that book. Unfortunately, it is Solaris 7 specific. That's why I had to update quite a few of the things from this book. The other thing that I wanted to do was show you the results of the ISS scans. Like I said, that is the initial scan. With essentially a default install or dummy install. If you run through this process and do all the steps, when you are done, you will have... Not that. This. You have four rows remaining. Trace route. ICMP netmask. ICMP timestamp. All of which should be blocked at your border. And OpenSSH running. Which is more of an informational item to let you know that you have it. There is not a vulnerability actually associated with that. Assuming that you have your OpenSSH in the current patch level. I had hoped to actually get this presentation updated for Solaris 9. Unfortunately, I am a multiprocessor system, so I had to buy the software. And I didn't get it in in time to update the slides. But I did get it in and get it installed. I ran through the process on Solaris 9. With actually better results because there is no OpenSSH. It comes bundled with SSH now. However, I haven't tested everything to actually make sure that I'm not breaking anything. So before you do this on Solaris 9, you're going to want to do it in a non-operational environment. And verify that none of the steps are going to break your system. I have time. That is it. I have time for about three questions. Because I have to go to... I have to do the road driving contest right from here. So, yeah. If you want to come up. People don't want to ask questions. If you come up and use the mic so everybody can hear. Yeah. Just had a question about the slides. If people don't have them. They will be posted on the DEF CON site eventually. But if you have them before that, you can go to www.securitytribe.com. And I will have a link off of there to the slides. So that everybody can get a copy of them. You have a question? Yeah. Hi. We see Venema used to have software to help protect RPC services. Like RPC bind and stuff. I don't know if they still work for Solaris 8. Or are there any other... You could also use it in combination with TCP wrappers. To help wrapperize and protect your RPC services. Is anything recommended for Solaris 8 or 9? In that matter? Unfortunately, I don't really have a very good answer for you. I don't know. Explain your pros and cons of using sudo instead of su. Actually, sudo I have absolutely no problem with. It essentially is doing the same thing that I'm doing with the lockdown with the groups. And thank you very much because I meant to mention that. It is... If you want to make it a little bit easier on your admins, that is a definite way to do it. And I don't see any problem with doing it that way. If there are no other questions, I would just like to say thank you. And one... Actually, I have a couple of questions for you guys. And those who have left have missed out. I've got two boxes. I'm going to ask a couple of questions from you. And... What are you guys going to ask them? Are you guys going to ask questions for the giveaways? No. No. I'm going to ask the next one. Next one? I'm getting out of your way. Um...