CS 419 Exam info

When & where

The third exam will be held in our regular classroom on April 24, 2017. It will take up about half the lecture, starting approximately during the second half of the class period. Please be sure to arrive on time and do not plan on coming in just to take the exam. If you arrive after the exam has started, you will not be allowed to take it.

Exam rules

Be sure to arrive on time. If you arrive after the exam starts, you will not be allowed to take it.

This will be a closed book, closed notes exam. Calculators, phones, augmented reality glasses, laptops, and tablets are neither needed nor permitted. If you have these devices, you must turn them off, put them out of sight, and not access them for the duration of the exam.

No other electronic devices are permitted except for hearing aids, pacemakers, electronic nerve stimulators, other implanted medical devices, or electronic watches that function only as timekeeping devices or chronographs.

Bring a couple of pens or pencils with you. An extra pencil is affordable fault tolerance. If you want to splurge, the Palomino Blackwing 602 is considered by many to be one of the finest pencils available. The company advertises its key virtue as "half the pressure, twice the speed." If that claim is really true, using this product might help you complete the exam quicker. If you do not choose bring several extra pencils, you may want to bring a pencil sharpener. Palamino makes a companion Blackwing Long Point Sharpener. This, too, is pricey at $11.00. For a bit less money, you can get what looks like a clone: the Alvin Kum Long Point Pencil Sharpener. Both of these feature two-step sharpening: one for the wood case and another for the graphite core of the pencil. A truly beautiful sharpener is the El Casco Pencil Sharpener, but bringing this to class is really overkill, as is spending over $300 on a pencil sharpener. If you would like to learn the craft of pencil sharpening, there are several books available. The best of these may be How to Sharpen Pencils: A Practical & Theoretical Treatise on the Artisanal Craft of Pencil Sharpening for Writers, Artists, Contractors, Flange Turners, Anglesmiths, & Civil Servants by David Rees. Do not be intimidated by the omission of "students" in the title. You can read more about it at artisinalpencilsharpening.com. A video by David Rees is here. You are welcome to bring a full pencil sharpening travel kit to the exam but be aware that a proper sharpening routine may consume too much time during the exam and may be messy.

Study guide

You are responsible for the material from since exam 2, weeks 10 through 13.

I've prepared a study guide that attempts to cover most of the material you should know. The guide is not a substitute for the lectures, lecture material, and other reading matter. My goal is to put most of the information you need to know in as concise a form as possible, with more elaboration in areas where textbook coverage may be lacking.

Topics

Topics that you should know and may be on the exam include:

Biometric Authentication

  • Text: Chapter 15: pages 457-482
  • What is statistical pattern recognition?
  • False accept rate (FAR) vs. false reject rate (FRR)
  • Receiver Operator Characteristic (ROC) plot
  • Behavioral factors
  • Fingerprint minutia
  • Robustness vs. distinctiveness
  • Authentication process: enrollment, sensing, feature extraction, pattern matching, decision
  • Challenges:
    • trusted devices and data path
    • human liveness
    • tamper-proof devices and secure communications
    • thresholds
    • compartmentalization
    • theft of biometric
  • Cooperative vs. non-cooperative systems
  • Detecting humans
    • What does Gestalt psychology address?
    • Goal of CAPTCHA
    • Improvement with NoCAPTCHA reCAPTCHA
  • Signed software: understand the principle
    • Why per-page signatures?

Network security

  • Link layer
    • What does a CAM overflow attack do?
    • What does a switch spoofing attack do?
    • What is ARP cache poisoning?
    • How can you defend against ARP cache poisoning?
  • Network layer
    • What is DHCP server spoofing?
    • How does DHCP snooping work?
    • Understand lack of authentication in IP datagrams
  • Transport layer
    • Simplicity of forging UDP packets
    • Understand need for random TCP sequence numbers
    • What is a SYN flooding attack?
    • How can you guard against it?
    • What does a TCP RESET accomplish?
  • Routing
    • What is the security problem with BGP?
    • You don't need to know RPKI and BGPsec
    • Security problem with DNS
    • How does DNS cache poisoning work?
    • Is there a defense against it?
    • What is a DNS rebinding attack?

