δΈζ Β· English
PacketScope is a general-purpose protocol stack analysis and debugging tool based on eBPF. It integrates performance optimization, anomaly diagnosis, and security defense. It aims to implement fine-grained tracing and intelligent analysis of network packets at the protocol stack level on the server side. By solving three major pain pointsβdifficult diagnosis of performance bottlenecks, unclear transmission paths, and hard-to-detect low-level attacksβPacketScope provides visualized, intelligent endpoint-side security analysis and defense capabilities.
With the proliferation of social platforms, online banking, large-scale AI models, logistics, and travel services, open servers have become key execution environments. These must balance performance and security under the condition of being openly accessible. Traditional WAFs and IDS tools have blind spots in protocol stack-level defense, which PacketScope addresses:
π¨ Three Core Pain Points:
- Unclear packet paths through the protocol stack make bottlenecks and faults hard to diagnose
- Lack of fine-grained cross-domain transmission data makes routing risks invisible
- Low-level protocol stack attacks are stealthy and difficult to detect with traditional tools
Through protocol tracing, path visualization, and intelligent analysis, PacketScope builds "smart armor" for the server.
- π§ Intelligent Engine: Combines eBPF with LLMs for low-level network behavior observation and intelligent security defense
- π Multidimensional Analysis: Real-time tracking of network paths, statistics on latency, packet loss, interaction frequency
- π Global Network Visualization: Maps global paths and latency, presented on a topology graph
- π Protocol Stack Defense: Detects and intercepts low-level abnormal traffic, covering the blind spots of traditional WAF/IDS
- π₯οΈ User-Friendly Interface: GUI designed for easy use by security engineers and operators
Before starting, ensure Docker is installed and running on your system:
- Docker: Version 20.10 or higher
- Docker Compose: Version 2.0 or higher
To verify your Docker installation:
docker --version
docker compose versionIf Docker is not installed, please visit Docker's official website for installation instructions.
PacketScope provides a convenient deployment script that automatically builds and starts all services using Docker Compose.
git clone https://github.com/Internet-Architecture-and-Security/PacketScope.git
cd PacketScopeExecute the starter script with root privileges:
sudo bash starter.shThe script will automatically:
- Check your Docker environment
- Stop any existing services
- Build all service containers in the correct order
- Start all services
- Display service status and access information
Once deployment is complete, open your browser and visit:
http://localhost:4173/
After successful deployment, the following services will be available:
- Web UI:
http://localhost:4173 - Guarder API:
http://localhost:8080 - Tracer API:
http://localhost:8000 - Analyzer-Monitor API:
http://localhost:8010 - Analyzer-Calculator API:
http://localhost:8020
View service status:
sudo docker compose psView service logs:
sudo docker compose logs -fView logs for a specific service:
sudo docker compose logs -f <service-name>Stop all services:
sudo docker compose downRestart services:
sudo docker compose restartRestart a specific service:
sudo docker compose restart <service-name>π‘ Note: The starter.sh script handles the entire deployment process automatically. For manual deployment or advanced configuration, please refer to the individual module README files in the
modules/directory.
.
βββ CODE_OF_CONDUCT.md # Code of Conduct
βββ CONTRIBUTING.md # Contributing Guidelines
βββ docker-compose.yml # Docker Compose configuration
βββ Dockerfile # Frontend application Dockerfile
βββ eslint.config.js # ESLint configuration
βββ index.html # Application entry HTML
βββ LICENSE # Project license
βββ modules/ # Backend service modules
β βββ Analyzer/ # Analyzer module
β β βββ Monitor/ # Traffic monitoring sub-module
β β βββ Calculator/ # Protocol analysis sub-module
β β βββ README.md # Analyzer documentation
β βββ Guarder/ # Security protection module
β βββ Tracer/ # Network tracing module
βββ package.json # Node.js dependencies
βββ package-lock.json # npm lock file
βββ pnpm-lock.yaml # pnpm lock file
βββ src/ # Frontend source code
βββ public/ # Static assets
βββ README.md # English documentation
βββ README-zh_CN.md # Chinese documentation
βββ SECURITY.md # Security policy
βββ starter.sh # One-click deployment script
βββ tailwind.config.js # Tailwind CSS configuration
βββ TODOList.md # TODO list
βββ tsconfig.app.json # TypeScript app configuration
βββ tsconfig.json # TypeScript base configuration
βββ tsconfig.node.json # TypeScript Node configuration
βββ vite.config.ts # Vite build configuration
βββ vite-README.md # Vite usage instructions
-
modules/οΌContains all backend service modules, each module is an independent microservice
- Analyzer/οΌProtocol stack analysis and traffic monitoring service
- Guarder/οΌSecurity protection and threat detection service
- Tracer/οΌNetwork path tracing and topology analysis service
-
src/οΌFrontend application source code, built with React and TypeScript
-
public/οΌStatic asset files such as images and icons
-
starter.shοΌOne-click deployment script that automates building and starting all services
PacketScope consists of three main modules, each serving a specific purpose:
modules
βββ Analyzer # Python-based protocol stack analysis, traffic monitoring and fine-grained tracing module
βββ Guarder # Go-based security policy module
βββ Tracer # Python-based network path mapping module
-
Analyzer
Provides multidimensional statistics on packet movement in the protocol stack, including traffic volume, latency, cross-layer interaction frequency, and packet loss. Tracks interactions of connections/packets in the protocol stack and generates a detailed visual path map. Users can click to explore different protocol layers and understand the data flow.
-
Tracer
Maps routes and latency from the host to any global IP address, displaying this data on a global topology for optimization insights.
-
Guarder
Filters and controls abnormal packets using customizable rules and provides contextual insights powered by LLMs to help interpret and respond to potential threats.
- Network Protocol Stack Performance Optimization: Identify bottlenecks and improve transmission efficiency
- Threat Detection and Security Defense: Detect and block potential attacks such as DDoS and ARP spoofing
- Fault Diagnosis: Diagnose issues caused by latency, packet loss, or abnormal cross-layer behavior
- Topology Analysis: Analyze path latency and routing performance in cross-regional deployments
- Industrial Internet Security: Monitor industrial control systems in real time to ensure safety and integrity
We welcome issues and pull requests! If you find bugs or have suggestions, open an issue or PR. Please refer to CONTRIBUTING for contribution guidelines.
This project is licensed under the MIT License. See LICENSE for details.


