Merge remote-tracking branch 'origin/master' into stable
[tails.git] / features / mac_spoofing.feature
blobd2458a9f734074aa9c4a6c7f563c26bb594ec7e6
1 @product
2 Feature: Spoofing MAC addresses
3   In order to not reveal information about the physical location
4   As a Tails user
5   I want to be able to control whether my network devices MAC addresses should be spoofed
6   And I want this feature to fail safe and notify me in case of errors
8   Scenario: MAC address spoofing is disabled
9     Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
10     And I capture all network traffic
11     When I disable MAC spoofing in Tails Greeter
12     And I log in to a new session
13     And the network is plugged
14     And Tor is ready
15     Then 1 network interface is enabled
16     And the 1st network device has its real MAC address configured
17     When I hotplug a network device and wait for it to be initialized
18     Then 2 network interfaces are enabled
19     And the 2nd network device has its real MAC address configured
20     And some network device leaked the real MAC address
22   Scenario: MAC address spoofing is successful
23     Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
24     And I capture all network traffic
25     When I log in to a new session
26     And the network is plugged
27     And Tor is ready
28     Then 1 network interface is enabled
29     And the 1st network device has a spoofed MAC address configured
30     When I hotplug a network device and wait for it to be initialized
31     Then 2 network interfaces are enabled
32     And the 2nd network device has a spoofed MAC address configured
33     And no network device leaked the real MAC address
35   Scenario: MAC address spoofing fails and macchanger returns false
36     Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
37     And I capture all network traffic
38     And the network is plugged
39     And macchanger will fail by not spoofing and always returns false
40     When I log in to a new session
41     Then no network interfaces are enabled
42     And no network device leaked the real MAC address
43     And I see the "Network card eth0 disabled" notification after at most 60 seconds
45   Scenario: MAC address spoofing fails and macchanger returns true
46     Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
47     And I capture all network traffic
48     And the network is plugged
49     And macchanger will fail by not spoofing and always returns true
50     When I log in to a new session
51     Then no network interfaces are enabled
52     And no network device leaked the real MAC address
53     And I see the "Network card eth0 disabled" notification after at most 60 seconds
55   Scenario: MAC address spoofing fails and the module is not removed
56     Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
57     And I capture all network traffic
58     And the network is plugged
59     And macchanger will fail by not spoofing and always returns true
60     And no network interface modules can be unloaded
61     When I log in to a new session
62     Then 1 network interface is enabled
63     But the MAC spoofing panic mode disabled networking
64     And no network device leaked the real MAC address
65     And I see the "All networking disabled" notification after at most 60 seconds
67   Scenario: The MAC address is not leaked when booting Tails
68     Given a computer
69     And I capture all network traffic
70     When I start the computer
71     Then the computer boots Tails
72     And no network interfaces are enabled
73     And no network device leaked the real MAC address