Netcap Core
What is Netcap?
Netcap (NETwork CAPture) is an open-source framework that efficiently converts network packet streams into platform-neutral, type-safe structured audit records. These records represent specific protocols or custom abstractions and are ideal for machine learning, security research, and forensic analysis.
The project won 2nd Place at Kaspersky Labs SecurIT Cup 2018 in Budapest and is actively maintained and developed.
The Problem
Traditional packet capture tools output raw packet data that requires significant post-processing. Security researchers and data scientists spend more time on data collection and transformation than on actual analysis.
The Solution
Netcap bridges this gap by providing structured, high-dimensional data about observed traffic. It allows researchers to focus on experimentation rather than data wrangling.
Key Benefits:
- Memory Safe - Implemented in Go with garbage collection for safe parsing of potentially malicious network data
- Protocol Buffers - Output encoded with Google's Protocol Buffers for cross-language compatibility
- Concurrent Design - Uses all available CPU cores for high-throughput packet processing
- 66+ Audit Records - TCP, UDP, HTTP, TLS, DNS, DHCP and 50+ further protocols, plus custom abstractions
- Cross-Platform - Supports Linux, macOS, and Windows with consistent output formats
- Extensible - Multiple ways to add support for new protocols while maintaining memory safety
- ML Ready - Output formats optimized for machine learning pipelines and data analysis tools
Framework Components
The framework consists of 9 integrated tools compiled into a single binary:
| Tool | Purpose |
|---|---|
capture |
Capture audit records live or from PCAP files |
dump |
Display audit records in various formats |
label |
Create labeled CSV datasets for ML training |
collect |
Collection server for distributed deployments |
agent |
Sensor agent for distributed collection |
proxy |
HTTP reverse proxy for web service traffic |
util |
Validate records and convert timestamps |
export |
Export Prometheus metrics |
transform |
Maltego transformation plugin |
Use Cases
- Monitoring honeypots and detecting intrusions
- Securing medical and industrial IoT devices
- Research on anomaly-based detection mechanisms
- Network forensics and incident response
- Training machine learning models on network data
License
Netcap Core is licensed under the GNU General Public License v3, a copyleft license: you may use, modify and redistribute the project freely, but distributed modifications must remain open source under the same terms.
For detailed documentation, visit docs.netcap.io. A complete list of supported protocols is available in the protocol support documentation.
Netcap Core
Free and open source network traffic analysis framework. Licensed under GPLv3.
Protocol Decoding
Audit record types covering network protocols and custom abstractions
Live Capture
Real-time packet capture with concurrent multi-core processing
Capture Modes
- Network interface monitoring
- PCAP file processing
- Distributed collection
- HTTP proxy capture
Protocol Buffers
Cross-language output format optimized for ML pipelines
9 Integrated Tools
Use Cases for Netcap Core
Security Research
Train machine learning models on network data for anomaly detection and threat classification. The structured output is perfect for feeding into Python, TensorFlow, or scikit-learn pipelines.
Honeypot Monitoring
Deploy sensors across honeypots to capture attacker behavior. Distributed collection architecture scales to monitor entire networks of decoys.
IoT & Medical Devices
Monitor industrial control systems and medical devices. Memory-safe parsing ensures stability when processing traffic from embedded systems.
Forensic Analysis
Process PCAP files from incident response. Extract credentials, files, connections, and protocol-specific data for detailed post-mortem analysis.
Licensing
Netcap Core is dual-licensed to support both open source and commercial use.
GPL-3.0 License
For open source projects and personal use
- Free to use, modify, and distribute
- Must keep source code open
- Derivative works must use GPL-3.0
- No warranty provided
Commercial License
For closed-source and proprietary products
- Use in proprietary software
- No copyleft requirements
- Priority support available
- Custom terms negotiable
Contributor License Agreements
Contributors to Netcap must sign a CLA to enable dual licensing. This allows us to offer both open source and commercial licenses while protecting contributors' rights.
Note: The Go standard library components used in Netcap are subject to the BSD-style license of The Go Authors. See the LICENSE file for complete details.