Copyright 1997 Ryan Net Works, LLC. - All Rights reserved In order to understand how to implement security it is necessary to characterize hacking. This document encapsulates years of hacking experience and I hope that it will shed some light on just what hacking is an how you can defend against it. This paper serves as a foundation course in the subject of hacking whithout delving deeply into advanced mathematics or highly theoretical issues
Generally, hackers are unorganized but that doesn't mean we can't perform an analysis of hacking. The method we will use is one that was pioneered in World War II by the RAND coporation. If we try to understand hacking as an operations research problem then we can get it onto a firm, even mathematical foundation. The goal of the hacker is to maximize some set of stated goals (Theft, Revenge etc.) while at the same time minimizing his risk. The defender, on the other hand, is looking to amplify the the risk to the hacker while minimizing his exposure to potential abuse.
Consider making an assault on, say, Normandy or Kuwait, a hacker is presented with many of the same problems. How is he to maximize his chance of success while minimizing his risk. Each action he can perform is characterized by a signal that the defender may or may not be able to detect. Therefore, one of his goals must be to minimize the signal he sends to the defender. We caveat this statement because the attacker may decide that stealth costs too much and his real goal is better served by a frontal assault. Even so, this choice simply means that the defender recieves the signal at full strength right from the start so the same methods we outline for amplifying and detecting attack signals will apply.
In order to begin an analysis of hacking we need to break it up into phases and then run our min/max analysis on each phase. Hacking, like any other attack, can be characterized by the following phases.
The remainder of the paper considers each of these phases in turn. We also begin to give a method whereby we can assign weights to our matrix variables values according to their values leading to a stated goal.
Here the hacker tries to map out out the defenders assets. We create a table that with three columns,
METHOD Asset Signal Comment
1.1 DNS nh(u) h 1.2 INTERNIC (INer/DDN) nh(u) l 1.3 Social engineering 1.3.1 Telephone book u l 1.3.2 call personel u m 1.3.3 Dumpster diving nhup m 1.3.4 Def. marketing p m-l 1.3.5 Att. marketing p h 1.3.6 Knob rattling nhup h 1.3.7 Help desk requests u l 1.3.8 Admins name u l 1.3.9 Financial statements nhup l 1.3.10 News clippings nhup l 1.4 Hacker BBS 1.5 Machine Based Data Collection 1.5.1 Search news postings nhups l 1.5.2 War dialing hs m AIO5, toneloc 1.5.3 Info bots nhups m 1.5.4 Satan nhups h 1.5.5 DNS nhu l 1.5.6 WHOIS nhu l 1.5.7 Ping hn h 1.5.8 Finger hnu h finger @@espn.com 1.5.9 Traceroute nh m tcpdump ethload sniffers 1.5.10 Net managers w/ host disc.nh h Scotty HPOpenview 1.5.11 Ether host prob nhs h Broadcasts 1.5.12 Sniffers nhups l
This is the heart of the operations research approach to hacking. Here the hacker plays out the what-if scenarios away from the prying eyes of the defender. By assigning a value to each of the goals (e.g. Curiosity = 5, Revenge = 1, Money = 0) and assigning a cost to each method we can minimize the signal, maximize the result, and minimize the cost.
We do not have time nor can we set up the mathematics for min/max problems here but the interested student can pickup a testbook on the subject of operations research and apply the mathematics to the analysis generated here. The columns of this table are given by:
Motivation Motivation Code Signal Comment
2.1 Establish goals 2.1.1 Curiosity/inteligence p m 2.1.2 Competetive edge/ corp espionage md h 2.1.3 Revenge - disguntled employee... pd h 2.1.4 Vandalism pd m 2.1.5 Bragging pd h 2.1.6 Blackmail pmd m 2.1.7 Theft m m-h 2.1.8 Embezzlement m l-m 2.2 Inventory resources 2.2.1 Create inventory xxx l-h 2.2.2 Assign inventory cost - N.B. here code = cost 220.127.116.11 Invent h l 18.104.22.168 Trade m h 22.214.171.124 Purchase m m 126.96.36.199 Steal l h 188.8.131.52 Freeware/shareware l l 2.2.3 Fill inventory 184.108.40.206 Invent h l 220.127.116.11.1 Design Tools 18.104.22.168.1.1 Stack smashing 22.214.171.124.1.2 Race conditions 126.96.36.199.1.3 Lying (resource swapping) 188.8.131.52.1.4 Backdoor 184.108.40.206.1.5 Bruteforce 220.127.116.11 Trade 18.104.22.168.1 Hacker Groups l m 22.214.171.124 Purchase 126.96.36.199.1 Consultants h l 188.8.131.52.2 Hacker CDROMs l l l0pht 184.108.40.206 Steal 220.127.116.11.1 Hacker Groups m h 18.104.22.168.2 Government h h 22.214.171.124 Freeware/shareware 126.96.36.199.1 Hacker Groups l m 188.8.131.52.2 News letters l m 2.2.4 Benefits analysis - N.B. code: s = secrecy, e = effective 184.108.40.206 Invent es n/a 220.127.116.11 Trade e l 18.104.22.168 Purchase e l 22.214.171.124 Steal es m 126.96.36.199 Free/shareware es l 2.2.4 Assign inventory benefit xxx l 2.2.5 Cost benefit analysis xxx l 2.4 Make a battle plan xxx l 2.4.1 Fill min/max matrix 2.4.2 Run min/max matrix 2.4.3 Review results and run min/max matrix again
Here we try to get onto a host, ususally through a network. So we concentrate on network hacks in this section.
METHOD Access Signal Comment
3.1 Brute force u h 3.1.1 ftp u h 3.1.2 telnet u h 3.1.3 pop2/3 u h 3.2.4 rlogin u h 3.1.5 http u h 3.1.6 sql u h 3.1.7 kerberos u h 3.1.8 smnp an m 3.2 Sniffing ua l 3.3 Spoofing 3.3.1 DNS h m 3.3.2 IP h m 3.3.3 Kerberos IV hua l 3.3.4 smtp hua m 3.3.5 snmp v1 ha l 3.4 Stack smashing 3.4.1 SMTP ha l-m 3.4.2 Named/DNS " " 3.4.3 pop " " 3.4.4 http " " 3.5 Race 3.5.1 NFS hua m-h 3.5.2 Kerberos (all versions) " " 3.5.3 All ticket authentication progs " " 3.6 Back Door 3.6.1 Sendmail / wiz ha l 3.6.2 Debug stuff 188.8.131.52 Stack smashing hua m 184.108.40.206 Race " " 220.127.116.11 Brute " " 18.104.22.168 Back door " " 22.214.171.124 Spoofing " "
To establish a base of operations the hacker wants to insure that 1) access to the host/net continues and 2) boost priviledges to gain control of the log files and so erase evidence
We continue to use our familar table format:
METHOD Access Signal Comments
4.1 Be able to get back 4.1.1 Passwd cracking 126.96.36.199 Crack hua m 188.8.131.52 Crypt hua h 4.1.2 Trojan horses 184.108.40.206 login hua m 220.127.116.11 r commands " m 18.104.22.168 telnet " m 22.214.171.124 all inetd.conf files " m 126.96.36.199 kernal loadable modules hua l i.e. device driver trojans 4.1.3 Config files 188.8.131.52 .rhosts " m 184.108.40.206 host.equiv " " 220.127.116.11 etc. " " 4.2 Become admin 4.2.1 Stack - spoits 18.104.22.168 librar sploits a l getopt on Solaris. In libc.so 22.214.171.124 Most network attacks a m mail, DNS, etc. 4.2.2 Race 126.96.36.199 expreserve a l 188.8.131.52 .rexecd a l 184.108.40.206 cron a m 220.127.116.11 any simlink+suid files au m 4.2.3 Brute 18.104.22.168 all networked files au m 22.214.171.124 crack decryption au m 4.2.4 Back door 126.96.36.199 networking "debugs" au h 188.8.131.52 OS "debugs" au h 184.108.40.206 application "debugs" au m 220.127.116.11 bios calls au l 18.104.22.168 service maint passwd a l (unisys, ami, all routers) 4.2.5 Spoofing 22.214.171.124 all TCP/IP networking hua m 126.96.36.199 symlinks ua l 188.8.131.52 tmp files ua l 184.108.40.206 config files (cron) ua m Cukoos egg 4.3 Cover our tracks 4.3.1 Fix logs 220.127.116.11 syslog (syslog.conf) a h 18.104.22.168 messages (dmesg) " " 22.214.171.124 utmp " " 126.96.36.199 wtmp " " 188.8.131.52 history of compromised " " accoun 184.108.40.206 audit.log " " 220.127.116.11 /var/log authlog " " 4.3.2 Fix the OS 18.104.22.168 Fix loadable modules " l 22.214.171.124 Fix ".o" files " l 126.96.36.199 Bugs in OS " l eg.Sparc floating point exception bug
This is the heart of hacker motivation, the "why" a hacker hacks. Determination of a hackers motivation can lead to a strategy for dealing with computer fraud and abuse. That is simple curiosity can be dealt with without recourse to the law, whereas embezlment will reqire stronger action.
HomeLast updated by John Ryan firstname.lastname@example.org on Wed Feb 12 1997