6GAN: IPv6 Multi-Pattern Target Generation via Generative Adversarial Nets with Reinforcement Learning

Tianyu Cui, Gaopeng Gou, Gang Xiong, Chang Liu, Peipei Fu, Zhen Li · DOI

Introduction

Scanning the massive IPv6 address space is akin to searching for a needle in a galaxy-sized haystack. With $2^{128}$ possible addresses, brute-force methods are computationally impossible. Researchers rely on "target generation" algorithms to predict active addresses from a small set of known "seeds." However, existing methods struggle with the diversity of real-world addressing patterns (e.g., random vs. MAC-embedded) and the presence of "aliased" regions—network traps that respond to every query, wasting valuable scanning resources.

Methodology: The 6GAN Framework

To address these challenges, the authors propose 6GAN, a deep learning architecture that treats address generation as a sequence decision-making problem.

The 6GAN architecture, featuring seed classification, multi-generator adversarial training, and reinforcement learning.

The framework consists of three main components:

  1. Multi-Generator Architecture: Rather than a single model, 6GAN employs $k$ specialized generators ($G_1$ to $G_k$). Each generator is trained on a specific addressing pattern identified through pre-processing clusters, preventing "pattern interference" and allowing for high specialization.
  2. Reinforcement Learning (RL) Framework: Since IP addresses are discrete sequences, standard gradient descent is inapplicable. 6GAN utilizes Policy Gradients and Monte Carlo (MC) search to optimize the generators.
  3. Dual Reward System: Generators are guided by two feedback mechanisms:
  4. Multi-class Discriminator (D): A CNN that classifies addresses as real or fake and identifies their specific pattern.
  5. Alias Detector (A): A novel component that provides negative rewards for addresses generated within known aliased prefixes, teaching the model to avoid low-quality targets during the generation phase.

Datasets

The model was evaluated using two primary datasets:

  • IPv6 Hitlist: A public dataset containing over 610,000 active addresses and 516,000 aliased prefixes.
  • CERN IPv6 2018: A passive measurement dataset from the China Education and Research Network (CERNET) with approximately 90,000 active addresses.

Key Results and Analysis

6GAN demonstrates significant improvements over traditional and deep learning baselines. It discovered 1.03x to 1.33x more active addresses than the state-of-the-art 6Tree algorithm within the same scanning budget.

Metric scores across various IPv6 addressing patterns, demonstrating the model's ability to generate high-quality candidates.

The multi-class discriminator achieved an accuracy of 0.966, confirming its effectiveness in distinguishing complex network configurations. Furthermore, the Alias Detector proved highly efficient, reducing "junk" aliased targets from 13.82% to a negligible 0.02%. Overall, 6GAN achieved a hit rate of 36.05% and a generation rate of 33.21%, outperforming 6Gen, 6Tree, 6GCVAE, and 6VecLM.

Discussion and Future Work

While 6GAN excels at following specific patterns, its diversity score was lower than some baselines because it adheres strictly to learned rules. Additionally, patterns with very few seeds proved harder for the GAN to imitate effectively. Future research will explore increasing the number of pattern categories ($k$) to improve granularity and further refining the balance between pattern adherence and output variety.

Summary updated

BibTeX
@inproceedings{cui2021gan,
  author = {Tianyu Cui and Gaopeng Gou and Gang Xiong and Chang Liu and Peipei Fu and Zhen Li},
  title = {{6GAN: IPv6 Multi-Pattern Target Generation via Generative Adversarial Nets with Reinforcement Learning}},
  booktitle = {INFOCOM},
  year = {2021},
  doi = {10.1109/infocom42981.2021.9488912},
}
Figure