About CANExplorer
CANExplorer is an MCP server published by AKJ7 in the Agents category: cANBus GUI and toolkit for the modern man!. Conduid read 120 tools from its source: access_matrix, analyse_auth_timing, analyse_doip_gateway, analyse_e2e_secoc_interaction, analyse_gateway_auth, analyse_gateway_filtering and 114 more. No package is published for it, so it installs from a source checkout.
The repository has 237 stars and 28 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v1.9.0 (15 Nov 2026): Breakpoints and single stepping in playbacks, for replays of recordings and recordings replayed on a bus: pause right after a frame (identifiers and an optional data pat… It follows v1.8.0 (14 Nov 2026), and the 5 most recent releases go back to v1.6.0 (1 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include agentic-workflow, automotive-ethernet, can, canbus, canbus-analysis and canbus-communications.
Install
git clone https://github.com/AKJ7/CANExplorerTools (120)
access_matrixBuild a per-ECU, per-service, per-session security classification from captured traffic. Shows which services are allowed, denied (NRC 0x33/0x34) or conditional (NRC 0x22) for each ECU in each session. Read-only.analyse_auth_timingMeasure the timing of each step of 0x27 SecurityAccess authentication flows for all ECUs: request-to-seed, seed-to-key and key-to-response intervals. Unusually fast or slow responses can indicate weak seed generation, trivial key derivation or rate limiting. Read-only.analyse_doip_gatewayAnalyse DoIP (ISO 13400) gateway properties from captured traffic: activation lines, vehicle identification, routing activations and access control enforcement. Read-only.analyse_e2e_secoc_interactionAnalyse whether E2E (CRC + alive counter) and SecOC (MAC + freshness) counters on the same PDU are independent. If they share the same counter, the security margin is lower than it appears. payloads: hex; e2e_counter_start/end and secoc_freshness_start/end: byte indices (end exclusive). Read-only.| Parameter | Type | Description |
|---|---|---|
| e2e_counter_end * | integer | |
| e2e_counter_start * | integer | |
| identifier | string | |
| payloads * | array | |
| secoc_freshness_end * | integer | |
| secoc_freshness_start * | integer |
analyse_gateway_authPassive analysis of UDS traffic to detect gateway authentication patterns: which services are locked behind 0x27 SecurityAccess or 0x29 Authentication, at what security level and in what session type. Read-only: never sends anything on the bus.analyse_gateway_filteringPassive analysis of UDS traffic for gateway filtering weaknesses: unfiltered diagnostic IDs, session fallback (services that work in default session after being locked in extended), timing windows after session changes, and functional addressing bypass. Read-only: never sends anything on the bus.analyse_reset_behaviourDetect services that succeed shortly after an ECU reset (0x11), indicating a boot-up window where security may not be enforced. Read-only.analyze_identifierAutomatically find the fields of an identifier (checksums, counters, multiplexers, physical values, states and flags) from its recent frames. Secured PDUs of a loaded ARXML get their SecOC freshness value and MAC labelled (kinds 'freshness', 'mac'); without one, random-looking trailing bytes are labelled 'random' (possibly a truncated MAC or encrypted data, a hint only).| Parameter | Type | Description |
|---|---|---|
| extended | boolean | |
| identifier * | string | |
| include_constant | boolean |
assess_fd_securityAssess security properties of CAN FD payloads (up to 64 bytes) with FD-specific heuristics: full 128-bit MACs, longer freshness values and wider byte ranges. payloads: hex-encoded CAN FD payloads. Read-only.| Parameter | Type | Description |
|---|---|---|
| identifier | string | |
| payloads * | array |
assess_frame_securityPassive security assessment of one identifier: runs statistical randomness tests on trailing bytes (monobit, runs, chi-square, serial correlation), evaluates freshness/replay protection of any counter+MAC pair, searches for linear (CRC/XOR) dependencies via GF(2) Gaussian elimination, and checks for keystream reuse in suspected encrypted bytes. Read-only: never sends anything on the bus.| Parameter | Type | Description |
|---|---|---|
| extended | boolean | |
| identifier * | string |
assess_secoc_strengthCompute the practical security margin of a SecOC-protected identifier: forgery probability, expected time to forgery, freshness window, and whether the truncation length meets AUTOSAR recommendations. payloads and timestamps: captured data; mac_start/mac_end and freshness_start/freshness_end: byte indices (end is exclusive). Read-only.| Parameter | Type | Description |
|---|---|---|
| freshness_end * | integer | |
| freshness_start * | integer | |
| identifier | string | |
| mac_end * | integer | |
| mac_start * | integer | |
| payloads * | array | |
| timestamps * | array |
assess_seed_qualityAssess the quality of seeds returned by an ECU's 0x27 SecurityAccess. seeds: a list of hex-encoded seed values. Checks for low entropy, repeated seeds, sequential (counter-based) patterns and fixed bytes. Read-only.| Parameter | Type | Description |
|---|---|---|
| seeds * | array |
attack_surface_reportProduce a consolidated, prioritised attack surface report combining gateway analysis, NRC fingerprinting, auth timing and seed quality. Each ECU gets a severity score (0-10). Read-only.auth_state_machineReconstruct the full authentication state machine for one ECU from captured UDS traffic: the required order of session changes, security access levels, TesterPresent keep-alive requirements and timing constraints. ecu_id: the request ID as a hex string (e.g. "7E0"). Read-only.| Parameter | Type | Description |
|---|---|---|
| ecu_id * | string |
bit_activityPer-bit behaviour of one identifier: for each bit how often it is set and flips (constant, toggling and counter bits stand out), plus a per-byte summary (distinct values, range, entropy). The raw view behind analyze_identifier — use it when a byte does not parse as a clean field.| Parameter | Type | Description |
|---|---|---|
| extended | boolean | |
| identifier * | string |
brute_planGenerate a plan to systematically try OEM-specific sessions (0x40-0x5F) and non-standard security levels. Planning only (read-only); execution uses the uds_request tool. Read-only.bus_statusThe connection state, loaded database, enabled capabilities, and (when connected) frame counts, rates and bus load. If not connected, use list_interfaces and connect.capture_reactionDiff the most recent `action_seconds` of traffic against the `baseline_seconds` before it to find what changed on the bus (identifiers that appeared, bits that changed). Record a steady baseline, perform the action, wait `action_seconds`, then call this. Passive — reads only.| Parameter | Type | Description |
|---|---|---|
| action_seconds | number | |
| baseline_seconds | number |
classify_did_securityClassify the security posture of individual DIDs and routines for one ECU: which are readable, writable, and which require authentication. ecu_id: the request ID as a hex string. Read-only.| Parameter | Type | Description |
|---|---|---|
| ecu_id * | string |
classify_secoc_profileClassify the AUTOSAR SecOC profile from observed MAC and freshness parameters: Profile 1 (24-bit MAC, 4-bit freshness), Profile 2 (28-bit, 8-bit), Profile 3 (64-bit, 32-bit for CAN FD), or Custom. Read-only.| Parameter | Type | Description |
|---|---|---|
| algorithm_hint | string | |
| freshness_bits * | integer | |
| identifier | string | |
| mac_bits * | integer | |
| payload_length * | integer |
clear_markersForget all the markers set with mark().coding_readRead a module's coding (or another configuration record) and decode its fields. The record comes from a label file you supply (`labels`, `record` by name; where a module keeps its coding and what its bits mean are not built in), or is given raw as "kwp:<local identifier>" or "uds:<DID>" (hex). KWP records use the transport (TP 2.0 to `module`, or ISO-TP); UDS records use ISO-TP `request`/`response`. `session` (hex) is sent first; `key` and `level` unlock security access if needed.| Parameter | Type | Description |
|---|---|---|
| key | string | |
| labels | string | |
| level | integer | |
| module | string | |
| record | string | |
| request | string | |
| response | string | |
| session | string | |
| transport | string |
coding_writeChange a module's coding record — set fields by name (`changes`, e.g. {"Option A": 1}) or give the whole record (`data`, hex). Reads the record first and returns it as `before` (keep it: it is the backup), refuses a write of another length or when the record changed since it was read, writes, reads back and reports `verified`. Same record, transport, session and security arguments as coding_read. Changes the vehicle's configuration.| Parameter | Type | Description |
|---|---|---|
| changes | object | |
| data | string | |
| key | string | |
| labels | string | |
| level | integer | |
| module | string | |
| record | string | |
| request | string | |
| response | string | |
| session | string | |
| transport | string |
compute_e2eGiven recovered E2E parameters (profile, Data IDs, counter value) and a payload (hex), return the payload with a valid E2E header. profile: 2, 4, 5, 6, 7 or 22. data_ids: list of 16 ints for Profile 2/22, single int for Profile 4/5/6/7. Read-only (computes but does not send).| Parameter | Type | Description |
|---|---|---|
| counter * | integer | |
| data * | string | |
| data_ids * | any | |
| offset | integer | |
| profile * | integer |
connectOpen a CAN bus and start receiving, closing any current one. interface is a python-can interface (socketcan, pcan, vector, gvret, virtual, canexplorer_remote…) and channel its channel (can0, PCAN_USBBUS1, COM7…). Keeps the database and protocol; starts a fresh trace.| Parameter | Type | Description |
|---|---|---|
| bitrate | integer | |
| channel * | string | |
| data_bitrate | integer | |
| fd | boolean | |
| interface * | string |
correlateFind the field that follows a known reference series: a database signal ("Message.Signal"), a column of a CSV file (csv_path, column), or an inline time series (times and values). Returns the best-matching fields with their correlation, fitted factor and offset (into the reference's unit) and time lag.| Parameter | Type | Description |
|---|---|---|
| column | integer | |
| csv_path | string | |
| extended | boolean | |
| identifier | string | |
| max_lag | number | |
| name | string | |
| signal | string | |
| times | array | |
| top | integer | |
| unit | string | |
| values | array |
correlate_ecu_seedsCheck whether different ECUs share the same seed/key algorithm or master key, given captured seed/key pairs from multiple ECUs. seed_key_pairs: a dict mapping request ID (hex) to a list of {seed: hex, key: hex} pairs. Read-only.| Parameter | Type | Description |
|---|---|---|
| seed_key_pairs * | object |
crack_seed_keyRecover the UDS 0x27 SecurityAccess seed-to-key algorithm from captured (seed, key) pairs. Each pair is {seed: hex, key: hex}. Tests hypotheses from identity through GF(2) linear algebra, AES-based KDFs (AES-ECB, CMAC-AES, HMAC-SHA-256) with candidate keys, and LFSR-based scramblers, confirming each against held-back pairs. Needs at least 3 pairs; more is better. candidate_keys: optional list of hex-encoded 16-byte master keys to test against AES-based patterns. Manufacturer algorithms are proprietary: this reports what matched, not a guaranteed algorithm.| Parameter | Type | Description |
|---|---|---|
| candidate_keys | array | |
| level | integer | |
| pairs * | array |
decode_frameDecode a payload (hex, e.g. "A0 0F 5A 03") for an identifier with the loaded database. Sends nothing.| Parameter | Type | Description |
|---|---|---|
| data * | string | |
| extended | boolean | |
| identifier * | string |
decode_protocolInterpret a payload with a protocol decoder (J1939, J1939-22, "NMEA 2000", CANopen, ISO-TP, UDS, KWP2000, "ISO-TP (extended)", "UDS (extended)", "KWP2000 (extended)" (extended or mixed addressing: the first data byte is an address byte), "K-Line", "VW TP 2.0", LIN, J1587, NM, SecOC, XCP, CCP), without a database. A single XCP or CCP frame is only labelled when it is a CONNECT (the decoder learns the identifier pair from a session start), and VW TP 2.0 data only after the channel setup response that assigns its identifiers. Sends nothing.| Parameter | Type | Description |
|---|---|---|
| data * | string | |
| extended | boolean | |
| identifier * | string | |
| protocol * | string |
detect_bus_segmentsCluster CAN IDs by timing characteristics (periodic vs event-driven, rate) and ID range to infer physical bus segments. Read-only.detect_e2eRun the full AUTOSAR E2E detection pipeline on one identifier's payloads: alive counter detection, profile detection (2, 4, 5, 6, 7, 22), Data ID recovery and bypass checking. payloads: a list of hex-encoded payloads from one identifier. identifier: the CAN ID as hex (optional). Read-only.| Parameter | Type | Description |
|---|---|---|
| identifier | string | |
| payloads * | array |
detect_rewritingDetect whether the gateway rewrites diagnostic messages: ID mapping, payload truncation, byte rewriting. Requires captures from both sides of the gateway as lists of {id: hex, data: hex, timestamp: float}. Read-only.| Parameter | Type | Description |
|---|---|---|
| external_captures * | array | |
| internal_captures * | array |
detect_secoc_bypassDetect paths where SecOC protection is configured but not enforced: missing security trailer, static MAC, counter wrap acceptance and post-reset windows. payloads and timestamps: captured data; expected_length, mac_start/mac_end, freshness_start/freshness_end: optional layout hints. Read-only.| Parameter | Type | Description |
|---|---|---|
| expected_length | integer | |
| freshness_end | integer | |
| freshness_start | integer | |
| identifier | string | |
| mac_end | integer | |
| mac_start | integer | |
| payloads * | array | |
| timestamps * | array |
detect_secoc_layoutDetect the SecOC trailer layout (freshness value + MAC boundary) from statistical properties of captured payloads, without an ARXML. payloads: a list of hex-encoded payloads from one identifier. identifier: the CAN ID as hex (optional). Read-only.| Parameter | Type | Description |
|---|---|---|
| identifier | string | |
| payloads * | array |
detect_shared_secoc_keysDetect whether multiple SecOC-protected PDUs share the same MAC key by trying recovered keys across identifiers. per_id_payloads: {hex_id: [hex_payloads]}, per_id_mac_range: {hex_id: [start, end]}, per_id_freshness_range: {hex_id: [start, end]}. Read-only.| Parameter | Type | Description |
|---|---|---|
| per_id_freshness_range * | object | |
| per_id_mac_range * | object | |
| per_id_payloads * | object |
detect_timing_side_channelDetect timing side channels in key verification: statistically significant differences in key-verification time that correlate with individual key bytes. Reports whether the ECU key comparison appears to be constant-time. Requires many captured seed/key attempts. ecu_id: hex. Read-only.| Parameter | Type | Description |
|---|---|---|
| ecu_id * | string |
differential_analysisCompare two or more captures (e.g. locked vs. unlocked, engine off vs. on) to find which IDs, services and payloads changed, and whether changes correlate with authentication events. captures: a list of captures, each a list of {id: hex, data: hex, timestamp: float}. Read-only.| Parameter | Type | Description |
|---|---|---|
| captures * | array |
disclosure_reportBuild a responsible-disclosure document for an OEM PSIRT from the captured gateway findings: each weakness with its evidence, remediation and WP.29 R155 / ISO 21434 reference, most-severe first. It states only what the capture shows and names no exploit. vehicle/researcher/contact label the report; format is 'markdown' (default) or 'json'. Read-only.| Parameter | Type | Description |
|---|---|---|
| contact | string | |
| format | string | |
| researcher | string | |
| vehicle | string |
disconnectClose the current CAN bus.discover_unlock_chainsDiscover multi-session unlock chains: sequences where unlocking requires switching between sessions and security levels in a specific order. Read-only.dos_resilience_testTest the gateway under high diagnostic request rates: send bursts at increasing rates and measure response degradation, dropped frames and crash/recovery. request_id: hex; test_payload: hex (e.g. TesterPresent "3E00"). For authorised lab benches only.| Parameter | Type | Description |
|---|---|---|
| duration_per_rate | number | |
| extended | boolean | |
| rates_hz | array | |
| request_id * | string | |
| test_payload * | string |
enumerate_planGenerate a minimal sequence of UDS requests to enumerate every reachable service, DID and routine on each ECU, respecting session and security-level dependencies. Output is a step-by-step JSON script the agent can execute with the uds_request tool. Read-only.export_gateway_reportExport the full gateway report as structured JSON or CSV. format: "json" (default) or "csv". Read-only.| Parameter | Type | Description |
|---|---|---|
| format | string |
extract_fieldDecode a candidate field (a bit range with byte order, sign and scaling) over the recent frames without a database, to test a hypothesis: returns the value range, how often it changes, and a downsampled value series over time. start is the least significant bit (little_endian) or most significant bit (big_endian). Confirm a field here, then write it with promote_to_dbc(fields=[…]).| Parameter | Type | Description |
|---|---|---|
| byte_order | string | |
| extended | boolean | |
| identifier * | string | |
| length * | integer | |
| max_samples | integer | |
| offset | number | |
| scale | number | |
| signed | boolean | |
| start * | integer |
extract_unlock_sequenceExtract the exact authentication sequence (session change, seed/key exchange, timing) used for one ECU from captured traffic. ecu_id: the request ID as a hex string (e.g. "7E0"). Read-only.| Parameter | Type | Description |
|---|---|---|
| ecu_id * | string |
fingerprint_ecuBuild an NRC pattern and timing fingerprint for one ECU: the set of negative response codes it returns, response timing statistics and vendor hints where the NRC pattern matches a known ECU vendor stack. ecu_id: the request ID as a hex string (e.g. "7E0"). Read-only.| Parameter | Type | Description |
|---|---|---|
| ecu_id * | string |
flexray_analyze_logCheck a FlexRay log against the loaded cluster: missing, undescribed and wrong-length frames, static slot timing, dynamic slot order, channel A/B mismatches, and the bus health per channel (null and erroneous frames, sync frames per cycle, cycle counter jumps, cycle time) and its events.| Parameter | Type | Description |
|---|---|---|
| path * | string |
flexray_decodeDecode a FlexRay payload (hex) of a slot, cycle (0-63) and channel with the loaded cluster description: the frame and its PDUs' signal values. Sends nothing.| Parameter | Type | Description |
|---|---|---|
| channel | string | |
| cycle * | integer | |
| data * | string | |
| slot * | integer |
flexray_load_clusterLoad a FlexRay cluster description (FIBEX or AUTOSAR ARXML; `cluster` picks one of several) for the flexray_* tools: returns its timing parameters and frames (slot, cycles, channels, PDUs with offset, update bit and signals). FlexRay is read from files, separately from the CAN bus.| Parameter | Type | Description |
|---|---|---|
| cluster | string | |
| path * | string |
flexray_read_logThe FlexRay frames and events (symbols, controller states, errors) of a pcap/pcapng (LINKTYPE_FLEXRAY or IEEE 1722), Vector BLF or ASC file, optionally of one slot or channel (A/B), decoded into PDUs and signals with the loaded cluster (PDUs whose update bit is clear show "not updated").| Parameter | Type | Description |
|---|---|---|
| channel | string | |
| decode | boolean | |
| limit | integer | |
| path * | string | |
| slot | integer |
forgery_testSend frames with the authentic payload but random MAC bytes and check whether any are accepted. A properly implemented MAC should reject every forged frame. identifier and data are hex strings; mac_first and mac_last (inclusive) are the byte indices of the MAC to randomise. For authorised lab benches only.| Parameter | Type | Description |
|---|---|---|
| attempts | integer | |
| data * | string | |
| extended | boolean | |
| identifier * | string | |
| interval | number | |
| mac_first * | integer | |
| mac_last * | integer |
functional_bypass_testSend the same service request via physical and functional addressing and compare responses. Reports services that are filtered via physical but pass via functional. physical_id/functional_id: hex; service_requests: list of hex UDS payloads. For authorised lab benches only.| Parameter | Type | Description |
|---|---|---|
| extended | boolean | |
| functional_id * | string | |
| interval | number | |
| physical_id * | string | |
| service_requests * | array |
gateway_compliance_reportProduce a gateway compliance report with WP.29 R155 / ISO/SAE 21434 classifications, severity scoring and remediation recommendations for each finding. Read-only.gateway_findings_to_dbcGenerate a minimal DBC database naming the request and response message of each ECU discovered in the capture, with the services seen as comments — a scaffold to label unknown traffic in the signal views instead of re-deriving the topology. Read-only.| Parameter | Type | Description |
|---|---|---|
| database_name | string |
gateway_reportRun all gateway analyses (authentication, filtering, mapping, access matrix, unlock sequences) and produce a combined severity summary. Read-only.get_framesThe most recent frames, newest last, optionally of one identifier, decoded into signals with the database.| Parameter | Type | Description |
|---|---|---|
| decode | boolean | |
| extended | boolean | |
| identifier | string | |
| limit | integer |
identify_ecuBuild a full ECU identity card from captured traffic: standard UDS DIDs (F186 active session, F187 spare part, F188 diagnosis name, F189 serial, F190 VIN, F191 hardware version, F193 system supplier, F195 software version) correlated with the NRC fingerprint. ecu_id: the request ID as hex. Read-only.| Parameter | Type | Description |
|---|---|---|
| ecu_id * | string |
infer_filter_rulesInfer the gateway filter rules from captured UDS traffic: per-service allow/deny rules per ECU per session, DID-level and routine-level filtering, payload-length filtering and rate limiting. Read-only.infer_routing_tableInfer the gateway routing table from captures on two bus segments: which request IDs are forwarded, blocked or rewritten. Requires captures from both sides of the gateway as lists of {id: hex, data: hex, timestamp: float}. Read-only.| Parameter | Type | Description |
|---|---|---|
| external_captures * | array | |
| internal_captures * | array |
j1939_requestRequest a J1939 parameter group (PGN 59904) from one node (destination, hex address) or all (FF) and return the answers: the data, reassembled from BAM, RTS/CTS or ETP (the tool answers transport sessions to its source address), decoded for address claims (NAMEs), DM1/DM2 and identification text; or the acknowledgment (e.g. NACK) of a node that does not send the group. pgn: a number or a name such as "Address Claimed", "DM2", "Software Identification". A request to all nodes collects answers for `timeout` seconds. Requesting DM3 or DM11 clears trouble codes and needs the control tier.| Parameter | Type | Description |
|---|---|---|
| destination | string | |
| pgn * | string | |
| source | string | |
| timeout | number |
j1939_sendSend a J1939 parameter group (data in hex) from the source address: up to 8 bytes as one frame, more with the transport protocol: BAM to all nodes (destination FF, at most 1785 bytes), RTS/CTS to one node, or the extended transport protocol (ETP) to one node for more than 1785 bytes. Groups from PGN 0xF000 (PDU2) always go to all nodes.| Parameter | Type | Description |
|---|---|---|
| data * | string | |
| destination | string | |
| pgn * | string | |
| priority | integer | |
| source | string |
kwp_read_identificationReadECUIdentification (KWP2000 0x1A) with an identification option (hex); returns the raw bytes and their printable text.| Parameter | Type | Description |
|---|---|---|
| module | string | |
| option * | string | |
| request | string | |
| response | string | |
| session | string | |
| transport | string |
kwp_read_measuring_blockRead a measuring block ("group", KWP2000 0x21) of a VW-group module: each value's formula byte and data bytes a and b. The scaling is VW's own and not built in: `formulas` is the path of a JSON formula table or label file you supply (formula byte -> expression over a and b, unit; group -> value names); without one the values are raw.| Parameter | Type | Description |
|---|---|---|
| formulas | string | |
| group * | integer | |
| module | string | |
| request | string | |
| response | string | |
| session | string | |
| transport | string |
kwp_requestSend a raw KWP2000 request (hex, e.g. "21 01") and return the response and its description. Any service, so it may change the state of the ECU; also the way to the trouble-code services (0x18, 0x14), which have no structured tool.| Parameter | Type | Description |
|---|---|---|
| module | string | |
| payload * | string | |
| request | string | |
| response | string | |
| session | string | |
| transport | string |
kwp_scan_modulesFind the VW TP 2.0 modules on the bus: a channel setup to each logical address of `addresses` (hex ranges, e.g. "01-FF" or "01, 17"; about 0.1 s per silent address), closed again. With `identification` (a ReadECUIdentification option, hex; none is assumed) each module found is also asked for it after StartDiagnosticSession `session`. `labels` (a label file) names the modules: which address is which module is not built in.| Parameter | Type | Description |
|---|---|---|
| addresses | string | |
| identification | string | |
| labels | string | |
| session | string | |
| setup_timeout | number |
list_identifiersEvery identifier seen, with its direction, count, cycle time, last data and database name.| Parameter | Type | Description |
|---|---|---|
| limit | integer |
list_interfacesThe CAN interfaces python-can can detect on this machine.load_databaseLoad a signal database (DBC, ARXML, KCD, SYM or DBF) so frames are decoded into named signals.| Parameter | Type | Description |
|---|---|---|
| path * | string |
map_gatewayBuild a topology map of ECUs from captured UDS traffic: which ECUs are present, their response timing clusters (suggesting different internal buses), supported sessions and authentication types. Read-only: never sends anything on the bus.markMark the current moment (the newest frame's time) to line up with a physical action. Mark the same action a few times, then call reaction_at_markers to find what reacts.| Parameter | Type | Description |
|---|---|---|
| label | string |
obd_clearClear the OBD-II trouble codes and turn the MIL off (service 04).| Parameter | Type | Description |
|---|---|---|
| request | string | |
| response | string |
obd_dtcsThe stored (service 03) or pending (service 07) OBD-II trouble codes, decoded to P/C/B/U codes.| Parameter | Type | Description |
|---|---|---|
| pending | boolean | |
| request | string | |
| response | string |
obd_readRead and decode OBD-II live values (service 01), e.g. pids [12, 13] for engine and vehicle speed.| Parameter | Type | Description |
|---|---|---|
| pids * | array | |
| request | string | |
| response | string |
obd_statusThe MIL ("check engine") state and the number of stored OBD-II trouble codes.| Parameter | Type | Description |
|---|---|---|
| request | string | |
| response | string |
obd_supportedThe OBD-II service-01 PIDs the ECU supports, of those this tool can decode.| Parameter | Type | Description |
|---|---|---|
| request | string | |
| response | string |
obd_vinThe vehicle identification number (OBD service 09 PID 02).| Parameter | Type | Description |
|---|---|---|
| request | string | |
| response | string |
oem_token_providersList the registered OEM right-to-repair token providers: the legitimate path to diagnostic access through a vehicle security gateway (the shop obtains a short-lived token from the OEM portal rather than circumventing the gateway). Returns each provider name and OEM; no secrets. Read-only.plan_probingSuggest which UDS services to try next to maximize attack-surface coverage, based on the access matrix. Prioritises services that returned conditionsNotCorrect, functional addressing bypasses and write/control services at lower security levels. priority: "coverage" (default) or "depth". Read-only.| Parameter | Type | Description |
|---|---|---|
| priority | string |
predict_freshnessPredict the freshness counter value at a future time and the counter wrap time. payloads and timestamps: captured data; freshness_start/freshness_end: byte indices (end exclusive); prediction_time: seconds from last observation. Read-only.| Parameter | Type | Description |
|---|---|---|
| freshness_end * | integer | |
| freshness_start * | integer | |
| identifier | string | |
| payloads * | array | |
| prediction_time | number | |
| timestamps * | array |
preview_probe_planPreview how a probing plan would run on an authorised bench: a dry run that transmits nothing and shows the steps and which state-changing services would be skipped. plan is 'enumerate', 'brute' or 'scan'. The live run that sends frames is driven from the GUI with per-step confirmation, not from MCP. Read-only.| Parameter | Type | Description |
|---|---|---|
| plan | string |
promote_to_dbcWrite signals to a DBC at `path`, creating their messages (an existing database is extended, not overwritten). Without `fields`, the fields the analysis finds (of one identifier, or all) are written. With `fields`, exactly the given specs are written — a hypothesis you confirmed with extract_field: each is {identifier, start, length, byte_order?, signed?, scale?, offset?, name?, unit?, comment?, extended?}.| Parameter | Type | Description |
|---|---|---|
| extended | boolean | |
| fields | array | |
| identifier | string | |
| include_constant | boolean | |
| min_confidence | number | |
| path * | string |
query_obdRequest one OBD-II value (service 01, e.g. pid 13 for vehicle speed, 12 for engine speed) with a single-frame request and return the ECU's decoded answer.| Parameter | Type | Description |
|---|---|---|
| pid * | integer | |
| timeout | number |
reaction_at_markersThe fields that change around the moments set with mark() — most specific first — with how many markers each hits and its background change rate, to tell a real reaction from coincidence. Passive — reads only.| Parameter | Type | Description |
|---|---|---|
| after | number | |
| before | number | |
| top | integer |
related_signalsGroups of fields that carry the same signal across the bus (the same quantity rebroadcast, or a scaled or lagged copy), found without a database.| Parameter | Type | Description |
|---|---|---|
| min_correlation | number | |
| top | integer |
replay_testReplay a captured CAN frame on the bus and check whether the ECU acts on it. A frame protected by a freshness counter should be rejected after a short time (the counter will be stale). identifier and data are hex strings. For authorised lab benches only.| Parameter | Type | Description |
|---|---|---|
| count | integer | |
| data * | string | |
| extended | boolean | |
| identifier * | string | |
| interval | number |
replay_windowCompute the replay window: the time range during which a captured SecOC-protected frame can be successfully replayed (counter matches the receiver expected value). payloads and timestamps: captured data; freshness_start/freshness_end: byte indices (end exclusive). Read-only.| Parameter | Type | Description |
|---|---|---|
| freshness_end * | integer | |
| freshness_start * | integer | |
| identifier | string | |
| payloads * | array | |
| timestamps * | array |
request_oem_tokenRequest a diagnostic access token for a vehicle from an OEM right-to-repair portal through a registered provider. provider: the provider name (see oem_token_providers). credentials: the key store entry holding the shop login (the store must be unlocked). vin/make: the vehicle. Returns the token metadata only; the secret value is never returned. 'gateway_unlock' reports whether the provider knows how to present the token to that OEM's gateway.| Parameter | Type | Description |
|---|---|---|
| credentials * | string | |
| make | string | |
| provider * | string | |
| vin | string |
reset_bypass_testSend ECUReset (0x11) and attempt locked services during boot-up window. Measures the window duration and which services are accessible. request_id: hex; target_services: list of hex UDS payloads. For authorised lab benches only.| Parameter | Type | Description |
|---|---|---|
| attempts | integer | |
| extended | boolean | |
| max_window_ms | number | |
| probe_interval_ms | number | |
| request_id * | string | |
| reset_type | integer | |
| target_services * | array |
scan_plan_non_standardGenerate a plan to scan non-standard diagnostic ID ranges (outside the ISO 14229 0x700-0x7FF range) for hidden diagnostic responders, including extended IDs. Planning only. Read-only.secoc_statusThe AUTOSAR SecOC secured PDUs of the loaded ARXML database and the outcome of their live checks: per PDU its Data ID, trailer lengths, the key store entry verifying it (never the key) or why it is not checked, and counts of frames verified ok, MAC errors and freshness (replay) errors, with the last result.send_frameSend a single CAN frame with the given identifier and payload (hex).| Parameter | Type | Description |
|---|---|---|
| data * | string | |
| extended | boolean | |
| fd | boolean | |
| identifier * | string |
send_messageEncode a database message by name from its signal values (e.g. {"EngineSpeed": 2500}) and send it.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| signals | object |
session_race_testTest for race conditions between session transitions and security enforcement: switch to extended session and immediately send a locked service with varying delays. Reports the timing window (if any) during which the service succeeds. request_id: hex; target_service: hex UDS payload. For authorised lab benches only.| Parameter | Type | Description |
|---|---|---|
| attempts | integer | |
| extended | boolean | |
| max_delay_ms | number | |
| min_delay_ms | number | |
| request_id * | string | |
| target_service * | string |
timingThe inter-frame timing of each identifier (or one): mean cycle time, jitter, and whether it is periodic or event-triggered. Spots gateways, bursts and event messages. With series=true, each row also carries a downsampled intervals_ms series of the inter-frame gaps over time.| Parameter | Type | Description |
|---|---|---|
| extended | boolean | |
| identifier | string | |
| series | boolean |
try_secoc_key_recoveryTry to recover the SecOC MAC key using common/weak keys and known-plaintext analysis. Tests all-zero, all-one and other common keys, Data-ID-derived keys, and ECU-serial-derived keys against observed truncated MACs. payloads: hex; mac_start/mac_end, freshness_start/freshness_end: byte indices (end exclusive). Read-only.| Parameter | Type | Description |
|---|---|---|
| data_id | integer | |
| ecu_serial_hex | string | |
| freshness_end * | integer | |
| freshness_start * | integer | |
| identifier | string | |
| mac_end * | integer | |
| mac_start * | integer | |
| payloads * | array |
uds_authenticateAuthenticate on an ECU with service 0x29 (ISO 14229-1:2020). method: "certificate" (certificate exchange; credentials = a client certificate entry of the key store or "profile:<name>"), "challenge-response" (credentials = a shared authentication key, a client certificate entry or "profile:<name>"; algorithm = the algorithmIndicator in hex or as a dotted OID; additional = hex) or "configuration" (only asks which authentication the ECU offers). bidirectional also checks the ECU, against the trusted-certificates entry `trusted` if given. A session key asked for with communication_configuration is kept for uds_secured_request(key="session"). Returns the steps, and the certificate's private extensions (where an ECU may read the tester's role and white lists). The key store is unlocked with CANEXPLORER_KEYSTORE_PASSWORD.| Parameter | Type | Description |
|---|---|---|
| additional | string | |
| algorithm | string | |
| bidirectional | boolean | |
| communication_configuration | integer | |
| credentials | string | |
| method | string | |
| request | string | |
| response | string | |
| scheme | string | |
| trusted | string |
uds_deauthenticateEnd the authentication on an ECU (0x29 deAuthenticate) and forget its session key.| Parameter | Type | Description |
|---|---|---|
| request | string | |
| response | string |
uds_dtc_detailsRead the snapshot (freeze frame) and extended data records of one DTC (service 0x19 0x04 and 0x06), e.g. dtc "012345". Records whose lengths are unknown are returned undecoded.| Parameter | Type | Description |
|---|---|---|
| dtc * | string | |
| request | string | |
| response | string |
uds_find_ecusSend a functional TesterPresent (0x7DF, or 0x18DB33F1 with extended=true) and list the response identifiers of the ECUs that answer.| Parameter | Type | Description |
|---|---|---|
| extended | boolean | |
| timeout | number |
uds_read_didRead a UDS data identifier (service 0x22), e.g. did "F190" for the VIN.| Parameter | Type | Description |
|---|---|---|
| did * | string | |
| request | string | |
| response | string |
uds_read_dtcsRead UDS trouble codes (service 0x19 reportDTCByStatusMask).| Parameter | Type | Description |
|---|---|---|
| request | string | |
| response | string | |
| status_mask | integer |
uds_requestSend a raw UDS request (hex, e.g. "22 F1 90") and return the response. Any service, so it may change the state of the ECU.| Parameter | Type | Description |
|---|---|---|
| payload * | string | |
| request | string | |
| response | string |
uds_resetReset an ECU (service 0x11; 1 = hard reset).| Parameter | Type | Description |
|---|---|---|
| request | string | |
| reset_type | integer | |
| response | string |
uds_routineRoutine control (service 0x31; control_type 1 = start, 2 = stop, 3 = request results).| Parameter | Type | Description |
|---|---|---|
| control_type * | integer | |
| data | string | |
| request | string | |
| response | string | |
| routine * | string |
uds_secured_requestSend a UDS request (hex, e.g. "22 F1 90") inside a SecuredDataTransmission (0x84) envelope (ISO 14229-1:2020) and return the unwrapped response, with both envelopes, the anti-replay counters and whether the response signature verified. key: a secured data key of the key store (CANExplorer's reference scheme, a MAC over the message; signature_length truncates it) or a Python provider file with the manufacturer's scheme; 'session' uses the session key of the last uds_authenticate on this request id; empty sends it unsigned. The counter continues per request id unless given. The algorithms behind the algorithm byte are manufacturer specific.| Parameter | Type | Description |
|---|---|---|
| algorithm | integer | |
| counter | integer | |
| encrypt | boolean | |
| key | string | |
| payload * | string | |
| request | string | |
| response | string | |
| sign | boolean | |
| signature_length | integer | |
| signed_response | boolean |
uds_transmit_certificateSend a general-purpose certificate to an ECU (0x29 transmitCertificate): a certificate entry of the key store or a PEM/DER file, for a 16-bit certificate evaluation id (manufacturer specific: what the certificate is for, e.g. secure coding, SecOC or TLS).| Parameter | Type | Description |
|---|---|---|
| certificate * | string | |
| evaluation_id * | string | |
| request | string | |
| response | string |
unload_databaseForget the loaded database, so frames are shown as raw bytes again.xcp_connectConnect to an ECU's XCP slave (transport CAN, "CAN FD", UDP or TCP with host/port) or CCP slave (CAN, station address, byte order), and keep the session for the other xcp_* tools. request/response: the CAN identifiers (hex). key: a seed & key algorithm (Python file, "keystore:<entry>" or "profile:<name>") used when a command needs a locked resource. a2l: the ECU description; the answer says whether it matches the ECU (EPK).| Parameter | Type | Description |
|---|---|---|
| a2l | string | |
| byte_order | string | |
| extended | boolean | |
| host | string | |
| key | string | |
| port | integer | |
| protocol | string | |
| request | string | |
| response | string | |
| station | string | |
| transport | string |
xcp_daq_infoThe XCP slave's DAQ configuration: dynamic or static, its DAQ lists (direction, size, fixed event) and what its predefined lists carry (from the A2L, or read with READ_DAQ), its events, and whether it offers STIM. Reads only.xcp_flash_infoWhether the XCP slave offers flash programming (PGM), whether it is locked, its PGM properties (absolute/functional erasing, compression and encryption supported or required) and its flash sectors. Reads only.xcp_list_variablesThe measurements, characteristics (values, curves, maps, blocks, strings) and axes of an A2L file: name, kind, address, type, unit, limits, verbal values, and why one cannot be read. a2l loads the file (kept for the other xcp_* tools); pattern filters by name (glob or substring), kind by kind (MEASUREMENT, VALUE, CURVE, MAP, VAL_BLK, ASCII, AXIS_PTS). Sends nothing.| Parameter | Type | Description |
|---|---|---|
| a2l | string | |
| kind | string | |
| limit | integer | |
| pattern | string |
xcp_measureMeasure A2L measurements for a duration (seconds, at most 30) — by DAQ on an event channel (default the first A2L event) when the ECU supports it, else by polling — and return per measurement the number of samples, min, max, mean and last value. Configures DAQ lists in the ECU (measurement only, no calibration change).| Parameter | Type | Description |
|---|---|---|
| duration | number | |
| event | integer | |
| names * | array |
xcp_programReplace software in the ECU: program an Intel HEX, S-record or binary file (path; base_address hex for a binary) into its flash over XCP PGM, then check it and reset the ECU. erase: "sectors" (every sector the file touches, default), "segments" (the file ranges), "functional" (clear_areas bit mask: 1 calibration, 2 code, 4 NVRAM) or "none". verify compares BUILD_CHECKSUM with the file; ecu_check "internal" or "value" (check_type, check_value hex) sends PROGRAM_VERIFY. kernel: a flash kernel file downloaded first. compression/encryption: the manufacturer method codes (PROGRAM_FORMAT) the file was prepared with, or that encoder (a Python file defining encode(data, address)) applies. program_max sends full packets as PROGRAM_MAX. reset ends the session. A wrong file can leave the ECU unable to start: only program a file meant for this ECU, and only when the user asked for it.| Parameter | Type | Description |
|---|---|---|
| base_address | string | |
| check_type | integer | |
| check_value | string | |
| clear_areas | integer | |
| compression | integer | |
| ecu_check | string | |
| encoder | string | |
| encryption | integer | |
| erase | string | |
| kernel | string | |
| path * | string | |
| program_max | boolean | |
| reset | boolean | |
| verify | boolean |
xcp_readRead A2L variables by name over XCP/CCP and convert them to physical values: scalars, arrays, value blocks, strings, curves and maps (values[y][x]) with their axis points.| Parameter | Type | Description |
|---|---|---|
| names * | array |
xcp_read_memoryRead 1 to 4096 bytes of the ECU's memory at a hex address (with an address extension) over XCP/CCP.| Parameter | Type | Description |
|---|---|---|
| address * | string | |
| extension | integer | |
| size * | integer |
xcp_statusThe XCP/CCP session: protocol, byte order, address granularity, packet sizes, locked resources, and the EPK check of the loaded A2L.xcp_stimulateWrite scalar A2L calibration values by XCP STIM: the ECU writes them at an event channel (default the first A2L event) for duration seconds (at most 30), then STIM stops and the values are read back. values maps names to numbers or verbal values; values outside the A2L limits are refused. Reports STIM timeouts the ECU signalled. Changes the running ECU immediately.| Parameter | Type | Description |
|---|---|---|
| duration | number | |
| event | integer | |
| values * | object |
xcp_writeWrite an A2L characteristic over XCP/CCP and read it back: value is a number, a verbal value, a list (curves, blocks, axis points), a list of rows (maps, values[y][x]) or a string (ASCII); axes optionally rewrites the points of standard axes. Values outside the A2L limits are refused. Changes the running ECU immediately.| Parameter | Type | Description |
|---|---|---|
| axes | array | |
| name * | string | |
| value * | any |
xcp_write_memoryWrite raw bytes (hex) to the ECU's memory at a hex address over XCP/CCP. Changes the running ECU immediately; prefer xcp_write, which checks the A2L limits.| Parameter | Type | Description |
|---|---|---|
| address * | string | |
| data * | string | |
| extension | integer |
Security checks
- ✓README presentThe repository's README runs to about 2.6K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 218 source files and found 4 calls to eval or shell execution, in can_explorer/core/reverse/console.py, can_explorer/core/uds.py and can_explorer/scripting/runtime.py among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.6K words, fetched 12 days ago. The original in the repository is authoritative.
Read full README