A network monitoring tool that tracks GitHub Copilot usage by capturing DNS
lookups and HTTP(S) traffic to githubcopilot.com
domains.
This tool monitors network traffic to detect interactions with GitHub Copilot services by:
- Capturing DNS lookups for
githubcopilot.com
domains - Tracking HTTP(S) connections to known GitHub Copilot IP addresses
- Maintaining counts of interactions with different Copilot endpoints
- Rust toolchain
- libpcap development files
- Ubuntu/Debian:
apt install libpcap-dev
- macOS:
brew install libpcap
- RHEL/Fedora:
dnf install libpcap-devel
- Ubuntu/Debian:
cargo install --path .
The tool requires root/administrator privileges to capture network traffic:
sudo sniff-gh-copilot-usage
Optionally specify a network interface:
sudo sniff-gh-copilot-usage -i eth0
The tool displays a table of domains and their access counts when terminated with Ctrl+C:
Domain | Count
-------------------------------------+-------
api.githubcopilot.com | 42
api.enterprise.githubcopilot.com | 15
- Remote reporting capability to aggregate usage data
- Persistent storage of metrics
- System service integration for continuous monitoring
- Authentication and secure data transmission
- User association with usage patterns
- Requires root access for packet capture
- Should be deployed with appropriate access controls
- Network traffic monitoring has privacy implications
MIT