<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Murtuza Vadharia on Medium]]></title>
        <description><![CDATA[Stories by Murtuza Vadharia on Medium]]></description>
        <link>https://medium.com/@tipumurtuza?source=rss-83905071f64d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Cwzk4SCd4YqoPJ_b.jpg</url>
            <title>Stories by Murtuza Vadharia on Medium</title>
            <link>https://medium.com/@tipumurtuza?source=rss-83905071f64d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:32:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tipumurtuza/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Implementation and Countermeasure for Distributed Denial-of-Service]]></title>
            <link>https://medium.com/@tipumurtuza/implementation-and-countermeasure-for-distributed-denial-of-service-f08fe1454511?source=rss-83905071f64d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f08fe1454511</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[ddos-attack]]></category>
            <category><![CDATA[denial-of-service]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Murtuza Vadharia]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 10:40:43 GMT</pubDate>
            <atom:updated>2019-11-15T12:01:32.962Z</atom:updated>
            <content:encoded><![CDATA[<h3>Implementation</h3><p>We will be discussing two types of implementation.</p><h4>JAVA DDoS</h4><p>To execute DDOS, a worm-like program is created to mimic self-propagation onto numerous hosts on a network. However, creating an actual worm is beyond the scope of this blog, therefore, we used a small Java program to simulate such a worm. Despite the fact that it carries the payload and stands by to receive orders from a master&#39;s program, the worm does not self propagate. We essentially place the application on each host machine manually for simulation purposes. The worm-like zombie program will dispatch a Ping of Death attack from numerous hosts coordinated by our ace program. The applications handle all communication between each other. At the time of the attack, the master program arranges a syncronized attack by sending a message to all the zombies that make them release their Ping of Death payload against a target host that is specified by the master program.</p><p>The implementation in JVM has been built using TCP sockets and serializable Java objects. Serializable Java objects can be transferred to remote servers and then executed with the entirety of its information intact. The serializable Java objects have all the instructions needed to launch a particular type of attack. At the time of attack when a user wishes to initiate an attack, he or she fires up the master&#39;s program and indicates which server to attack. The master program, by accessing a configuration file looks up the ports and IP addresses of all known zombie programs. Then it instantiates Java serializable object based on the DOS attack type specified and conveys it to every zombie listed in its configuration file over a TCP socket. Each and every zombie program identify that it has received a message and reads from a TCP socket the serializable java object. It then deserializes it and executes it, which in turn will launch the DOS attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HATxfcgfAOOat8GIHGUV6w.png" /></figure><p>DOSZombie class acts as a server that services DOS attacks. It is created by specifying what port it should listen on. Then it uses a TCP socket and waits for the communication message until is received. It is multithreaded; therefore, it can receive multiple connections at the same time.</p><p>The DOSAttackLauncher class acts as the client and can communicate with a DOSZombie, created by specifying the zombie’s port and IP address that it is listening on the network. The DOSAttackLauncher then creates a TCP connection to the zombie specified. Its method, “launchAttack”, takes a DOSAttack object. It will then send this object to the DOSZombie and the DOSZobmie will then invoke the DOSAttack’s attack method. The DosZombie also sends a return message to the DOSAttackLauncher notifying if it successfully began the attack or if an error occurred. The DOSAttackManager is used by the master program that launches the attack. It recognizes all the running zombies, makes a DOSAttackLauncher object for each individual zombie, and then instructs all DOSAttackLaunchers to send the type of DOSAttack to the zombie. The DOSAttacker class is an abstract class to support polymorphic behavior and implements the Java Serializable interface so that it can be sent through a TCP socket and executed on a remote server. The PingDOSAttacker and SYNFloodAttacker have the implementations for the “Ping of Death” attacker and the TCP SYN flood attack, respectively. The PingDOSAttacker makes an external call to the C# Ping of Death implementation program when their attack methods are called.</p><p><strong>Ping of Death implementations:</strong></p><p>1. Calling a ping application that comes with any modern network operating system. The packet sizes are modified to be larger than the default 32 bytes. The strength of this attack is not in the ping application itself by rather in the fact that when used in a DDOS scenario, the victim computer is simply overwhelmed by the large quantity of ICMP Echo Request packets.</p><p>2. C# program and RAW Sockets to increase the amount and speed of the ECHO Request packets in addition to the size. RAW Sockets, a form of TCP sockets that gives the programmer flexibility to build each packet from scratch. The application, therefore, must define each and every parameter in the header as well as allocate all necessary buffers for containment of the packet. All checksums and validations have to be verified and checked by the application rather than handled by the operating system. The prime improvement is the speed: by removing safeguards and checks that the standard TCP socket has in place and appropriation of exact buffers, resource utility is significantly decreased as a whole when considered in volume. Likewise, it enables the application to accomplish things like overlooking of ECHO Reply packets and focus solely on sending ECHO Request packets.</p><h4>TCP SYN Flood Attack</h4><p>When hosts got to establish communications via the communication TCP transport protocol, they have to do a session initiation, that consists of a three-way handshake:</p><ol><li>The source host initiated the communication by dispatching a TCP packet to the destination host the SYN flag (SYNchronize sequence numbers) set to HIGH. In this packet reside the source IP address and port number as well as the destination IP address and port numbers.</li><li>The destination host responds by replying with a TCP packet to the source host with the flags SYN and ACK (ACKnowledge) set to HIGH. The response is distributed to the source IP address and port of the initial packet in step 1.</li><li>The source host sends the destination host another TCP packet with the ACK flag set to HIGH. This completes the 3-way handshake and regular data communication can instigate.</li></ol><p>In a TCP SYN Flood attack, the source (attacker) host basically neglects to finish step 3 leaving the victim host with an incomplete communication session. At the point when the victim’s TCP socket receives the message in the first step, it designates buffers, increments counters, initiates timers, and increases communication stacks in preparation for the communication that is to follow. Additionally, processor time is spent building the reply packet (step 2) and getting a reply back. The assailant will overwhelm the victim’s device resources by “flooding” of packets with the SYN flag set to HIGH(step 1) and never bothering returning any response (step 3).</p><h3>Countermeasures</h3><p>The most common approach in order to effectively defend against a DDoS attack is to try to identify the sources of this attack. This is a very difficult task due to the reasons we have mentioned in the introduction but not impossible. The fact that the source IP address is not a reliable source of information, made the researchers explore different ways to identify the true sources of an incoming attack. One of the first approaches tried to eliminate the phenomenon of false a.k.a. “spoofed” source IP addresses. This can be achieved if all the internet routers employ ingress filtering [8]. In ingress filtering, the router checks if an incoming packet in its ingress interface is valid for that interface. The validity of the packet is decided based on the information that the router has about the possible IP ranges that the incoming packets can have a source IP address. This method can not be used in transit routers due to the wide range of possible IP addresses for each interface. It also poses a heavy computational burden to the routers due to the additional lookups needed for this operation and the effectiveness of such a method relies heavily on the extent of its deployment.</p><p><strong>5.2 Probabilistic packet marking (PPM)</strong></p><p>According to this method, the packets are marked, with low probability, while passing through the internet routers. This marking holds information about this particular part of the complete path of the packet. Using this method, the victim can identify the source of large steams of packets by combining the path information of different packets that belong to the same stream. Although packet marking is a very promising approach in traceback, PPM has many limitations such as very large computational complexity during path reconstruction, especially on highly distributed DoS attacks. It also suffers from the false marking phenomenon in which a sophisticated attacker can inject specially marked packets into the attack stream forcing the victim to reconstruct false paths.</p><p><strong>5.2 Deterministic Packet Marking (DPM)</strong></p><p>Compared to PPM, here router marks all the traversing packets. In other words, all the routers inject part of IP into a traversing packet.</p><p>An enhancement of DPM proposed in further reduces the number of packets needed in order to be able to identify the source to 1 packet. This enables the victim to perform per-packet filtering in real-time. The drawback of the last marking scheme is that it also requires a map of all the upstream routers and that there is a substantial large fault probability depending on the total number of edge routers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f08fe1454511" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distributed Denial-of-Service: An Overview]]></title>
            <link>https://medium.com/@tipumurtuza/distributed-denial-of-service-an-overview-c8029d3c6f4?source=rss-83905071f64d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8029d3c6f4</guid>
            <category><![CDATA[ddos]]></category>
            <category><![CDATA[denial-of-service]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Murtuza Vadharia]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 07:20:29 GMT</pubDate>
            <atom:updated>2019-11-15T08:50:56.881Z</atom:updated>
            <content:encoded><![CDATA[<p>The denial-of-service (DoS) attack occurs when authentic clients, incapable to access devices, information systems, or other network resources which results due to the activity carried out by a malicious cyber threat actor exploiting the vulnerability existing in the systems. Services affected may incorporate online accounts, websites, email, or other services that confide on the affected computer or network. DoS attacks can cost an organization both time and money while their assets and services are difficult to reach and unresponsive.</p><h3>History</h3><p>Since the first attack was launched in 1974, it has been remembered among the most persistent and damaging cyber-attacks in history. These attacks are complex and dynamic challenges for cybersecurity reflect hacker’s frustratingly high levels of tenacity and creativity.</p><p>The first-ever DoS attack occurred in 1974 obligingness of David Dennis, a 13-year-old understudy at University High School, under Computer-Based Education Research Laboratory (CERL) at the University of Illinois Urbana-Champaign. Inquisitive to perceive what it would be like for a room loaded with clients to be locked out at once, he wrote a program that would send the “ext” command to many PLATO terminals at the same time. Dennis with the association of CERL tested his program, which forced all 31 users to power off at once was a huge success.</p><p><strong>Historic DoS Attacks</strong></p><p><strong>Ping Flooding: </strong>Attack designed to send many ICMP echo request packets to the targeted server using multiple devices.</p><p><strong>Smurf Attack:</strong> Simple attack in which a magnanimous number of ICMP packet with intended victim’s spoofed source IP is broadcast to a computer network using IP broadcast address.</p><p><strong>Ping of Death: </strong>Attack based on the principle of sending a malformed ping, i.e. correctly formed packet is 56 bytes or 64 bytes if the header is considered. Generally, packets can be as long as 65536 bytes long. Due to improper handling of pings between the devices, not handled initially, violating IP policy.</p><h3>DoS vs DDoS</h3><p>Dos attacks were an essential strategy of disrupting computer systems on network systems. Being straightforward starting from a single machine, accomplished by sending more ICMP requests to target utilizing built-in terminals. While DDoS, due to distributed design, numerous PCs acting as zombie devices and other devices all are targeting the same victim.</p><p>Of the two, DDoS attacks are more progressively pervasive and harming in the cutting edge Internet. Due to the general effortlessness of purchasing or creating a gathering of malignant machines equipped with sending an enormous amount of Internet traffic to a target, bad actors are able to utilize networks of devices such as botnets to flood a target with requests leaving them unresponsive to other requests. By utilizing a large network of machines contaminated with malware, a malicious actor can be used to leverage the attack traffic on the PC frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*M6SoQgNG0gjEkc0gTkjlnA.png" /><figcaption>DDOS attack framework using multiple zombies</figcaption></figure><h3>DDos- Distributed Denial of Service Tools</h3><p>Various distinctive attack tools or “stressors” are accessible for free on the Internet. At their core, most of these tools have legitimate utility and purpose, as security specialists and network engineers may at times perform stress tests against their own system to identify the threshold strength. Some attack tools are specific and only focus on a particular methodology of the protocol stack, while others are intended to take into account multiple attack vectors.</p><p><strong>Attack Tool Classification</strong></p><p>Classification is done based on several parameters like</p><ol><li><strong>Low and Slow Attack Tools:</strong> Attack uses both low volumes of information and operates very slowly, designed to send limited quantity across various connections to keep ports open on a targeted server as far as might be feasible.</li><li><strong>Application Layer tools:</strong> Zombies target application layer where HTTP flood attack is executed to overpower a target with HTTP GET and POST request, so a malignant actor can launch attack traffic that is hard to demarcate from a real legitimate request made by actual visitors.</li><li><strong>Protocol and Transport Layer tools:</strong> These tools utilize protocols like UDP to send large volumes of traffic to a targeted server.</li></ol><p><strong>Tools available to execute DDOS attack</strong></p><ol><li>HULK(HTTP Unbearable Load King): Generate volumes of unique and obfuscated traffic at server bypassing caching engines.</li><li>SLOWLORIS send authorized HTTP traffic to the server, which tries to keep maximum connection engages with those that are open.</li><li>LOIC, Low Orbit Ion Cannon sends UDP, TCP or HTTP request and can do attacks based on URL or IP address.</li></ol><p>Useful Links:</p><ul><li><a href="https://github.com/grafov/hulk">grafov/hulk</a></li><li><a href="https://sourceforge.net/projects/loic/">LOIC</a></li><li><a href="https://github.com/gkbrk/slowloris">GitHub - gkbrk/slowloris: Low bandwidth DoS tool. Slowloris rewrite in Python.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8029d3c6f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>