summaryrefslogtreecommitdiffstats
path: root/features/mac_spoofing.feature
blob: c4ebdc9162e719de538123e56b5113ccd59bc824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@product
Feature: Spoofing MAC addresses
  In order to not reveal information about the physical location
  As a Tails user
  I want to be able to control whether my network devices MAC addresses should be spoofed
  And I want this feature to fail safe

  Background:
    Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
    And I capture all network traffic
    And the network is plugged

  Scenario: MAC address spoofing is disabled
    When I disable MAC spoofing in Tails Greeter
    And I log in to a new session
    And Tor is ready
    Then 1 network interface is enabled
    And the 1st network device has its real MAC address configured
    When I hotplug a network device and wait for it to be initialized
    Then 2 network interfaces are enabled
    And the 2nd network device has its real MAC address configured
    And some network device leaked the real MAC address

  Scenario: MAC address spoofing is successful
    When I log in to a new session
    And Tor is ready
    Then 1 network interface is enabled
    And the 1st network device has a spoofed MAC address configured
    When I hotplug a network device and wait for it to be initialized
    Then 2 network interfaces are enabled
    And the 2nd network device has a spoofed MAC address configured
    And no network device leaked the real MAC address

  Scenario: MAC address spoofing fails and macchanger returns false
    Given macchanger will fail by not spoofing and always returns false
    When I log in to a new session
    Then no network interfaces are enabled
    And no network device leaked the real MAC address

  Scenario: MAC address spoofing fails and macchanger returns true
    Given macchanger will fail by not spoofing and always returns true
    When I log in to a new session
    Then no network interfaces are enabled
    And no network device leaked the real MAC address

  Scenario: MAC address spoofing fails and the module is not removed
    Given macchanger will fail by not spoofing and always returns true
    And no network interface modules can be unloaded
    When I log in to a new session
    Then 1 network interface is enabled
    But the MAC spoofing panic mode disabled networking
    And no network device leaked the real MAC address

  Scenario: The MAC address is not leaked when booting Tails
    Given a computer
    And I capture all network traffic
    When I start the computer
    Then the computer boots Tails
    And no network interfaces are enabled
    And no network device leaked the real MAC address