<?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 Riya Dholakia on Medium]]></title>
        <description><![CDATA[Stories by Riya Dholakia on Medium]]></description>
        <link>https://medium.com/@dholakiariya?source=rss-1038beb01c75------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OY51nY5FeDOXdK0H.jpg</url>
            <title>Stories by Riya Dholakia on Medium</title>
            <link>https://medium.com/@dholakiariya?source=rss-1038beb01c75------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 01:48:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dholakiariya/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[Adversarial Machine Learning (Part 2) — Decision Time Attacks]]></title>
            <link>https://medium.com/analytics-vidhya/adversarial-machine-learning-part-2-decision-time-attacks-f0c70b86749d?source=rss-1038beb01c75------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0c70b86749d</guid>
            <category><![CDATA[adversarial-attack]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Riya Dholakia]]></dc:creator>
            <pubDate>Mon, 11 Jan 2021 12:31:08 GMT</pubDate>
            <atom:updated>2021-01-15T16:46:48.362Z</atom:updated>
            <content:encoded><![CDATA[<h3>Adversarial Machine Learning (Part 2) — Decision Time Attacks</h3><p>Description of common Adversarial Decision Time Attacks and ways to deal with them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2naNILJ-gZaTYBmgrTzQQ.jpeg" /></figure><p>This is part 2 of my series on Adversarial Machine Learning. For a gentle introduction to adversarial Machine Learning, you can refer to <a href="https://dholakiariya.medium.com/adversarial-machine-learning-part-1-a-gentle-introduction-dc646972315a">Part1</a></p><h3>Introduction</h3><p>As mentioned in previous blog, decision time attacks are the ones in which the attacker attacks the learned models or decisions made by models which have been learned and either changes the way it functions or makes changes in the observed environment so that the model gives erroneous results. The most important type of decision time attack is Evasion attack.</p><h3>Evasion Attacks on Machine Learning Models</h3><p>The learned model is used to find out malicious activity, such as an intrusion or a malicious object, and the attacker aims at changing the kind of attack in order to remain undetected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUBAJs_of3v2IMedep4zaw.png" /></figure><p>Examples:<br>a) Polymorphic blending attack to evade anomaly based Intrusion Detectors:</p><p>An anomaly based intrusion detection system is the one which can detect messages that contain different signatures at different intervals of time due to which it cannot evade polymorphic attack where the suspicious message has varying length [1]. So the adversary uses polymorphic blending technique wherein the suspicious message is made to have just one signature. A message is transmitted at a sequence of bytes in form of a feature vector with a<br>particular frequency over the network.</p><p>In order to transmit a malicious object over the network to evade detection, first an attack vector is created in which the suspicious code is in the encrypted format and another part of the vector contains the code for polymorphic decryption. Assuming the adversary has knowledge of<br>the number of bytes transmitted over a network he adjusts the attack vector to this length which will then be undetected by anomaly Intrusion Detectors.</p><p>b) Evasion attack on PDFRate classifier:</p><p>PDFRate classifier is a model that has been trained using random forest algorithm to identify about 202 PDF metadata (size of a file, author name, and creation date) features and content attributes (that can be extracted from the test PDF file using regular expressions) to classify if the given PDF file is benign or malicious [2]. PDF files contain header, body, cross reference table and trailer. An attacker inserts some of the most important features of this model into the malicious PDF file along with the suspicious code to avoid evasion. The reason the attacker is able to avoid evasion is due to the fact that these important features of the model that the attacker has introduced causes the PDFRate to give less number of false positives thus predicting the malicious PDF document as benign.</p><p>These attacks can further be divided into White-box and Black box decision time attacks.</p><p><strong><em>So, how does the attacker model White Box Attacks?</em></strong></p><p>Decision based White Box Attacks can be modelled in several ways depending on type of the machine learning model used i.e. Binary Classifier, Multi Class Classifier, Clustering, etc,.Lets take an example of White Box Attack on Binary Classifier[3].</p><h3><strong>White Box Attack on Binary Classifier</strong></h3><p>One of the main goals of the adversary is to minimize the cost of converting a feature vector into attack feature vector . Let <em>xa</em> be the ideal attack feature vector which means that <em>xa</em> is the attack vector which would be classified as benign without any modification. x is the feature vector the adversary tries to create so as to succeed evasion. <em>c(x,xa)</em> is the cost for converting <em>xa</em> to <em>x</em>.</p><p>In order to minimize the cost function, distance based formula is considered as follows:</p><p><em>c(x,xa)=Σj αj |xj - xaj|</em></p><p>Over here, <em>αj</em> is the weight which stands for difficulty in changing the feature j. So, the adversary replaces some features of feature vector <em>xaj</em> with similar features <em>xj</em> in order to get minimum cost.</p><h3>Black Box Attack</h3><p>White box attack assumes the attacker has all information that is regarding the training set, test set, algorithm used, parameters learnt, but this might not be the case in reality leading to what is called a black box attack [4].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T3zbAC7KReIAjNf9Llg4cQ.png" /></figure><p>In black box attack, the adversary does not know the complete dataset, nor does he know the model trained. So, the adversary tries to create a surrogate dataset meaning a similar dataset by sending the queries to the original model. From the response he gets he creates understands the class labels present and hence tries to make a similar model <em>f </em>’<em>(x)</em>to learn the parameters and behavior of the original model. Now, the adversary gets majority information so he is able to send his adversarial input to evade attack. This essentially gets transformed to a white box attack.</p><p>For example, consider the case of email spam attack. The adversary can create a fake email account and send requests to the server to get back responses which he can analyze to understand different types of label. Then he can create a surrogate model to understand the behavior of the model like its parameters and then finally make an attack on the actual classifier.</p><h3>Defending against Decision Time Attacks</h3><p>Following are main approaches to protect against decision time attacks. Since most of the attacks are on supervised learning the methods discussed here are the ones which pertain only to those learning models.</p><p>1. Hardening of Supervised Learning Models</p><p>2. Retraining</p><p>3. Regularization</p><h3>Hardening of Supervised Learning Models</h3><p>This approach involves finding threshold which will be optimal for the classifying an unknown input data item correctly as well as increase the cost of attack for the adversary [5]. The learner analyses various trends from previous attacks and also how the model would react to various malicious inputs and then tries to find an optimal threshold which will not compromise on giving correct output as well increase the cost of attack for the adversary so that the adversary does not cause the attack.</p><p>For example in below figure, consider the attacker can at most afford a change in cost of q units. If the threshold is 0.5 it is easy for the adversary to make a change in the input feature vector and evade the attack. But if on changing the threshold to 0.25 if the cost incurred for the adversary is greater than q units then there is a high probability that he may not consider making an attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvhjO0fVnEvG7I8yhHAPzA.png" /></figure><p>Advantage is that only threshold has to be changed. No need of any sort of retraining.</p><p>Limitations of this approach:</p><p>1. Difficult to always find an optimal threshold due to the tradeoff between predicting correct output as well increasing the cost of attack for the adversary.</p><p>2. Scalability</p><h3>Retraining</h3><p>This approach involves training an initial model again with malicious examples so as to make it more robust [6].</p><p>Following are the steps in this approach:</p><ol><li>An initial model is trained.</li><li>Malicious examples are identified depending on severe analysis of the model.</li><li>These malicious examples are then added to the model as input.</li><li>The model is then retrained.</li><li>Output is a robust learned model</li></ol><p>Advantage is that it is scalable and limitation is of cost of retraining the model.</p><h3>Regularization</h3><p>In this technique, those features which were not considered very important in training are also considered but in small quantity through the regularization parameter λ which is then added to the cost function which is to be minimized in training the model. This is useful to the model in two ways:</p><p>1. It prevents overfitting.</p><p>2. Increases the number of features for the adversary so he has to make many changes in the attack vector thereby increasing his cost of attack.</p><p>Advantage is that no retraining of model of any sort is required while disadvantage is finding the best value for regularization parameter.</p><p>Hope you got a gist of different Decision Time based Adversarial Attacks, the ways to handle them along with their advantages and disadvantages.</p><p>Stay tuned to for Part 3!</p><h3><strong>References:</strong></h3><p>[1] Prahlad Fogla — <em>Elective means to evade signature-based intrusion detection systems ids)</em></p><p><a href="https://dl.acm.org/citation.cfm,">https://dl.acm.org/citation.cfm,</a> 2006</p><p>[2] Nedim Srndi and Pavel Laskov — <em>Practical Evasion of a Learning-Based Classifier: A Case Study</em></p><p>[3] I. Goodfellow — <a href="https://arxiv.org/abs/1412.6572"><em>Explaining and Harnessing Adversarial Examples</em></a></p><p><a href="https://arxiv.org/abs/1412.6572">https://arxiv.org/abs/1412.6572</a>, 2015</p><p>[4] Battista Biggo <em>— A tutorial on Adversarial Machine Learning.</em></p><p><a href="https://pralab.diee.unica.it/en/AdversarialMachineLearning,2017">https://pralab.diee.unica.it/en/AdversarialMachineLearning,2017</a></p><p>[5] Bo Li Liang Tong and Chen Hajaj — <em>Hardening classiers against evasion: the good, the bad, and the ugly.</em></p><p><a href="https://www.groundai.com/project/hardening-classifiers-against-evasion-the-good-the-bad-and-the-ugly/,">https://www.groundai.com/project/hardening-classifiers-against-evasion-the-good-the-bad-and-the-ugly/,</a> 2017.</p><p>[6] Maleki David <em>— Retraining classifiers in Adversarial Machine Learning</em></p><p><a href="https://people.eecs.berkeley.edu/~liuchang/paper/aisec17.pdf">https://people.eecs.berkeley.edu/~liuchang/paper/aisec17.pdf</a>, 2017</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0c70b86749d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/adversarial-machine-learning-part-2-decision-time-attacks-f0c70b86749d">Adversarial Machine Learning (Part 2) — Decision Time Attacks</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adversarial Machine Learning (Part 1)— A gentle introduction]]></title>
            <link>https://medium.com/analytics-vidhya/adversarial-machine-learning-part-1-a-gentle-introduction-dc646972315a?source=rss-1038beb01c75------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc646972315a</guid>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[adversarial-attack]]></category>
            <dc:creator><![CDATA[Riya Dholakia]]></dc:creator>
            <pubDate>Mon, 11 Jan 2021 10:43:42 GMT</pubDate>
            <atom:updated>2021-01-15T16:47:05.949Z</atom:updated>
            <content:encoded><![CDATA[<p>A brief intro on protecting ML algorithms from adversaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MmiiOHYyhExmCivJafyKNQ.jpeg" /></figure><h3>Introduction</h3><p>This series has been broken down into 3 parts:</p><ol><li>Introduction to the field of Adversarial Machine learning</li><li>Decision Time Attacks and ways to defend them</li><li>Poisoning Attacks and ways to defend them</li></ol><p>With a growing use of machine learning models in various applications there is a parallel increase in their risk from adversary. Thus, there is a demanding need for devising several security strategies to protect the machine learning models from harm. This lays the path for study in the science of adversarial machine learning. Several mechanisms have been proposed to understand the nature of such attacks and provide measures to safeguard against them.</p><p><strong><em>So, what is adversarial Machine Learning?</em></strong></p><p>Adversarial machine learning is a research field that lies at the intersection of machine learning and computer security. It aims to enable the safe adoption of machine learning techniques in adversarial settings, such as spam filtering, malware detection, and biometric recognition. The attackers exploit the vulnerabilities of the machine learning algorithms and models to cause harm. This field aims at understanding these attacks and finding ways by which the machine learning models can be made robust to such attacks.</p><h3><strong><em>Use-Cases</em></strong></h3><p>With oncoming of newer and newer technology and new resources there is increasing need for security as well and the trend now is to cause attacks in buzzing field of machine learning. The attackers now are finding newer and newer ways to attack the machine learning models in order to render them useless or for their personal motive of evading an attack.</p><p>Not taking care of protecting the Machine Learning algorithms could have disastrous effects in real-time applications.Take the case of self-driving car [1]. Fig.1.1 is what the car is supposed to do when it sees the signal. Fig. 1.2 shows what happens when the adversary adds noise to the image which could prove to be fatal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HpSkroI885E0e0iKIgf8uA.png" /></figure><p>Other applications include:</p><ul><li>In hospitals to predict any anomaly in samples or reports</li><li>Malware detection</li><li>Anti-spam software</li></ul><h3>Classification of Adversarial Attacks</h3><p>Adversarial attacks can be classified through three different ways:</p><ol><li>Attack timing</li></ol><p>This refers to when the attack actually takes place and accordingly they are of two types — Decision time attacks and Poisoning attacks.</p><p>Decision time attacks take place after the model has been trained</p><p>Poisoning attacks take place before the model has been trained.</p><p>2. Information</p><p>This refers to the level of information the attacker has and are classified into White Box attacks and Black Box attacks.</p><p>In White Box attacks, the attacker has complete knowledge about everything like the training data, the algorithm used and the model trained.</p><p>In Black Box attacks, the attacker has limited knowledge.</p><p>3) Goal</p><p>Depending on the goal of the attacker, this can be classified into Targeted attacks and Reliability attacks.</p><p>In Targeted attack, the attacker’s goal is to cause a fault on specific instances so that they are misclassified.</p><p>A Reliability attack, in contrast, aims to degrade the model by maximising prediction error.</p><p>Hope you got a brief introduction onto what is Adversarial Machine Learning, motivation behind it, where its used and how it’s classified.</p><p>Stay tuned for Part 2!</p><h3>References:</h3><p>[1] Yevgeniy Vorobeychik - Adversarial Machine Learning Book, March 2017.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc646972315a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/adversarial-machine-learning-part-1-a-gentle-introduction-dc646972315a">Adversarial Machine Learning (Part 1)— A gentle introduction</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>