Skip to content

MAC addresses are still exposed through network interface naming #198

@anon-123456789

Description

@anon-123456789

When I upload a device probe, the raw MAC addresses of network interfaces on my system are (supposed to be) redacted. However, it seems to miss the device names, which can contain device MAC addresses in some cases.

This probably has to do with how systemd/udev handles "predictable" network interface naming: https://systemd.io/PREDICTABLE_INTERFACE_NAMES/

Example (my own computer): https://linux-hardware.org/?probe=e92f702c09&log=ip_addr

Redacted version (collapsible)
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback XXX brd XXX
    inet XXX scope host lo
       valid_lft forever preferred_lft forever
    inet6 XXX scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether XXX brd XXX
    altname wlxa483e7904326
    inet XXX brd XXX scope global dynamic noprefixroute wlp2s0
       valid_lft 5287sec preferred_lft 5287sec
    inet6 XXX scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: enp1s0f1u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether XXX brd XXX
    altname enxacde48001122
Full version (collapsible)
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether a4:83:e7:90:43:26 brd ff:ff:ff:ff:ff:ff
    altname wlxa483e7904326
    inet 192.168.1.70/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp2s0
       valid_lft 4052sec preferred_lft 4052sec
    inet6 fe80::304a:ff74:35c0:6cdc/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
3: enp1s0f1u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether ac:de:48:00:11:22 brd ff:ff:ff:ff:ff:ff
    altname enxacde48001122

Note how the redacted version still contains the MAC address for wlp2s0 under the altname field, as wlxa483e7904326, with the actual MAC address being a4:83:e7:90:43:26. This is the same case for enp1s0f1u1 as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions