Git Product home page Git Product logo

ai_security's Introduction

AI Security Proof-of-Concept Attacks

This repository contains multiple examples of proof-of-concept (PoC) attacks against AI systems, demonstrating various security vulnerabilities in machine learning models. These examples aim to provide a better understanding of potential risks and help researchers and developers build more secure AI systems.

Table of Contents

  1. Model Stealing Attack on Sentiment Analysis Model
  2. Adversarial Attack on Image Classifier
  3. Membership Inference Attack on ML Models
  4. Model Inversion Attack on ML Models
  5. Data Poisoning Attack on ML Models

Requirements

  • Python 3.6 or higher
  • TensorFlow 2.x
  • PyTorch
  • NumPy
  • scikit-learn
  • foolbox
  • matplotlib

Installation

To install the required libraries, run the following command:

pip install tensorflow numpy scikit-learn foolbox matplotlib torch torchvision

Usage Clone this repository to your local machine. Install the required libraries as mentioned above. Navigate to the desired example folder and follow the instructions in the corresponding README.md file to run the attack.

  1. Model Stealing Attack on Sentiment Analysis Model This example demonstrates a model stealing attack on a simple sentiment analysis model using the IMDb movie review dataset. The attacker queries the target model and trains a replica based on its responses.

  1. Adversarial Attack on Image Classifier This example shows an adversarial attack on an image classifier using the Fast Gradient Sign Method (FGSM) to generate adversarial examples that can fool the model.

  1. Membership Inference Attack on ML Models This example demonstrates a membership inference attack on machine learning models, in which an attacker tries to determine if a given data point was part of the model's training dataset.

  1. Model Inversion Attack on ML Models This example illustrates a model inversion attack, where an attacker attempts to reconstruct input data from a machine learning model's predictions or internal representations.

  1. Data Poisoning Attack on ML Models This example demonstrates a data poisoning attack on machine learning models, in which an attacker injects malicious data into the training dataset to compromise the model's performance or introduce specific vulnerabilities.

ai_security's People

Contributors

santosomar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.