How lrtechpro/automotive-diagnostic-security-analyzer works
Automotive Diagnostic Security Analyzer turns synthetic UDS trace files into security and protocol findings, per-module diagnostic state, metrics, and Markdown/JSON/CSV reports. Users start analysis through either the command-line or Tkinter interface; both load and validate traces, then invoke the shared analyzer and report exporter. Internally, UDS decoding supports state tracking and security-rule evaluation. The README also documents supported services, NRC decoding, and negative-path/programming-sequence validation. Relationships are based on the shown source and README; no physical-vehicle or external-service integration is documented.
Main entry points: reporting.py Report exporter · cli.py Command-line interface · gui.py Tkinter interface · analyzer.py Security analyzer
Components 13
User interfaces
- Command-line interface
autosec_analyzer/cli.py - Tkinter interface
autosec_analyzer/gui.py
Trace ingestion
- UDS trace file
- Trace parser
autosec_analyzer/parser.py - Trace event model
autosec_analyzer/models.py
Protocol analysis
- Security analyzer
autosec_analyzer/analyzer.py - UDS decoder
autosec_analyzer/uds.py - Module state
autosec_analyzer/models.py
Findings and reports
- Finding model
autosec_analyzer/models.py - Report exporter
autosec_analyzer/reporting.py - Analysis reports
reports
Other components
- CLI user
- Desktop user
Connections 18
- CLI user → Command-line interface: runs
README.md - Desktop user → Tkinter interface: launches
README.md - Command-line interface → UDS trace file: loads path
autosec_analyzer/cli.py - Tkinter interface → UDS trace file: selects file
autosec_analyzer/gui.py - Command-line interface → Trace parser: loads trace
autosec_analyzer/cli.py - Tkinter interface → Trace parser: loads trace
autosec_analyzer/gui.py - Trace parser → Trace event model: creates events
autosec_analyzer/parser.py - Command-line interface → Security analyzer: analyzes events
autosec_analyzer/cli.py - Tkinter interface → Security analyzer: analyzes events
autosec_analyzer/gui.py - Security analyzer → UDS decoder: decodes payloads
autosec_analyzer/analyzer.py - Security analyzer → Module state: tracks state
autosec_analyzer/analyzer.py - Security analyzer → Finding model: creates findings
autosec_analyzer/analyzer.py - Command-line interface → Report exporter: exports reports
autosec_analyzer/cli.py - Tkinter interface → Report exporter: exports reports
autosec_analyzer/gui.py - Report exporter → Trace event model: serializes events
autosec_analyzer/reporting.py - Report exporter → Finding model: serializes findings
autosec_analyzer/reporting.py - Report exporter → Module state: writes state
autosec_analyzer/reporting.py - Report exporter → Analysis reports: writes files
autosec_analyzer/reporting.py