Kayzaks/HackingNeuralNetworks
소개
신경망 공격과 방어를 다루는 소규모 강좌
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHacking Neural Networks: A Short Introduction
Disclaimer: This article and all the associated exercises are for educational purposes only.
This is a short introduction on methods that use neural networks in an offensive manner (bug hunting, shellcode obfuscation, etc.) and how to exploit neural networks found in the wild (information extraction, malware injection, backdooring, etc.).
Most of the methods presented are accompanied by an exercise found in this repo. The full article can be found here in 'Article.pdf' or on arXiv (arXiv:1911.07658).
Setup
Python and pip
Download and install Python3 and its package installer pip using a package manager or directly from the website https://www.python.org/downloads/.
Editor
An editor is required to work with the code, preferably one that allows code highlighting for Python. Vim/Emacs will do. As a reference, all exercises were prepared using Visual Studio Code https://code.visualstudio.com/docs/python/python-tutorial.
Packages
- Keras: Installing Keras can be tricky. We refer to the official installation guide at https://keras.io/#installation and suggest TensorFlow as a backend (using the GPU-enabled version, if one is available on the machine).
- NumPy, SciPy and scikit-image: NumPy and SciPy are excellent helper packages, which are used throughout all exercises. Following the official SciPy instructions should also install NumPy https://www.scipy.org/install.html. We will also need to install scikit-image for image loading and saving: https://scikit-image.org/docs/stable/install.html.
- PyCuda: PyCuda is required for the GPU-based attack exercise. If no nVidia GPU is available on the machine, this can be skipped. https://wiki.tiker.net/PyCuda/Installation
- NLTK: NLTK provides functionalities for natural language processing and is very helpful for some of the exercises. https://www.nltk.org/install.html
The exercises
- 0 - Last Layer Attack
- 1 - Backdooring
- 2 - Extracting Information
- 3 - Brute Forcing
- 4 - Neural Overflow
- 5 - Malware Injection
- 6 - Neural Obfuscation
- 7 - Bug Hunting
- 8 - GPU Attack
For instructions, please read the 'README.md' file in each of the exercise directories.
Further Reading / Watching
Check out:
- Isao Takaesu's course on Security and Machine Learning
- Will Pearce and Nick Landers' Talk at Derbycon 2019 on Offensive Machine Learning techniques.
What else?
The neural networks found in the exercises are based on the examples provided by keras.
If you find that there are errors or missing references, feel free to make a PR or contact me.
관련 프로젝트 살펴보기
불러오는 중…