Skip to main content

IoT Inspector Client for analyzing IoT device firmware

Project description

IoT Inspector 3

Simply run ./start.bash. It will take care of all the dependencies.

If the underlying Inspector core library is updated, please run the following first:

uv cache clean
uv lock --upgrade-package libinspector
uv sync

Developer Guide

If you are developing IoT Inspector, please read this section.

Database Schema

When presenting network stats, IoT Inspector reads from an internal SQLite database.

You should always read from the database using the following approach:

import libinspector
db_conn, rwlock = libinspector.global_state.db_conn_and_lock
with rwlock:
    db_conn.execute("SELECT * FROM devices")

The schema is as follows:

CREATE TABLE devices (
    mac_address TEXT PRIMARY KEY,
    ip_address TEXT NOT NULL,
    is_inspected INTEGER DEFAULT 0,
    is_gateway INTEGER DEFAULT 0,
    updated_ts INTEGER DEFAULT 0,
    metadata_json TEXT DEFAULT '{}'
)

CREATE TABLE hostnames (
    ip_address TEXT PRIMARY KEY,
    hostname TEXT NOT NULL,
    updated_ts INTEGER DEFAULT 0,
    data_source TEXT NOT NULL,
    metadata_json TEXT DEFAULT '{}'
)

CREATE TABLE network_flows (
    timestamp INTEGER,
    src_ip_address TEXT,
    dest_ip_address TEXT,
    src_hostname TEXT,
    dest_hostname TEXT,
    src_mac_address TEXT,
    dest_mac_address TEXT,
    src_port TEXT,
    dest_port TEXT,
    protocol TEXT,
    byte_count INTEGER DEFAULT 0,
    packet_count INTEGER DEFAULT 0,
    metadata_json TEXT DEFAULT '{}',
    PRIMARY KEY (
            timestamp,
            src_mac_address, dest_mac_address,
            src_ip_address, dest_ip_address,
            src_port, dest_port,
            protocol
        )
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iot_inspector-3.0.3-py3-none-any.whl (245.7 kB view details)

Uploaded Python 3

File details

Details for the file iot_inspector-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: iot_inspector-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 245.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iot_inspector-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5a21777773445fe20b4bb634827506fb234d079f6fda715b3d8b972271a227ff
MD5 98e19a6674e27aead459214757ca98a5
BLAKE2b-256 3a8fc9d50dcc39623a5d1ccb6cb707df71a954a49867ac13b399901989be1021

See more details on using hashes here.

Provenance

The following attestation bundles were made for iot_inspector-3.0.3-py3-none-any.whl:

Publisher: create_release.yml on nyu-mlab/iot-inspector-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page