Docsity

Understanding Security: Identity, Privilege, and Cracking, Study notes of Operating Systems

Partial preview of the text

Download Understanding Security: Identity, Privilege, and Cracking and more Study notes Operating Systems in PDF only on Docsity!

Part 1: the concept of identity. Part 2: the concept of protection. Part 3: mutating protections (legally). Part 4: mutating protections (illegally). Why are your linux files secure? Why are your linux files secure? Thursday, November 29, 2012 10:48 AM Docsity.com

Setuid root Setgid root world executable foo mode=rwsrwsrwx owner=root group=root Whoever runs this gets root on your workstation. What you don't want to see in your account: cp /bin/csh foo chown root foo chgrp root foo chmod 06777 foo What a rootkit actually does, in some form: so that anyone who runs foo gets a root shell. cp /bin/csh bar chmod 04755 bar Almost as bad: so that anyone who runs bar gets access to your account. What you don't want to see in your account Wednesday, November 30, 2011 6:56 PM Docsity.com

login is a setuid-root program accepts your password. hashes it. compares with (protected) hash of real password. How login works: fork downgrade child privilege to that of user. execl the user's shell If there is a match, then How login works Tuesday, December 06, 2011 11:10 AM Docsity.com

Security: you control the things you own. Privacy: it is not seen by others without your permission. In an OS, these are (nearly) equivalent concepts. Security and Privacy Identity: the extent to which the actions of an electronic entity can be traced to a real person. Transparency: the extent to which we can see what people do. Two other important concepts Basic problem of security: the internet exhibits weak identity and low transparency. Security and Privacy Wednesday, November 30, 2011 7:02 PM Docsity.com

Grant anyone the power to become the user. Set traps for other users. Set up a rogue network service. Attack other machines (in the local network). Poison DNS, ARP, etc. Send email containing malicious code to others. What can a regular user do? What can a regular user do? Sunday, December 04, 2011 2:16 PM Docsity.com

Compromise the accounts of all users. Become any user and do anything. Corrupt services used by external machines. Poison the basic infrastructure of the internet. What can root do? What can root do? Tuesday, December 06, 2011 3:39 PM Docsity.com

Assume nothing. If it looks too good to be true, it is. Understand that people can do anything, Even very implausible things. Protecting yourself Protecting yourself Sunday, December 04, 2011 3:56 PM Docsity.com

Security Myths and Realities The main cause of security breaches is technical. The most effective attacks trick the machine. The most effective attack vector is a software weakness. Myth: The main cause of very serious security breaches is human error. The most effective attacks trick users. The most effective attack vector is to con a user into believing something that isn' t true. Reality: Cracking is a confidence game. Security Myths and Realities Sunday, December 04, 2011 1:50 PM Docsity.com

End of lecture on 12/4/ Tuesday, December 04, 2012 5:34 PM Docsity.com

Illusion of power. Curiosity. Hatred. Money. Why do crackers crack? to send Spam to attack other machines. Anonymity. to run bots CPU cycles. to run bots. Bandwidth. What do crackers want? Why crackers crack? Tuesday, December 06, 2011 11:35 AM Docsity.com

Anonymity: ensuring that your own physical identity is safe. Leapfrogging: using a previously exploited system to break into another. Patience: waiting (perhaps) a long time for results. Curation: filing lists of exploits, systems that can be exploited, and previously exploited systems for future use. Scanning and fingerprinting: determining lists of systems on which an exploit is likely to work. Poisoning: utilizing one exploit to set a (more deadly) trap. Track covering: hiding what you have done to a system. Cracking skills Cracking skills Tuesday, December 06, 2011 11:15 AM Docsity.com

Your identity is as secure as the number of people who have to collaborate to discover it.

  • Especially if those people don't get along.
  • International discord is a cracker's best friend. Hiding identity
  • Break into a system in South Korea.
  • From there, break into a system in North Korea.
  • From there, break into a system in the United States.
  • Ideal scenerio Hiding identity Sunday, December 04, 2011 2:14 PM Docsity.com

Research what software is used in the site. Fake a major distribution of the software; when installed, it breaks the system. Publish the real phone number of the vendor on the fake. Crack the victim's phone system (a weak point) and redirect the real vendor phone number to you. Send the distribution to the victim with the authentic phone number. So, victim installs software, calls vendor, gets you. Most sophisticated attack vector: reverse social engineering they have "proof"; they called the official number themselves! Victim will swear that you're official; You are -- in fact -- a slimeball intent on stealing their secrets. At this point, you are in a near-perfect cracking situation Reverse Social Engineering Sunday, December 04, 2011 2:04 PM Docsity.com

  • Not the big issue in cracking. But a constant nuisance, because a bored 14-year-old can exploit a technical problem.
  • And there are lots and lots of bored 14-year-olds! Technical cracking Technical cracking Sunday, December 04, 2011 4:04 PM Docsity.com