CuriousLearnerDev/TrafficEye
Tentang
Alat untuk analisis mendalam terhadap lalu lintas jaringan oleh tim blue team HW, yang membantu peneliti keamanan, pentester, administrator jaringan, dan profesional lainnya mengidentifikasi potensi ancaman keamanan, terutama serangan terhadap aplikasi web seperti injeksi SQL, XSS, dan WebShell. Desain modularnya memungkinkan pengguna memilih dan menyesuaikan berbagai modul fungsional secara bebas sesuai kebutuhan.
Keamanan dan privasiYang dapat Anda lakukan
- ✅ Optimized tshark integration — roughly 100× faster than pyshark (minutes → seconds)
- ✅ Automatic file-type detection before analysis
- ✅ HTTPS decryption with sslkeys.log
- ✅ Export HTTP data for Burp Suite
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +4
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliEnglish | 中文
Issue / Feedback Group

📥 Prebuilt Downloads
GitHub Releases: 👉 https://github.com/CuriousLearnerDev/TrafficEye/releases
Requires Python 3.10+
cd TrafficEye
python -m venv .venv
# Windows: .venv\Scripts\activate
# Linux/macOS: source .venv/bin/activate
pip install -r requirements.txt
python mian.py
On Linux, also run: chmod +x lib/log_identification
📄 Security Detection Rules
1. Syntax Basics
Rules are defined under the safety_testing section in config.yaml.
Use these identifiers to choose which fields to inspect. Multiple locations can be combined with |.
| Identifier | Description |
|---|---|
ALL |
Match all fields (global) |
!xxx |
Exclude field xxx from detection |
URI |
Full URL |
URI_key |
Query parameter names in the URL |
URI_value |
Query parameter values in the URL |
ALL_headers |
All request headers |
headers:xxx |
A specific header, e.g. headers:cookie |
binary |
Raw binary content |
forms_body |
Entire form body (application/x-www-form-urlencoded) |
forms_key_body |
Form field names |
forms_value_body |
Form field values |
json_body |
Entire JSON body |
json_key_body |
JSON keys |
json_value_body |
JSON values |
json_item_body |
JSON array items |
xml_body |
Entire XML body |
xml_value_body |
XML node values |
xml_attribute_body |
XML attribute values |
multipart_body |
Entire multipart upload body |
multipart_file_name_body |
Uploaded file names |
multipart_content_type_body |
Uploaded file MIME types |
multipart_data_body |
Binary content of uploaded files |
2. Example Configuration
Rule structure:
risk_id:
name:
- Rule display name
detection_location:
- Target fields (multiple allowed, separated by `|`)
rules:
- Regular expression (one or more)
severity:
- Severity level (High / Medium / Low)
Example from config.yaml:

safety_testing:
Directory_Traversal_Attack:
name:
- "Directory traversal payload using (/../) or (/.../)"
detection_location:
- 'URI|forms_key_body|multipart_file_name_body|ALL_headers|xml_value_body|!headers:referer'
rules:
- >-
(?:(?:^|[\x5c/;])\.{2,3}[\x5c/;]|[\x5c/;]\.{2,3}[\x5c/;])
severity:
- Medium
This rule inspects the following fields:
URI→ Full URL, for example:http://example.com/download.php?file=../../etc/passwdforms_key_body→ Form field names, for example:username=admin&file=../../../etc/shadow ↑ matched as forms_key_bodymultipart_file_name_body→ Filename in multipart uploads, for example:Content-Disposition: form-data; name="upload"; filename="../../shell.php"ALL_headers→ All HTTP headers, such asUser-Agent,Cookie,X-Forwarded-For, etc.xml_value_body→ XML node values, for example:<config>../../etc/passwd</config>!headers:referer→ Do not match inside theRefererheader
🧪 Overview
TrafficEye is designed for blue-team defense and network traffic analysis. It helps identify security threats in captured traffic—especially web attacks such as SQL injection, XSS, and WebShells. A modular design lets you enable and customize features as needed. It is intended for security researchers, penetration testers, and network administrators.
🧱 Architecture

