https://github.com/yatharthkumarsaxena/cdac-noida-internship-network-traffic-analysis
Real-time network packet capture and analysis using Moloch (Arkime), Wireshark, and Elastic Stack to detect anomalies, visualize patterns, and enhance cybersecurity.
https://github.com/yatharthkumarsaxena/cdac-noida-internship-network-traffic-analysis
arkime dashboard data-visualization elasticsearch kibana logstash network-traffic-analysis pcap-files security-information-and-event-management threat-identification ubutnu wireshark
Last synced: about 1 year ago
JSON representation
Real-time network packet capture and analysis using Moloch (Arkime), Wireshark, and Elastic Stack to detect anomalies, visualize patterns, and enhance cybersecurity.
- Host: GitHub
- URL: https://github.com/yatharthkumarsaxena/cdac-noida-internship-network-traffic-analysis
- Owner: YatharthKumarSaxena
- Created: 2025-07-20T14:54:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-20T14:10:11.000Z (over 1 year ago)
- Last Synced: 2025-08-30T15:04:27.174Z (about 1 year ago)
- Topics: arkime, dashboard, data-visualization, elasticsearch, kibana, logstash, network-traffic-analysis, pcap-files, security-information-and-event-management, threat-identification, ubutnu, wireshark
- Homepage:
- Size: 23.5 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π°οΈ Analyzing Network Traffic with Moloch and Elastic
## π **Introduction**
While diving deeper into the realm of Cybersecurity, I decided to explore the inner workings of **network traffic** and how anomalies can be detected in real-time. This project titled **"Analyzing Network Traffic with Moloch and Elastic"** became a stepping stone for me to blend **packet inspection, data indexing, and visualization** β all in one flow.
The core goal was to integrate **Moloch** (now known as [Arkime](https://arkime.com)) with the **Elastic Stack** to build a robust network monitoring setup. This hands-on implementation sharpened my understanding of how professionals detect **suspicious behavior**, analyze **performance bottlenecks**, and draw insights from raw PCAP files.
---
## π§° **Tools & Technologies Used**
- π§ **Moloch (Arkime)** β Full packet capture and indexing system.
- π§± **Elasticsearch** β Distributed search and analytics engine.
- π **Kibana** β Visualization layer for traffic patterns.
- π **Logstash** β Optional for ingest pipelines and filtering.
- π§ͺ **Wireshark** β For deep packet inspection and PCAP parsing.
- π **PCAP files** β Captured network traffic data.
- π‘οΈ **SIEM Integration (Optional)** β For correlation with broader security systems.
- π§ **Ubuntu** β Deployment and testing environment.
---
## βοΈ **Project Workflow**
1. **π₯ Moloch Setup & Configuration**
- Installed Arkime/Moloch on Ubuntu.
- Configured interface to capture traffic (e.g., `eth0`).
- Set up PCAP storage, viewer, and capture service.
2. **π‘ Capturing Network Traffic**
- Captured live traffic using Moloch or imported `.pcap` files via `moloch-capture`.
- Verified session data in Moloch Viewer UI.
3. **π Indexing & Storage (Elastic Integration)**
- Moloch pushed metadata and indexes to **Elasticsearch**.
- Defined index patterns in Kibana for querying sessions.
4. **π Visualization & Dashboarding**
- Built dashboards in **Kibana** to view:
- Top IP talkers
- Anomalous port usage
- Protocol-specific analysis (HTTP, DNS, etc.)
5. **π§ Traffic Analysis**
- Identified:
- Suspicious activities (port scans, high data transfers)
- Performance issues (packet loss, high RTT)
- Protocol-level misuse
6. **β
Final Audit**
- Shared improvement suggestions for securing the network perimeter based on insights.
---
## ποΈ **Repository Structure**
> π Total Files: 7
- π `Project Report PDF` β Concise Step-by-step Explaination of how project is performed with Conclusion.
- π `Project PPT` β Contains basic information about the project.
- π `screenshots` β Visual outputs from Kibana and Moloch Viewer.
- π `README.md` β You're here.
Each folder contains its own `README.md` (where required) for context-specific instructions.
---
## πΈ **Screenshots**
- π₯οΈ `kibana-dashboard.png` β Overview of active sessions and traffic heatmap.
- π§Ύ `moloch-session-view.png` β Detailed PCAP-level session drilldown.
- π `protocol-distribution.png` β Traffic by protocol breakdown (HTTP, DNS, TLS).
---
## π― **Final Takeaway**
This project transformed raw network data into insightful security stories. For the first time, I worked with real traffic datasets to identify potential **threats**, **bottlenecks**, and **behavioral patterns**. It refined my understanding of:
- How packet data is captured and stored at scale.
- How Elasticβs search engine can be tailored for security.
- How visualization plays a key role in interpreting raw traffic.
Most importantly, I now see **network analysis as an art** β one that sits at the core of Cyber Defense.
---
## π **References / Learning Resources**
1. π [Moloch Documentation](https://arkime.com/faq)
2. π [Elastic Documentation](https://www.elastic.co/guide/index.html)
3. π [Wireshark User Guide](https://www.wireshark.org/docs/wsug_html_chunked/)
4. π [Intro to Network Traffic Analysis - Blog](https://www.varonis.com/blog/network-traffic-analysis)
5. π [Tutorial: Moloch + Elastic](https://www.geeksforgeeks.org/using-arkime-moloch-for-network-traffic-analysis/)
---