home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / etc / security / vas042.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  49.5 KB  |  1,156 lines

  1.  
  2. ╔═════════════════════════════════════════════════════════════════════════════╗
  3. ║ ─────────────────────── ▀▄     █ █▀▀▀█ █▀▀▀▀ ────────────────────────────── ║
  4. ║ ───────────────────────── ▀▄   █ █   █ █▄▄▄▄ ────────────────────────────── ║
  5. ║ ─────────────────────────── ▀▄ █ █▀▀▀█     █ ────────────────────────────── ║
  6. ║ ───────────────────────────── ▀█ █   █ ▄▄▄▄█ ────────────────────────────── ║
  7. ╠═════════════════════════════════════════════════════════════════════════════╣
  8. ║                Vaginal and Anal Secretions Newsletter #0042                 ║
  9. ╟─────────────────────────────────────────────────────────────────────────────╢
  10. ║          Date Released : [07/01/92]       Author: The Smurfs (PROBE-X)      ║
  11. ╟─────────────────────────────────────────────────────────────────────────────╢
  12. ║          Almost Everything You Ever Wanted To Know About Security           ║
  13. ╙─────────────────────────────────────────────────────────────────────────────╜
  14.  
  15. Archive-name: alt-security-faq
  16. Last-modified: 1992/6/20
  17. Version: 1.4
  18.  
  19. Version History:
  20. 1.4    Fixed John Haugh's name, modified entry for "shadow"
  21.     Added Ulf Kieber's update on the rainbow series
  22.     Added bit about Karila paper
  23. 1.3:    Tweak for comp.security.misc/news.answers
  24.     Updated entry for orange book (foreign purchases)
  25. 1.2:    Undocumented prior to this
  26. ---------------------------------------------------------------------------
  27.     Almost Everything You Ever Wanted To Know About Security*
  28.                *(but were afraid to ask!)
  29.  
  30. This document is meant to answer some of the questions which regularly
  31. appear in the Usenet newsgroups "comp.security.misc" and "alt.security",
  32. and is meant to provide some background to the subject for newcomers to
  33. that newsgroup.
  34.  
  35. This FAQ is maintained by Alec Muffett (aem@aber.ac.uk, uknet!aber!aem),
  36. with contributions from numerous others [perhaps].  The views expressed
  37. in the document are the personal views of the author(s), and it should
  38. not be inferred that they are necessarily shared by anyone with whom the
  39. author(s) are now, or ever may be, associated.
  40.  
  41. Many thanks go to (in no particular order): Steve Bellovin, Matt Bishop,
  42. Mark Brader, Ed DeHart, Dave Hayes, Jeffrey Hutzelman, William LeFebvre,
  43. Wes Morgan, Rob Quinn, Chip Rosenthal, Wietse Venema, Gene Spafford,
  44. John Wack and Randall Atkinson.
  45.  
  46. Disclaimer: Every attempt is made to ensure that the information
  47. contained in this FAQ is up to date and accurate, but no responsibility
  48. will be accepted for actions resulting from information gained herein.
  49.  
  50. Questions which this document addresses:
  51.  
  52. Q.1 What are alt.security and comp.security.misc for?
  53. Q.2 Whats the difference between a hacker and a cracker?
  54. Q.3 What is "security through obscurity"
  55. Q.4 What makes a system insecure?
  56. Q.5 What tools are there to aid security?
  57. Q.6 Isn't it dangerous to give cracking tools to everyone?
  58. Q.7 Where can I get these tools?
  59. Q.8 Why and how do systems get broken into?
  60. Q.9 Who can I contact if I get broken into?
  61. Q.10 What is a firewall?
  62. Q.11 Why shouldn't I use setuid shell scripts?
  63. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  64. Q.13 Why shouldn't I create Unix accounts with null passwords?
  65. Q.14 What security holes are associated with X-windows (and other WMs)?
  66. Q.15 What security holes are associated with NFS?
  67. Q.16 How can I generate safe passwords?
  68. Q.17 Why are passwords so important?
  69. Q.18 How many possible passwords are there?
  70. Q.19 Where can I get more information?
  71. Q.20 How silly can people get?
  72.  
  73. ---------------------------------------------------------------------------
  74.  
  75. Q.1 What are alt.security and comp.security.misc for?
  76.  
  77. Comp.security.misc is a forum for the discussion of computer security,
  78. especially those relating to Unix (and Unix like) operating systems.
  79. Alt.security used to be the main newsgroup covering this topic, as well
  80. as other issues such as car locks and alarm systems, but with the
  81. creation of comp.security.misc, this may change.
  82.  
  83. This FAQ will concentrate wholly upon computer related security issues.
  84.  
  85. The discussions posted range from the likes of "What's such-and-such
  86. system like?" and "What is the best software I can use to do so-and-so"
  87. to "How shall we fix this particular bug?", although there is often a
  88. low signal to noise ratio in the newsgroup (a problem which this FAQ
  89. hopes to address).
  90.  
  91. The most common flamewars start when an apparent security novice posts a
  92. message saying "Can someone explain how the such-and-such security hole
  93. works?" and s/he is immediately leapt upon by a group of self appointed
  94. people who crucify the person for asking such an "unsound" question in a
  95. public place, and flame him/her for "obviously" being a cr/hacker.
  96.  
  97. Please remember that grilling someone over a high flame on the grounds
  98. that they are "a possible cr/hacker" does nothing more than generate a
  99. lot of bad feeling.  If computer security issues are to be dealt with in
  100. an effective manner, the campaigns must be brought (to a large extent)
  101. into the open.
  102.  
  103. Implementing computer security can turn ordinary people into rampaging
  104. paranoiacs, unable to act reasonably when faced with a new situation.
  105. Such people take an adversarial attitude to the rest of the human race,
  106. and if someone like this is in charge of a system, users will rapidly
  107. find their machine becoming more restrictive and less friendly (fun?) to
  108. use.
  109.  
  110. This can lead to embarrasing situations, eg: (in one university) banning
  111. a head of department from the college mainframe for using a network
  112. utility that he wasn't expected to.  This apparently required a lot of
  113. explaining to an unsympathetic committee to get sorted out.
  114.  
  115. A more sensible approach is to secure a system according to its needs,
  116. and if its needs are great enough, isolate it completely.  Please, don't
  117. lose your sanity to the cause of computer security; it's not worth it.
  118.  
  119. Q.2 What's the difference between a hacker and a cracker?
  120.  
  121. Lets get this question out of the way right now:
  122.  
  123. On USENET, calling someone a "cracker" is an unambiguous statement that
  124. some person persistently gets his/her kicks from breaking from into
  125. other peoples computer systems, for a variety of reasons.  S/He may pose
  126. some weak justification for doing this, usually along the lines of
  127. "because it's possible", but most probably does it for the "buzz" of
  128. doing something which is illicit/illegal, and to gain status amongst a
  129. peer group.
  130.  
  131. Particularly antisocial crackers have a vandalistic streak, and delete
  132. filestores, crash machines, and trash running processes in pursuit of
  133. their "kicks".
  134.  
  135. The term is also widely used to describe a person who breaks copy
  136. protection software in microcomputer applications software in order to
  137. keep or distribute free copies.
  138.  
  139. On USENET, calling someone a "hacker" is usually a statement that said
  140. person holds a great deal of knowledge and expertise in the field of
  141. computing, and is someone who is capable of exercising this expertise
  142. with great finesse.  For a more detailed definition, readers are
  143. referred to the Jargon File [Raymond].
  144.  
  145. In the "real world", various media people have taken the word "hacker"
  146. and coerced it into meaning the same as "cracker" - this usage
  147. occasionally appears on USENET, with disastrous and confusing results.
  148.  
  149. Posters to the security newsgroups should note that they currently risk
  150. a great deal of flamage if they use the word "hacker" in place of
  151. "cracker" in their articles.
  152.  
  153. NB: nowhere in the above do I say that crackers cannot be true hackers.
  154. It's just that I don't say that they are...
  155.  
  156. Q.3 What is "security through obscurity"
  157.  
  158. Security Through Obscurity (STO) is the belief that a system of any sort
  159. can be secure so long as nobody outside of its implementation group is
  160. allowed to find out anything about its internal mechanisms.  Hiding
  161. account passwords in binary files or scripts with the presumption that
  162. "nobody will ever find it" is a prime case of STO.
  163.  
  164. STO is a philosophy favoured by many bureaucratic agencies (military,
  165. governmental, and industrial), and it used to be a major method of
  166. providing "pseudosecurity" in computing systems.
  167.  
  168. Its usefulness has declined in the computing world with the rise of open
  169. systems, networking, greater understanding of programming techniques, as
  170. well as the increase in computing power available to the average person.
  171.  
  172. The basis of STO has always been to run your system on a "need to know"
  173. basis.  If a person doesn't know how to do something which could impact
  174. system security, then s/he isn't dangerous.
  175.  
  176. Admittedly, this is sound in theory, but it can tie you into trusting a
  177. small group of people for as long as they live.  If your employees get
  178. an offer of better pay from somewhere else, the knowledge goes with
  179. them, whether the knowledge is replaceable or not.  Once the secret gets
  180. out, that is the end of your security.
  181.  
  182. Nowadays there is also a greater need for the ordinary user to know
  183. details of how your system works than ever before, and STO falls down a
  184. as a result.  Many users today have advanced knowledge of how their
  185. operating system works, and because of their experience will be able to
  186. guess at the bits of knowledge that they didn't "need to know".  This
  187. bypasses the whole basis of STO, and makes your security useless.
  188.  
  189. Hence there is now a need is to to create systems which attempt to be
  190. algorithmically secure (Kerberos, Secure RPC), rather than just
  191. philosophically secure.  So long as your starting criteria can be met,
  192. your system is LOGICALLY secure.
  193.  
  194. "Shadow Passwords" (below) are sometimes dismissed as STO, but this is
  195. incorrect, since (strictly) STO depends on restricting access to an
  196. algorithm or technique, whereas shadow passwords provide security by
  197. restricting access to vital data.
  198.  
  199. Q.4 What makes a system insecure?
  200.  
  201. Switching it on.  The adage usually quoted runs along these lines:
  202.  
  203.  "The only system which is truly secure is one which is switched off
  204.  and unplugged, locked in a titanium lined safe, buried in a concrete
  205.  bunker, and is surrounded by nerve gas and very highly paid armed
  206.  guards.  Even then, I wouldn't stake my life on it."
  207.  
  208. (the original version of this is attributed to Gene Spafford)
  209.  
  210. A system is only as secure as the people who can get at it.  It can be
  211. "totally" secure without any protection at all, so long as its continued
  212. good operation is important to everyone who can get at it, assuming all
  213. those people are responsible, and regular backups are made in case of
  214. hardware problems.  Many laboratory PC's quite merrily tick away the
  215. hours like this.
  216.  
  217. The problems arise when a need (such as confidentiality) has to be
  218. fulfilled.  Once you start putting the locks on a system, it is fairly
  219. likely that you will never stop.
  220.  
  221. Security holes manifest themselves in (broadly) four ways:
  222.  
  223. 1) Physical Security Holes.
  224.  
  225. - Where the potential problem is caused by giving unauthorised persons
  226. physical access to the machine, where this might allow them to perform
  227. things that they shouldn't be able to do.
  228.  
  229. A good example of this would be a public workstation room where it would
  230. be trivial for a user to reboot a machine into single-user mode and muck
  231. around with the workstation filestore, if precautions are not taken.
  232.  
  233. Another example of this is the need to restrict access to confidential
  234. backup tapes, which may (otherwise) be read by any user with access to
  235. the tapes and a tape drive, whether they are meant to have permission or
  236. not.
  237.  
  238. 2) Software Security Holes
  239.  
  240. software (daemons, cronjobs) which can be compromised into doing things
  241. which they shouldn't oughta.
  242.  
  243. The most famous example of this is the "sendmail debug" hole (see
  244. bibliography) which would enable a cracker to bootstrap a "root" shell.
  245. This could be used to delete your filestore, create a new account, copy
  246. your password file, anything.
  247.  
  248. (Contrary to popular opinion, crack attacks via sendmail were not just
  249. restricted to the infamous "Internet Worm" - any cracker could do this
  250. by using "telnet" to port 25 on the target machine.  The story behind a
  251. similar hole (this time in EMACS) is described in [Stoll].)
  252.  
  253. New holes like this appear all the time, and your best hopes are to:
  254.  
  255.   a: try to structure your system so that as little software as possible
  256.   runs with root/daemon/bin privileges, and that which does is known to
  257.   be robust.
  258.  
  259.   b: subscribe to a mailing list which can get details of problems
  260.   and/or fixes out to you as quickly as possible, and then ACT when you
  261.   receive information.
  262.  
  263. 3) Incompatible Usage Security Holes
  264.  
  265. - Where, through lack of experience, or no fault of his/her own, the
  266. System Manager assembles a combination of hardware and software which
  267. when used as a system is seriously flawed from a security point of view.
  268. It is the incompatibility of trying to do two unconnected but useful
  269. things which creates the security hole.
  270.  
  271. Problems like this are a pain to find once a system is set up and
  272. running, so it is better to build your system with them in mind.  It's
  273. never too late to have a rethink, though.
  274.  
  275. Some examples are detailed below; let's not go into them here, it would
  276. only spoil the surprise.
  277.  
  278. 4) Choosing a suitable security philosophy and maintaining it.
  279.  
  280. >From: Gene Spafford <spaf@cs.purdue.edu>
  281. >The fourth kind of security problem is one of perception and
  282. >understanding.  Perfect software, protected hardware, and compatible
  283. >components don't work unless you have selected an appropriate security
  284. >policy and turned on the parts of your system that enforce it.  Having
  285. >the best password mechanism in the world is worthless if your users
  286. >think that their login name backwards is a good password! Security is
  287. >relative to a policy (or set of policies) and the operation of a system
  288. >in conformance with that policy.
  289.  
  290. Q.5 What tools are there to aid security?
  291.  
  292. 1) "COPS"
  293.  
  294. Managed by Dan Farmer, this is a long established suite of shell scripts
  295. which forms an extensive security testing system; There is a rudimentary
  296. password cracker, and routines to check the filestore for suspicious
  297. changes in setuid programs, others to check permissions of essential
  298. system and user files, and still more to see whether any system software
  299. behaves in a way which could cause problems.
  300.  
  301. The software comes in two versions - one written in Perl and one
  302. (largely equivalent) written in shell scripts.  The latest version is
  303. very up-to-date on Unix Security holes.
  304.  
  305.  
  306. Written by Alec Muffett, this is a program written with one purpose in
  307. mind: to break insecure passwords.  It is probably the most efficent and
  308. friendly password cracker that is publically available, with the ability
  309. to let the user to specify precisely how to form the words to use as
  310. guesses at users passwords.
  311.  
  312. It also has an inbuilt networking capability, allowing the load of
  313. cracking to be spread over as many machines as are available on a
  314. network, and it is supplied with an optimised version of the Unix crypt()
  315. algorithm.
  316.  
  317. An even faster version of the crypt() algorithm, "UFC" by Michael Glad,
  318. is freely available on the network, and the latest versions of UFC and
  319. Crack are compatible and can be easily hooked together.
  320.  
  321. 3) NPasswd (Clyde Hoover) & Passwd+ (Matt Bishop)
  322.  
  323. These programs are written to redress the balance in the password
  324. cracking war.  They provide replacements for the standard "passwd"
  325. command, but prevent a user from selecting passwords which are easily
  326. compromised by programs like Crack.
  327.  
  328. Several versions of these programs are available on the network, hacked
  329. about to varying degrees in order to provide compatibility for System V
  330. based systems, NIS/YP, shadow password schemes, etc.  The usual term for
  331. this type of program is a 'fascist' password program.
  332.  
  333. 4) "Shadow" - a Shadow Password Suite
  334.  
  335. This program suite (by John F Haugh II) is a set of program and function
  336. replacements (compatible with most Unixes) which implements shadow
  337. passwords, ie: a system where the plaintext of the password file is
  338. hidden from all users except root, hopefully stopping all password
  339. cracking attempts at source.  In combination with a fascist passwd
  340. frontend, it should provide a good degree of password file robustness.
  341.  
  342. >From: jfh@rpp386.lonestar.org (John F. Haugh II)
  343. >Shadow does much more than hide passwords.  It also provides for
  344. >terminal access control, user and group administration, and a few
  345. >other things which I've forgotten.  There are a dozen or more
  346. >commands in the suite, plus a whole slew of library functions.
  347.  
  348.  
  349. These are programs which provide a front-end filter to many of the
  350. network services which Unix provides by default.  If installed, they can
  351. curb otherwise unrestricted access to potential dangers like incoming
  352. FTP/TFTP, Telnet, etc, and can provide extra logging information, which
  353. may be of use if it appears that someone is trying to break in.
  354.  
  355. 6) SecureLib
  356.  
  357. >From: phil@pex.eecs.nwu.edu (William LeFebvre)
  358. >You may want to add a mention of securelib, a security enhancer
  359. >available for SunOS version 4.1 and higher.
  360.  
  361. >Securelib contains replacement routines for three kernel calls:
  362. >accept(), recvfrom(), recvmsg().  These replacements are compatible with
  363. >the originals, with the additional functionality that they check the
  364. >Internet address of the machine initiating the connection to make sure
  365. >that it is "allowed" to connect.  A configuration file defines what
  366. >hosts are allowed for a given program.  Once these replacement routines
  367. >are compiled, they can be used when building a new shared libc library.
  368. >The resulting libc.so can then be put in a special place.  Any program
  369. >that should be protected can then be started with an alternate
  370. >LD_LIBRARY_PATH.
  371.  
  372. 7) SPI
  373.  
  374. >From: Gene Spafford <spaf@cs.purdue.edu>
  375. >Sites connected with the Department of Energy and some military
  376. >organizations may also have access to the SPI package.  Interested (and
  377. >qualified) users should contact the CIAC at LLNL for details.
  378.  
  379. >SPI is a screen-based administrator's tool that checks configuration
  380. >options, includes a file-change (integrity) checker to monitor for
  381. >backdoors and viruses, and various other security checks.  Future
  382. >versions will probably integrate COPS into the package.  It is not
  383. >available to the general public, but it is available to US Dept of
  384. >Energy contractors and sites and to some US military sites.  A version
  385. >does or will exist for VMS, too.  Further information on availabilty can
  386. >be had from the folks at the DoE CIAC.
  387.  
  388. Q.6 Isn't it dangerous to give cracking tools to everyone?
  389.  
  390. That depends on your point of view.  Some people have complained that
  391. giving unrestricted public access to programs like COPS and Crack is
  392. irresponsible because the "baddies" can get at them easily.
  393.  
  394. Alternatively, you may believe that the really bad "baddies" have had
  395. programs like this for years, and that it's really a stupendously good
  396. idea to give these programs to the good guys too, so that they may check
  397. the integrity of their system before the baddies get to them.
  398.  
  399. So, who wins more from having these programs freely available? The good
  400. guys or the bad ? You decide, but remember that less honest tools than
  401. COPS and Crack tools were already out there, and most of the good guys
  402. didn't have anything to help.
  403.  
  404. Q.7 Where can I get these tools?
  405.  
  406. COPS:
  407.  
  408.   V1.04, available for FTP from cert.sei.cmu.edu in pub/cops and
  409.   archive.cis.ohio-state.edu in pub/cops.
  410.  
  411. Crack/UFC:
  412.  
  413.   archive (eg: ftp.uu.net) in volume 28 of comp.sources.misc.
  414.  
  415. NPasswd:
  416.  
  417.   Currently suffering from being hacked about by many different people.
  418.   Version 2.0 is in the offing, but many versions exist in many
  419.   different configurations. Will chase this up with authors - AEM
  420.  
  421. Passwd+:
  422.  
  423.   "alpha version, update 3" - beta version due soon.  Available from
  424.   dartmouth.edu as pub/passwd+.tar.Z
  425.  
  426. Shadow:
  427.  
  428.   This is available from the comp.sources.misc directory at any major
  429.   USENET archive (see entry for Crack)
  430.  
  431. TCP Wrappers:
  432.  
  433.   Available for anonymous FTP:
  434.  
  435.     cert.sei.cmu.edu: pub/network_tools/tcp_wrapper.shar
  436.     ftp.win.tue.nl: pub/security/log_tcp.shar.Z
  437.  
  438. Securelib:
  439.  
  440.   The latest version of securelib is available via anonymous FTP from the
  441.   host "eecs.nwu.edu".  It is stored in the file "pub/securelib.tar".
  442.  
  443. Q.8 Why and how do systems get broken into?
  444.  
  445. This is hard to answer definitively.  Many systems which crackers break
  446. into are only used as a means of entry into yet more systems; by hopping
  447. between many machines before breaking into a new one, the cracker hopes
  448. to confuse any possible pursuers and put them off the scent.  There is
  449. an advantage to be gained in breaking into as many different sites as
  450. possible, in order to "launder" your connections.
  451.  
  452. Another reason may be psychological: some people love to play with
  453. computers and stretch them to the limits of their capabilities.
  454.  
  455. Some crackers might think that it's "really neat" to hop over 6 Internet
  456. machines, 2 gateways and an X.25 network just to knock on the doors of
  457. some really famous company or institution (eg: NASA, CERN, AT+T, UCB).
  458. Think of it as inter-network sightseeing.
  459.  
  460. This view is certainly appealing to some crackers, and certainly leads
  461. to both the addiction and self-perpetuation of cracking.
  462.  
  463. As to the "How" of the question, this is again a very sketchy area.  In
  464. universities, it is extremely common for computer account to be passed
  465. back and forth between undergraduates:
  466.  
  467.   "Mary gives her account password to her boyfriend Bert at another
  468.   site, who has a friend Joe who "plays around on the networks".  Joe
  469.   finds other crackable accounts at Marys site, and passes them around
  470.   amongst his friends..." pretty soon, a whole society of crackers is
  471.   playing around on the machines that Mary uses.
  472.  
  473. This sort of thing happens all the time, and not just in universities.
  474. One solution is in education.  Do not let your users develop attitudes
  475. like this one:
  476.  
  477.        "It doesn't matter what password I use on _MY_ account,
  478.             after all, I only use it for laserprinting..."
  479.                 - an Aberystwyth Law student, 1991
  480.  
  481. Teach them that use of the computer is a group responsibility.  Make
  482. sure that they understand that a chain is only as strong as it's weak
  483. link.
  484.  
  485. Finally, when you're certain that they understand your problems as a
  486. systems manager and that they totally sympathise with you, configure
  487. your system in such a way that they can't possibly get it wrong.
  488.  
  489. Believe in user education, but don't trust to it alone.
  490.  
  491. Q.9 Who can I contact if I get broken into?
  492.  
  493. If you're connected to the Internet, you should certainly get in touch
  494. with CERT, the Computer Emergency Response Team.
  495.  
  496.     To quote the official blurb:
  497.  
  498. >From: Ed DeHart
  499. > The Computer Emergency Response Team (CERT) was formed by the Defense
  500. > Advanced Research Projects Agency (DARPA) in 1988 to serve as a focal
  501. > point for the computer security concerns of Internet users.  The
  502. > Coordination Center for the CERT is located at the Software Engineering
  503. > Institute, Carnegie Mellon University, Pittsburgh, PA.
  504.  
  505. > Internet E-mail: cert@cert.sei.cmu.edu
  506. > Telephone: 412-268-7090 24-hour hotline:
  507. >     CERT/CC personnel answer 7:30a.m. to 6:00p.m. EST(GMT-5)/EDT(GMT-4),
  508. >     and are on call for emergencies during other hours.
  509.  
  510. ...and also, the umbrella group "FIRST", which mediates between the
  511. incident handling teams themselves...
  512.  
  513. >From: John Wack <wack@csrc.ncsl.nist.gov>
  514. >[...] FIRST is actually a very viable and growing
  515. >organization, of which CERT is a member.  It's not actually true that,
  516. >if you're connected to the Internet, you should call CERT only - that
  517. >doesn't do justice to the many other response teams out there and in the
  518. >process of forming.
  519.  
  520. >NIST is currently the FIRST secretariat; we maintain an anonymous ftp
  521. >server with a directory of FIRST information (csrc.ncsl.nist.gov:
  522. >~/pub/first).  This directory contains a contact file that lists the
  523. >current members and their constituencies and contact information
  524. >(filename "first-contacts").
  525.  
  526. >While CERT is a great organization, other response teams who do handle
  527. >incidents on their parts of the Internet merit some mention as well -
  528. >perhaps mentioning the existence of this file would help to do that in a
  529. >limited space.
  530.  
  531. The file mentioned is a comprehensive listing of contact points per
  532. network for security incidents.  It is too large to reproduce here, I
  533. suggest that the reader obtains a copy for his/her self by the means
  534. given.
  535.  
  536. Q.10 What is a firewall?
  537.  
  538. A (Internet) firewall is a machine which is attached (usually) between
  539. your site and a wide area network.  It provides controllable filtering
  540. of network traffic, allowing restricted access to certain internet port
  541. numbers (ie: services that your machine would otherwise provide to the
  542. network as a whole) and blocks access to pretty well everything else.
  543. Similar machines are available for other network types, too.
  544.  
  545. Firewalls are an effective "all-or-nothing" approach to dealing with
  546. external access security, and they are becoming very popular, with the
  547. rise in Internet connectivity.
  548.  
  549. For more information on these sort of topics, see the Gateway paper by
  550. [Cheswick], below.
  551.  
  552. Q.11 Why shouldn't I use setuid shell scripts?
  553.  
  554. You shouldn't use them for a variety of reasons, mostly involving bugs
  555. in the Unix kernel.  Here are a few of the more well known problems,
  556. some of which are fixed on more recent operating systems.
  557.  
  558. 1) If the script begins "#!/bin/sh" and a link (symbolic or otherwise)
  559. can be made to it with the name "-i", a setuid shell can be immediately
  560. obtained because the script will be invoked: "#!/bin/sh -i", ie: an
  561. interactive shell.
  562.  
  563. 2) Many kernels suffer from a race condition which can allow you to
  564. exchange the shellscript for another executable of your choice between
  565. the times that the newly exec()ed process goes setuid, and when the
  566. command interpreter gets started up.  If you are persistent enough, in
  567. theory you could get the kernel to run any program you want.
  568.  
  569. 3) The IFS bug: the IFS shell variable contains a list of characters to
  570. be treated like whitespace by a shell when parsing command names.  By
  571. changing the IFS variable to contain the "/" character, the command
  572. "/bin/true" becomes "bin true".
  573.  
  574. All you need do is export the modified IFS variable, install a command
  575. called "bin" in your path, and run a setuid script which calls
  576. "/bin/true".  Then "bin" will be executed whilst setuid.
  577.  
  578. If you really must write scripts to be setuid, either
  579.  
  580.   a) Put a setuid wrapper in "C" around the script, being very careful
  581.   to reset IFS and PATH to something sensible before exec()ing the
  582.   script.  If your system has runtime linked libraries, consider the
  583.   values of the LD_LIBRARY_PATH also.
  584.  
  585.   b) Use a scripting language like Perl which has a safe setuid
  586.   facility, and is proactively rabid about security.
  587.  
  588.  
  589. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  590.  
  591. Using a 'smart' terminal as console and leaving "/dev/console" world
  592. writable whilst "root" is logged in is a potential hole.  The terminal
  593. may be vulnerable to remote control via escape sequences, and can be
  594. used to 'type' things into the root shell.  The terminal type can
  595. usually be obtained via the "ps" command.
  596.  
  597. Various solutions to this can be devised, usually by giving the console
  598. owner and group-write access only , and then using the setgid mechanism
  599. on any program which has need to output to the console (eg: "write").
  600.  
  601. Q.13 Why shouldn't I create Unix accounts with null passwords?
  602.  
  603. Creating an unpassworded account to serve any purpose is potentially
  604. dangerous, not for any direct reason, but because it can give a cracker
  605. a toehold.
  606.  
  607. For example, on many systems you will find a unpassworded user "sync",
  608. which allows the sysman to sync the disks without being logged in.  This
  609. appears to be both safe and innocuous.
  610.  
  611. The problem with this arises if your system is one of the many which
  612. doesn't do checks on a user before authorising them for (say) FTP.  A
  613. cracker might be able to connect to your machine for one of a variety of
  614. FTP methods, pretending to be user "sync" with no password, and then
  615. copy your password file off for remote cracking.
  616.  
  617. Although there are mechanisms to prevent this sort of thing happening in
  618. most modern vesions of Unix, to be totally secure requires an in-depth
  619. knowledge of every package on your system, and how it deals with the
  620. verification of users.  If you can't be sure, it's probably better not
  621. to leave holes like this around.
  622.  
  623. Another hole that having null-password accounts opens up is the
  624. possibility (on systems with runtime linked libraries) of spoofing
  625. system software into running your programs as the "sync" user, by
  626. changing the LD_LIBRARY_PATH variable to a library of your own devising,
  627. and running "login -p" or "su" to turn into that user.
  628.  
  629. Q.14 What security holes are associated with X-windows (and other WMs)?
  630.  
  631. security of the entire host system.
  632.  
  633. I would prefer not to go into too much detail here, and would refer any
  634. reader reader looking for detailed information to the other FAQ's in
  635. relevant newsgroups.  (comp.windows.*)
  636.  
  637. One point I will make is that X is one of those packages which often
  638. generates "Incompatible Usage" security problems, for instance the
  639. ability for crackers to run xsessions on hosts under accounts with no
  640. password (eg: sync), if it is improperly set up.  Read the question
  641. about unpassworded accounts in this FAQ.
  642.  
  643. Q.15 What security holes are associated with NFS?
  644.  
  645. Lots, mostly to do with who you export your disks to, and how.  The
  646. security of NFS relies heavily upon who is allowed to mount the files
  647. that a server exports, and whether they are exported read only or not.
  648.  
  649. The exact format for specifying which hosts can mount an exported
  650. directory varies between Unix implementations, but generally the
  651. information is contained within the file "/etc/exports".
  652.  
  653. This file contains a list of directories and for each one, it has a
  654. series of either specific "hosts" or "netgroups" which are allowed to
  655. NFS mount that directory.  This list is called the "access list".
  656.  
  657. The "hosts" are individual machines, whilst "netgroups" are combinations
  658. of hosts and usernames specified in "/etc/netgroup".  These are meant to
  659. provide a method of finetuning access.  Read the relevant manual page
  660. for more information about netgroups.
  661.  
  662. The exports file also contains information about whether the directory
  663. is to be exported as read-only, read-write, and whether super-user
  664. access is to be allowed from clients which mount that directory.
  665.  
  666. The important point to remember is that if the access list for a
  667. particular directory in /etc/exports contains:
  668.  
  669. 1) <nothing>
  670.  
  671. Your directory can be mounted by anyone, anywhere.
  672.  
  673. 2) <a specific hostname>
  674.  
  675. Your directory can be mounted by anyone permitted to run the mount
  676. command at hostname.  This might not be a trustworthy person; for
  677. instance, if the machine is a PC running NFS, it could be anyone.
  678.  
  679. 3) <a netgroup name>
  680.  
  681. If the netgroup:
  682.  
  683. a) is empty, anyone can mount your directory, from anywhere.
  684.  
  685. b) contains "(,,)", anyone can mount your directory, from anywhere.
  686.  
  687. c) contains the name of a netgroup which is empty or contains "(,,)",
  688.    anyone can mount your directory, from anywhere.
  689.  
  690. d) contains "(hostname,,)", anyone on the named host who is permissioned
  691.    to mount files can mount your directory.
  692.  
  693. e) contains "(,username,)", the named user can mount your directory,
  694.    from anywhere.
  695.  
  696.  
  697. If you meant to export the directory to the host "athena" but actually
  698. type "ahtena", the word "ahtena" is taken as a netgroup name, is found
  699. to be an empty netgroup, and thus the directory can be mounted by
  700. anyone, anywhere.
  701.  
  702. So, if you aren't careful about what you put into /etc/exports and
  703. /etc/netgroup you could find that a user with a PC could
  704.  
  705.   a) mount your mainframe filestore as a network disk
  706.   b) edit your /etc/passwd or .rhosts or /etc/hosts.equiv ...
  707.   c) log into your mainframe as another user, possibly "root"
  708.  
  709. Disclaimer: The above information may not be true for all platforms
  710. which provide an NFS serving capability, but is true for all of the ones
  711. in my experience (AEM).  It should be noted that the SAFE way to create
  712. an "empty" netgroup entry is:
  713.  
  714.                ngname (-,-,-)
  715.  
  716. Which is a netgroup which matches no-one on no-host on no-NIS-domain.
  717.  
  718. [ I am STILL working on PC NFS packages / ethics at the moment - AEM ]
  719.  
  720. Q.16 How can I generate safe passwords?
  721.  
  722. You can't.  The key word here is GENERATE.  Once an algorithm for
  723. creating passwords is specified using upon some systematic method, it
  724. merely becomes a matter of analysing your algorithm in order to find
  725. every password on your system.
  726.  
  727. Unless the algorithm is very subtle, it will probably suffer from a very
  728. low period (ie: it will soon start to repeat itself) so that either:
  729.  
  730.   a) a cracker can try out every possible output of the password
  731.   generator on every user of the system, or
  732.  
  733.   b) the cracker can analyse the output of the password program,
  734.   determine the algorithm being used, and apply the algorithm to other
  735.   users to determine their passwords.
  736.  
  737. A beautiful example of this (where it was disastrously assumed that a
  738. random number generator could generate an infinite number of random
  739. passwords) is detailed in [Morris & Thompson].
  740.  
  741. The only way to get a reasonable amount of variety in your passwords
  742. (I'm afraid) is to make them up.  Work out some flexible method of your
  743. own which is NOT based upon:
  744.  
  745.   1) modifying any part of your name or name+initials
  746.   2) modifying a dictionary word
  747.   3) acronyms
  748.   4) any systematic, well-adhered-to algorithm whatsoever
  749.  
  750. For instance, NEVER use passwords like:
  751.  
  752. alec7         - it's based on the users name (& it's too short anyway)
  753. tteffum        - based on the users name again
  754. gillian        - girlfiends name (in a dictionary)
  755. naillig        - ditto, backwards
  756. PORSCHE911     - it's in a dictionary
  757. 12345678     - it's in a dictionary (& people can watch you type it easily)
  758. qwertyui     - ...ditto...
  759. abcxyz        - ...ditto...
  760. 0ooooooo    - ...ditto...
  761. Computer     - just because it's capitalised doesn't make it safe
  762. wombat6     - ditto for appending some random character
  763. 6wombat     - ditto for prepending some random character
  764. merde3        - even for french words...
  765. mr.spock     - it's in a sci-fi dictionary
  766. zeolite     - it's in a geological dictionary
  767. ze0lite     - corrupted version of a word in a geological dictionary
  768. ze0l1te     - ...ditto...
  769. Z30L1T3     - ...ditto...
  770.  
  771. I hope that these examples emphasise that ANY password derived from ANY
  772. dictionary word (or personal information), modified in ANY way,
  773. constitutes a potentially guessable password.
  774.  
  775. For more detailed information in the same vein, you should read the
  776. APPENDIX files which accompany Crack [Muffett].
  777.  
  778. Q.17 Why are passwords so important?
  779.  
  780. Because they are the first line of defence against interactive attacks
  781. on your system.  It can be stated simply: if a cracker cannot interact
  782. with your system(s), and he has no access to read or write the
  783. information contained in the password file, then he has almost no
  784. avenues of attack left open to break your system.
  785.  
  786. This is also why, if a cracker can at least read your password file (and
  787. if you are on a vanilla modern Unix, you should assume this) it is so
  788. important that he is not able to break any of the passwords contained
  789. therein.  If he can, then it is also fair to assume that he can (a) log
  790. on to your system and can then (b) break into "root" via an operating
  791. system hole.
  792.  
  793. Q.18 How many possible passwords are there?
  794.  
  795. Most people ask this at one time or another, worried that programs like
  796. Crack will eventually grow in power until they can do a completely
  797. exhaustive search of all possible passwords, to break into a specific
  798. users' account - usually root.
  799.  
  800. If (to simplify the maths) we make the assumptions that:
  801.  
  802.   1) Valid passwords are created from a set of 62 chars [A-Za-z0-9]
  803.   2) Valid passwords are to be between 5 and 8 chars long
  804.  
  805.  
  806.                    100000 +
  807.                   1000000 +
  808.                  10000000 +
  809.                 100000000 =
  810.                 ---------
  811.                 111100000    (base 62)
  812.  
  813. A figure which is far too large to usefully undertake an exhaustive
  814. search with current technologies.  Don't forget, however, that passwords
  815. CAN be made up with even more characters then this; you can use <space>,
  816. all the punctuation characters, and symbols (~<>|\#$%^&*) too.  If you
  817. can use some of all the 95 non-control characters in passwords, this
  818. increases the search space for a cracker to cover even further.
  819.  
  820. However, it's still MUCH more efficient for a cracker to get a copy of
  821. "Crack", break into ANY account on the system (you only need one), log
  822. onto the machine, and spoof his way up to root priviledges via operating
  823. systems holes.
  824.  
  825. Take comfort from these figures.  If you can slam the door in the face
  826. of a potential crackers with a robust password file, you have sealed
  827. most of the major avenues of attack immediately.
  828.  
  829. Q.19 Where can I get more information?
  830.  
  831. Books:
  832.  
  833. [Kochan & Wood]
  834. Unix System Security
  835.  
  836. A little dated for modern matters, but still a very good book on the
  837. basics of Unix security.
  838.  
  839. [Spafford & Garfinkel]
  840. Practical Unix Security
  841.  
  842. This wonderful book is a worthy successor to the above, and covers a
  843. wide variety of the topics which the Unix (and some non Unix) system
  844. manager of the 90's will come across.
  845.  
  846. >From: Gene Spafford <spaf@cs.purdue.edu>
  847. >Mention appendix E in "Practical Unix Security."^[[K
  848.  
  849. Okay: Appendix E contains an extensive bibliography with even more
  850. pointers to security books than this FAQ contains.
  851.  
  852. [Stoll]
  853. The Cuckoo's Egg
  854.  
  855. A real life 1980's thriller detailing the tracing of a cracker from
  856. Berkeley across the USA and over the Atlantic to Germany.  An excellent
  857. view from all points: a good read, informative about security, funny,
  858. and a good illustration of the cracker psyche.  Contains an excellent
  859. recipie for chocolate chip cookies.
  860.  
  861. A videotape of the "NOVA" (PBS's Science Program on TV) episode that
  862. explained/reenacted this story is available from PBS Home Video.  They
  863. have a toll-free 800 number within North America.
  864.  
  865. I believe that this program was aired on the BBC's "HORIZON" program,
  866. and thus will be available from BBC Enterprises, but I haven't checked
  867. this out yet - AEM
  868.  
  869. [Raymond] (Ed.)
  870. The New Hackers Dictionary/Online Jargon File
  871.  
  872. A mish-mash of history and dictionary definitions which explains why it
  873. is so wonderful to be a hacker, and why those crackers who aren't
  874. hackers want to be called "hackers".  The Jargon File version is
  875. available online - check an archie database for retails.  Latest
  876. revision: 2.99.
  877.  
  878. [Gasser]
  879. Building a Secure Computer System.
  880.  
  881. By Morrie Gasser, and van Nostrand Reinhold; explains what is required
  882. to build a secure computer system.
  883.  
  884. [Rainbow Series] (Especially the "Orange Book")
  885.  
  886. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  887. >The "Rainbow Series" consists of about 25 volumes.  Some of the
  888. >more interesting ones are:
  889. >
  890. >    The "Orange Book", or Trusted Computer Systems Evaluation
  891. >        Criteria, which describes functional and assurance
  892. >        requirements for computer systems
  893. >
  894. >    Trusted Database Interpretation, which talks both about
  895. >        trusted databases and building systems out of trusted
  896. >        components
  897. >
  898. >    Trusted Network Interpretation, which (obviously) talks
  899. >        about networked systems
  900. >
  901. >A (possibly) complete list is:
  902. >    -- Department of Defense Trusted Computer System Evaluation Criteria
  903. >       (TCSEC), aka the "Orange Book"
  904. >    -- Computer Security Subsystem Interpretation of the TCSEC
  905. >    -- Trusted Data Base Management System Interpretation of the TCSEC
  906. >    -- Trusted Network Interpretation of the TCSEC
  907. >    -- Trusted Network Interpretation Environments Guideline -- Guidance
  908. >       for Applying the Trusted Network Interpretation
  909. >    -- Trusted Unix Working Group (TRUSIX) Rationale for Selecting
  910. >       Access Control List Features for the Unix System
  911. >    -- Trusted Product Evaulations -- A Guide for Vendors
  912. >    -- Computer Security Requirements -- Guidance for Applying the DoD
  913. >       TCSEC in Specific Environments
  914. >    -- Technical Rationale Behind CSC-STD-003-85: Computer Security
  915. >       Requirements
  916. >    -- Trusted Product Evaluation Questionnaire
  917. >    -- Rating Maintenance Phase -- Program Document
  918. >    -- Guidelines for Formal Verification Systems
  919. >    -- A Guide to Understanding Audit in Trusted Systems
  920. >    -- A Guide to Understanding Trusted Facility Management
  921. >    -- A Guide to Understanding Discretionary Access Control in Trusted
  922. >       Systems
  923. >    -- A Guide to Understanding Configuration Management in Trusted Systems
  924. >    -- A Guide to Understanding Design Documentation in Trusted Systems
  925. >    -- A Guide to Understanding Trusted Distribution in Trusted Systems
  926. >    -- A Guide to Understanding Data Remanence in Automated Information
  927. >       Systems
  928. >    -- Department of Defense Password Management Guideline
  929. >    -- Glossary of Computer Security Terms
  930. >    -- Integrity in Automated Information Systems
  931. >
  932. >You can get your own copy (free) of any or all of the books by
  933. >writing or calling:
  934. >
  935. >    INFOSEC Awareness Office
  936. >    National Computer Security Centre
  937. >    9800 Savage Road
  938. >    Fort George G. Meade, MD  20755-6000
  939. >    Tel +1 301 766-8729
  940. >
  941. >If you ask to be put on the mailing list, you'll get a copy of each new
  942. >book as it comes out (typically a couple a year).
  943.  
  944. >From: kleine@fzi.de (Karl Kleine)
  945. >I was told that this offer is only valid for US citizens ("We only send
  946. >this stuff to a US postal address").  Non-US people have to PAY to get
  947. >hold of these documents.  They can be ordered from NTIS, the National
  948. >Technical Information Service:
  949. >    NTIS,
  950. >    5285 Port Royal Rd,
  951. >    Springfield VA 22151,
  952. >    USA
  953. >    order dept phone: +1-703-487-4650, fax +1-703-321-8547
  954.  
  955. >From: Ulf Kieber <kieber@de.tu-dresden.inf.freia>
  956. >just today I got my set of the Rainbow Series.
  957. >
  958. >There are three new books:
  959. > -- A Guide to Understanding Trusted Recovery in Trusted Systems
  960. > -- A Guide to Understanding Identification and Authentication in Trusted
  961. >    Systems
  962. > -- A Guide to Writing the Security Features User's Guide for Trusted Systems
  963. >
  964. >They also shipped
  965. > -- Advisory Memorandum on Office Automation Security Guideline
  966. >issued by NTISS.  Most of the books (except three or four) can also be
  967. >purchased from
  968. >
  969. >    U.S. Government Printing Office
  970. >    Superintendent of Documents
  971. >    Washington, DC 20402        phone: (202) 783-3238
  972. >
  973. >>-- Integrity in Automated Information Systems
  974. >THIS book was NOT shipped to me--I'm not sure if it is still in
  975. >the distribution.
  976.  
  977. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  978. >...
  979. >The ITSEC (Information Technology Security Evaluation Criteria) is a
  980. >harmonized document developed by the British, German, French, and
  981. >Netherlands governments.  It separates functional and assurance
  982. >requirements, and has many other differences from the TCSEC.
  983. >
  984. >You can get your copy (again, free/gratis) by writing:
  985. >
  986. >    Commission of the European Communities
  987. >    Directorate XIII/F
  988. >    SOG-IS Secretariat
  989. >    Rue de la Loi 200
  990. >    B-1049 BRUSSELS
  991. >    Belgium
  992.  
  993. Also note that NCSC periodically publish an "Evaluated Products List"
  994. which is the definitive statement of which products have been approved
  995. at what TCSEC level under which TCSEC interpretations.  This is useful
  996. for separating the output of marketdroids from the truth.
  997.  
  998. Papers:
  999.  
  1000. [Morris & Thompson]
  1001. Password Security, A Case History
  1002.  
  1003. A wonderful paper, first published in CACM in 1974, which is now often
  1004. to found in the Unix Programmer Docs supplied with many systems.
  1005.  
  1006. [Curry]
  1007. Improving the Security of your Unix System.
  1008.  
  1009. A marvellous paper detailing the basic security considerations every
  1010. Unix systems manager should know.  Available as "security-doc.tar.Z"
  1011. from FTP sites (check an Archie database for your nearest site.)
  1012.  
  1013. [Klein]
  1014. Foiling the Cracker: A Survey of, and Improvements to, Password Security.
  1015.  
  1016. A thorough and reasoned analysis of password cracking trends, and the
  1017. reasoning behind techniques of password cracking.  Your nearest copy
  1018. should be easily found via Archie, searching for the keyword "Foiling".
  1019.  
  1020. [Cheswick]
  1021. The Design of a Secure Internet Gateway.
  1022.  
  1023. Great stuff.  It's research.att.com:/dist/Secure_Internet_Gateway.ps
  1024.  
  1025. [Cheswick]
  1026. An Evening With Berferd: in which a Cracker is Lured, Endured and Studied.
  1027.  
  1028. Funny and very readable, somewhat in the style of [Stoll] but more
  1029. condensed.  research.att.com:/dist/berferd.ps
  1030.  
  1031. [Bellovin89]
  1032. Security Problems in the TCP/TP Protocol Suite.
  1033.  
  1034. A description of security problems in many of the protocols widely used
  1035. in the Internet.  Not all of the discussed protocols are official
  1036. Internet Protocols (i.e.  blessed by the IAB), but all are widely used.
  1037. The paper originally appeared in ACM Computer Communications Review,
  1038. Vol 19, No 2, April 1989.  research.att.com:/dist/ipext.ps.Z
  1039.  
  1040. [Bellovin91]
  1041. Limitations of the Kerberos Authentication System
  1042.  
  1043. A discussion of the limitations and weaknesses of the Kerberos
  1044. Authentication System.  Specific problems and solutions are presented.
  1045. Very worthwhile reading.  Available on research.att.com via anonymous
  1046. ftp, originally appeared in ACM Computer Communications Review but the
  1047. revised version (identical to the online version, I think) appeared in
  1048. the Winter 1991 USENIX Conference Proceedings.
  1049.  
  1050. [Muffett]
  1051. Crack documentation.
  1052.  
  1053. The information which accompanies Crack contains a whimsical explanation
  1054. of password cracking techniques and the optimisation thereof, as well as
  1055. an incredibly long and silly diatribe on how to not choose a crackable
  1056. password.  A good read for anyone who needs convincing that password
  1057. cracking is _really easy_.
  1058.  
  1059. [Farmer]
  1060. COPS
  1061.  
  1062. Read the documentation provided with COPS.  Lots of hints and
  1063. philosophy.  The where, why and how behind the piece of security
  1064. software that started it all.
  1065.  
  1066. [CERT]
  1067. maillists/advisories/clippings
  1068.  
  1069. CERT maintains archives of useful bits of information that it gets from
  1070. USENET and other sources.  Also archives of all the security
  1071. "advisories" that it has posted (ie: little messages warning people that
  1072. there is a hole in their operating system, and where to get a fix)
  1073.  
  1074. [OpenSystemsSecurity]
  1075.  
  1076. A notorious (but apparently quite good) document, which has been dogged
  1077. by being in a weird postscript format.
  1078.  
  1079. >From: amesml@monu1.cc.monash.edu.au (Mark L. Ames)
  1080.  
  1081. >I've received many replies to my posting about Arlo Karila's paper,
  1082. >including the news (that I and many others have missed) that a
  1083. >manageable postscript file and text file are available via anonymous ftp
  1084. >from ajk.tele.fi (131.177.5.20) in the directory PublicDocuments.
  1085.  
  1086. These are all available for FTP browsing from "cert.sei.cmu.edu".
  1087.  
  1088. [RFC-1244]
  1089. Site Security Handbook
  1090.  
  1091. RFC-1244 : JP Holbrook & JK Reynolds (Eds.) "The Site Security Handbook"
  1092. covering incident handling and prevention.  July 1991; 101 pages
  1093. (Format: TXT=259129 bytes), also called "FYI 8"
  1094.  
  1095. [USENET]
  1096. comp.virus: for discussions of virii and other nasties, with a PC bent.
  1097. comp.unix.admin: for general administration issues
  1098. comp.unix.<platform>: for the hardware/software that YOU use.
  1099. comp.protocols.tcp-ip: good for problems with NFS, etc.
  1100.  
  1101. Q.20 How silly can people get?
  1102.  
  1103. This section (which I hope to expand) is a forum for learning by
  1104. example; if people have a chance to read about real life (preferably
  1105. silly) security incidents, it will hopefully instill in readers some of
  1106. the zen of computer security without the pain of experiencing it.
  1107.  
  1108. If you have an experience that you wish to share, please send it to the
  1109. editors.  It'll boost your karma no end.
  1110.  
  1111. ---------------------------------------------------------------------------
  1112. aem@aber.ac.uk: The best story I have is of a student friend of mine
  1113. (call him Bob) who spent his industrial year at a major computer
  1114. manufacturing company.  In his holidays, Bob would come back to college
  1115. and play AberMUD on my system.
  1116.  
  1117. Part of Bob's job at the company involved systems management, and the
  1118. company was very hot on security, so all the passwords were random
  1119. strings of letters, with no sensible order.  It was imperative that the
  1120. passwords were secure (this involved writing the random passwords down
  1121. and locking them in big, heavy duty safes).
  1122.  
  1123. One day, on a whim, I fed the MUD persona file passwords into Crack as a
  1124. dictionary (the passwords were stored plaintext) and then ran Crack on
  1125. our systems password file.  A few student accounts came up, but nothing
  1126. special.  I told the students concerned to change their passwords - that
  1127. was the end of it.
  1128.  
  1129. Being the lazy guy I am, I forgot to remove the passwords from the Crack
  1130. dictionary, and when I posted the next version to USENET, the words went
  1131. too.  It went to the comp.sources.misc moderator, came back over USENET,
  1132. and eventually wound up at Bob's company.  Round trip: ~10,000 miles.
  1133.  
  1134. Crack when it arrived.  When it immediately churned out the root
  1135. password on his machine, he damn near fainted...
  1136.  
  1137. The moral of this story is: never use the same password in two different
  1138. places, and especially on untrusted systems (like MUDs).
  1139.  
  1140. --
  1141.  aem@aber.ac.uk aem@uk.ac.aber aem%aber@ukacrl.bitnet mcsun!uknet!aber!aem
  1142.    - send (cryptographic) comp.sources.misc material to: aem@aber.ac.uk -
  1143.  
  1144.                   ───═════[ VaS DiSTRiBuTioN SiTeS ]═════───
  1145. ╔═════════════════════════════════════════════════════════════════════════════╗
  1146. ║  BBS Name                 Number       Baud   Sysop                Title    ║
  1147. ╟─────────────────────────────────────────────────────────────────────────────╢
  1148. ║  LiVe WiRE BBS        (313)464-1470    14.4   Studmuffin          World HQ  ║
  1149. ║  PoT BBS              (313)462-1906    24oo   Phreak_Accident     World HQ  ║
  1150. ║  TcH BBS              (713)373-4031    14.4   One Meg Cacher      Dist. #1  ║
  1151. ║  Floating Pancreas    (305)551-0311    14.4   Majestic Cockster   Dist. #2  ║
  1152. ║  Phantasm III         (313)884-2617    14.4   Scavenger           Dist. #3  ║
  1153. ╚═════════════════════════════════════════════════════════════════════════════╝
  1154.  
  1155.  
  1156.