Firewalls & VPNs

  • Virtual Private Networks
    • What is a tunnel?
    • Tunnel mode vs. transport mode
    • IPsec Authentication Heander (AH) protocol
      • Just understnad what it authenticats and encrypts
    • IPsec Encapsulating Security Payload (ESP) protocol
      • Just understnad what it authenticats and encrypts
    • You don't need to know the ciphers used by IPsec but know that it uses symmetric cryptography abd MACs. Know that Diffie-Hellman can be used for key generation.
  • Transport Layer Security (TLS)
    • Goal of SSL/TLS
    • Mutual vs. uni-directional authentication
    • Know that SSL (Secure Socket Layer) evolved into TLS
    • Basic concepts: authentication, key exchange, message integrity, communication.
    • You don't need to know the ciphers used by TLS but know that key echange can be done with public keys, Diffie-Hellman keys, or pre-shared keys; know that data is encrypted with a symmetric algorithm (usually AES), and data integrity is provided with an HMAC.
    • Don't memorize TLS protocol attacks but recognize them if you see them described.
    • Know that client authentication is almost never used. Why?
  • Firewalls
    • High-level goal of a firewall
    • Approaches: Packet filters (screening routers), application proxies, IDS/IPS
    • Packet filters
      • What does a screening router do?
      • What is a filter chain?
      • You don't have to know the syntax of rules but should recognize allow/reject rules
      • You don't have to know the details of differences between Windows, OpenBSD, and Linux implementations
      • What is the basic firewalling principle?
      • Why is a default deny model good?
      • How do you guard against spoofed traffic?
      • What does stateful inspecion add to a packet filter?
      • What is a DMZ (demilitarized zone)?
      • What is deep packet inspection (DPI)?
    • Intrusion Detection/Prevention Systems (IDS/IPS)
      • Understand the three types of systems: protocol-, signature-, and anomaly-based
      • Anomoly vs. misuse detection
      • Problem of false positives
      • Signatures in the context of IDS/IPS
      • Why is anomaly detection difficult?
    • Application proxies
      • What are they?
      • What is a dual-homed host?
      • What is a bastion host?
    • What is deperimiterization?
    • Host-based vs. network firewalls
    • Example IDS/IPS: Snort
      • Function of packet decoder
      • Function of detection engine
      • Function of logging/alert module
      • You don't need to know the rules but understand that you can to traditional packet filtering (addresses, protocol, ports) and add in pattern matching
      • What's a dyamic rule? (triggered by an activate rule)

Web browser security

  • Understand the increase in browser complexity (don't memorize the list but understand the issues)
    • JavaScript, DOM allows modification of pages, more communication models, multimedia support
    • Components come from multiple sources
  • Role of Frames (and iFrames)
  • Risks of mixed http/https content
  • What is an extended validation (EV) certificate?
  • Same-origin policy
    • When are frames considered to have the same origin?
    • What unique resources can an origin access? Cookies, JavaScript namespace, DOM storage, DOM tree
    • I won't ask you about the MIME sniffing attack
    • What can go cross origin? Images, CSS, JavaScript
  • Cross-Origin Resource Sharing (CORS)
    • KNow that a page can load content cross origin
    • But JavaScript-based downloads must be same-origin
    • CORS allows servers to define other acceptable origins
  • Cookies
    • When are they sent to the server?
    • Purpose of HttpOnly
    • Purpose of Secure flag
  • Cross-Site Request Forgery (XSRF)
    • How does it work and when is it a problem?
    • How can you defend against it?
  • What is Clickjacking? How can you defend against it?
  • I will not ask you about screen sharing attacks
  • Input sanitization issues
  • SQL injection attacks
  • Pathname attacks to escape the HTML directory
  • I will not ask you about the Shellshock attack
  • Cross-Site Scriptnig (XSS)
    • What is XSS?
    • Whet causes it?
    • Reflected vs. Persistent XSS
    • How do you defend against it?
  • What is the GIFAR attack?
  • Data transfer with HTML image tags

Mobile device security

  • Why are mobile devices attractive targets?
  • Android security
    • Dalvik VM model
    • Use of Linux user IDs
    • Intents
    • Permission model
    • Use of stack canaries, heap overflow protection, ASLR
    • Malicious intents, permission re-delegation, permission avoidance
  • iOS security
    • Sandbox with per-app directory
    • Permission-based access to resources
    • Non-executable memory pages
    • Mandatory code signing
    • Per-file encryption
    • Disk content encryption by encrypting metadata.
    • Masque attack
  • Hardware support for security
    • ARM TrustZone: secure and non-secure worlds

Content protection, watermarking, and steganography

  • Digital Rights Management (DRM)
    • How can we associate software with a specific computer?
    • The fundemental problem of software checks licensing
    • Advantage of cloud software from a copy protection point?
    • Goal of digital rights management
    • DVB (Digital Video Broadcasting)
      • You don't need to memorize what an Entitlement Cotnrol Message or an Entitlement Management Message is
      • Know that content is encyrpted with constantly-changing keys
      • Those keys are transmitted periodically, encryted with another key.
      • That other key is encrypted with the subscriber's smart card key and updated less frequently.
    • CableCARD
      • Just know that each content stream is encrypted, the card stores rights management data and dectrypts content
      • Keys and rights are transmitted periodically but can be decrypted only inside the CableCARD
    • You don't need to know about AllVid
    • DVD CSS and Blu-ray AACS
      • Just know the very high-level concept: media is encrypted with a key and that key is encrypted once for each device family.
      • Know that once any device key is disclosed, content is freely readable
      • Know that once any media key is disclosed, device keys don't matter
    • What is the analog hole?
    • What is the purpose of the Digital Millennium Copyright Act (DMCA)?
  • Steganography and watermarking
    • What is steganography?
    • How does it differ from watermarking?
    • What is a null cipher?
    • What is chaffing and Winnowing?
    • How can you add data to images that users will not detect?
    • Text shifting