🚀 Features
✅
pyshark✅ Optimized
tsharkintegration — roughly 100× faster thanpyshark(minutes → seconds)✅ Automatic file-type detection before analysis
✅ HTTPS decryption with
sslkeys.log🎯 Full-packet files:
.pcapng,.pcap,.cap, DNS- ✅ Export HTTP data for Burp Suite
- ✅ Export POST body as byte stream
- ✅ Export POST body as raw hex
- ✅ Filter by URI / request / response
📄 Log analysis
- ✅ Apache
- ✅ Nginx
- ✅ JSON
- ✅ F5
- ✅ HAProxy
- ✅ Tomcat
- ✅ IIS
🔁 Request replay
- ✅ Replay requests as-is
- ✅ Send full binary request data
- Session replay: requests are sent in original session order. For example, Godzilla may issue three requests as one session while testing a WebShell; enter the session ID to replay all three and reproduce the session.
📦 Binary extraction
- ✅ Java serialized binary data
- ✅ C# serialized data
- ✅ C# Base64-serialized data
- ✅ Java bytecode
- ✅ ZIP
- ✅ 7z
- ✅ Images (JPEG, PNG, GIF, BMP, TIFF, etc.)
- ✅ Audio (MP3, WAV, FLAC, etc.)
- ✅ Video (MP4, AVI, MOV, MKV, etc.)
- ✅ Documents (Word, Excel, PowerPoint, PDF, etc.)
- ✅ Archives (RAR, TAR, GZ, ARJ, etc.)
- ✅ Email (MBOX, PST, DBX, EML, etc.)
- ✅ Databases (SQLite, MySQL, MongoDB, etc.)
- ✅ Scripts / code (Python, JavaScript, PHP, Ruby, Java, etc.)
- ✅ Binary signature detection (software/hardware-specific formats)
📊 Statistics
- ✅ URI access counts
- ✅ IP geolocation
- ✅ Raw IP
- ✅ HTTP methods
- ✅ Hit counts
🧰 Security detection
- ✅ Information disclosure / path traversal
- ✅ Sensitive file leak
- ✅ Directory traversal
- ✅ Remote file inclusion (RFI)
- ✅ Local file inclusion (LFI)
- ✅ Remote code execution (RCE)
- ✅ SQL injection
- ✅ Cross-site scripting (XSS)
🧠 AI detection
- ✅ Targeted URI analysis
- ✅ Automated batch analysis
- ✅ Header / body analysis
📸 Screenshots
Dashboard

Binary extraction from traffic

Full traffic broken into a readable format for analysis

DNS view

Malicious traffic analysis

Session replay
- Replay requests as-is
- Send full binary request data
- Session replay: requests follow the original connection/session order. For example, Godzilla may send three requests as one WebShell test session; enter the session ID to replay all three.
Example Godzilla session ID:

Enter the ID to send that session:

Statistics



Regex validation
AI analysis

Project Layout
📁 custom_extension/
data_processing.py: (in progress) custom data-processing hooks for special traffic formats or parsers
📁 history/
trafficeye_data.json: persisted analysis history and statistics
📁 ico/
- Application icons and related GUI assets
📁 lib/
cmdline.py: CLI entry / argument handlingip2region.xdb: IP geolocation databasexdbSearcher.py:ip2regionlookup helperbench_test.py/iptest.py/search_test.py: IP lookup / benchmark test helpers
📁 log_parsing/
log_identification.py: detects log formats and selects parsers
📁 modsec/ (in progress)
modsec_crs.py: OWASP ModSecurity CRS engine interfacerules/: CRS rule files and helpers (LFI / RFI / RCE / SQLi, etc.)rules_APPLICATION_ATTACK_*.py: scripts that load/run specific attack rule sets
📄 mian.py
- GUI / main entry: load config, schedule modules, start analysis
📄 binary_extraction.py
- Binary identification and extraction
📄 core_processing.py
- Core HTTP request/response parsing and field extraction
📄 Godzilla.py
- WebShell / malicious traffic detection for special session behaviors
📄 examine.py
- Inspection / analysis helpers for feature checks and testing
📄 module.py
- Shared helpers, constants, and base classes
📄 output_filtering.py
- Filters displayed results by user-defined conditions
📄 replay_request.py
- Replays captured requests for vulnerability reproduction or attack simulation
📄 rule_filtering.py
- Enables / disables / fine-tunes loaded rules from configuration
📄 session_utils.py
- Aggregates, orders, and extracts multi-request HTTP sessions
📄 url_statistics.py
- URL statistics (frequency, status codes, etc.)
📄 config.yaml
🙏 Thanks
Special thanks to the following teams and researchers for suggestions and feedback:
- 知攻善防实验室
- 雪娃娃
- ChinaRan404
- 糖糖
- niuᴗu
- 雪娃娃
- 我数挖槽
Author's WeChat Official Account

✨ Stargazers over time
Jelajahi proyek terkait
Memuat…