home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3361 < prev    next >
Encoding:
Internet Message Format  |  1991-05-18  |  5.9 KB

  1. From: df@sei.cmu.edu (Dan Farmer)
  2. Newsgroups: alt.sources,alt.security,comp.lang.perl
  3. Subject: what cops is
  4. Message-ID: <25576@as0c.sei.cmu.edu>
  5. Date: 17 May 91 15:39:48 GMT
  6.  
  7.  
  8.   Well, hello once more.  Here's a quick overview, taken from the normal
  9. release of cops -- I hate it when people post and don't tell you what the
  10. hell it is, don't you?  The perl version attempts (barring bugs) to
  11. duplicate all of this, and definitely will, when the final release it out
  12. (both shell and perl versions will be posted together.)
  13.  
  14.  -- dan
  15.  
  16. ======================================================
  17. slightly modified blurb, stolen from the shell version
  18. ======================================================
  19.  
  20.    Welcome!  This is a quick intro to COPS (Computer Oracle and Password
  21. System.)  COPS is a collection of security tools that are designed
  22. specifically to aid the typical UNIX systems administrator, programmer,
  23. operator, or consultant in the oft neglected area of computer security.
  24.  
  25. 1) Specifics
  26. -------------
  27.  
  28.    COPS is a collection of about a dozen (actually, a few more, but
  29. a dozen is such a good sounding number) programs that each attempt
  30. to tackle a different problem area of UNIX security.  Here is what it
  31. currently checks:
  32.  
  33. o  file, directory, and device permissions/modes.
  34.  
  35. o  poor passwords.
  36.  
  37. o  content, format, and security of password and group files.
  38.  
  39. o  the programs and files run in /etc/rc* cron(tab) files.
  40.  
  41. o  finds SUID files, and checks for their writability and if they are
  42.    shell scripts.
  43.  
  44. o  runs a crc check against important binaries or key files, and reports
  45.    any changes therein.
  46.  
  47. o  writability of users home directories and startup files (.profile,
  48.    .cshrc, etc.), as well as the readability of .netrc and .rhosts files.
  49.  
  50. o  anonymous ftp setup.
  51.  
  52. o  unrestricted tftp, decode alias in sendmail, SUID uudecode problems.
  53.  
  54. o  miscellaneous root checks -- current directory in the search path,
  55.    a "+" in /etc/host.equiv, unrestricted NFS mounts, ensures root is
  56.    in /etc/ftpusers, etc.
  57.  
  58. o  includes the Kuang expert system, that takes a set of rules and tries
  59.    to determine if your system can be compromised (for a more complete list
  60.    of all of the checks, look at the kuang documentation.)
  61.  
  62.    All of the programs merely warn the user of a potential problem --
  63. COPS DOES NOT ATTEMPT TO CORRECT OR EXPLOIT ANY OF THE POTENTIAL PROBLEMS
  64. IT FINDS!  COPS either mails or creates a file (user selectable) of any
  65. of the problems it finds while running on your system.  And because COPS
  66. does not correct potential hazards it finds, it does _not_ have to be
  67. run by a privileged account (i.e. root or whomever.)  The only security
  68. check that should be run by root to get maximum results is the SUID checker;
  69. although it can be run as an unprivileged user, to find all the SUID files
  70. in a system, it should be run as root.  In addition, COPS cannot used to
  71. probe a host remotely; all the tests and checks made require a shell that
  72. is on the site being tested.
  73.  
  74. 2) What COPS is _not_
  75. ----------------------
  76.  
  77.    COPS merely provides a method of checking for common procedural errors.
  78. It is not meant to be used as a replacement for common sense or user/
  79. operator/administrative alertness!  Think of it as an aid, a first line
  80. of defense -- not as an impenetrable shield against security woes.  An
  81. experienced wrong-doer could easily circumnavigate _any_ protection that
  82. COPS can give.  However, COPS _can_ aid a system in protecting its users
  83. from (their own?) ignorance, carelessness, and the occasional malcontent
  84. user.
  85.  
  86.    Once again, COPS does not correct any errors found.  There are several
  87. reasons for this; first and foremost, computer security is a slippery
  88. beast.  What is a major breach in security at one site may be a standard
  89. policy of openness at another site.  Additionally, in order to correct all
  90. problems it finds, it would have to be run as a privileged user; and I'm
  91. not going to go into the myriad problems of running SUID shell scripts
  92. (See the bibliography at the end of the technical report for pointer to a
  93. good paper on this subject by Matt Bishop.)
  94.  
  95.    At this time, COPS does not attempt to detect bugs or features (such
  96. as infamous ftpd, fingerd, etc) that may cause security problems.  Although
  97. this may change in future versions, the current line of reasoning to avoid
  98. general publication of programs such as these is that all the problems that
  99. COPS detects can be repaired on any system it runs on.  However, many bugs
  100. can be readily repaired only be having source code (and possibly a good
  101. vendor to repair it), and many sites would have serious troubles if they
  102. suddenly discovered unrepairable problems that could compromise their
  103. livelihood.
  104.  
  105. Summary
  106. --------
  107.  
  108.    COPS is meant to be a tool to aid in the tightening of security, not
  109. as a weapon to be used by an enemy to find security flaws in a system.
  110. It may be argued that allowing anyone to have access to such a tool may
  111. be dangerous.  But hopefully the overall benefit for systems that use
  112. this package will outweigh any negative impact.  To me it is akin to a
  113. law enforcement problem -- that although telling the public how to break
  114. into a house may foster a slight rise in break-in attempts, the overall
  115. rise in public awareness on how to defend themselves would actually result
  116. in a drop in break-ins.  The crackers with black hats already know how
  117. to crush system defenses and have similar tools, I'm sure.  It's time
  118. we fought back.
  119.  
  120.   COPS is not the final answer to anyone's security woes.  You can use
  121. the system as long as you realize that COPS has no warranty, implied
  122. or otherwise, and that any problems that you may have with it are
  123. not my or any of the other authors' fault.  I will certainly attempt to
  124. help you solve them, if I am able.  If you have ideas for additional
  125. programs, or a better implementation of any of the programs here, I would
  126. be very interested in seeing them.
  127.  
  128.    So good luck, and I hope you find COPS useful as we plunge into UNIX
  129. of the 1990's.
  130.  
  131.    dan
  132.    df@cert.sei.cmu.edu
  133.  
  134.    May 17, 1991
  135.