Abstract
Traditional security intelligence often lags behind emerging threats due to reporting latency. This paper presents InferIP, a system designed to mine hacker and security forums for malicious IP addresses. By leveraging user behavioral patterns and textual analysis through sparse matrix co-clustering, InferIP identifies significantly more malicious IPs than standard blacklists like VirusTotal, often with a lead time of several months.
Introduction
In cybersecurity, the "first-mover advantage" typically belongs to the attacker. Structured blacklists, while useful, suffer from significant latency that allows malicious IPs to remain active for weeks or months before being flagged. Conversely, hacker forums—ranging from mainstream security sites to fringe communities—are rich with early-warning data. The challenge lies in automatically distinguishing between malicious and benign IPs across different languages and community norms without relying on heavy, language-specific Natural Language Processing (NLP).
The InferIP Methodology
InferIP is a language-agnostic pipeline that identifies malicious intent without relying on external blacklists for its primary logic. It employs a four-stage process:
- Behavioral Feature Extraction: Tracks 11 user features, such as post frequency and "thread entropy," to model user intent.
- Contextual Feature Selection: Uses TF-IDF to identify the most informative keywords within a forum.
- Latent Feature Identification: Employs Sparse Matrix Regression (SMR) for co-clustering, grouping similar posts and behavioral traits to uncover subtle patterns of malicious activity even in brief text.
- Classification: Uses Logistic Regression to classify posts based on these latent features.
Data and Community Analysis
The researchers analyzed approximately 600,000 posts from three distinct forums: Wilders Security (mainstream English), Offensive Community (fringe English), and Ashiyane (Iranian hacker forum in Farsi).
As shown in the distribution of threads per user (Figure 2), user engagement varies significantly across these communities. These behavioral patterns serve as a proxy for intent; for instance, in fringe forums like Ashiyane, malicious IPs are often shared by highly active "power users" showcasing their exploits, whereas in mainstream forums, they are often reported by less active users seeking help after an attack.
Key Results and Insights
InferIP demonstrated high performance, achieving over 88% precision and 85% recall across all three forums. Crucially, it identified three times more potentially malicious IPs than VirusTotal.
The density of IP addresses per post (Figure 3) highlights the volume of raw data available in these forums. Analysis revealed that InferIP could identify more than half of the IPs that eventually appeared on VirusTotal at least three months earlier. In some instances, the lead time exceeded a year, providing a significant window for proactive defense.
Conclusion
InferIP demonstrates that mining unstructured forum data can provide a significant advantage in threat intelligence. By focusing on user behavior and latent features rather than complex NLP, the system remains effective across different languages and forum cultures, offering a scalable way to stay ahead of cyber threats.
Summary updated