# Automotive Ethernet Someip Security

> Use when assessing SOME/IP, DoIP, and time-sensitive networking on an automotive Ethernet setup you own or are authorized to test. Covers service discovery exposure, SOME/IP method and event abuse, DoIP diagnostic gateway review, VLAN and TSN segmentation checks, and SecOC-style authentication gaps on Ethernet services. Also use when an Ethernet backbone needs its service-level attack surface mapped before deeper testing.

- Skill: `mizazhaider-ceh/automotive-ethernet-someip-security` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/automotive-ethernet-someip-security`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/automotive-ethernet-someip-security/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/automotive-ethernet-someip-security

---


Automotive Ethernet moves the vehicle from broadcast buses to
switched, service-oriented networking, and the attack surface moves
with it. SOME/IP service discovery announces what services exist,
DoIP opens a diagnostic path into ECUs, and misconfigured VLANs or
TSN schedules can let one domain reach another. This sub-skill
covers the service layer of automotive-ethernet on a bench rig or
your own parked vehicle, with authorization, and with safety limits
that keep testing off moving vehicles.

## Quick Workflow

1. Map the Ethernet topology on the bench, switches, VLANs, and
   which ECUs sit on each segment.
2. Capture service discovery traffic and inventory every offered
   service, instance, and method.
3. Probe each service only as far as authorization allows, checking
   authentication, authorization, and input handling.
4. Review the DoIP gateway, routing activation, and which diagnostic
   targets it exposes.
5. Check segmentation, whether a host on one VLAN can reach services
   on another, and whether TSN traffic classes are enforced.
6. Look for missing message authentication on safety-relevant
   services, and note where SecOC or TLS would be expected.
7. Test robustness with malformed service discovery and method
   calls on the bench only, watching for crashes or hangs.
8. Report each exposed service with its prerequisites and the
   segmentation boundary it crosses, if any.

## 1. Inventory services from SOME/IP service discovery

SOME/IP-SD uses multicast announcements, so a passive capture on the
bench usually reveals the whole service catalogue without sending
anything. Record service IDs, instance IDs, and event groups before
any active probing.

```bash
# Capture SOME/IP-SD multicast on the bench Ethernet interface
sudo tcpdump -i eth0 -w someip_sd.pcap udp port 30490
# Inspect the capture in Wireshark with the SOME/IP dissector
tshark -r someip_sd.pcap -Y someip -T fields \
  -e someip.serviceid -e someip.instanceid -e someip.methodid | sort -u
```

```python
# Parse a service inventory from a capture summary into a table
# Input: one line per observed service, "service_id instance_id"
services = set()
for line in open("someip_services.txt"):
    parts = line.split()
    if len(parts) >= 2:
        services.add((parts[0], parts[1]))
for service_id, instance_id in sorted(services):
    print(f"service {service_id} instance {instance_id}")
```

## 2. Probe a SOME/IP service safely on the bench

Active probing starts with the least privileged call available, and
stops at the boundary authorization sets. Check whether a method
that should require authentication answers an anonymous caller, and
whether event subscriptions can be made without any check.

```python
# Probe checklist, run as a script against one bench service at a time
# 1. Does service discovery list the service without authentication?
# 2. Does an anonymous method call return data or an error?
# 3. Does an anonymous event subscription succeed?
# 4. Does the service accept oversized or malformed payloads?
# Record the raw response for each step, never just a pass or fail.
probe_steps = [
    "sd_announcement_visible",
    "anonymous_method_call",
    "anonymous_event_subscribe",
    "malformed_payload",
]
for step in probe_steps:
    print(f"probe step: {step} - record response before moving on")
```

```bash
# Scan the bench segment for open diagnostic and service ports
# Restrict the scan to the bench subnet you own.
sudo nmap -sV -p 13400,30490,30501,30502 192.168.10.0/24
# Port 13400 is the DoIP default, 30490 is SOME/IP-SD multicast.
```

## 3. Review the DoIP diagnostic gateway

DoIP is the Ethernet front door to diagnostics, so its routing
activation rules decide what an unauthenticated network neighbour
can reach. Check whether routing activation requires authentication,
which ECUs are addressable, and whether diagnostic sessions stay
open without activity.

```bash
# Capture a DoIP session on the bench and list its phases
sudo tcpdump -i eth0 -w doip.pcap tcp port 13400
tshark -r doip.pcap -Y doip -T fields \
  -e doip.payload_type -e doip.source_address -e doip.target_address | sort | uniq -c
```

```python
# DoIP review checklist, answered from the capture and the gateway docs
checks = {
    "routing_activation_requires_auth": "yes, no, or unknown",
    "source_address_validation": "yes, no, or unknown",
    "idle_session_timeout_present": "yes, no, or unknown",
    "diagnostic_targets_exposed": "list of logical addresses",
    "tls_on_doip": "yes, no, or unknown",
}
for question, answer in checks.items():
    print(f"{question}: {answer}")
```

## 4. Segmentation and TSN checks

VLAN separation and TSN traffic shaping only help if the switch
enforces them. Test from a bench host on one VLAN whether service
discovery or method calls on another VLAN answer, and whether
best-effort traffic can starve a scheduled traffic class.

```bash
# From a bench host on the infotainment VLAN, test reachability
# to a service on the powertrain VLAN. Any answer is a finding.
ping -c 3 192.168.20.10
# Attempt a TCP connection to the DoIP port across the VLAN boundary
timeout 5 bash -c 'cat < /dev/null > /dev/tcp/192.168.20.10/13400' \
  && echo "REACHABLE" || echo "BLOCKED"
```

## Edge cases

- Switched traffic hides peers: unlike CAN, Ethernet is not
  broadcast by default, so a passive tap on one switch port sees
  only its own traffic, and a mirror port or bench switch tap is
  needed for a full inventory.
- SOME/IP-SD TTL expiry: services re-announce on a timer, so a
  short capture can miss services that announce rarely, and the
  capture window must cover several announcement cycles.
- DoIP vehicle discovery uses broadcast, so a bench with several
  vehicles or rigs can mix announcements, and each vehicle
  identification response must be matched to its source address.
- VLAN tagging on the bench: a misconfigured bench switch can strip
  tags and merge segments, producing false segmentation findings
  that are bench artefacts, not vehicle findings.
- TSN schedules are time sensitive, so a loaded bench host can
  distort timing measurements, and timing tests need an idle,
  well-synchronised capture host.
- SecOC over Ethernet: where message authentication exists, a
  missing or stale freshness value can break legitimate traffic,
  so authentication findings must distinguish absent protection
  from misconfigured protection.

## Key references

- AUTOSAR SOME/IP protocol specification, for service discovery,
  method, event, and field semantics used throughout this skill.
- ISO 13400, diagnostics over Internet Protocol (DoIP), for routing
  activation, vehicle discovery, and diagnostic message transport.
- IEEE 802.1Q and the IEEE 802.1 TSN standards family, for VLAN
  segmentation and time-sensitive traffic classes on the vehicle
  backbone.
- ISO 21434, road vehicles cybersecurity engineering, for the threat
  analysis that ranks which exposed services matter most.
- The parent skill automotive-ethernet, for physical layer setup,
  switch configuration, and baseline capture on the bench.

