<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://homeostasis.scs.carleton.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=SystemsSec_2016W_Lecture_20</id>
	<title>SystemsSec 2016W Lecture 20 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://homeostasis.scs.carleton.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=SystemsSec_2016W_Lecture_20"/>
	<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_20&amp;action=history"/>
	<updated>2026-06-02T23:06:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_20&amp;diff=20885&amp;oldid=prev</id>
		<title>Michelberg at 05:52, 27 March 2016</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_20&amp;diff=20885&amp;oldid=prev"/>
		<updated>2016-03-27T05:52:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:52, 27 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{DISPLAYTITLE:DDoS and Pinning}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Topics and Readings==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Topics and Readings==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Distributed Denial of Service (DDoS) Attacks&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Distributed Denial of Service (DDoS) Attacks&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Michelberg</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_20&amp;diff=20884&amp;oldid=prev</id>
		<title>Michelberg at 05:46, 27 March 2016</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_20&amp;diff=20884&amp;oldid=prev"/>
		<updated>2016-03-27T05:46:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:46, 27 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{DISPLAYTITLE:DDoS and Pinning}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Topics and Readings==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Topics and Readings==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Distributed Denial of Service (DDoS) Attacks&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Distributed Denial of Service (DDoS) Attacks&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Michelberg</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_20&amp;diff=20882&amp;oldid=prev</id>
		<title>Michelberg: Created page with &quot;==Topics and Readings== *Distributed Denial of Service (DDoS) Attacks **Seyed K. Fayaz et al., &#039;&#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/present...&quot;</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=SystemsSec_2016W_Lecture_20&amp;diff=20882&amp;oldid=prev"/>
		<updated>2016-03-25T02:44:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Topics and Readings== *Distributed Denial of Service (DDoS) Attacks **Seyed K. Fayaz et al., &amp;#039;&amp;#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/present...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Topics and Readings==&lt;br /&gt;
