Docsity

Is this Program Secure - Computer Security - Lecture Notes | 22C 169, Study notes of Computer Science

Partial preview of the text

Download Is this Program Secure - Computer Security - Lecture Notes | 22C 169 and more Study notes Computer Science in PDF only on Docsity!

Feb 4, 2005 -- Lecture 8

22C:

Computer Security

Douglas W. Jones Department of Computer Science

Program Security

Is this program secure? A simple question only if program has no input or output Threats: From: the legitimate users the illegetimate users the developers other programs it listens to To: the program's own execution any device the program controls any stored data it manipulates any other programs it talks to

Security and Programming Security error: Failure to understand security problem Security fault Vulnerability created by security error Security failure Exploitation of security failure

Security Errors in Specification 1997, Microsoft Spec: Visual Basic in all MS Office Apps Assume Correct implementation Security fault Opening any file in an Office App can have arbitrary side-effects MS OFFICE VIRUSES

Security Errors in Specification? Decision to use unsafe tools C C++ MS Office Banning such tools can be materially improve security There is resistance to this Some of it is very legitimate!

Security Errors in Implementation Error use of gets() (should use fgets() ) use of strcat() strncat() failure to check parameter validity

Attacks from Developers Frequently overlooked How do you prevent Backdoors Trojans Easter Eggs The threat from illicit users is familiar