A premium interactive CLI network traffic analyzer with Gemini AI integration
Project description
โก AuraSniff
A premium, interactive terminal-based network packet capture (PCAP) analyzer with built-in Gemini AI assistance.
๐ Introduction
AuraSniff is a lightweight, zero-dependency command-line interface (CLI) that brings advanced network forensics and artificial intelligence to your terminal. It parses .pcap and .pcapng files locally without relying on heavy external software or standard Wireshark installations, computes connection metrics, extracts cleartext login credentials, and features a chat shell where you can query your network captures in natural language using Gemini.
๐ Core Features
- โก Zero-Dependency Dissection: Streams and parses capture files locally using Scapy. You don't need Wireshark or
tsharkinstalled. - ๐ Credentials Harvester: Automatically intercepts and displays cleartext logins across HTTP-POST, FTP, SMTP, POP3, and IMAP payloads.
- ๐จ Security Anomaly Engine: Identifies network anomalies in real-time, including:
- Port Scanning: Highlights hosts hitting multiple distinct ports in short intervals.
- ARP Spoofing: Detects multiple MAC addresses claiming the same IP.
- DNS Tunneling: Flagging abnormally long, high-entropy query names (indicative of C2/Exfiltration).
- Cleartext passwords: Warns you about insecure login transmissions.
- ๐ฌ Gemini AI Chat REPL: Launch an interactive shell to ask questions like "Who is scanning ports?" or "What did the device with IP 192.168.1.15 do?". Gemini translates your questions into local database search filters and answers in markdown.
- ๐ Deep Hex Inspection: Drill down into individual packets to view a structured tree of layers (Ethernet โ IP โ TCP โ Payload) alongside a color-coded side-by-side Hex & ASCII dump.
๐จ Visual Preview
AuraSniff's terminal interface is built with Rich for a clean, cyber-neon theme:
The Dashboard (aurasniff analyze)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โฒ AURA SNIFF PCAP ANALYZER โฒ โ
โ Premium Command Line Traffic Inspector & AI Security Assistant โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโ Capture Summary โโโโโโโโโโโโโโโโโโโโโโ Protocol Distribution โโโโโ
โ File Path: home.pcapng โโ Protocol Count Ratio โ
โ Packets: 46 โโ TCP 42 91.3% โโโโโโ โ
โ Data Size: 3.2 KB โโ UDP 4 8.7% โโโโโโ โ
โ Duration: 23.0 s โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ Extracted Credentials โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Pkt # โ Protocol โ Source โ Destination โ Credentials Info โ
โ 8 โ HTTP-POST โ 192.168.1.15 โ 93.184.216.34 โ User: admin / Pass: 123 โ
โ 13 โ FTP โ 192.168.1.15 โ 192.168.1.5 โ User: admin / Pass: test โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Deep Packet Hexdissection (detail 8)
Packet #8
โโโ Ether (dst=00:11:22:33:44:00, src=00:11:22:33:44:55, type=2048)
โโโ IP (version=4, ihl=5, proto=6, src=192.168.1.15, dst=93.184.216.34)
โโโ TCP (sport=49152, dport=80, flags=PA, window=8192)
โโโ Raw (load=b'POST /login HTTP/1.1\r\nHost: example.com...)
Raw Packet Hex/ASCII Dump:
0000 00 11 22 33 44 00 00 11 22 33 44 55 08 00 45 00 |.."3D..."3DU..E.|
0010 00 df 00 01 00 00 40 06 82 86 c0 a8 01 0f 5d b8 |......@.......].|
0020 d8 22 c0 00 00 50 00 00 00 00 00 00 00 00 50 18 |."...P........P.|
0030 20 00 f4 73 00 00 50 4f 53 54 20 2f 6c 6f 67 69 | ..s..POST /logi|
0040 n 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 |n HTTP/1.1..Host|
0050 3a 20 65 78 61 6d 70 6c 65 2e 63 6f 6d 0d 0a 75 |: example.com..u|
โ๏ธ Installation
Install the package globally via pip:
pip install aurasniff
๐ ๏ธ Usage Guide
1. Interactive AI Chat Shell
Launch the prompt loop to inspect, query, and dissect the capture file:
aurasniff shell <path_to_file.pcap>
- Type
dnsto show DNS lookup history. - Type
httpto see HTTP connections. - Type
credsto print extracted credentials. - Type
alertsto view detected threats. - Type
detail <pkt_index>(e.g.detail 8) to run deep dissection and hex dumps. - Ask questions like: "Did any local laptop connect to standard DNS servers?" or "Which host triggered the port scanning alert?"
2. General Dashboard Scan
Generate a visual summary of the packet capture:
aurasniff analyze <path_to_file.pcap>
3. Quick AI Query
Run a single natural language question directly from your system command line:
aurasniff query <path_to_file.pcap> "explain the security alerts found"
4. Configure Gemini API Key
To enable the AI capabilities, save your Gemini API Key locally:
aurasniff config set-key <YOUR_GEMINI_API_KEY>
Note: If no API key is saved, the tool falls back to a local offline keyword routing parser.
๐ Security & Privacy Disclosures
- Local Processing: AuraSniff performs all packet parsing, dissection, database storage, and filtering locally on your machine.
- Minified Context: When utilizing the Gemini AI features, AuraSniff does not upload your raw binary PCAP file. Instead, it generates a minified text-based summary of metadata (hostnames, domain lookups, connection metrics, and alert titles) and sends only this summary alongside your prompt to the Gemini API. Your actual packet payloads remain 100% private.
- The HTTPS Limitation: Like any passive packet sniffer, AuraSniff cannot decrypt TLS/HTTPS traffic (Port 443) without session keys. If you log in to a secure website like GitHub, the credentials will be encrypted before hitting the network interface. To test credential sniffing, capture traffic on unencrypted services (e.g., local development servers running HTTP, legacy router dashboards, or raw FTP).
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aurasniff-0.1.2.tar.gz.
File metadata
- Download URL: aurasniff-0.1.2.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9ff76656a4e31e5fd0ffa2a28a51a0895276317d7bf962ccf730727ba106a3b
|
|
| MD5 |
a432d09540ac18a7fa22875395abfa84
|
|
| BLAKE2b-256 |
52225fffd11f1869689a433a9714179f18218ed2314c818d8437785d11fbd9e3
|
Provenance
The following attestation bundles were made for aurasniff-0.1.2.tar.gz:
Publisher:
publish.yml on vatsalgargg/aurasniff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aurasniff-0.1.2.tar.gz -
Subject digest:
d9ff76656a4e31e5fd0ffa2a28a51a0895276317d7bf962ccf730727ba106a3b - Sigstore transparency entry: 2164521127
- Sigstore integration time:
-
Permalink:
vatsalgargg/aurasniff@781033aaff5e755924b45d26dfd56290f2bdd09d -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/vatsalgargg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@781033aaff5e755924b45d26dfd56290f2bdd09d -
Trigger Event:
release
-
Statement type:
File details
Details for the file aurasniff-0.1.2-py3-none-any.whl.
File metadata
- Download URL: aurasniff-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a184ec6f1c22ad8f68ee708f0dad8f273cc0d5b57b4fe411adf7687f1b15878e
|
|
| MD5 |
7925207a6e03531c5d4ce2b1769241cb
|
|
| BLAKE2b-256 |
743180bd919856c6ea8ede26b3b4e24da8ba971db74035b7f4d58f225727eb1c
|
Provenance
The following attestation bundles were made for aurasniff-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on vatsalgargg/aurasniff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aurasniff-0.1.2-py3-none-any.whl -
Subject digest:
a184ec6f1c22ad8f68ee708f0dad8f273cc0d5b57b4fe411adf7687f1b15878e - Sigstore transparency entry: 2164521148
- Sigstore integration time:
-
Permalink:
vatsalgargg/aurasniff@781033aaff5e755924b45d26dfd56290f2bdd09d -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/vatsalgargg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@781033aaff5e755924b45d26dfd56290f2bdd09d -
Trigger Event:
release
-
Statement type: