Contrastive Learning and Correlation Clustering for Sequences of Network Telescope Data
This paper proposes a transformer-based contrastive learning approach to embed and cluster sequences of network flow records without semantic annotations, demonstrating its effectiveness in identifying relationships between Internet scanners and generalizing to unseen sources.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the internet as a massive, chaotic city where millions of people (computers) are constantly sending letters (data packets) to each other. Most of these letters are normal mail. But sometimes, there are "scanners"—like aggressive door-to-door salespeople or security testers—who knock on every single door in the city to see which ones are unlocked.
The problem for security experts is that there are too many of these salespeople, and they are all different. Some knock fast, some slow, some use different tools. Trying to manually figure out which salesperson belongs to which company is impossible because there are no name tags (labels) on them, and the city is too big to watch everyone.
This paper proposes a clever way to solve this using a "smart mirror" and a "grouping game."
The Smart Mirror (The Transformer Model)
The researchers built a special computer program (a Transformer model) that acts like a smart mirror. Instead of looking at the content of the letters, it looks at the pattern of how a specific salesperson knocks on doors.
- How it learns: Usually, to teach a computer to recognize patterns, you need a teacher to say, "This is Salesperson A, that is Salesperson B." But here, there is no teacher.
- The Trick: The program uses a technique called Contrastive Learning. Imagine you have a pile of photos. You tell the computer: "Take two photos of the same person (even if they are wearing different hats or standing in different spots) and make them look very similar in your mind. Take photos of different people and make them look very different."
- The Result: The computer learns to create a "fingerprint" for every salesperson based on their knocking habits, without ever being told who they are. It learns that "Knocking on 100 doors in 5 seconds" is a specific style, and "Knocking on 10 doors in 1 minute" is another.
The Grouping Game (Correlation Clustering)
Once the computer has created these fingerprints, the researchers play a game called Correlation Clustering.
- The Goal: They want to sort all the salespeople into groups based on how similar their fingerprints are.
- The Challenge: They don't know how many groups there should be, and they don't know the size of the groups.
- The Solution: The algorithm looks at the "distance" between fingerprints. If two salespeople have very similar fingerprints, the algorithm says, "Put them in the same room." If they are different, it puts them in different rooms. It does this automatically, finding natural clusters without needing a pre-set number of groups.
What They Found
The researchers tested this on a massive dataset of internet traffic (like watching a whole city for an hour). Here is what happened:
- Recognizing the Same Person: When they showed the computer two different sets of knocking patterns from the same salesperson (who they hadn't seen during training), the computer correctly identified them as "similar." It knew they were the same person even though the patterns weren't identical.
- Recognizing Different People: When they showed it patterns from different salespeople, the computer correctly identified them as "different."
- Grouping by "Company": The most exciting part was that when they grouped the salespeople based on these fingerprints, the groups matched up with real-world scanner companies (like Censys or Shodan) that the researchers knew about. Even though the computer was never told the names of these companies, it naturally grouped the "Censys" salespeople together and the "Shodan" salespeople together.
The Catch (The "Gray Area")
The paper notes that the grouping wasn't perfect. Sometimes, salespeople from different companies looked so similar (maybe they were using the same tools or knocking on the same doors) that the computer got confused and mixed them up. This suggests that while the computer learned a lot, the "fingerprint" isn't a perfect ID card; it captures the style of the attack, which can sometimes overlap between different groups.
The Bottom Line
The paper shows that you can teach a computer to understand the "personality" of internet scanners just by watching their behavior, without needing a human to label the data first. By using a smart mirror to learn similarities and a grouping game to sort them, they can automatically organize chaotic internet traffic into meaningful groups, helping security experts spot patterns they couldn't see before.
In short: They taught a computer to recognize "who is knocking" and "who belongs to which gang" just by listening to the rhythm of the knocks, without ever being told the names of the gangs.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.