Skip to main content

A stand-alone, offline, and OS-agnostic CAN security analysis tool.

Project description

CANaudit

A stand-alone, offline, and OS-agnostic CAN security analysis tool.

Usage

  1. ensure you have Python 3 installed (v3.10 recommended).
  2. Install package pip install canaudit

Known limitations

The accuracy of CAN trace data depends on the logging tool and hardware used.

  • Software-based loggers (e.g., candump, USB-CAN) may introduce timestamp noise or latency.
  • Message loss or jitter can affect the precision of timing-based audits.
  • For critical analysis, use timestamped hardware interfaces and synchronized logging (e.g., STM32G474RE, FPGAs).

CANaudit provides best-effort analysis and may produce false positives or negatives on inaccurate logs.

Contribution

Development Setup

  1. Clone this repo.
  2. If not installed, Install Poetry (I use v2.1.3).
  3. Install dependencies and enable development environment.
  4. Enable pre-commit hooks (recommended).

Run example

assuming your dev env is all set up. run the following command:

C:\git\CANaudit [main ≡ +0 ~2 -0 ~]> poetry run python scripts/analyze.py
INFO:root:[Controller] Loading trace from examples/sample_trace.log
INFO:root:[Controller] Running audits: ['timing']
INFO:root:[AuditManager] Running module: timing
INFO:root:[Controller] Generating report to reports/sample_report.html
INFO:root:[Report] Writing report to: reports/sample_report.html
INFO:root:[Report] Report generated successfully.

>> Report generated: file:///C%3A/git/CANaudit/reports/sample_report.html

Project details


Download files

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

Source Distribution

canaudit-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

canaudit-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file canaudit-0.1.0.tar.gz.

File metadata

  • Download URL: canaudit-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.2 Windows/10

File hashes

Hashes for canaudit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d0349a65e6b16bf60be0755256ddb78752dfa45fb864cbe318f45150a66b6e8
MD5 5a025ffa36aca218c7274b8e9926e578
BLAKE2b-256 c3e020ac8f7b3edcb1e9ec1fcf3267c099f6b2f3053e4acf133a306fcb616b91

See more details on using hashes here.

File details

Details for the file canaudit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: canaudit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.2 Windows/10

File hashes

Hashes for canaudit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34164f9e1ab6f79d9de8cee1df7f80a2e068f773aa085a360af925dab340ca4b
MD5 ef89038175cefa02a3496348be8ecb05
BLAKE2b-256 fb944bd0246b954995b5c09d0cd52e564ec7a98903e889efd635659c60e5d801

See more details on using hashes here.

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