Table of Contents for
Practical UNIX and Internet Security, 3rd Edition

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Practical UNIX and Internet Security, 3rd Edition by Alan Schwartz Published by O'Reilly Media, Inc., 2003
  1. Cover
  2. Practical Unix & Internet Security, 3rd Edition
  3. A Note Regarding Supplemental Files
  4. Preface
  5. Unix “Security”?
  6. Scope of This Book
  7. Which Unix System?
  8. Conventions Used in This Book
  9. Comments and Questions
  10. Acknowledgments
  11. A Note to Would-Be Attackers
  12. I. Computer Security Basics
  13. 1. Introduction: Some Fundamental Questions
  14. What Is Computer Security?
  15. What Is an Operating System?
  16. What Is a Deployment Environment?
  17. Summary
  18. 2. Unix History and Lineage
  19. History of Unix
  20. Security and Unix
  21. Role of This Book
  22. Summary
  23. 3. Policies and Guidelines
  24. Planning Your Security Needs
  25. Risk Assessment
  26. Cost-Benefit Analysis and Best Practices
  27. Policy
  28. Compliance Audits
  29. Outsourcing Options
  30. The Problem with Security Through Obscurity
  31. Summary
  32. II. Security Building Blocks
  33. 4. Users, Passwords, and Authentication
  34. Logging in with Usernames and Passwords
  35. The Care and Feeding of Passwords
  36. How Unix Implements Passwords
  37. Network Account and Authorization Systems
  38. Pluggable Authentication Modules (PAM)
  39. Summary
  40. 5. Users, Groups, and the Superuser
  41. Users and Groups
  42. The Superuser (root)
  43. The su Command: Changing Who You Claim to Be
  44. Restrictions on the Superuser
  45. Summary
  46. 6. Filesystems and Security
  47. Understanding Filesystems
  48. File Attributes and Permissions
  49. chmod: Changing a File’s Permissions
  50. The umask
  51. SUID and SGID
  52. Device Files
  53. Changing a File’s Owner or Group
  54. Summary
  55. 7. Cryptography Basics
  56. Understanding Cryptography
  57. Symmetric Key Algorithms
  58. Public Key Algorithms
  59. Message Digest Functions
  60. Summary
  61. 8. Physical Security for Servers
  62. Planning for the Forgotten Threats
  63. Protecting Computer Hardware
  64. Preventing Theft
  65. Protecting Your Data
  66. Story: A Failed Site Inspection
  67. Summary
  68. 9. Personnel Security
  69. Background Checks
  70. On the Job
  71. Departure
  72. Other People
  73. Summary
  74. III. Network and Internet Security
  75. 10. Modems and Dialup Security
  76. Modems: Theory of Operation
  77. Modems and Security
  78. Modems and Unix
  79. Additional Security for Modems
  80. Summary
  81. 11. TCP/IP Networks
  82. Networking
  83. IP: The Internet Protocol
  84. IP Security
  85. Summary
  86. 12. Securing TCP and UDP Services
  87. Understanding Unix Internet Servers and Services
  88. Controlling Access to Servers
  89. Primary Unix Network Services
  90. Managing Services Securely
  91. Putting It All Together: An Example
  92. Summary
  93. 13. Sun RPC
  94. Remote Procedure Call (RPC)
  95. Secure RPC (AUTH_DES)
  96. Summary
  97. 14. Network-Based Authentication Systems
  98. Sun’s Network Information Service (NIS)
  99. Sun’s NIS+
  100. Kerberos
  101. LDAP
  102. Other Network Authentication Systems
  103. Summary
  104. 15. Network Filesystems
  105. Understanding NFS
  106. Server-Side NFS Security
  107. Client-Side NFS Security
  108. Improving NFS Security
  109. Some Last Comments on NFS
  110. Understanding SMB
  111. Summary
  112. 16. Secure Programming Techniques
  113. One Bug Can Ruin Your Whole Day . . .
  114. Tips on Avoiding Security-Related Bugs
  115. Tips on Writing Network Programs
  116. Tips on Writing SUID/SGID Programs
  117. Using chroot( )
  118. Tips on Using Passwords
  119. Tips on Generating Random Numbers
  120. Summary
  121. IV. Secure Operations
  122. 17. Keeping Up to Date
  123. Software Management Systems
  124. Updating System Software
  125. Summary
  126. 18. Backups
  127. Why Make Backups?
  128. Backing Up System Files
  129. Software for Backups
  130. Summary
  131. 19. Defending Accounts
  132. Dangerous Accounts
  133. Monitoring File Format
  134. Restricting Logins
  135. Managing Dormant Accounts
  136. Protecting the root Account
  137. One-Time Passwords
  138. Administrative Techniques for Conventional Passwords
  139. Intrusion Detection Systems
  140. Summary
  141. 20. Integrity Management
  142. The Need for Integrity
  143. Protecting Integrity
  144. Detecting Changes After the Fact
  145. Integrity-Checking Tools
  146. Summary
  147. 21. Auditing, Logging, and Forensics
  148. Unix Log File Utilities
  149. Process Accounting: The acct/pacct File
  150. Program-Specific Log Files
  151. Designing a Site-Wide Log Policy
  152. Handwritten Logs
  153. Managing Log Files
  154. Unix Forensics
  155. Summary
  156. V. Handling Security Incidents
  157. 22. Discovering a Break-in
  158. Prelude
  159. Discovering an Intruder
  160. Cleaning Up After the Intruder
  161. Case Studies
  162. Summary
  163. 23. Protecting Against Programmed Threats
  164. Programmed Threats: Definitions
  165. Damage
  166. Authors
  167. Entry
  168. Protecting Yourself
  169. Preventing Attacks
  170. Summary
  171. 24. Denial of Service Attacks and Solutions
  172. Types of Attacks
  173. Destructive Attacks
  174. Overload Attacks
  175. Network Denial of Service Attacks
  176. Summary
  177. 25. Computer Crime
  178. Your Legal Options After a Break-in
  179. Criminal Hazards
  180. Criminal Subject Matter
  181. Summary
  182. 26. Who Do You Trust?
  183. Can You Trust Your Computer?
  184. Can You Trust Your Suppliers?
  185. Can You Trust People?
  186. Summary
  187. VI. Appendixes
  188. A. Unix Security Checklist
  189. Preface
  190. Chapter 1: Introduction: Some Fundamental Questions
  191. Chapter 2: Unix History and Lineage
  192. Chapter 3: Policies and Guidelines
  193. Chapter 4: Users, Passwords, and Authentication
  194. Chapter 5: Users, Groups, and the Superuser
  195. Chapter 6: Filesystems and Security
  196. Chapter 7: Cryptography Basics
  197. Chapter 8: Physical Security for Servers
  198. Chapter 9: Personnel Security
  199. Chapter 10: Modems and Dialup Security
  200. Chapter 11: TCP/IP Networks
  201. Chapter 12: Securing TCP and UDP Services
  202. Chapter 13: Sun RPC
  203. Chapter 14: Network-Based Authentication Systems
  204. Chapter 15: Network Filesystems
  205. Chapter 16: Secure Programming Techniques
  206. Chapter 17: Keeping Up to Date
  207. Chapter 18: Backups
  208. Chapter 19: Defending Accounts
  209. Chapter 20: Integrity Management
  210. Chapter 21: Auditing, Logging, and Forensics
  211. Chapter 22: Discovering a Break-In
  212. Chapter 23: Protecting Against Programmed Threats
  213. Chapter 24: Denial of Service Attacks and Solutions
  214. Chapter 25: Computer Crime
  215. Chapter 26: Who Do You Trust?
  216. Appendix A: Unix Security Checklist
  217. Appendix B: Unix Processes
  218. Appendixes C, D, and E: Paper Sources, Electronic Sources, and Organizations
  219. B. Unix Processes
  220. About Processes
  221. Signals
  222. Controlling and Examining Processes
  223. Starting Up Unix and Logging In
  224. C. Paper Sources
  225. Unix Security References
  226. Other Computer References
  227. D. Electronic Resources
  228. Mailing Lists
  229. Web Sites
  230. Usenet Groups
  231. Software Resources
  232. E. Organizations
  233. Professional Organizations
  234. U.S. Government Organizations
  235. Emergency Response Organizations
  236. Index
  237. Index
  238. Index
  239. Index
  240. Index
  241. Index
  242. Index
  243. Index
  244. Index
  245. Index
  246. Index
  247. Index
  248. Index
  249. Index
  250. Index
  251. Index
  252. Index
  253. Index
  254. Index
  255. Index
  256. Index
  257. Index
  258. Index
  259. Index
  260. Index
  261. Index
  262. Index
  263. About the Authors
  264. Colophon
  265. Copyright

T

tables (NIS+), What NIS+ Does, NIS+ Tables and Other Objects
TACACS and TACACS+ protocols, TACACS and TACACS+ (UDP Port 49)
tagging, hardware, Tagging
TAI (International Atomic Time), NTP: Network Time Protocol (UDP Port 123)
taint option, Perl, SUID Scripts
tainting, Tips on Writing SUID/SGID Programs
taintperl, Tips on Writing SUID/SGID Programs
Takedown: The Pursuit and Capture of Kevin Mitnick, America’s Most Wanted Computer Outlaw -- By the Man Who Did it (Shimomura, Tsutomu and Markoff, John), Understanding the Computer Security “Culture”
talk program, Contacting the Intruder, Terminal-based Trojan horses
talk service, UDP
tandem backup, Guarding Against Media Failure
Tanenbaum, Andrew S., Minix
Tangled Web (Power, Richard), Computer Crime and Law
tape drives, Keep your tape drives clean, Verify the backup, World-readable backup devices
cleaning, Keep your tape drives clean
problems with, Verify the backup
world-readable, World-readable backup devices
tapes, Verify your backups, Replace tapes as needed, Replace tapes as needed, How Long Should You Keep a Backup?
(see also media)
degradation of, Replace tapes as needed
print through process, Verify your backups
upgrading, How Long Should You Keep a Backup?
tar program, Building an Automatic Backup System, Simple Archives, Network Backup Systems, Encrypting Your Backups, Preserving the Evidence
TCB (trusted computing base), Trusted computing base
/tcb directory, Accounts Without Passwords
TCFS (Transparent Cryptographic Filesystem), The Virtual Filesystem Interface
tcov tester, Before You Finish
TCP (Transmission Control Protocol), Packets and Protocols, TCPTCP, The inetd Program, What TCP Wrappers does, Domain Name System (DNS) (TCP and UDP Port 53), Clogging (SYN Flood Attacks)
(see also network services)
connections, clogging, Clogging (SYN Flood Attacks)
connections, controlling, What TCP Wrappers does (see TCP Wrappers program)
TCP Wrappers program, Adding authentication to TCP/IP with ident, Controlling Access to Servers, Controlling Access to Servers, Access Control Lists with TCP WrappersWhat TCP Wrappers does, What TCP Wrappers does, What TCP Wrappers does, What TCP Wrappers does, The TCP Wrappers configuration languageMaking sense of your TCP Wrappers configuration files, The TCP Wrappers configuration language, The TCP Wrappers configuration language, The TCP Wrappers configuration language, The TCP Wrappers configuration language, Making sense of your TCP Wrappers configuration filesMaking sense of your TCP Wrappers configuration files, Making sense of your TCP Wrappers configuration files, Disabling finger, TCP Wrappers
-DPARANOID option, What TCP Wrappers does
-DPROCESS_OPTION option, What TCP Wrappers does
-DPROCESS_OPTIONS option, The TCP Wrappers configuration language, The TCP Wrappers configuration language
configuration language for, The TCP Wrappers configuration languageMaking sense of your TCP Wrappers configuration files
finger daemons provided with, Disabling finger
inetd and, Controlling Access to Servers, What TCP Wrappers does
IP spoofing and, The TCP Wrappers configuration language
tcpdchk utility for, Making sense of your TCP Wrappers configuration filesMaking sense of your TCP Wrappers configuration files
tcpdmatch utility for, Making sense of your TCP Wrappers configuration files
UDP support, The TCP Wrappers configuration language
TCP/IP, Adding authentication to TCP/IP with identAdding authentication to TCP/IP with ident, Logging across the network, Chapter 11: TCP/IP NetworksChapter 12: Securing TCP and UDP Services
(see also networks)
authentication with ident, Adding authentication to TCP/IP with identAdding authentication to TCP/IP with ident
security checklist for, Chapter 11: TCP/IP NetworksChapter 12: Securing TCP and UDP Services
TCP/IP Network Administration (Hunt, Craig), Network Technology and Security
TCP/IP networks, TCP/IP NetworksSummary, Protocols
SMB running on, Protocols
tcpd program, Access Control Lists with TCP Wrappers, Access Control Lists with TCP Wrappers
(see also TCP Wrappers program; TCP/IP)
tcpdchk utility, Making sense of your TCP Wrappers configuration filesMaking sense of your TCP Wrappers configuration files
tcpdmatch utility, Making sense of your TCP Wrappers configuration files
tcpdump command, Monitoring Your Network with tcpdumpMonitoring Your Network with tcpdump, Monitoring the Intruder
tcpserver program, SMTP: Simple Mail Transfer Protocol (TCP Port 25)
tcsh, Shell History, Shell Features
(see also shells)
history file, Shell History
.tcshrc file, .cshrc, .kshrc, .tcshrc
TD (Transmit Data), The RS-232 Serial Protocol
telephone firewalls, Telephone firewalls
telephone lines, One-Way Phone Lines, Eavesdropping countermeasures, Limitations of scanning and firewalls, Protection of Modems and Lines, Protection of Modems and Lines
leasing, Protection of Modems and Lines
one-way, One-Way Phone Lines
physical security of, Protection of Modems and Lines
sweeping, Eavesdropping countermeasures
unauthorized, Limitations of scanning and firewalls
telephones, Other Contingencies, Electrical noise, Originate and Answer, Telephone scanning, aculog Log File, Tracing a Connection, Chapter 10: Modems and Dialup Security
(see also modems)
cellular, computer malfunctions caused by, Electrical noise
recording call information, aculog Log File
scanners for, Telephone scanning
security checklist for, Chapter 10: Modems and Dialup Security
service, loss of, Other Contingencies
tracing connections from, Tracing a Connection
telnet program, Verifying your new password, Networking and Unix, TCP, Clients and Servers, Telnet (TCP Port 23), rlogin and rsh (TCP Ports 513 and 514)
compared to rlogin, rlogin and rsh (TCP Ports 513 and 514)
verifying new password with, Verifying your new password
Telnet utility, Telnet (TCP Port 23)
telnetd program, Telnet (TCP Port 23), Back Doors and Trap Doors
back doors in, Back Doors and Trap Doors
temperature, effects on hardware, Extreme temperatures
TEMPEST system, Eavesdropping by radio and using TEMPEST
terminal emulators, Modems and Unix
terminal service, remote, Telnet (TCP Port 23), rlogin and rsh (TCP Ports 513 and 514)/etc/hosts.lpd file
terminals, Secure Terminals: Limiting Where the Superuser Can Log In (see hardware)
terrorism, Defending Against Acts of War and Terrorism
testing, Software Quality, Intensive Investigations, Checking Your ModemPrivilege testing, Before You Finish
employee, Intensive Investigations
modems, Checking Your ModemPrivilege testing
software, Software Quality, Before You Finish
TeX files, Trojan horses in, Trojan horses in mobile code
TFTP (Trivial File Transfer Protocol), UDP, TFTP: Trivial File Transfer Protocol (UDP Port 69)
tftpd daemon, TFTP: Trivial File Transfer Protocol (UDP Port 69)
The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography (Singh, Simon), Cryptography Books
theft of backups, Protecting Backups
theft of hardware, The Disaster Recovery Plan, Preventing TheftEncryption, Locks, Tagging, Tagging, Laptop Recovery Software and Services, RAM Theft, Encryption, The Role of Backups
encryption and, Encryption
locks preventing, Locks
precautions for, Tagging
RAM theft, RAM Theft
recovery for, The Disaster Recovery Plan, Laptop Recovery Software and Services
tagging preventing, Tagging
thieves, planting programmed threats, Authors
thin-client Unix systems, What Is a Deployment Environment?
third-party billing, Protection of Modems and Lines
Thomas, Robert and Carleen, Amateur Action
Thompson, Ken, Multics: The Unix Prototype, The Unix Encrypted Password System, The traditional crypt ( ) algorithm, Trusting Trust, General Computer Security
crypt() designed by, The traditional crypt ( ) algorithm
discussing password security, The Unix Encrypted Password System
Unix developed by, Multics: The Unix Prototype
“Reflections on Trusting Trust”, Trusting Trust, General Computer Security
threads, Processes and Programs
threats, Identifying threatsReview Your Risks, The Probability of a Loss, The Physical Security Plan, Sudden changes in time, RISKS
estimating probability of, The Probability of a Loss
identifying and quantifying, Identifying threatsReview Your Risks, The Physical Security Plan
mailing list for, RISKS
replay attacks, Sudden changes in time
three-way handshake, TCP, TCP
tickets (Kerberos), Kerberos, Initial loginUsing the ticket-granting ticket
Tiger system, Tiger
tilde (~), Accounts That Run a Single Command, $HOME attacks
as home directory, $HOME attacks
~! in mail messages, Accounts That Run a Single Command
time, NTP: Network Time Protocol (UDP Port 123), Setting the window, Picking a Random Seed, Picking a Random Seed, Large Service-Based Networks with Large Budget, Checklists and Metadata
(see also NTP; system clock)
defining random seed by, Picking a Random Seed
determining accurately, NTP: Network Time Protocol (UDP Port 123)
file modification, Large Service-Based Networks with Large Budget
granularity of, Picking a Random Seed
modification, Checklists and Metadata
time service, TCP, UDP
time-sharing, Kerberos Limitations, Design Principles
timeouts, Things to Do, Logic Bombs
timestamp, Secure RPC window, Setting the window
Timezone table (NIS+), NIS+ Tables and Other Objects
tip command, Modems and Unix, Originate testing, Originate testing, Privilege testing, aculog Log File
TLS protocol, SMTP: Simple Mail Transfer Protocol (TCP Port 25), SMTP: Simple Mail Transfer Protocol (TCP Port 25)
TMOUT variable, Built-in shell autologout
tmp directory, overload attacks using, /tmp Problems
tmpfile() system call, Coding Standards
token cards, Token CardsToken Cards
toll fraud, One-Way Phone Lines
tools, The Birth of Unix (see software)
top command, Discovering an Intruder, The ps Command
Torvalds, Linus, Linux
traceroute command, Contacting a site’s ISP
tracing connections, Tracing a ConnectionTracing a Connection
tracing programs, Laptop Recovery Software and Services
traffic analysis, Key Length with Symmetric Key Algorithms
training, employees, Initial Training
transaction audits, Network-Based Authentication Systems
Transmission Control Protocol, TCP (see TCP)
Transmit Data (TD), The RS-232 Serial Protocol
Transparent Cryptographic Filesystem (TCFS), The Virtual Filesystem Interface
transposition ciphers, Roots of Cryptography
trap doors, Programmed Threats: Definitions, Back Doors and Trap Doors (see back doors)
trashing, Sanitizing Printed Media
tree structure attacks, Tree structure attacksTree structure attacks
trimlog system, trimlog
Triple-DES (3DES) algorithm, Common Symmetric Key Algorithms
Tripwire package, TripwireRunning Tripwire, Tripwire
Trivial File Transfer Protocol (TFTP), TFTP: Trivial File Transfer Protocol (UDP Port 69)
Trojan horses, Use su with Caution, X security, Kerberos Limitations, Understanding NFS, Programmed Threats: Definitions, Trojan HorsesAvoiding Trojan horses, Protecting Yourself, Viruses on the Distribution Disk
as common threat, Protecting Yourself
Kerberos and, Kerberos Limitations
in mass-market software, Viruses on the Distribution Disk
NFS and, Understanding NFS
X clients, X security
Trojan processes, Service Overloading
truck bombs, as destructive attack, Destructive Attacks
True Names and Other Dangers (Vinge, Vernor), Understanding the Computer Security “Culture”
truncate() system call, File Permissions
trust, What Is Computer Security?, Trust, Managing Log Files, Can You Trust Your Computer?What the Superuser Can and Cannot Do, Can You Trust Your Suppliers?Network Providers That Network Too Well, Hardware Bugs, Viruses on the Distribution DiskSecurity Bugs That Never Get Fixed, Network Providers That Network Too Well, Your Employees?, Your System Administrator?, Your Vendor?, Your Consultants?, Response Personnel?, Chapter 26: Who Do You Trust?
checklist for, Chapter 26: Who Do You Trust?
in computers, Trust, Can You Trust Your Computer?What the Superuser Can and Cannot Do, Hardware Bugs
in consultants, Your Consultants?
in employees, Your Employees?
in log files, Managing Log Files
in network providers, Network Providers That Network Too Well
in security response teams, Response Personnel?
in software, Viruses on the Distribution DiskSecurity Bugs That Never Get Fixed
in system administrator, Your System Administrator?
in vendors, Can You Trust Your Suppliers?Network Providers That Network Too Well, Your Vendor?
trusted computing base (TCB), Trusted computing base
trusted hosts, Trusted hosts and users/etc/hosts.lpd file
Trusted Linux, “Secure” Versions of Unix
trusted path, Trusted path
trusted ports, Add-on Functionality Breeds Problems, Calling getservbyname( )
Trusted Solaris, “Secure” Versions of Unix
trusted Unix, “Secure” Versions of Unix (see secure Unix systems)
trusted users, Trusted hosts and users
Tse Huong Choo, “Secure” Versions of Unix
ttymon program, Logging In
ttys file, Secure Terminals: Limiting Where the Superuser Can Log In, Connecting a Modem to Your Computer, Which Files to Back Up?, Secure Terminals
ttytab file, Which Files to Back Up?
ttywatch program, Monitoring the Intruder
tunefs command, Reserved space
tunneling, Adding authentication to TCP/IP with ident, Tunneling X with SSH
two-key cryptography, Cryptographic Algorithms and Functions
twoftpd server, Setting up an FTP server
TZ variable, Things to Avoid