*Distributed Denial of Service (DDoS) Attacks&lt;br /&gt;
**Seyed K. Fayaz et al., &amp;#039;&amp;#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/fayaz Bohatei: Flexible and Elastic DDoS Defense]&amp;#039;&amp;#039; (USENIX Security 2015)&lt;br /&gt;
*Certificate Pinning&lt;br /&gt;
**Marten Oltrogge and Yasemin Acar, &amp;#039;&amp;#039;[https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/oltrogge To Pin or Not to Pin—Helping App Developers Bullet Proof Their TLS Connections]&amp;#039;&amp;#039; (USENIX Security 2015)&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
===DoS (Denial of Service) Attacks===&lt;br /&gt;
====Introduction====&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;DoS attack&amp;#039;&amp;#039;&amp;#039; occurs when a host system floods a target system or any of its resources with illegitimate traffic, preventing the legitimate requests from being processed. This flood can involve network queues or even a server&amp;#039;s CPU or RAM resources, though the readings concentrate primarily on the networking aspects.&lt;br /&gt;
*An example of a memory-based DoS attack involves Zip Bombs. A Zip Bomb is a large amount of arbitrary data that is efficiently compressed to a very small size. When it is opened by a server for malware detection purposes, it quickly exhausts the system&amp;#039;s available RAM and potentially even its swap space, grinding the system to a hault.&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;network-based DoS attack&amp;#039;&amp;#039;&amp;#039; stems from a problem in a computer network&amp;#039;s traffic management. Many systems do not have proper protections in place to deal with attack-style requests, so they are typically treated as legitimate traffic and as a result are not ignored.&lt;br /&gt;
*An example of this is in a SYN flood attack, where the first part of a TCP connection (SYN message) is sent to the server without the attacker caring for the SYN-ACK response. The server will wait for the attacker&amp;#039;s ACK message, keeping resources open for a set amount of time. When the server&amp;#039;s resources eventually run out, the server will no longer accept new SYN requests from legitimate users.&lt;br /&gt;
&lt;br /&gt;
The resulting effects are pretty simple: you can&amp;#039;t use the network as intended. There are too many packets being received by the server, and yours can&amp;#039;t get through.&lt;br /&gt;
&lt;br /&gt;
DoS attacks can be on both public and private networks, though private attacks (e.g. preventing one specific n00b from accessing a lobby server after a CS:GO match didn&amp;#039;t go your way) are far less of a concern than, say, a multinational banking server going down.&lt;br /&gt;
&lt;br /&gt;
====DDoS (Distributed Denial of Service) Attacks====&lt;br /&gt;
Because no one computer is powerful enough to flood any sensible network nowadays, to effectively perform a DoS attack the barrage is carried out by many different computers instead of just one. The amount of traffic generated by multiple computers can more effectively overwhelm a target network&amp;#039;s resources, especially when the individual attacking hosts—which need not belong to the attacker, in the case of public servers or compromised systems—are limited in their own bandwidth as well. This is called a &amp;#039;&amp;#039;&amp;#039;Distributed Denial of Service attack&amp;#039;&amp;#039;&amp;#039;, due to its distributed nature.&lt;br /&gt;
&lt;br /&gt;
====Amplification Attack====&lt;br /&gt;
An &amp;#039;&amp;#039;&amp;#039;amplification attack&amp;#039;&amp;#039;&amp;#039; is an attack that is propagated on public networks. It is made possible by small requests that receive substantially larger responses from a server.&lt;br /&gt;
*An example discussed in class is the NTP (Network Time Protocol) server, which responds to a single UDP &amp;quot;monlist&amp;quot; packet with a list of the last 600 IP addresses connected [[http://arstechnica.com/security/2014/02/biggest-ddos-ever-aimed-at-cloudflares-content-delivery-network/ article]]. By spoofing the return address of many of these requests, a DDoS attack can be directed to a particular network.&lt;br /&gt;
&lt;br /&gt;
====Preventing a DoS Attack====&lt;br /&gt;
In order to minimize or prevent the effects of an attempted DoS attack, a server needs a way to differentiate legitimate traffic from illegitimate traffic—preferably before the spurious packets propagate through your network. This can be done by routing major points in a network through powerful, high-bandwidth computers to process incoming traffic before it is allowed to propagate to the less powerful routers and switches that would be more devastated by large scale traffic floods. This can present some problems, however:&lt;br /&gt;
&lt;br /&gt;
A traffic analogy:&lt;br /&gt;
*Many cars drive along a highway. They typically travel at high speeds, utilizing and filling up the 4 lanes available.&lt;br /&gt;
*When construction cuts the number of lanes down to one, every car must merge into one lane at the threshold. This slows traffic considerably.&lt;br /&gt;
*A preventative measure is to redirect the traffic around these narrow roads.&lt;br /&gt;
**Like with roads, a network&amp;#039;s topology cannot typically reconfigure itself on the fly. Roads cannot be built and destroyed whenever traffic gets slow.&lt;br /&gt;
*Another method for preventing traffic is to just vaporize the cars.&lt;br /&gt;
&lt;br /&gt;
Going back to networking, the last point above is much easier when dealing with packets: just drop them. Typically legitimate traffic is of a certain type; we can drop the odd ones before they get to the inner network. Legitimate traffic can still be faked, but this can prevent &amp;#039;&amp;#039;some&amp;#039;&amp;#039; less sophisticated attack traffic. But for those remaining however, to know which packets are the ones that need to be dropped can be resource-intensive, even for powerful computers. Deep packet scanning or authentication works, but that takes time.&lt;br /&gt;
&lt;br /&gt;
====SDN (Software Defined Networking) and &amp;#039;&amp;#039;[https://github.com/ddos-defense/bohatei Bohatei]&amp;#039;&amp;#039;====&lt;br /&gt;
The actual process of networking is to route packets to their destinations. This is done by using routing tables and other networking rules. For high-speed routers, these rules are on specialized, super-fast pieces of silicon to make these table-lookups highly optimized and very efficient. Unfortunately it also makes it very &amp;#039;&amp;#039;proprietary&amp;#039;&amp;#039; and &amp;#039;&amp;#039;expensive&amp;#039;&amp;#039;. SDN (Software Defined Networking) removes some of these limitations by replacing the expensive silicon with flexible software designed for general purpose computers.&lt;br /&gt;
*Some of the operations are therefore going to be slower. This is a given, and likely a fair trade.&lt;br /&gt;
*This software is much more flexible and scalable than other physical DDoS protection deployments (expensive machines added to a network designed to handle DDoS-related attacks).&lt;br /&gt;
&lt;br /&gt;
The paper discusses planning (what attacks you &amp;#039;&amp;#039;could&amp;#039;&amp;#039; get, not what attacks you &amp;#039;&amp;#039;will&amp;#039;&amp;#039; get) for attacks:&lt;br /&gt;
*During certain attack scenarios, (e.g. SYN flood), it will route that specific type of traffic (i.e. SYN packets) using a different set of routing rules and network topologies. &lt;br /&gt;
**The new (temporary) topology is not optimal, but that is because it is case-specific. As a result, there will be a degradation of service (SYN packets are slower), but the rest of the network should be able to deal with it and recover after the attack is finished by reverting back to the more optimal topologies and routing tables.&lt;br /&gt;
**Going back to the traffic analogy, it would be like changing or redefining roads on the fly (changing directions of one-way streets... sort of like the Champlain Bridge between Ottawa and Gatineau).&lt;br /&gt;
&lt;br /&gt;
A caveat for the above, related to the paper:&lt;br /&gt;
*It is assuming that an entire network is running on SDN, which is not the case at present.&lt;br /&gt;
**The paper does not cover hybrid solutions.&lt;br /&gt;
**If a corporation is looking for DDoS protection services, it would likely be inclined to just add a specialized machine to handle that traffic instead of migrating the &amp;#039;&amp;#039;entire&amp;#039;&amp;#039; network over to SDN.&lt;br /&gt;
*All classes of attacks need to be defined in advance for Bohatei and other software to operate properly.&lt;br /&gt;
*The paper doesn&amp;#039;t take into consideration friendly DDoS attacks (e.g. accidental DDoS when a low-traffic public webserver hosts content that suddenly goes viral).&lt;br /&gt;
&lt;br /&gt;
====Side Note====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Attribution&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; - The internet was not designed with metering, so how do you know who is responsible for a DDoS attack? When talking about attack packets (typically spoofed source addresses, sent from compromised machines), it is important to note that it is very difficult to legitimately trace these back to their sources. DDoS attacks are very &amp;#039;&amp;#039;noisy&amp;#039;&amp;#039; attack methods, meaning packets are leaked all over.&lt;br /&gt;
&lt;br /&gt;
==Pinning==&lt;br /&gt;
====CA (Certification Authority) Certificates &amp;amp; PKI (Public Key Infrastructure)====&lt;br /&gt;
A modern web browser has a built in set of CA (certification authority) certificates. When you visit a website, the SSL connection&amp;#039;s CA is verified by the browser. If your connection&amp;#039;s certificate is signed by something else (e.g. an unauthenticated/expired certificate), then the connection is dropped. TLS is reliable, but once keys are changed, those TLS connections are refused.&lt;br /&gt;
*Websites typically use only a certain set of certificates. For example, Facebook supposedly always goes with Verisign certificates (though upon verification it appears to be issued by DigiCert).&lt;br /&gt;
*Wildcard certificates are certificates that can be used for any number of subdomains (e.g. *.facebook.com).&lt;br /&gt;
**Wildcard certificates are typically less secure than individual (more specific) certificates.&lt;br /&gt;
**More specific certificates can be specified (i.e. &amp;#039;&amp;#039;pinned&amp;#039;&amp;#039;) for a stricter subset of those subdomains, however. This is called &amp;#039;&amp;#039;&amp;#039;Certificate Pinning&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
====Certificate Pinning====&lt;br /&gt;
Pinning is the specification of which certificates you explicitly trust. It is a way to make verification more trustworthy (at the cost of speed).&lt;br /&gt;
&lt;br /&gt;
Facebook example:&lt;br /&gt;
:Verisign → FB&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; → FB&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
*&amp;#039;&amp;#039;Verisign&amp;#039;&amp;#039; is the fingerprint (hashed public key used to represent a longer public key). This is the root certificate, and it is verified.&lt;br /&gt;
*Each certificate down the chain is more specific. &amp;#039;&amp;#039;FB&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; is a more specific CA certificate than &amp;#039;&amp;#039;FB&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;. If you &amp;quot;pin&amp;quot; a certificate further down the chain, you specify that you trust that less-generic certificate. More specific certificates are more secure.&lt;br /&gt;
&lt;br /&gt;
====Some Problems with Pinning====&lt;br /&gt;
As a developer, you cannot change which CA certificates a user&amp;#039;s browser will accept. As an app developer, you can leave certificate pinning to third-party libraries and services.&lt;br /&gt;
*If you&amp;#039;re using a third party library to handle certain networking connections however, there is a possibility that the library might be opening connections that you (the developer) know very little about.&lt;br /&gt;
**An example of this? &amp;#039;&amp;#039;Ad networks&amp;#039;&amp;#039;. They talk to many servers, sometimes without even the developer&amp;#039;s knowledge.&lt;br /&gt;
&lt;br /&gt;
Certificates can instead be hard-coded to explicitly state which CA certificates your app deems acceptable. This can easily prevent connections to 50 servers when you only need 1, but certificates sometimes change. When that happens without the app being updated first, subsequent network connections are refused, and the app breaks.&lt;br /&gt;
&lt;br /&gt;
Organizations also aren&amp;#039;t disciplined in how they use their certificates—or if they are, there is no standard between organizations. Facebook could be using upwards of 1,000 certificates. Same with Google. Or they could be using one.&lt;/div&gt;</summary>
		<author><name>Michelberg</name></author>
	</entry>
</feed>