Neural Espionage: Can Adversarial Neural Networks Learn to Apply Encryption to Images?
CSEF · 2017 Computational Systems & Analysis
Overview
Objectives/Goals To determine if two neural networks, a Provider and a Receiver, can successfully encrypt and decrypt an image while preventing an intercepting neural network from deciphering the original image. Methods/Materials I started with three Adversarial Convolutional Neural Networks as a framework and developed them so that they could perform encryption to images instead of matrixes. I then trained the neural networks on 13 different tests. The variables I changed in my experiments were the number of training iterations, image and key sizes, types of images and keys, the rate at which the network learned, and the message and key lengths. Results The neural network achieved its training goals of minimizing guess error between the Provider and the Receiver. However, the intercepting neural network always managed to decrypt the image into a faint outline, which was decipherable to a human observer. As well, the image encrypted by the Provider wasn't cryptographically secure and was easy for a human to determine. In 12 out of the 13 tests, the Receiver successfully decrypted the message while in 8 out of the 13 tests the interceptor had an accurate outline of the encrypted image. Conclusions/Discussion Neural Networks can learn to apply encryption to images. However, the encryption being applied by the networks was not cryptographically strong. The data suggested that changing the loss function I was using would significantly improve the neural networks' ability to encrypt and decrypt images. Changing the architecture of the networks could also improve that same ability.
Summary statement
I tested if Adversarial Neural Networks could learn to apply encryption to images.
Help received
I designed my experiments myself. I received help understanding the scientific paper I used as a basis for my project from Cybersecurity Expert Chris K. Williams.
Competition history
- CSEF 2017
Resources
Related projects
CSEF · 2004
Security Through Chaos: Encryption as a Source for Information Entropy
ISEF · 2025
A Deep Neural Network Method for Steganographic Image Detection
AJAS · 2024
Building a Deep Neural Network to Automate Protection Against Online Cyber Attacks
CSEF · 2014
Evaluation of the Stronger Data Encryption Type for Secured Communication
CSEF · 2003
Pattern Recognition Capabilities of Neural Networks
ISEF · 2020
Cyber Smart Security: Artificial Intelligence for Network Intrusion Detection Systems
CSEF · 2012
Security through Obscurity (Steganography)
ISEF · 2019
The Encryption and Decryption of Messages with an Intelligent Chatbot through the Usage of Polygraphs
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects