<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://homeostasis.scs.carleton.ca/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hammadasad</id>
	<title>Soma-notes - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://homeostasis.scs.carleton.ca/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hammadasad"/>
	<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php/Special:Contributions/Hammadasad"/>
	<updated>2026-05-02T07:45:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_22&amp;diff=20914</id>
		<title>SystemsSec 2016W Lecture 22</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_22&amp;diff=20914"/>
		<updated>2016-04-05T18:24:07Z</updated>

		<summary type="html">&lt;p&gt;Hammadasad: /*  */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Topics and Readings==&lt;br /&gt;
*Cookies And Integrity&lt;br /&gt;
**Xiaofeng Zheng et al., &#039;&#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/zheng Cookies Lack Integrity: Real-World Implications]&#039;&#039; (USENIX Security 2015)&lt;br /&gt;
*JavaScript Injection&lt;br /&gt;
**Sebastian Lekies et al., &#039;&#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/lekies  The Unexpected Dangers of Dynamic JavaScript]&#039;&#039; (USENIX Security 2015)&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
- Any attack on user space in Linux could work on Windows&lt;br /&gt;
- If we make it easy to run Android apps on Windows OS, who would want to develop windows applications?&lt;br /&gt;
- Azure is already multiplatform; allowing Linux applications to run on Windows.&lt;br /&gt;
&lt;br /&gt;
===Web Security Review===&lt;br /&gt;
  - Questions to discuss:&lt;br /&gt;
    - What is the threat model of web security?&lt;br /&gt;
    - Who is the attacker? The defender?&lt;br /&gt;
    - What is happening?&lt;br /&gt;
  - An example of the attacker targeting a user is phishing (taking credentials)&lt;br /&gt;
  - An example of the attacker targeting a web server: sending random data/traffic (ie. comment spams)&lt;br /&gt;
  - The attacker messes with the browser through the network connection and can then run arbitrary code inside the browser&lt;br /&gt;
  - The browser contains tokens that help access information from the web server&lt;br /&gt;
  - The purpose of getting access to a token – impersonation&lt;br /&gt;
  - The web in general, has a lot of depth and richness, opening up vast amounts of vulnerabilities.&lt;br /&gt;
  - The execution of the model is strange&lt;br /&gt;
    - Where does the web application live?&lt;br /&gt;
      - It doesn&#039;t just live in the browser, it consists of the entire web model/mesh&lt;br /&gt;
      - It&#039;s distributed&lt;br /&gt;
      - Not every entity of the model is trusted&lt;br /&gt;
      - All these web applications are running on the same system, but each have API&#039;s that allow them to connect to the rest of the world&lt;br /&gt;
      - The design of the model is convoluted&lt;br /&gt;
  - Web security is complex because of web browsers&lt;br /&gt;
    - Web browsers weren&#039;t initially designed for a shared environment that executes a large variety of applications&lt;br /&gt;
    - Because of all the interactions the browser allows, it affects the security of everything in the infrastructure.&lt;br /&gt;
===Cookies===&lt;br /&gt;
  - It&#039;s data that contains the state of the user or session&lt;br /&gt;
  - Efforts to delete the cookies every so often can be useful, but can reduce security&lt;br /&gt;
  - Cookies are used to mark your browser as special or known&lt;br /&gt;
  - Professor suggests using a different browser configuration for banking related activities&lt;br /&gt;
  - Firefox allows you to setup different configurations through profiles, which have their own cookie stores, history, etc.&lt;br /&gt;
  - Just because a browser, such as Chrome, is sandboxed, it doesn&#039;t mean that it&#039;s secure. Cookies stores are still shared&lt;br /&gt;
  - Cookie stores are little file systems, but with not high integrity&lt;br /&gt;
  - Cookies belong to domain names -&amp;gt; You can specific general domain names or specific routes&lt;br /&gt;
  - Domain names can be bad if you&#039;re connecting to untrusted networks&lt;br /&gt;
  - DNS is a distributed database for mapping host names to IP addresses&lt;br /&gt;
  - Example:&lt;br /&gt;
    - Accessing &#039;scs.carleton.ca&#039;&lt;br /&gt;
    - Find who has authority for &#039;ca&#039; -&amp;gt; then for Carleton -&amp;gt; then for scs&lt;br /&gt;
    - Going through different systems to find names, there&#039;s also no cryptographic protection against DNS (There are a lot of attacks that can fake it)&lt;br /&gt;
    - Networks at Starbucks intercept the DNS. Splash page pops up when visiting a site. DNSSEC can be used to mitigate against it, but not used often.&lt;br /&gt;
  - Everything depends on DNS. If tampered with, everything breaks.&lt;br /&gt;
  - Cookies are insecure because DNS is insecure&lt;br /&gt;
  - You can hijack cookies because you can mess with DNS&lt;br /&gt;
