MCPcopy Index your code
hub / github.com/Sonar-team/Sonar_desktop_app

github.com/Sonar-team/Sonar_desktop_app @app-v4.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release app-v4.0.1 ↗ · + Follow
317 symbols 787 edges 61 files 23 documented · 7% updated 1d agoapp-v4.1.1 · 2026-07-07★ 8529 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Sonar Logo

Sonar Desktop App

Lightweight and open-source desktop app built with Rust and Tauri.

Captures network traffic and generates flow matrices for critical infrastructure auditing.

Gain deep network visibility.

Eliminate shadow IT/OT.


Empower your SOC/CSIRT teams.


Stay ahead of cyber threats.

Quality Gate FOSSA Status Releases Coverage


For:

  • Network Administrators
  • Network Auditors
  • SOC Architects

Use Cases

Network Discovery & Mapping

Automatically discover devices and connections. Build complete topology maps to identify blind spots and ensure full network coverage.

Shadow IT/OT Discovery

Identify unauthorized network protocols, as well as hidden IT, IoT, and OT devices or rogue connections.

Compliance & Audit Support

Generate detailed network documentation and traffic reports for regulatory audits. Track changes over time and demonstrate visibility controls.

SOC Rule Creation and Tuning

Establish a baseline of normal network behavior and use it to create or refine SOC rules.

🚀 Key Features

🧲 Packet Capture Engine

  • Configures the selected network interface in promiscuous mode
  • Reconstructs packet metadata in real time and maps traffic relationships
  • Supports parsing of the following protocols:

  • Ethernet (MAC)

  • IPv4, IPv6, ARP
  • ICMPv4, ICMPv6
  • UDP, TCP
  • HTTP, DNS, TLS, SSL

Release Binaries

Release assets are raw binaries, not installers.

Configuration minimale

  • Systeme 64 bits: Windows 10/11, Linux x86_64 recent ou macOS recent.
  • Processeur: 2 coeurs minimum.
  • Memoire: 4 Go de RAM minimum, 8 Go recommandes pour les captures a fort debit ou les analyses longues.
  • Stockage: 500 Mo libres pour l'application, plus l'espace necessaire aux exports et fichiers de capture.
  • Capture reseau: droits administrateur/root ou capabilities Linux cap_net_raw et cap_net_admin sur le binaire.
  • Pilote/librairie de capture: Npcap sous Windows, libpcap sous Linux, libpcap systeme sous macOS.

Windows

  • Install Npcap separately from the official Npcap download page before launching sonar.exe.
  • During Npcap installation, enable WinPcap API-compatible Mode.
  • Without Npcap, Sonar can start but packet capture will not work.

🧰 System Dependencies

Windows

  • Npcap: Required at runtime for packet capture.
  • Build from source only: You must also install the WinPcap Developer Pack.
  • Environment Variable: Add the /Lib or /Lib/x64 folder to your system LIB environment variable when building from source.

Linux

  • libpcap-dev: On Debian-based distributions, run:

bash sudo apt install libpcap-dev - Non-root Execution: Grant required capabilities using:

bash sudo setcap cap_net_raw,cap_net_admin=eip path/to/binary

Example:

bash sudo setcap cap_net_raw,cap_net_admin=eip src-tauri/target/debug/sonar-desktop-app

macOS

  • libpcap: Already included by default on macOS systems. No additional setup is required.

Extension points exported contracts — how you extend this code

NodeData (Interface)
(no doc)
src/types/capture.ts
EdgeData (Interface)
(no doc)
src/types/capture.ts
CaptureChannel (Interface)
(no doc)
src/types/capture.ts

Core symbols most depended-on inside this repo

push
called by 56
src-tauri/src/state/graph.rs
is_empty
called by 29
src-tauri/src/state/graph.rs
as_ref
called by 29
src-tauri/src/state/capture/capture_handle/threads/packet_buffer.rs
get
called by 19
src-tauri/src/state/labels_list.rs
get
called by 17
src-tauri/src/state/capture/capture_handle/threads/packet_buffer.rs
send
called by 16
src-tauri/src/state/capture/capture_handle/messages/stats.rs
path
called by 16
src-tauri/src/commandes/import/mod.rs
colorForProtocol
called by 14
src/utils/protocolColors.ts

Shape

Function 176
Method 85
Class 39
Enum 14
Interface 3

Languages

Rust83%
TypeScript17%

Modules by API surface

src-tauri/src/commandes/import/mod.rs49 symbols
src-tauri/src/state/graph.rs33 symbols
src-tauri/src/state/capture/capture_handle/threads/packet_buffer.rs23 symbols
src/store/capture.ts20 symbols
src-tauri/src/state/flow_matrix/mod.rs19 symbols
src-tauri/src/state/capture/capture_handle/threads/processing.rs16 symbols
src-tauri/src/state/capture/capture_handle/messages/stats.rs15 symbols
src-tauri/src/setup/labels.rs12 symbols
src-tauri/examples/pool_bench.rs10 symbols
security/repro-env.ts10 symbols
src-tauri/src/state/labels_list.rs8 symbols
src-tauri/src/startup_smoke.rs8 symbols

For agents

$ claude mcp add Sonar_desktop_app \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page