Henry's Security Page |
| This site does not collect any personal information from or about you. |
| This is my security page. It was designed for a specific company, so there's lots of information, links and tools missing. It's heavily oriented toward AIX. But I think this may be a good resource for some people, so please take advantage of what is presented, if it is helpful and appropriate. |
| Contents |
|---|
Selections marked with this symbol contain new items or content.
|
| 1. | Questions | ||
| 2. | Answers | ||
| 3. | Philosophy | ||
| 4. | Tools and Resources | ||
| 5. | Unix Command Help | ||
| 6. | Virus Checkers | ||
| 7. | Security Checklists | ||
| 8. | SENDMAIL
|
||
| 9. | Correspondence |


In addition, a line with a + (a single plus sign) in it will allow any user in the world to log on to the target machine if there is a corrosponding entry in it's /etc/passwd file!
Ahem. It gets worse. You might expect that putting a machine name/user name pair in /etc/hosts.equiv would allow that user to log in to the target machine from a particular host. What actually happens is that the named user on the host can log in to any account on the target system! Don't confuse /etc/hosts.equiv with an rhosts file!
hosts.equiv can be very handy; it's especially useful if you have a cluster of machines with a significent overlapping user base, but it can also be a helpful link for abusers.
You should disable the server services by commenting out the appropriate lines in inetd.conf, the lines that load rsh, rlogin, rexec and rcp.
It is not necessary to disable the client programs by removing execution bits.
Remote copying and execution daemons allow a trusted user to copy files or execute programs without being logged in to the target machine.
These services are holdovers from (typically) academic computing clusters.
Remote users of the root account (a minimal, trusted group) should login via their own account, if they need remote access, then su to root.
Better yet, use the sudo program, and a limited group of sudoers who are permitted to execute commands, individually, as root.
Make sure that all su activity is logged. Logs should be regularly reviewed, backed up, and shipped off-site or saved on WORM media.
Then, make sure that the console is in a secure area. You should never leave root logged on when the console is unattended, even if the keyboard is locked! These steps will make "The Quest" harder.
A generalized approach to security may be stated as follows:
One way of looking at this issue is that the purpose of security is simply to
ensure that:
II. Sendmail Guidelines
It is best to restrict ftp by:
There is a widly-distributed urban legand circulating, purporting that a
cracker broke into a system, and was caught, essentially red-handed. The
evidence was supposed to have been sufficient to convict him without a
doubt, but (so the story goes) he was released because the initial
contact banner said Welcome to XYZ.COM. This story is
nothing but myth. Several well respected people have
have carefully investigated this, and nobody has ever been able to
produce an actual case.
That doesn't mean this can't happen. Please. Make sure that none of
your banners contain
So, how do you create a good password? Here is one password:
Here's what the Underground Guide to Computer Security has to say about choosing a password,
There are some alternate versions of passwd available that enforce
rigid passwords, but we I have not been able to make one work with our
AIX/AFS setup. If you have, please- humble me! :-)
AIX allows you to enforce some password restrictions. On 3.2.5 these
restrictions must be implemented system-wide; on 4.1 they can be
instituted on a per-user basis. The system administrator can manually
edit the /etc/security/passwd file to circumvent this restriction.
These characteristics are normally set in /etc/security/login.cfg.
The standard password restrictions that AIX makes available are:
Thus, regular backups, maintenance, and sensible allocation of resources
are as much a part of security as access lists and strong passwords. We
want to maintain a logical and reasoned balance that protects the company
resources and does not create a de facto denial-of-service attack on our
own resources, rendering them, and us, less productive and valuable to
the company. 7
and use touch to create them if you don't.
start /etc/syslogd "$src_running"
This will ensure that logging resumes every time you restart your
computer. However, if you want to enable logging immediately,
OR
If you are using AIX, you can use the mksysb utility
or initiate a level 0 dump. For help with commands,
go here.
Please avoid phrases like Welcome to the company. I use this banner:
O----------------------------------------------------------------O
O O
O This machine is to be used by authorized personnel only, O
O and only for management-approved purposes. O
O O
O----------------------------------------------------------------O
O O
O Management reserves the right to monitor content and activity O
O at any time with no further notification. O
O O
O----------------------------------------------------------------O
The longer the password, the harder it is to break.
Characters, such as / . & @ # and etc. complicate dictionary attacks.
This discourages guessing.
A few numeric characters makes guessing harder. Too many makes it easier.
See crack, above.
Items such as your license plate, social security number, etc. make it
easier to add a "social engineering" element to other strategies, if you
include them as part of your password, improving the speed and efficiency
of the cracking methodology.
Patterns, such as qwerty are already part of various
dictionaries, and it's easier to add more. Patterns are the bane of
cryptogrophy.
Algorithms are being improved all the time. Koobeton is, in
reality, no more secure than Notebook as a password. It will be
cracked almost as quickly.
The maximum password age on VM is 120 days so that
may be a good default maximum to consider.
DO NOT USE THIS, OR ANY OTHER PUBLISHED PASSWORD!
This is not a word, simple pattern, or modified pattern in any language.
I started with the first 8 words in Genesis, In the beginning, God
created the heavens and... I built a password by using the first
letters of each word. Then I substituted a 2 for the word
the, left the G capitalized, substituted a 3 for the
the, and substituted an ampersand for the final word, that being a
common representation for the word and. This is a common way to
construct a reasonably strong password that you can remember.
i2bGc3h&
plus comments on other interesting access-control technology.
maxage
Maximum time between password changes (password aging).
minage
Minimum time between password changes.
maxexpired
Disable an account with an expired password after x week(s).
pwdwarntime
Warn user about an expiring password x days in advance.
minlen
Passwords must be at least x characters long.
minalpha
Password must contain at least x> alphabetic characters.
minother
Password must contain at least x>
mindiff
At least x characters in the new password must not be in the old password.
maxrepeats
At most x characters in the new password may be in the old password.
You should try to avoid distributing files via anonymous ftp when possible. Many departments use a single server, often on the dmz to distribute files. If you must distribute files in this manner, make sure that ftp operates in a limited, chrooted environment, and that it does not contain a copy of the real password file. For more help about securing anonymous ftp, contact me.
The tftp protocol has received a lot of bad press. Deservedly so. If you're running a tftp daemon, it can be used to transfer any file on your computer, with no authentication at all. Unless tftp is restricted. Therein lies the key. The tftp protocol is needed to run X windows and boot remote workstations.
To see if you are running tftp unprotected, try this:
tftp 127.0.0.1
tftp> get /etc/passwd tmp
You should receive a file not found error, or the
machine should just hang. If not (if you DO manage to copy
your passwd file into the file ./tmp) you are running a very dangerous
protocol indeed! Update your version asap.

| All links checked: January 6, 1998 |