&lt;br /&gt;
===Protocols===&lt;br /&gt;
  - Browsers don&#039;t distinguish well between HTTP and HTTPS, therefore not guaranteeing a secured connection over HTTPS.&lt;br /&gt;
  - Why do we use cookies? Why do we authenticate tokens?&lt;br /&gt;
    - HTTP was designed to be stateless, but we then wanted to have states&lt;br /&gt;
  - Technical standards aren&#039;t always better. Ie. Local Storage for cookies&lt;br /&gt;
  - You keep things secure by isolating them&lt;br /&gt;
  - Lack of isolation for functional purposes – People want to do things&lt;br /&gt;
  - HSTS&lt;br /&gt;
    - Not really a new protocol&lt;br /&gt;
    - Enforces access over HTTPS&lt;br /&gt;
    - If not HTTPS, don&#039;t trust&lt;br /&gt;
    - It&#039;s because some web applications use both HTTP and HTTPS. The HTTPS downgrades to HTTP. HSTS won&#039;t let it talk to the page.&lt;br /&gt;
    - Downgrade attack:&lt;br /&gt;
      - Connection isn&#039;t encrypted at all&lt;br /&gt;
      - Very easy to intercept (Man in the middle attack) instead of breaking encryption&lt;br /&gt;
&lt;br /&gt;
===Some Types of Attacks===&lt;br /&gt;
    - Cross-Site Scripting (XSS)&lt;br /&gt;
      - Untrusted data inserted into the page&lt;br /&gt;
    - Cross-Site Request Forgery (CSRF)&lt;br /&gt;
      - Impersonation&lt;br /&gt;
      - Sending unauthorized requests&lt;br /&gt;
  - Using JSON to attack&lt;br /&gt;
    - SOP not implemented for JSON markup files&lt;br /&gt;
    - It executes into an object; you gain a reference to it&lt;br /&gt;
    - You can override the array prototype methods to leak it&lt;br /&gt;
    - Doesn&#039;t work anymore, clean JS environment is used to parse the JSON&lt;br /&gt;
&lt;br /&gt;
===Paper: The Unexpected Dangers of Dynamic JavaScript===&lt;br /&gt;
  - Paper is about loading JS script files from target websites into attacker&#039;s web application to gain access to sensitive data&lt;br /&gt;
  - Gain access to JS file by guessing location of the script&lt;br /&gt;
  - Once the JS script file is loaded, properties of JS such as global variables, scoping, prototype inheritance with method overwriting can be used to access the sensitive data&lt;br /&gt;
  - How to mitigate against it?&lt;br /&gt;
    - Don&#039;t keep sensitive data in dynamic JS files, keep it in the static files&lt;br /&gt;
&lt;br /&gt;
===Paper: Cookies Lack Integrity: Real-World Implications===&lt;br /&gt;
  - In general, this paper is hard to keep track of&lt;br /&gt;
  - Web security in general, is very tough to handle in contrast to OS security where we have reference monitors and policies. Web security does contain similar elements, but they are scattered&lt;br /&gt;
  - The web is a bit is like a distributed OS in the sense that we know how to scale it, predict behavior, but don&#039;t have security guarantees&lt;br /&gt;
===How to solve web security?===&lt;br /&gt;
  - How would you architect it?&lt;br /&gt;
  - Perhaps isolate applications to domains&lt;br /&gt;
  - Have a trusted browser as the reference monitor&lt;br /&gt;
  - Make the browser as minimal as possible&lt;br /&gt;
  - Get rid of the DOM and JS; instead have some mediary format&lt;br /&gt;
  - Every website can reqest a particular running environment by using hashes.&lt;br /&gt;
  - Secure web security would essentially break the entire revenue model of the web - advertising.&lt;br /&gt;
===ASM.JS===&lt;br /&gt;
  - A subset language of JS that allows arbitrary code to be compiled to JS with assembly-like speed.&lt;br /&gt;
  - Still have all the protection that JS would have&lt;br /&gt;
  - Problem:&lt;br /&gt;
    - People would start running all kinds of code in the browser that isn&#039;t designed for the web&lt;br /&gt;
    - Arbitrary environments&lt;br /&gt;
    - Whole new class of exploits&lt;/div&gt;</summary>
		<author><name>Hammadasad</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Computer_Systems_Security_(Winter_2016)&amp;diff=20913</id>
		<title>Computer Systems Security (Winter 2016)</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Computer_Systems_Security_(Winter_2016)&amp;diff=20913"/>
		<updated>2016-04-05T18:17:14Z</updated>

		<summary type="html">&lt;p&gt;Hammadasad: /* Lectures and Exams */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Course Outline==&lt;br /&gt;
