Docsity

Vulnerability Analysis - Lecture Slides | COMP 6370, Study notes of Cryptography and System Security

Partial preview of the text

Download Vulnerability Analysis - Lecture Slides | COMP 6370 and more Study notes Cryptography and System Security in PDF only on Docsity!

COMP 6370 – Vulnerability Analysis – Lecture 10

Endpoint Vulnerabilities

• Summation of the course so far

  • Internet Standards, RFCs and Conventional Encryption
  • Conventional Encryption Message Confidentiality
  • Public Key Systems
  • System Security
  • Malicious Software
  • Virus Protection and Prevention
  • Virus Design
  • Buffer Overruns
  • Vulnerability Analysis

COMP 6370 – Vulnerability Analysis – Lecture 10

Admin Comments

• The Scholarship for Service (SFS) program

  • The Scholarship for Service (SFS) program provides funding for two-year full scholarships for students to pursue academic programs in information assurance for the final two years of undergraduate study, or for two years of master's- level study, or for the final two years of Ph.D.-level study.
  • The recipients will be required to work for a federal agency for two years in fulfillment of their Federal Cyber Service commitment.
  • The scholarships provide academic year stipends of $8, per year for undergraduate students and $12,000 per year for graduate students.

COMP 6370 – Vulnerability Analysis – Lecture 10

Operating Systems

• User Space versus Kernel Space

• Process space protection

  • A single process is not allowed to access any of the memory allocated to other processes directly
  • Additionally, no process can directly access the memory marked as “in use” by the operating system
  • Windows NT/2000 and ALL UNIX systems provide process space protection
  • Windows 95/98/ME do NOT provide process space protection

• Palm Pilot example

  • any file stored on an internet-enabled PalmOS device is accessible by any application running on the Palm

• Generally, in an advanced OS, user-level processes

need to use kernel services to access devices

COMP 6370 – Vulnerability Analysis – Lecture 10

Security by Obscurity

• Hide the source code and only release the

executable.

• False belief that code compiled into binary

remains secret just because the source is not

available.

  • Java byte code is particularly vulnerable

• Netscape POP (post office protocol) 1999

  • password with weak cryptography
  • stored in windows registry
  • experimentation with XOR on password strings
    • pattern detected
    • encryption algorithm reverse engineered “Today’s security woes are not dominated by the existence of bugs that might be discovered by open-source developers studying system source code.” -- Fred Schneider

COMP 6370 – Vulnerability Analysis – Lecture 10

Copy Protection

  • Tradeoff – protection of intellectual property versus hassling legitimate users - OPNET Example
  • License Keys – A psychological deterrent
    • Encryption Keys
      • use 36 character set less “ 1 ” “l” “ 0 ” “O” = 32 characters
      • Use CBC and say “Blowfish” and produce valid keys
      • Each key is a counter concatenated with a fixed binary string, encrypted and converted base 32
    • Checking the license key for validity
      • decode the base 32 string, decrypt the binary with the stored encryption key and to see that the last 12 bytes are equal to our stored binary string
  • Force software to run off of distribution CDs
  • Theoretically, no media is “copy proof.”

COMP 6370 – Vulnerability Analysis – Lecture 10

Software Sneak Circuits

GOAL: Defend our critical GOAL: Defend our critical

embedded computer systems embedded computer systems

against software tampering against software tampering

Programmatics SBIR: MDA Phase I Contractor: Funding: Period of Performance: Product: Proof of Concept Demo Technical Approach

  • Refine obfuscation methodology
  • Assess against known threats
  • Develop model of weapon system software (actual program)
  • Assess method performance and scalability using model
  • Plan Phase II demo to show method provides software protection SNEAK OBFISCATE THE BINARIES SO THAT OTHERS CAN’T REVERSE ENGINEER THE SOFTWARE

COMP 6370 – Vulnerability Analysis – Lecture 10

Obfuscation Techniques

  • Add code that never executes or that does nothing
    • Make calculations more complex
  • Move code around
    • Spread related functions as far apart as possible
    • Fake “encapsulation”
    • Combine multiple unrelated functions into a single function
  • Encode your code oddly
    • Picking strings directly out of memory is easy
    • Convert strings to odd character sets, only make strings printable when necessary
  • Encrypt program parts
    • Generally “low grade” because of performance considerations
    • Data versus operation encryption
    • Hex editor for manual encryption
    • Encryption of padding

COMP 6370 – Vulnerability Analysis – Lecture 10

“Many Eyes Phenomenon”

• In general, letting more developers scrutinize

source code makes it more likely that security-

related bugs are found and repaired in a timely

manner.

  • Code is generally reviewed for economic motives
  • Many developers are not security experts
  • C Traps and Pitfalls while (c == ‘\t’ || c = ‘ ‘ || c == ‘\n’ ) c = getc(f);

– ACM Computing Surveys

  • circa 1988 “On Program Correctness”

COMP 6370 – Vulnerability Analysis – Lecture 10

Case Studies

• The Microsoft Fallacy

  • Microsoft makes bad software
  • Microsoft software is closed source
  • Therefore all closed source software is bad

• The Java Fallacy

  • If we keep fixing holes in a given piece of software, eventually, the software will be completely secure
  • From 1996 to 2001, more than 19 serious security flaws found in Java

• Programming Languages

  • Best defense on buffer overflows is implicit bounds checking.

COMP 6370 – Vulnerability Analysis – Lecture 10

Administrative Vulnerability Reduction

• What to do when

a “suit” asks

you about

security

• National

INFOSEC

Education and

Training

Program

COMP 6370 – Vulnerability Analysis – Lecture 10

Physical Security Measures

  • alarms
  • building construction
  • cabling
  • communications centers
  • environmental controls (humidity and air conditioning)
  • filtered power
  • fire safety controls
  • information systems centers
  • physical access control systems (key cards, locks and alarms)
  • power controls (regulator, uninterrupted power service (UPS), and emergency power-off switch)
  • protected distributed systems
  • shielding
  • stand-alone systems and peripherals
  • storage area controls

COMP 6370 – Vulnerability Analysis – Lecture 10

Software Security

• assurance

• configuration management (documentation)

• configuration management (programming

standards and controls)

• software security mechanisms to protect

information (identification and authentication)

• software security mechanisms to protect

information (internal labeling)

• software security mechanisms to protect

information (need-to-know controls)

• software security mechanisms to protect

information (segregation of duties)

COMP 6370 – Vulnerability Analysis – Lecture 10

Auditing and Monitoring

• conducting security reviews

• effectiveness of security programs

• investigation of security breaches

• review of accountability controls

• verification, validation, testing, and

evaluation processes

COMP 6370 – Vulnerability Analysis – Lecture 10

Key Management

• Access, control and storage of COMSEC

material

• destruction procedures for COMSEC

material

• identify and inventory COMSEC material

• key management protocols (bundling,

electronic key, over-the-air rekeying)

• report COMSEC incidents