&lt;br /&gt;
[[Computer Systems Security: Winter 2016 Course Outline|Here]] is the course outline.&lt;br /&gt;
&lt;br /&gt;
==Hacking Opportunities==&lt;br /&gt;
&lt;br /&gt;
The [[SystemsSec 2016W Hacking Opportunities|Hacking Opportunities]] page lists potential hacking opportunities that you can attempt for your hacking journal.  If you attempt but do not successfully accomplish one of them, be sure to document what you tried.  As you learn more, you may come back to them and try again.&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
&lt;br /&gt;
===Readings===&lt;br /&gt;
&lt;br /&gt;
* For the first part of the course we will be reading selections from Trent Jaeger&#039;s [http://www.morganclaypool.com/doi/abs/10.2200/S00126ED1V01Y200808SPT001 Operating Systems Security] textbook.  You can download the PDF [http://www.morganclaypool.com.proxy.library.carleton.ca/doi/abs/10.2200/S00126ED1V01Y200808SPT001 through Carleton&#039;s library].  In the reading assignments this text will be referred to as &amp;quot;Jaeger&amp;quot;.&lt;br /&gt;
* An excellent but dated text on browser security is Michal Zalewski&#039;s [https://code.google.com/p/browsersec/wiki/Main Browser Security Handbook].&lt;br /&gt;
&lt;br /&gt;
===Other Courses===&lt;br /&gt;
&lt;br /&gt;
* Dan Boneh ran an excellent course at Stanford in Spring 2015 on [https://crypto.stanford.edu/cs155/ Computer and Network Security].  This course has many interesting readings that we will not be covering.  Also, the assignments are very good sources for hacking opportunities.&lt;br /&gt;
* The assignments from the Winter 2015 run of COMP 4108 [https://ccsl.carleton.ca/~dmccarney/COMP4108/ are available].  They are a reasonable start for several hacking opportunities.&lt;br /&gt;
&lt;br /&gt;
==Lectures and Exams==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width: 100%;&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;th&amp;gt;&lt;br /&gt;
    &amp;lt;p align=&amp;quot;left&amp;quot;&amp;gt;Date&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;th&amp;gt;&lt;br /&gt;
    &amp;lt;p align=&amp;quot;left&amp;quot;&amp;gt;Topic&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;th&amp;gt;&lt;br /&gt;
    &amp;lt;p align=&amp;quot;left&amp;quot;&amp;gt;Readings&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Jan. 7&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 1|Introduction]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Jaeger, Chapter 1 (Introduction)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Jan. 12&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 2|Access Control, Security Hacking 101]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Jaeger, Chapter 2 (Access Control Fundamentals)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Jan. 14&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 3|Multics, UNIX, and Windows]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Jaeger, Chapter 3 (Multics) and Chapter 4 (UNIX &amp;amp; Windows) &amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Jan. 19&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 4|Secure OSs, theory and practice]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Jaeger, Chapter 6 (Security Kernels) and Chapter 7 (Securing Commercial Operating Systems)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Jan. 21&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 5|LSM, SELinux, &amp;amp; Capabilities]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Jaeger, Chapter 9 (LSM &amp;amp; SELinux) and Chapter 10 (Secure Capability Systems)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Jan. 26&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 6|Secure Virtual Machines, Systems Assurance]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Jaeger, Chapter 11 (Secure Virtual Machine Systems) and Chapter 12 (System Assurance)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Jan. 28&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 7|Lecture 7]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Feb. 2&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 8|Lecture 8]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Feb. 4&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 9|Defensive Security Technologies / Hacking Opportunities]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Feb. 9&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 10|Security Research, Hashes, and Secure Protocols]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Feb. 11&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 11|Modeling a potential attack/ Midterm FAQ]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Feb. 23&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 12|Midterm Review]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Feb. 25&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Midterm (in class)&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 1&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 13|Buffer Overflow/Memory Corruption Attacks]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Aleph One (aka Elias Levy), [http://www.phrack.com/issues/49/14.html#article Smashing The Stack For Fun And Profit] (Phrack 49, 1996)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 3&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 14|Buffer Overflow/Memory Corruption Defenses]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Wikipedia, [https://en.wikipedia.org/wiki/Buffer_overflow_protection Buffer Overflow Protection]&amp;lt;br&amp;gt;&lt;br /&gt;
       Crispin Cowan et al., [https://www.usenix.org/legacy/publications/library/proceedings/sec98/cowan.html StackGuard: Automatic Adaptive Detection and Prevention of Buffer-Overflow Attacks] (USENIX Security, 1998)&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 8&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 15|Bypassing ASLR and Buffer Overflow Exploits using return-into-libc]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Hovav Shacham et al., [http://dx.doi.org/10.1145/1030083.1030124 On the effectiveness of address-space randomization] (ACM CCS, 2004) [http://dl.acm.org.proxy.library.carleton.ca/ft_gateway.cfm?id=1030124&amp;amp;ftid=285463&amp;amp;dwn=1&amp;amp;CFID=588127386&amp;amp;CFTOKEN=74533951 (proxy)]&amp;lt;br&amp;gt;&lt;br /&gt;
           Hovav Shachem [http://dx.doi.org/10.1145/1315245.1315313 The geometry of innocent flesh on the bone: return-into-libc without function calls (on the x86)] (ACM CCS 2007) [http://dl.acm.org.proxy.library.carleton.ca/ft_gateway.cfm?id=1315313&amp;amp;ftid=476749&amp;amp;dwn=1&amp;amp;CFID=588127386&amp;amp;CFTOKEN=74533951 (proxy)]&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 10&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 16|Lecture 16]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Bellovin and Cheswick, [http://dx.doi.org/10.1109/35.312843 Network Firewalls] (IEEE Communications Magazine, 1994) [http://ieeexplore.ieee.org.proxy.library.carleton.ca/stamp/stamp.jsp?tp=&amp;amp;arnumber=312843 (proxy)]&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 15&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 17|Lecture 17]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Dingledine, Mathewson, and Syverson, [https://www.usenix.org/legacy/events/sec04/tech/dingledine.html Tor: The Second-Generation Onion Router] (USENIX Security 2004)&amp;lt;br&amp;gt;Albert Kwon et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/kwon Circuit Fingerprinting Attacks: Passive Deanonymization of Tor Hidden Services] (USENIX Security 2015)&amp;lt;br&amp;gt;(background)[https://www.torproject.org/about/overview.html.en Tor: Overview]&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 17&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 18|Lecture 18]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Blase Ur et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/ur Measuring Real-World Accuracies and Biases in Modeling Password Guessability] (USENIX Security 2015)&amp;lt;br&amp;gt;&lt;br /&gt;
Nikolaos Karapanos et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/karapanos Sound-Proof: Usable Two-Factor Authentication Based on Ambient Sound] (USENIX Security 2015)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 22&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 19|Lecture 19]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Giancarlo Pellegrino et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/pellegrino In the Compression Hornet’s Nest: A Security Study of Data Compression in Network Services] (USENIX Security 2015)&amp;lt;br&amp;gt;Ramya Jayaram Masti et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/masti Thermal Covert Channels on Multi-core Platforms] (USENIX Security 2015)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 24&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 20|DDoS and Pinning]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Seyed K. Fayaz et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/fayaz Bohatei: Flexible and Elastic DDoS Defense] (USENIX Security 2015)&amp;lt;br&amp;gt;Marten Oltrogge and Yasemin Acar, [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/oltrogge To Pin or Not to Pin—Helping App Developers Bullet Proof Their TLS Connections] (USENIX Security 2015)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 29&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 21|Lecture 21]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;David A. Ramos and Dawson Engler, [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/ramos Under-Constrained Symbolic Execution: Correctness Checking for Real Code] (USENIX Security 2015)&amp;lt;br&amp;gt;Nav Jagpal et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/jagpal Trends and Lessons from Three Years Fighting Malicious Extensions] (USENIX Security 2015)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Mar. 31&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 22|Cookie Integrity and XSSI]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Xiaofeng Zheng et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/zheng Cookies Lack Integrity: Real-World Implications] (USENIX Security 2015)&amp;lt;br&amp;gt;Sebastian Lekies et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/lekies The Unexpected Dangers of Dynamic JavaScript] (USENIX Security 2015)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Apr. 5&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 23|Lecture 23]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Michael Backes et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/backes Boxify: Full-fledged App Sandboxing for Stock Android] (USENIX Security 2015)&amp;lt;br&amp;gt;Primal Wijesekera et al., [https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/wijesekera Android Permissions Remystified: A Field Study on Contextual Integrity] (USENIX Security 2015)&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;April 7&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;[[SystemsSec 2016W Lecture 24|Lecture 24]]&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;April 18, 10 AM-12 PM&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Last-Minute Study Session&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;April 19, 9 AM&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;Final Exam&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Lecture Notes Guidelines==&lt;br /&gt;
&lt;br /&gt;
Part of your participation mark is doing notes for at least one of the lectures.  Here are the guidelines for those notes.&lt;br /&gt;
&lt;br /&gt;
The class TA Borke (BorkeObadaObieh at cmail.carleton.ca) will be handling course notes.  Please contact her to schedule your class to take notes.&lt;br /&gt;
&lt;br /&gt;
Borke or Anil will set you up with an account on this wiki.  You&#039;ll enter your initial draft notes here and then work with Borke to make sure they are of sufficient quality.  This may require a few rounds of revisions; however, if you follow the guidelines below it shouldn&#039;t be too bad.&lt;br /&gt;
&lt;br /&gt;
You should plan on organizing your notes as follows:&lt;br /&gt;
* Organize them in at least the following sections: Topics &amp;amp; Readings and Notes.&lt;br /&gt;
* The Topics &amp;amp; Readings section lists the main topics covered in the class, e.g. &amp;quot;buffer overflows&amp;quot;.  Please use an unordered bulleted list (using *&#039;s in wiki markup).  In this section also list readings relevant to the lecture that were mentioned in class.&lt;br /&gt;
* Put your notes in the Notes section.&lt;br /&gt;
&lt;br /&gt;
Use (nested) lists if appropriate for the notes; however, please have some text that isn&#039;t bulleted.  Please try to make the notes even if you did not attend lecture; however, you don&#039;t need to cover every small bit of information that was covered.  In particular the notes do not need to include digressions into topics only tangentially related to the course.  Complete sentences are welcome but not required.&lt;br /&gt;
&lt;br /&gt;
==Security Reading Analysis Guidelines==&lt;br /&gt;
&lt;br /&gt;
A security reading analysis is a detailed analysis of a security research paper.  In it you analyze the key arguments of the paper and give your informed opinion.&lt;br /&gt;
&lt;br /&gt;
Most security papers can be classified as attack or defense papers.  You should analyze them differently.&lt;br /&gt;
&lt;br /&gt;
For attack papers:&lt;br /&gt;
* What systems are vulnerable to the attack?&lt;br /&gt;
* What is the nature of the vulnerability?&lt;br /&gt;
* What is the the exploit?  In particular, what is its technical core?&lt;br /&gt;
* How reproducible is the exploit?&lt;br /&gt;
* Are there likely to be many similar exploits, in the targeted system or other systems?&lt;br /&gt;
* How difficult will it be mitigate/fix the vulnerability in targeted systems?&lt;br /&gt;
&lt;br /&gt;
For defense papers:&lt;br /&gt;
* What is the security problem the paper addresses?  In what kind of threat model(s) does the problem exist?&lt;br /&gt;
* How significant is the problem?  Specifically, to what degree do existing solutions not work sufficiently well?&lt;br /&gt;
* What is the defense?  How does it work?&lt;br /&gt;
* To what degree will the defense potentially solve the targeted security problem?  In particular, how difficult will it be for attackers to adapt to this defense?&lt;br /&gt;
* What are the challenges facing deployment of the defense?  Are they likely to be overcome?&lt;br /&gt;
&lt;br /&gt;
For both kinds of papers, you should give your reaction by addressing questions like the following:&lt;br /&gt;
* Did you like the paper?&lt;br /&gt;
* Was it easy to understand, or was it hard to read?&lt;br /&gt;
* Did you learn much from the paper?&lt;br /&gt;
* How surprised were you by the result?&lt;br /&gt;
&lt;br /&gt;
Your analysis should not cover the above questions separately (this would tend to make for a very wordy analysis); instead, use these questions as a guide in writing a short essay (1-2 pages) on the paper in question.&lt;br /&gt;
&lt;br /&gt;
Each analysis will be graded out of 10 as follows:&lt;br /&gt;
* U: 3 for demonstrating understanding of the content (preferably without summarizing)&lt;br /&gt;
* T: 3 for technical analysis (does it work)&lt;br /&gt;
* C: 3 for contextual analysis (does it matter)&lt;br /&gt;
* V: 1 for your viewpoint&lt;/div&gt;</summary>
		<author><name>Hammadasad</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_22&amp;diff=20912</id>
		<title>SystemsSec 2016W Lecture 22</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_22&amp;diff=20912"/>
		<updated>2016-04-05T18:11:52Z</updated>

		<summary type="html">&lt;p&gt;Hammadasad: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Topics and Readings==&lt;br /&gt;
*Cookies And Integrity&lt;br /&gt;
**Xiaofeng Zheng et al., &#039;&#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/zheng Cookies Lack Integrity: Real-World Implications]&#039;&#039; (USENIX Security 2015)&lt;br /&gt;
*JavaScript Injection&lt;br /&gt;
**Sebastian Lekies et al., &#039;&#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/lekies  The Unexpected Dangers of Dynamic JavaScript]&#039;&#039; (USENIX Security 2015)&lt;br /&gt;
== ==&lt;br /&gt;
&lt;br /&gt;
- Any attack on user space in Linux could work on Windows&lt;br /&gt;
- If we make it easy to run Android apps on Windows OS, who would want to develop windows applications?&lt;br /&gt;
- Azure is already multiplatform; allowing Linux applications to run on Windows.&lt;br /&gt;
&lt;br /&gt;
- Web Security Review:&lt;br /&gt;
  - Questions to discuss:&lt;br /&gt;
    - What is the threat model of web security?&lt;br /&gt;
    - Who is the attacker? The defender?&lt;br /&gt;
    - What is happening?&lt;br /&gt;
  - An example of the attacker targeting a user is phishing (taking credentials)&lt;br /&gt;
  - An example of the attacker targeting a web server: sending random data/traffic (ie. comment spams)&lt;br /&gt;
  - The attacker messes with the browser through the network connection and can then run arbitrary code inside the browser&lt;br /&gt;
  - The browser contains tokens that help access information from the web server&lt;br /&gt;
  - The purpose of getting access to a token – impersonation&lt;br /&gt;
  - The web in general, has a lot of depth and richness, opening up vast amounts of vulnerabilities.&lt;br /&gt;
  - The execution of the model is strange&lt;br /&gt;
    - Where does the web application live?&lt;br /&gt;
      - It doesn&#039;t just live in the browser, it consists of the entire web model/mesh&lt;br /&gt;
      - It&#039;s distributed&lt;br /&gt;
      - Not every entity of the model is trusted&lt;br /&gt;
      - All these web applications are running on the same system, but each have API&#039;s that allow them to connect to the rest of the world&lt;br /&gt;
      - The design of the model is convoluted&lt;br /&gt;
  - Web security is complex because of web browsers&lt;br /&gt;
    - Web browsers weren&#039;t initially designed for a shared environment that executes a large variety of applications&lt;br /&gt;
    - Because of all the interactions the browser allows, it affects the security of everything in the infrastructure.&lt;br /&gt;
- Cookies&lt;br /&gt;
  - It&#039;s data that contains the state of the user or session&lt;br /&gt;
  - Efforts to delete the cookies every so often can be useful, but can reduce security&lt;br /&gt;
  - Cookies are used to mark your browser as special or known&lt;br /&gt;
  - Professor suggests using a different browser configuration for banking related activities&lt;br /&gt;
  - Firefox allows you to setup different configurations through profiles, which have their own cookie stores, history, etc.&lt;br /&gt;
  - Just because a browser, such as Chrome, is sandboxed, it doesn&#039;t mean that it&#039;s secure. Cookies stores are still shared&lt;br /&gt;
  - Cookie stores are little file systems, but with not high integrity&lt;br /&gt;
  - Cookies belong to domain names -&amp;gt; You can specific general domain names or specific routes&lt;br /&gt;
  - Domain names can be bad if you&#039;re connecting to untrusted networks&lt;br /&gt;
  - DNS is a distributed database for mapping host names to IP addresses&lt;br /&gt;
  - Example:&lt;br /&gt;
    - Accessing &#039;scs.carleton.ca&#039;&lt;br /&gt;
    - Find who has authority for &#039;ca&#039; -&amp;gt; then for Carleton -&amp;gt; then for scs&lt;br /&gt;
    - Going through different systems to find names, there&#039;s also no cryptographic protection against DNS (There are a lot of attacks that can fake it)&lt;br /&gt;
    - Networks at Starbucks intercept the DNS. Splash page pops up when visiting a site. DNSSEC can be used to mitigate against it, but not used often.&lt;br /&gt;
  - Everything depends on DNS. If tampered with, everything breaks.&lt;br /&gt;
  - Cookies are insecure because DNS is insecure&lt;br /&gt;
  - You can hijack cookies because you can mess with DNS&lt;br /&gt;
&lt;br /&gt;
- Protocols&lt;br /&gt;
  - Browsers don&#039;t distinguish well between HTTP and HTTPS, therefore not guaranteeing a secured connection over HTTPS.&lt;br /&gt;
  - Why do we use cookies? Why do we authenticate tokens?&lt;br /&gt;
    - HTTP was designed to be stateless, but we then wanted to have states&lt;br /&gt;
  - Technical standards aren&#039;t always better. Ie. Local Storage for cookies&lt;br /&gt;
  - You keep things secure by isolating them&lt;br /&gt;
  - Lack of isolation for functional purposes – People want to do things&lt;br /&gt;
  - HSTS&lt;br /&gt;
    - Not really a new protocol&lt;br /&gt;
    - Enforces access over HTTPS&lt;br /&gt;
    - If not HTTPS, don&#039;t trust&lt;br /&gt;
    - It&#039;s because some web applications use both HTTP and HTTPS. The HTTPS downgrades to HTTP. HSTS won&#039;t let it talk to the page.&lt;br /&gt;
    - Downgrade attack:&lt;br /&gt;
      - Connection isn&#039;t encrypted at all&lt;br /&gt;
      - Very easy to intercept (Man in the middle attack) instead of breaking encryption&lt;br /&gt;
&lt;br /&gt;
-&lt;br /&gt;
  - Some Types of Attacks&lt;br /&gt;
    - Cross-Site Scripting (XSS)&lt;br /&gt;
      - Untrusted data inserted into the page&lt;br /&gt;
    - Cross-Site Request Forgery (CSRF)&lt;br /&gt;
      - Impersonation&lt;br /&gt;
      - Sending unauthorized requests&lt;br /&gt;
  - Using JSON to attack&lt;br /&gt;
    - SOP not implemented for JSON markup files&lt;br /&gt;
    - It executes into an object; you gain a reference to it&lt;br /&gt;
    - You can override the array prototype methods to leak it&lt;br /&gt;
    - Doesn&#039;t work anymore, clean JS environment is used to parse the JSON&lt;br /&gt;
- Paper: The Unexpected Dangers of Dynamic JavaScript&lt;br /&gt;
  - Paper is about loading JS script files from target websites into attacker&#039;s web application to gain access to sensitive data&lt;br /&gt;
  - Gain access to JS file by guessing location of the script&lt;br /&gt;
  - Once the JS script file is loaded, properties of JS such as global variables, scoping, prototype inheritance with method overwriting can be used to access the sensitive data&lt;br /&gt;
  - How to mitigate against it?&lt;br /&gt;
    - Don&#039;t keep sensitive data in dynamic JS files, keep it in the static files&lt;br /&gt;
- Paper: Cookies Lack Integrity: Real-World Implications&lt;br /&gt;
  - In general, this paper is hard to keep track of&lt;br /&gt;
  - Web security in general, is very tough to handle in contrast to OS security where we have reference monitors and policies. Web security does contain similar elements, but they are scattered&lt;br /&gt;
  - The web is a bit is like a distributed OS in the sense that we know how to scale it, predict behavior, but don&#039;t have security guarantees&lt;br /&gt;
- How to solve web security? How would you architect it?&lt;br /&gt;
  - Perhaps isolate applications to domains&lt;br /&gt;
  - Have a trusted browser as the reference monitor&lt;br /&gt;
  - Make the browser as minimal as possible&lt;br /&gt;
  - Get rid of the DOM and JS; instead have some mediary format&lt;br /&gt;
  - Every website can reqest a particular running environment by using hashes.&lt;br /&gt;
  - Secure web security would essentially break the entire revenue model of the web - advertising.&lt;br /&gt;
- ASM.JS&lt;br /&gt;
  - A subset language of JS that allows arbitrary code to be compiled to JS with assembly-like speed.&lt;br /&gt;
  - Still have all the protection that JS would have&lt;br /&gt;
  - Problem:&lt;br /&gt;
    - People would start running all kinds of code in the browser that isn&#039;t designed for the web&lt;br /&gt;
    - Arbitrary environments&lt;br /&gt;
    - Whole new class of exploits&lt;/div&gt;</summary>
		<author><name>Hammadasad</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_22&amp;diff=20903</id>
		<title>SystemsSec 2016W Lecture 22</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_22&amp;diff=20903"/>
		<updated>2016-04-01T21:12:55Z</updated>

		<summary type="html">&lt;p&gt;Hammadasad: Created page with &amp;quot;- Any attack on user space in Linux could work on Windows - If we make it easy to run Android apps on Windows OS, who would want to develop windows applications? - Azure is al...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;- Any attack on user space in Linux could work on Windows&lt;br /&gt;
- If we make it easy to run Android apps on Windows OS, who would want to develop windows applications?&lt;br /&gt;
- Azure is already multiplatform; allowing Linux applications to run on Windows.&lt;br /&gt;
&lt;br /&gt;
- Web Security Review:&lt;br /&gt;
  - Questions to discuss:&lt;br /&gt;
    - What is the threat model of web security?&lt;br /&gt;
    - Who is the attacker? The defender?&lt;br /&gt;
    - What is happening?&lt;br /&gt;
  - An example of the attacker targeting a user is phishing (taking credentials)&lt;br /&gt;
  - An example of the attacker targeting a web server: sending random data/traffic (ie. comment spams)&lt;br /&gt;
  - The attacker messes with the browser through the network connection and can then run arbitrary code inside the browser&lt;br /&gt;
  - The browser contains tokens that help access information from the web server&lt;br /&gt;
  - The purpose of getting access to a token – impersonation&lt;br /&gt;
  - The web in general, has a lot of depth and richness, opening up vast amounts of vulnerabilities.&lt;br /&gt;
  - The execution of the model is strange&lt;br /&gt;
    - Where does the web application live?&lt;br /&gt;
      - It doesn&#039;t just live in the browser, it consists of the entire web model/mesh&lt;br /&gt;
      - It&#039;s distributed&lt;br /&gt;
      - Not every entity of the model is trusted&lt;br /&gt;
      - All these web applications are running on the same system, but each have API&#039;s that allow them to connect to the rest of the world&lt;br /&gt;
      - The design of the model is convoluted&lt;br /&gt;
  - Web security is complex because of web browsers&lt;br /&gt;
    - Web browsers weren&#039;t initially designed for a shared environment that executes a large variety of applications&lt;br /&gt;
    - Because of all the interactions the browser allows, it affects the security of everything in the infrastructure.&lt;br /&gt;
- Cookies&lt;br /&gt;
  - It&#039;s data that contains the state of the user or session&lt;br /&gt;
  - Efforts to delete the cookies every so often can be useful, but can reduce security&lt;br /&gt;
  - Cookies are used to mark your browser as special or known&lt;br /&gt;
  - Professor suggests using a different browser configuration for banking related activities&lt;br /&gt;
  - Firefox allows you to setup different configurations through profiles, which have their own cookie stores, history, etc.&lt;br /&gt;
  - Just because a browser, such as Chrome, is sandboxed, it doesn&#039;t mean that it&#039;s secure. Cookies stores are still shared&lt;br /&gt;
  - Cookie stores are little file systems, but with not high integrity&lt;br /&gt;
  - Cookies belong to domain names -&amp;gt; You can specific general domain names or specific routes&lt;br /&gt;
  - Domain names can be bad if you&#039;re connecting to untrusted networks&lt;br /&gt;
  - DNS is a distributed database for mapping host names to IP addresses&lt;br /&gt;
  - Example:&lt;br /&gt;
    - Accessing &#039;scs.carleton.ca&#039;&lt;br /&gt;
    - Find who has authority for &#039;ca&#039; -&amp;gt; then for Carleton -&amp;gt; then for scs&lt;br /&gt;
    - Going through different systems to find names, there&#039;s also no cryptographic protection against DNS (There are a lot of attacks that can fake it)&lt;br /&gt;
    - Networks at Starbucks intercept the DNS. Splash page pops up when visiting a site. DNSSEC can be used to mitigate against it, but not used often.&lt;br /&gt;
  - Everything depends on DNS. If tampered with, everything breaks.&lt;br /&gt;
  - Cookies are insecure because DNS is insecure&lt;br /&gt;
  - You can hijack cookies because you can mess with DNS&lt;br /&gt;
&lt;br /&gt;
- Protocols&lt;br /&gt;
  - Browsers don&#039;t distinguish well between HTTP and HTTPS, therefore not guaranteeing a secured connection over HTTPS.&lt;br /&gt;
  - Why do we use cookies? Why do we authenticate tokens?&lt;br /&gt;
    - HTTP was designed to be stateless, but we then wanted to have states&lt;br /&gt;
  - Technical standards aren&#039;t always better. Ie. Local Storage for cookies&lt;br /&gt;
  - You keep things secure by isolating them&lt;br /&gt;
  - Lack of isolation for functional purposes – People want to do things&lt;br /&gt;
  - HSTS&lt;br /&gt;
    - Not really a new protocol&lt;br /&gt;
    - Enforces access over HTTPS&lt;br /&gt;
    - If not HTTPS, don&#039;t trust&lt;br /&gt;
    - It&#039;s because some web applications use both HTTP and HTTPS. The HTTPS downgrades to HTTP. HSTS won&#039;t let it talk to the page.&lt;br /&gt;
    - Downgrade attack:&lt;br /&gt;
      - Connection isn&#039;t encrypted at all&lt;br /&gt;
      - Very easy to intercept (Man in the middle attack) instead of breaking encryption&lt;br /&gt;
&lt;br /&gt;
-&lt;br /&gt;
  - Some Types of Attacks&lt;br /&gt;
    - Cross-Site Scripting (XSS)&lt;br /&gt;
      - Untrusted data inserted into the page&lt;br /&gt;
    - Cross-Site Request Forgery (CSRF)&lt;br /&gt;
      - Impersonation&lt;br /&gt;
      - Sending unauthorized requests&lt;br /&gt;
  - Using JSON to attack&lt;br /&gt;
    - SOP not implemented for JSON markup files&lt;br /&gt;
    - It executes into an object; you gain a reference to it&lt;br /&gt;
    - You can override the array prototype methods to leak it&lt;br /&gt;
    - Doesn&#039;t work anymore, clean JS environment is used to parse the JSON&lt;br /&gt;
- Paper: The Unexpected Dangers of Dynamic JavaScript&lt;br /&gt;
  - Paper is about loading JS script files from target websites into attacker&#039;s web application to gain access to sensitive data&lt;br /&gt;
  - Gain access to JS file by guessing location of the script&lt;br /&gt;
  - Once the JS script file is loaded, properties of JS such as global variables, scoping, prototype inheritance with method overwriting can be used to access the sensitive data&lt;br /&gt;
  - How to mitigate against it?&lt;br /&gt;
    - Don&#039;t keep sensitive data in dynamic JS files, keep it in the static files&lt;br /&gt;
- Paper: Cookies Lack Integrity: Real-World Implications&lt;br /&gt;
  - In general, this paper is hard to keep track of&lt;br /&gt;
  - Web security in general, is very tough to handle in contrast to OS security where we have reference monitors and policies. Web security does contain similar elements, but they are scattered&lt;br /&gt;
  - The web is a bit is like a distributed OS in the sense that we know how to scale it, predict behavior, but don&#039;t have security guarantees&lt;br /&gt;
- How to solve web security? How would you architect it?&lt;br /&gt;
  - Perhaps isolate applications to domains&lt;br /&gt;
  - Have a trusted browser as the reference monitor&lt;br /&gt;
  - Make the browser as minimal as possible&lt;br /&gt;
  - Get rid of the DOM and JS; instead have some mediary format&lt;br /&gt;
  - Every website can reqest a particular running environment by using hashes.&lt;br /&gt;
  - Secure web security would essentially break the entire revenue model of the web - advertising.&lt;br /&gt;
- ASM.JS&lt;br /&gt;
  - A subset language of JS that allows arbitrary code to be compiled to JS with assembly-like speed.&lt;br /&gt;
  - Still have all the protection that JS would have&lt;br /&gt;
  - Problem:&lt;br /&gt;
    - People would start running all kinds of code in the browser that isn&#039;t designed for the web&lt;br /&gt;
    - Arbitrary environments&lt;br /&gt;
    - Whole new class of exploits&lt;/div&gt;</summary>
		<author><name>Hammadasad</name></author>
	</entry>
</feed>