Router, control program, terminal device, and communication system
The router system addresses the issue of unauthorized port openings by monitoring packets, notifying users of potential risks, and requiring consent before changing settings, thus preventing unintended network access.
Patent Information
- Application Number
- JP2023110646
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2039-10-28
AI Technical Summary
Conventional UPnP protocols allow users to unintentionally open unauthorized ports, enabling unauthorized access to internal networks from wide area networks, posing a security risk.
A router with a monitoring section that checks incoming packets against predetermined conditions, notifies users of potential security risks, and requires user consent before changing settings, using a control unit to implement these changes.
Prevents unintentional port openings by ensuring user consent is obtained before altering router settings, thereby enhancing network security.
Smart Images

Figure 0007541262000025 
Figure 0007541262000017 
Figure 0007541262000020
Abstract
Description
[Technical field]
[0001] The present invention relates to a router, a control program, a terminal device, and a communication system. [Background technology]
[0002] Conventionally, UPnP (Universal Plug and Play) is known as one of the protocols that enables a device to participate in a computer network simply by connecting it. Also, a server that manages address information for a server under a router with a port forwarding function and enables access from the wide area network side is known (Patent Document 1 below). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2004-266320 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, if the above-mentioned conventional technology is misused, it is possible for a user to open an unauthorized port on the router unintentionally, thereby making it possible to intrude into the internal network from the wide area network side.
[0005] The present invention has been made in consideration of the above circumstances, and has an object to prevent a port from being opened unintentionally by a user. [Means for solving the problem]
[0006] The router of the present invention is a router that relays communications between a wide area network and a local area network based on settings, and is equipped with a monitoring unit that monitors received packets, and a control unit that, when the monitoring results by the monitoring unit satisfy predetermined conditions, notifies a user, accepts consent information to the effect that the user has agreed to the change to the settings, and changes the settings in accordance with the result of the acceptance of the consent information.
[0007] The router control program of the present invention causes a computer to function as the monitoring section and the control section of the router.
[0008] The terminal device of the present invention is a terminal device capable of communicating with a router that relays communications between a wide area network and a local area network, and is equipped with a notification unit that notifies a user when the results of monitoring of received packets by the router satisfy predetermined conditions, a reception unit that receives an operation from the user to the effect that the user agrees to the change to the settings of the router after the notification by the notification unit, and a control unit that causes the router to execute the change to the settings in accordance with the result of the reception by the reception unit.
[0009] The control program for a terminal device of the present invention is for causing a computer to function as the reception section and the control section of the terminal device.
[0010] A communication system of the present invention includes the router and the terminal device. Effect of the Invention
[0011] According to the present invention, it is possible to provide a router, a control program, a terminal device, and a communication system that are capable of preventing a port from being opened unintentionally by a user. [Brief description of the drawings]
[0012] [Figure 1] 1 is a diagram showing a schematic configuration of a communication system 10 according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of the configuration of a router 11. [Diagram 3] FIG. 2 is a diagram illustrating an example of the configuration of a terminal device 12. [Figure 4] 11 is a flowchart showing an example of a monitoring control process by the router 11 of the first embodiment. [Diagram 5] 13 is a flowchart showing an example of an approval confirmation process by the terminal device 12 of the first embodiment. [Figure 6] 11 is a flowchart showing an example of a list management process by the router 11 of the first embodiment. [Figure 7] 4 is a sequence diagram showing a first operation example in the communication system 10 according to the first embodiment. FIG. [Figure 8] FIG. 11 is a sequence diagram showing a second operation example in the communication system 10 according to the first embodiment. [Figure 9] FIG. 11 is a sequence diagram showing an operation example 3 in the communication system 10 according to the first embodiment. [Figure 10] FIG. 11 is a diagram showing an example of a display on the terminal device 12 in response to a push notification from the router 11 in the first embodiment. [Figure 11] 13 is a flowchart showing an example of a monitoring control process by the router 11 of the second embodiment. [Figure 12] 13 is a flowchart showing an example of an approval confirmation process by the terminal device 12 of the second embodiment. [Figure 13] 13 is a flowchart showing an example of a list management process by the router 11 of the second embodiment. [Figure 14] FIG. 11 is a sequence diagram showing a first operation example in the communication system 10 according to the second embodiment. [Figure 15] FIG. 11 is a sequence diagram showing a second operation example in the communication system 10 according to the second embodiment. [Figure 16] FIG. 11 is a sequence diagram showing an operation example 3 in the communication system 10 according to the second embodiment. [Figure 17] FIG. 11 is a diagram illustrating an example of a display on the terminal device 12 in response to a push notification from the router 11 in the second embodiment. [Figure 18]13 is a flowchart showing an example of a monitoring control process by the router 11 of the third embodiment. [Figure 19] 13 is a flowchart showing an example of an approval confirmation process by the terminal device 12 of the third embodiment. [Figure 20] 13 is a flowchart illustrating an example of a port opening stop process performed by the router 11 of the third embodiment. [Figure 21] FIG. 11 is a sequence diagram showing an example of an operation in the communication system 10 of the third embodiment. [Figure 22] FIG. 11 is a diagram showing an example of a display on the terminal device 12 in response to a push notification from the router 11 in the third embodiment. [Figure 23] 13 is a flowchart showing an example of an access block process by the router 11 of the fourth embodiment. [Figure 24] 13 is a flowchart showing an example of an approval confirmation process by the terminal device 12 of the fourth embodiment. [Diagram 25] 13 is a flowchart showing an example of a source registration process by the router 11 of the fourth embodiment. [Figure 26] FIG. 13 is a sequence diagram showing a first operation example in the communication system 10 according to the fourth embodiment. [Figure 27] FIG. 13 is a sequence diagram showing a second operation example in the communication system 10 according to the fourth embodiment. [Figure 28] FIG. 13 is a diagram showing an example of a display on the terminal device 12 in response to a push notification from the router 11 in the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0014] (Schematic configuration of a communication system 10 according to an embodiment of the present invention) 1 is a diagram showing a schematic configuration of a communication system 10 according to an embodiment of the present invention. The communication system 10 includes a router 11, a terminal device 12, devices 13 and 14, and a server 15.
[0015] The router 11 is connected to a WAN (Wide Area Network) 18. The router 11 also forms a LAN (Local Area Network) 19. The LAN 19 may be a LAN using wired communication, or a wireless LAN using wireless communication. The router 11 relays communication between the WAN 18 and the LAN 19 based on its own settings.
[0016] The router 11 also has a UPnP function. UPnP is a function that opens a port in response to a request packet received from the devices 13 and 14 connected to the LAN 19. The UPnP function in the router 11 includes, for example, a function related to UPnP-IGD (Internet Gateway Device) that defines the behavior of a router compatible with UPnP.
[0017] Port opening is a setting that transfers a specific port of a public IP address to a specific port of a specific private IP address in a fixed correspondence, and is also called "port mapping" or "static IP masquerading." Stopping port opening is deleting or disabling this setting.
[0018] The terminal device 12 is a terminal owned by a user who manages the router 11. For example, the terminal device 12 can be connected to the WAN 18, and can communicate with the router 11 via a server 15 connected to the WAN 18 (for example, via the cloud). One example of the terminal device 12 is a smartphone.
[0019] The server 15 relays communication between the router 11 and the terminal device 12. For example, the server 15 manages the identifier (e.g., IP address) on the network of the terminal device 12, and can send a push notification or the like to the terminal device 12 in response to a request from the router 11. A push notification is a notification that is actively sent from the sender to the receiver.
[0020] Specifically, the server 15 acquires an identifier (application ID) specific to each application by communicating with an application installed in the terminal device 12 by the user. For example, when the terminal device 12 connects to the router 11, the application transmits the application ID to the router 11. The application ID is an example of a first identifier of the terminal device 12 that can be acquired by the control unit of the router 11. The IP address is an example of a second identifier used by the server 15 to communicate with the terminal device 12. The router 11 transmits the notification content (notification information) together with the application ID to the server 15. The server 15 transmits the notification content to the terminal device 12 having the corresponding application ID (based on the IP address). This realizes a push notification.
[0021] The server 15 may be a physical server device connected to the WAN 18, or may be a virtual server (cloud server) realized by using hardware connected to the WAN 18. The communication between the router 11 and the terminal device 12 described below is performed via the server 15.
[0022] The devices 13 and 14 are devices that connect to the LAN 19 and communicate with the WAN 18 via the router 11. For example, each of the devices 13 and 14 may be various devices that can be connected to the LAN 19, such as various sensor devices such as a web camera or a microphone, so-called smart home appliances such as a television or a refrigerator, a NAS (Network Attached Storage), a computer game machine, a smartphone, a tablet terminal, a personal computer, or the like.
[0023] In the communication system 10 shown in Fig. 1, the router 11 monitors packets received from the LAN 19 side or the WAN 18 side. If the monitoring result satisfies a predetermined condition, the router 11 notifies the user of the terminal device 12 of a security risk related to the change in the settings of the router 11, receives consent information indicating that the user has consented to the change in the settings, and changes the settings of the router 11 according to the result of the acceptance of the consent information. A specific example of the processing by the router 11 will be described in Fig. 4 onwards.
[0024] (Example of Router 11 configuration) Fig. 2 is a diagram showing an example of the configuration of the router 11. The router 11 shown in Fig. 1 can be configured, for example, by a router device 20 shown in Fig. 2.
[0025] The router device 20 includes a CPU (Central Processing Unit) 21, a ROM (Read Only Memory) 22, a RAM (Random Access Memory) 23, a WAN side communication module 24, a LAN side communication module 25, and an internal storage unit 27. The CPU 21, the ROM 22, the RAM 23, the WAN side communication module 24, the LAN side communication module 25, and the internal storage unit 27 are each connected by a common bus 26.
[0026] The CPU 21 executes control programs such as firmware that are read from the ROM 22 and stored in the RAM 23, thereby controlling the overall operation of the router device 20. The control programs such as the firmware described above and various setting data are stored in the ROM 22. The RAM 23 operates as a work memory for the router device 20, and temporarily stores various control programs and various data.
[0027] The WAN-side communication module 24 is a module that accesses the WAN 18 and communicates with other communication devices connected to the WAN 18. The WAN-side communication module 24 is a communication module that complies with, for example, TCP / IP (Transmission Control Protocol / Internet Protocol).
[0028] The LAN side communication module 25 is a module that forms the LAN 19 and communicates with other communication devices (e.g., devices 13 and 14) connected to the LAN 19. The LAN side communication module 25 may be, for example, a wireless communication module conforming to the IEEE (Institute of Electrical and Electronics Engineers) 802.11 standard, or a wired communication module conforming to the IEEE 802.3 standard, or may include both of these.
[0029] The internal storage unit 27 includes an internal storage 27a and an internal storage interface (I / F) 27b. The internal storage 27a is, for example, a non-volatile semiconductor memory such as a flash memory or a hard disk drive. The internal storage 27a stores application control programs and various data files used in the router device 20. The internal storage interface 27b controls the reading or writing of data when a command to read or write data from or to the internal storage 27a is received.
[0030] The monitoring unit 20a is a monitoring unit of the present invention that monitors received packets. The control unit 20b is a control unit of the present invention that notifies a user when the monitoring result by the monitoring unit 20a satisfies a predetermined condition, receives consent information indicating that the user has consented to the change in settings, and changes the settings according to the result of the acceptance of the consent information. Each of the monitoring unit 20a and the control unit 20b is, for example, composed of a CPU 21 and at least one of a WAN side communication module 24 and a LAN side communication module 25.
[0031] (Example of the configuration of the terminal device 12) Fig. 3 is a diagram showing an example of the configuration of the terminal device 12. The terminal device 12 shown in Fig. 1 can be configured, for example, by a terminal device 30 shown in Fig. 3.
[0032] The terminal device 30 includes a CPU 31, a ROM 32, a RAM 33, an LCD driver 34a, an LCD panel 34b, a communication module 35, an operation interface (I / F) 36, an internal storage unit 37, a USB (Universal Serial Bus) controller 38a, and a USB connector 38b.
[0033] The CPU 31 , the ROM 32 , the RAM 33 , the LCD driver 34 a , the communication module 35 , the operation interface 36 , the internal storage unit 37 , and the USB controller 38 a are connected to each other via a common bus 39 .
[0034] The CPU 31 executes control programs such as firmware that are read from the ROM 32 and stored in the RAM 33, thereby controlling the overall operation of the terminal device 30. The control programs such as firmware and various setting data are stored in the ROM 32. The RAM 33 operates as a work memory for the terminal device 30, and temporarily stores various control programs and data.
[0035] The liquid crystal panel 34b is a display unit that displays images. When the liquid crystal driver 34a receives data that configures a display screen, it drives the liquid crystal panel 34b so as to display the display screen in the display area of the liquid crystal panel 34b. The liquid crystal panel 34b may be a built-in display provided in the main body of the terminal device 30, or may be an external display externally attached to the main body of the terminal device 30.
[0036] The communication module 35 is a module that performs wireless or wired communication with other communication devices (e.g., the server 15). For example, the communication module 35 is a cellular module that can connect to the WAN 18 via a mobile communication network by cellular wireless communication such as 3G, LTE (Long Term Evolution), 4G, or 5G.
[0037] The communication module 35 may also include a LAN-side communication module that accesses the LAN 19. This LAN-side communication module may be, for example, a wireless communication module conforming to the IEEE 802.11 standard, or a wired communication module conforming to the IEEE 802.3 standard.
[0038] The operation interface 36 is a user interface for a user to perform operations, such as a keyboard, a mouse, etc. The operation interface 36 may be a touch panel or the like integrated with the liquid crystal panel 34b.
[0039] The internal storage unit 37 includes an internal storage 37a and an internal storage interface (I / F) 37b. The internal storage 37a is, for example, a non-volatile semiconductor memory such as a flash memory or a hard disk drive. The internal storage 37a stores various files used in the terminal device 30, such as application control programs, document files, sound files, image files, and video files. The internal storage interface 37b controls the reading or writing of data when a command to read or write data from or to the internal storage 37a is received.
[0040] The internal storage 37a may be a removable non-volatile memory card. In this case, the internal storage interface 37b further includes a memory card slot into which the memory card is inserted.
[0041] The USB controller 38a transmits and receives data to and from a USB device connected via the USB connector 38b in accordance with various USB standards.
[0042] The notification unit 30a is a notification unit of the present invention that notifies the user. The notification unit 30a is composed of, for example, a CPU 31 and a liquid crystal panel 34b. The reception unit 30b is a reception unit of the present invention that receives an operation from the user to the effect that the change in the settings of the router 11 has been approved after the notification by the notification unit 30a. The reception unit 30b is composed of, for example, a CPU 31 and an operation interface 36.
[0043] The control unit 30c is a control unit of the present invention that changes the settings of the router 11 in accordance with the result of reception by the reception unit 30b. The control unit 30c is configured with a CPU 31 and a communication module 35, for example.
[0044] <Example 1> In the first embodiment, an example will be described in which the router 11 performs warning-type dangerous UPnP blocking. When there is a request to open a port determined to be dangerous, the warning-type dangerous UPnP blocking blocks (or temporarily permits) the request, notifies the user of the danger of the port, and then confirms whether to permit or deny the opening of the port.
[0045] (Monitoring and Control Processing by Router 11 in the First Embodiment) 4 is a flowchart showing an example of a monitoring control process by the router 11 of the embodiment 1. When relaying communication between the WAN 18 and the LAN 19, the router 11 executes, for example, the process shown in FIG.
[0046] First, the router 11 uses the UPnP-IGD function to determine whether or not an AddPortMapping request has been received from a device on the LAN 19 side (e.g., devices 13 and 14) (step S41), and waits until an AddPortMapping request is received (step S41: No loop). The AddPortMapping request is a packet that specifies a port number and requests the opening of the port indicated by that port number, and is an example of a packet received from the LAN 19 side.
[0047] In step S41, when an AddPortMapping request is received (step S41: Yes), the router 11 judges whether the address of the sender of the AddPortMapping request is on the prohibited device list (step S42). The sender address is, for example, at least one of the sender's IP address and MAC (Media Access Control) address.
[0048] The prohibited device list is a list of devices that the user has prohibited from opening ports by UPnP among devices connected to the LAN 19. The prohibited device list may be stored in the memory of the router 11 (for example, the ROM 22, the RAM 23, or the internal storage 27a shown in FIG. 2), or may be stored in another device accessible from the router 11.
[0049] In step S42, if the sender address is on the prohibited device list (step S42: Yes), the router 11 returns an error response to the sender of the received AddPortMapping request, discards the AddPortMapping request (step S43), and returns to step S41.
[0050] In step S42, if the sender address is not on the prohibited device list (step S42: No), the router 11 judges whether the sender IP address of the received AddPortMapping request matches the value of NewInternalClient included in the AddPortMapping request (step S44). NewInternalClient stores the local IP address of the device for which the port is to be opened.
[0051] In step S44, if the sender address does not match NewInternalClient (step S44: No), the sender of the AddPortMapping request received by router 11 is requesting to open a port for a device other than itself, and the AddPortMapping request may be dangerous and based on malicious intent (unauthorized purposes).
[0052] In this case, the router 11 judges whether the address of the sender of the received AddPortMapping request is on the permitted device list (step S45). This sender address is, for example, at least one of the sender's IP address and the sender's MAC address. The permitted device list is a list of devices connected to the LAN 19 that the user has permitted to open ports by UPnP. The permitted device list may be stored in the memory of the router 11, or may be stored in another device accessible from the router 11.
[0053] In step S45, if the address of the sender is not on the permitted device list (step S45: No), the router 11 blocks the UPnP request based on the received AddPortMapping request, and sends a push notification to the terminal device 12 notifying it that the UPnP request has been blocked (step S46), and returns to step S41. In the push notification in step S46, the router 11 sends, for example, to the terminal device 12 the sender of the AddPortMapping request (i.e., the requester for opening the port) and information indicating the risk of opening the port. This push notification is an example of a notification of a security risk related to a change in settings (opening the port).
[0054] In step S44, if the sender address matches NewInternalClient (step S44: Yes), the router 11 judges whether the port setting requested by the received AddPortMapping request is in the dangerous setting list (step S47). The dangerous setting list may be stored in the memory of the router 11, or may be stored in another device accessible from the router 11.
[0055] For example, the dangerous settings list is a list of port settings that are known to be dangerous. Port settings include settings of senders that are permitted to communicate, and settings of combinations of ports and protocols to be opened. For example, a dangerous setting among settings of senders that are permitted to communicate is a setting that permits communication from all devices. When such a setting is made, devices 13 and 14 on LAN 19 can be accessed from devices all over the world.
[0056] Also, various combinations of ports and protocols to be opened that are known to be dangerous include the SSH (Secure Shell) port (22 / TCP), Telnet port (23 / TCP), HTTP (Hypertext Transfer Protocol) port (80, 443), etc. The port to be opened is the port indicated by at least one of NewInternalPort (LAN side port number) and NewExternalPort (WAN side port number) included in the AddPortMapping request.
[0057] Furthermore, the port settings included in the risk setting list may be updated as appropriate using lists reported by research and development organizations such as NICT (National Institute of Information and Communications Technology). This update may be performed automatically, for example, by router 11 accessing lists reported by the above-mentioned research and development organizations via a network such as WAN 18, or may be performed by a user operation. Furthermore, this list may be provided as list information via a network, or may be provided by being incorporated in firmware, etc.
[0058] In step S47, if the port setting is in the risk setting list (step S47: Yes), the router 11 proceeds to step S45. If the port setting is not in the risk setting list (step S47: No), the router 11 opens the port in response to the received AddPortMapping request (step S48) and returns to step S41.
[0059] In step S45, if the address of the sender is on the permitted device list (step S45: Yes), the router 11 proceeds to step S48 and opens the port.
[0060] (Agreement confirmation process by terminal device 12 in the first embodiment) 5 is a flowchart showing an example of the consent confirmation process by the terminal device 12 of the embodiment 1. The terminal device 12 executes, for example, the process shown in FIG.
[0061] First, the terminal device 12 determines whether or not a push notification has been received from the router 11 (step S51), and waits until a push notification is received from the router 11 (step S51: No loop). In step S51, if a push notification is received from the router 11 (step S51: Yes), the terminal device 12 displays the source of the port opening request and the risk of port opening based on the information received from the router 11 in the push notification (step S52). An example of the display in step S52 will be described later with reference to FIG. 10.
[0062] Furthermore, the terminal device 12 accepts an operation to select permission or prohibition of port opening by UPnP for the displayed port opening request source (see, for example, FIG. 10). Next, the terminal device 12 judges whether the user has selected prohibition of port opening by UPnP (UPnP prohibition) (step S53).
[0063] In step S53, if the user selects UPnP prohibition (step S53: Yes), the terminal device 12 transmits a prohibited device list registration request to the router 11 (step S54), and returns to step S51. The prohibited device list registration request is a packet requesting the router 11 to register the port opening requester displayed in step S52 in the prohibited device list.
[0064] In step S53, if UPnP prohibition has not been selected (step S53: No), the terminal device 12 judges whether the user has selected permission to open a port by UPnP (UPnP permission) (step S55).
[0065] If the user selects UPnP permission in step S55 (step S55: Yes), the terminal device 12 transmits an permitted device list registration request to the router 11 (step S56), and returns to step S51. The permitted device list registration request is a packet requesting the router 11 to register the requester of the port opening displayed in step S52 in the permitted device list, and is an example of consent information that the user has consented to the change in settings.
[0066] In step S55, if UPnP permission is not selected (step S55: No), the terminal device 12 returns to step S51. As a result, if there is no explicit consent from the user, the source of the port opening request is not registered in the permitted device list, and port opening can be suppressed.
[0067] (List Management Process by Router 11 in the First Embodiment) 6 is a flowchart showing an example of a list management process by the router 11 of the embodiment 1. The router 11 executes, for example, the process shown in FIG.
[0068] First, the router 11 judges whether or not it has received a prohibited device list registration request from the terminal device 12 (step S61). If it has received a prohibited device list registration request (step S61: Yes), the router 11 judges whether or not the router 11 has an open port for the device that is the target of the prohibited device list registration request (step S62).
[0069] In step S62, if there is no open port (step S62: No), the router 11 proceeds to step S64. If there is an open port (step S62: Yes), the router 11 stops opening that port (step S63). This makes it possible to stop the port opening for a device for which the user has selected UPnP prohibition, if the port has been opened manually in the past.
[0070] Next, the router 11 registers the device that is the target of the prohibited device list registration request in the prohibited device list (step S64), and returns to step S61. As a result, even if the device makes an AddPortMapping request again, the AddPortMapping request is discarded without notifying the user by the process shown in Fig. 4. A device is registered in the prohibited device list by adding at least one of the IP address and MAC address of the device to the prohibited device list, for example.
[0071] In step S61, if the prohibited device list registration request has not been received (step S61: No), the router 11 judges whether or not the permitted device list registration request has been received from the terminal device 12 (step S65). If the permitted device list registration request has not been received (step S65: No), the router 11 returns to step S61.
[0072] In step S65, if an allowed device list registration request is received (step S65: Yes), the router 11 registers the device that is the target of the allowed device list registration request in the allowed device list (step S66), and returns to step S61. As a result, when there is another AddPortMapping request from that device, the port is opened in response to the AddPortMapping request without notifying the user, by the process shown in Fig. 4. A device is registered in the allowed device list by adding at least one of the IP address and MAC address of the device to the allowed device list, for example.
[0073] (Example of Operation in the Communication System 10 of the First Embodiment) Fig. 7 is a sequence diagram showing an operation example 1 in the communication system 10 of the first embodiment. In the example shown in Fig. 7, it is assumed that a malicious third party has installed an illegal program in the device 13. It is also assumed that the device 13 is not registered in either the prohibited device list or the permitted device list.
[0074] First, it is assumed that the device 13 connected to the LAN 19 transmits an AddPortMapping request to the router 11, which requests the opening of a port unintended by the user of the router 11, by the above-mentioned unauthorized program (step S71).
[0075] Next, the router 11 performs risk determination for the AddPortMapping request received in step S71 (step S72). This risk determination is, for example, the determination in steps S42, S44, S45, and S47 shown in Fig. 4. In the example shown in Fig. 7, it is assumed that it is determined in step S47 shown in Fig. 4 that the port setting requested by this AddPortMapping request is in the risk setting list.
[0076] Next, since device 13 is not registered in the allowed device list, router 11 blocks the UPnP request due to this AddPortMapping request in step S46 shown in Figure 4, and sends a push notification to terminal device 12 informing it that the UPnP request has been blocked (step S73).
[0077] Next, based on the push notification of step S73, the terminal device 12 displays the identifier of the device 13 (the device that made the request) and the fact that the port settings for the port opening requested by the device 13 are dangerous (the risk of opening the port) (step S74).
[0078] Next, the terminal device 12 accepts the selection of permission or prohibition of port opening displayed in step S74 (step S75). Here, it is assumed that the user selects prohibition of port opening (UPnP prohibition).
[0079] Next, the terminal device 12 transmits a prohibited device list registration request for the device 13 to the router 11 (step S76). Next, the router 11 registers the device 13 in the prohibited device list (step S77), and ends the series of processes. As a result, even if the device 13 transmits an AddPortMapping request to the router 11 again, the AddPortMapping request is discarded without notifying the user.
[0080] Fig. 8 is a sequence diagram showing an operation example 2 in the communication system 10 of the first embodiment. In the example shown in Fig. 8, it is assumed that the device 14 shown in Fig. 1 is a device that the user intends to open a port of the router 11. It is also assumed that the device 14 is not registered in either the prohibited device list or the permitted device list.
[0081] First, it is assumed that the device 14 connected to the LAN 19 transmits an AddPortMapping request to the router 11 through normal UPnP operation (step S81).
[0082] Next, the router 11 performs risk determination for the AddPortMapping request received in step S81 (step S82). The determination in step S82 is the same as the determination in step S72 shown in Fig. 7. In the example shown in Fig. 8, it is assumed that in step S82, it is determined that the port setting requested by this AddPortMapping request is in the risk setting list.
[0083] Next, since device 14 is not registered in the authorized device list at this point, router 11 blocks the UPnP request due to this AddPortMapping request in step S46 shown in FIG. 4, and sends a push notification to terminal device 12 informing it that the UPnP request has been blocked (step S83).
[0084] Steps S84 and S85 are similar to steps S74 and S75 shown in Fig. 7. However, in step S85, it is assumed that the user selects permission to open the port (UPnP permission).
[0085] Next, the terminal device 12 transmits an authorized device list registration request for the device 14 to the router 11 (step S86). Next, the router 11 registers the device 14 in the authorized device list (step S87), and ends the series of processes. As a result, when the device 14 transmits an AddPortMapping request to the router 11 again, the port is opened in response to the AddPortMapping request without notifying the user (see FIG. 9).
[0086] Fig. 9 is a sequence diagram showing an operation example 3 in the communication system 10 of the embodiment 1. In the example shown in Fig. 9, a case will be described in which the device 14 transmits an AddPortMapping request again to the router 11 after the operation example 2 shown in Fig. 8.
[0087] First, it is assumed that the device 14 transmits an AddPortMapping request to the router 11 again by the operation of UPnP since the port was not opened in response to the AddPortMapping request in step S81 shown in FIG. 8 (step S91).
[0088] Next, the router 11 performs a risk determination for the AddPortMapping request received in step S91 (step S92). The determination in step S92 is the same as the determination in step S72 shown in Fig. 7. In the example shown in Fig. 9, the AddPortMapping request in the example shown in Fig. 8 is sent again, and it is determined that the port setting requested by this AddPortMapping request is in the risk setting list, similar to the example shown in Fig. 8.
[0089] However, since device 14 is registered in the permitted device list at this point, router 11 opens the port in response to this AddPortMapping request (step S93) in step S48 shown in Fig. 4, and ends the series of processes. This enables device 14 to communicate with devices on the WAN 18 side via router 11.
[0090] (Display by the terminal device 12 in response to a push notification from the router 11 in the first embodiment) Fig. 10 is a diagram showing an example of a display by the terminal device 12 in response to a push notification from the router 11 of the first embodiment. As shown in Fig. 10, the terminal device 12 is a smartphone and has a touch panel 12a. For example, in step S52 shown in Fig. 5, the terminal device 12 displays a screen 100 on the touch panel 12a.
[0091] Screen 100 includes the message "You are about to open a port that poses a security problem. Do you want to open this port?", a character string indicating the device that sent the AddPortMapping request, and a character string indicating the port that is being requested to be opened by the AddPortMapping request. This allows the user to recognize that there has been a request to open a port that is determined to be dangerous, the source of the request, and the port that is being requested to be opened, and to determine whether or not they are what the user intended.
[0092] Moreover, the screen 100 includes a prohibition button 101 and a permission button 102. The prohibition button 101 is a button for the user to select prohibition of port opening by UPnP for the displayed port opening request source. The determination in step S53 shown in Fig. 5 is, for example, a determination as to whether or not the prohibition button 101 has been touched by the user.
[0093] The permission button 102 is a button for the user to select permission for port opening by UPnP for the displayed port opening request source. The determination in step S55 shown in Fig. 5 is, for example, a determination as to whether or not the permission button 102 has been touched by the user.
[0094] Screen 100 may also include a message urging the user to confirm that the user name and password for external access to the displayed device that has requested the port to be opened are properly set.
[0095] Also, instead of the above information, the screen 100 may include a message such as "Device XX is requesting to expose the device on the Internet using port YY. Many cases of this port being misused on the Internet if appropriate access restrictions are not implemented. If communication from the Internet is required, we strongly recommend that you set the device's user name and password to appropriate ones before allowing communication." In this way, by notifying the user of the specific risks of not implementing access restrictions, the user can determine whether or not to allow port opening after recognizing the specific risks. Also, by notifying the user of the recommended countermeasures when not implementing access restrictions, the user can take appropriate measures even if he or she intends to open a risky port.
[0096] As shown in Figures 4 to 10, when the received packet is a packet (AddPortMapping request) requesting the opening of a port included in a predetermined list (danger port list), the router 11 of the first embodiment notifies the user, accepts consent information (permitted device list registration request) indicating that the user has agreed to the opening of the port, and opens the port according to the result of accepting the consent information.
[0097] This allows ports that are deemed dangerous to be opened only with the consent of a user who understands the security risks of opening the port, making it possible to prevent unintended opening of dangerous ports by the user.
[0098] The router 11 also notifies the user by communicating with the terminal device 12 via a server 15 that manages the identifiers on the network of the terminal device 12. The router 11 also receives consent information by communicating with the terminal device 12 via the server 15. This makes it possible to notify the user and receive consent information even if the terminal device 12 is a smartphone or the like that is not assigned a fixed IP address.
[0099] In the first embodiment, the router 11 temporarily blocks a UPnP request from the device when performing a push notification to the terminal device 12, and when an allowed device list registration request is received from the terminal device 12, opens a port when there is another AddPortMapping request from the device. However, the process is not limited to this. For example, the router 11 may reserve a UPnP request from a device when performing a push notification to the terminal device 12, and open a port based on the reserved UPnP request when it receives an allowed device list registration request from the terminal device 12.
[0100] <Example 2> In the second embodiment, an example will be described in which the router 11 performs proactive dangerous UPnP blocking. When there is a request to open a port determined to be dangerous, the proactive dangerous UPnP blocking detects security problems (passwords, encryption methods, etc.) by sending a packet that imitates access to the port to the relevant device on the LAN side, and if there is a problem, blocks the opening request or warns the user. Note that proactive blocking refers to a type of action that is performed voluntarily.
[0101] (Monitoring and Control Processing by Router 11 in the Second Embodiment) 11 is a flowchart showing an example of a monitoring control process by the router 11 of the embodiment 2. When relaying communication between the WAN 18 and the LAN 19, the router 11 executes, for example, the process shown in FIG.
[0102] First, the router 11 determines whether or not an AddPortMapping request has been received by using the UPnP-IGD function (step S111), and waits until an AddPortMapping request is received (step S111: No loop).
[0103] In step S111, when an AddPortMapping request is received (step S111: Yes), the router 11 judges whether the port setting requested by the received AddPortMapping request is in the risk setting list (step S112). The judgment in step S112 is the same as the judgment in step S47 shown in FIG.
[0104] In step S112, if the port setting is not in the dangerous setting list (step S112: No), the router 11 proceeds to step S116 and opens the port. If the port setting is in the dangerous setting list (step S112: Yes), the router 11 determines whether the sender address of the received AddPortMapping request is in the permitted device list (step S113). The determination in step S113 is the same as, for example, the determination in step S45 shown in FIG. 4.
[0105] In step S113, if the address is on the permitted device list (step S113: Yes), router 11 proceeds to step S116 and opens the port. If the address is not on the permitted device list (step S113: No), router 11 executes a security check of the device that is requesting port opening by the received AddPortMapping request (step S114).
[0106] The security check in step S114 is detection of vulnerabilities in communication by the target device. A vulnerability is a security problem, and an example of such a vulnerability is defined in ISO / IEC27000:2009, which specifies the outline and basic terminology of ISMS (Information Security Management System) standards.
[0107] The security check is, for example, a check as to whether an appropriate password is set, whether appropriate encryption is applied, etc. For example, the router 11 performs a security check by sending a packet imitating an access from a device on the WAN 18 side to a target device on the LAN side and attempting authentication of the device.
[0108] Specifically, the router 11 accesses the target device using the port requested to be opened by the received AddPortMapping, and attempts authentication using a predetermined risky combination of user name and password (for example, the user name "admin" and the password "password"). The router 11 may also attempt authentication for multiple such risky combinations of user name and password. If the authentication is successful, the router 11 determines that there is a security problem (vulnerability).
[0109] Dangerous user names include those set at the factory, such as "admin" and "user." Dangerous passwords include those set at the factory, such as "pass" and "0123," and passwords consisting only of common words, such as "welcome."
[0110] Also, the determination of whether a password is dangerous is not limited to the determination of whether it matches a specific character string. For example, the router 11 may determine that a password with a certain number of characters or less is dangerous, or that a password with a specific character type (for example, a password consisting only of numbers) is dangerous, or may use a combination of these determination methods.
[0111] In addition, router 11 may perform a security check by determining whether the communication method of the target device using the port requested to be opened by the received AddPortMapping is a communication method that provides appropriate encryption, such as SSL (Secure Sockets Layer).
[0112] Next, the router 11 judges whether or not there is a security problem with the target device based on the result of the security check in step S114 (step S115). If there is no security problem (step S115: No), the router 11 proceeds to step S116. The process of step S116 is the same as, for example, step S48 shown in FIG. 4.
[0113] In step S115, if there is a security problem (step S115: Yes), the router 11 proceeds to step S117. Step S117 is the same process as, for example, step S46 shown in Fig. 4. However, in the push notification in step S117, the router 11 transmits to the terminal device 12, for example, information indicating the security problem discovered by the security check and the source of the request to open the port.
[0114] (Consent Confirmation Processing by Terminal Device 12 in the Second Embodiment) 12 is a flowchart showing an example of an approval confirmation process by the terminal device 12 of the embodiment 2. In a state in which communication with the router 11 is possible, the terminal device 12 executes, for example, the process shown in FIG.
[0115] First, the terminal device 12 determines whether or not a push notification has been received from the router 11 (step S121), and waits until a push notification is received from the router 11 (step S121: No loop).
[0116] In step S121, when a push notification is received from the router 11 (step S121: Yes), the terminal device 12 displays security problems discovered by the security check and the device that requested the port to be opened, based on the information received from the router 11 in the push notification (step S122). An example of the display in step S122 will be described later with reference to FIG.
[0117] Next, the terminal device 12 proceeds to step S123. Steps S123 and S124 are similar to steps S55 and S56 shown in FIG.
[0118] (List Management Process by Router 11 in the Second Embodiment) Fig. 13 is a flowchart showing an example of a list management process by the router 11 of the embodiment 2. The router 11 executes, for example, the process shown in Fig. 13 in parallel with the process shown in Fig. 11 .
[0119] First, the router 11 determines whether or not a permitted device list registration request has been received from the terminal device 12 (step S131), and waits until the permitted device list registration request is received (step S131: No loop). If the permitted device list registration request has been received (step S131: Yes), the router 11 registers the device that is the target of the permitted device list registration request in the permitted device list (step S132), and returns to step S131.
[0120] The registration to the permitted device list in step S132 is the same as the registration to the permitted device list in step S66 shown in Fig. 6. As a result, when the target device makes another AddPortMapping request, the port is opened in response to the AddPortMapping request by the process shown in Fig. 11 without notifying the user.
[0121] (Example of Operation in the Communication System 10 of the Second Embodiment) Fig. 14 is a sequence diagram showing an operation example 1 in the communication system 10 of the embodiment 2. In the example shown in Fig. 14, it is assumed that a malicious third party has installed an illegal program in the device 13. It is also assumed that the device 13 is not registered in the permitted device list.
[0122] Steps S141 and S142 are the same as steps S71 and S72 shown in Fig. 7. However, the risk determination in step S142 is, for example, a determination in steps S112 and S113 shown in Fig. 11. In the example shown in Fig. 14, it is assumed that in step S112 shown in Fig. 11, it is determined that the port setting requested by this AddPortMapping request is in the risk setting list.
[0123] Next, the router 11 performs a security check of the device 13 requested to be opened by this AddPortMapping request in step S114 shown in Fig. 11 (step S143). In the example shown in Fig. 14, it is assumed that a security problem is found in the device 13 in the security check in step S143.
[0124] In this case, the router 11 blocks the UPnP request in step S141, and sends a push notification to the terminal device 12 notifying that the UPnP request has been blocked (step S144).
[0125] Next, the terminal device 12 displays the security problem discovered by the security check and the identifier of the device 13 (the source of the port opening request) based on the push notification in step S144 (step S145).
[0126] Next, the terminal device 12 accepts the selection of permission to open the port displayed in step S145 (step S146). Here, it is assumed that the user has not selected permission to open the port (no selection).
[0127] In this case, the terminal device 12 does not transmit an permitted device list registration request to the router 11. As a result, even if the device 13 transmits an AddPortMapping request to the router 11 again to make a UPnP request, the UPnP request is blocked again. In addition, the user can take measures against the security problem displayed in step S145, such as changing the settings of the target device.
[0128] Fig. 15 is a sequence diagram showing an operation example 2 in the communication system 10 of the second embodiment. In the example shown in Fig. 15, it is assumed that the device 14 shown in Fig. 1 is a device that the user intends to open a port of the router 11. It is also assumed that the device 14 is not registered in the permitted device list.
[0129] First, it is assumed that the device 14 connected to the LAN 19 transmits an AddPortMapping request to the router 11 through normal UPnP operation (step S151).
[0130] Steps S152 to S156 are the same as steps S142 to S146 shown in Fig. 14. That is, in this case as well, it is determined that the port setting requested by the AddPortMapping request is in the risk setting list, and a security problem has been found in the device 14.
[0131] However, suppose that in step S156, the user intends for the device 14 to open the port and therefore selects permission to open the port (UPnP permission). In this case, the terminal device 12 transmits an authorized device list registration request for the device 14 to the router 11 (step S157). Next, the router 11 registers the device 14 in the authorized device list (step S158), and the series of processes ends.
[0132] As a result, when the device 14 again transmits an AddPortMapping request to the router 11, the port is opened in response to the AddPortMapping request without notifying the user (see FIG. 16). In addition, the user can take measures against the security problem displayed in step S155, such as changing the settings of the target device.
[0133] Fig. 16 is a sequence diagram showing an operation example 3 in the communication system 10 of the embodiment 2. In the example shown in Fig. 16, a case will be described in which the device 14 transmits an AddPortMapping request again to the router 11 after the operation example 2 shown in Fig. 15.
[0134] First, it is assumed that the device 14 transmits an AddPortMapping request to the router 11 through normal UPnP operation (step S161). Next, the router 11 performs risk determination for the AddPortMapping request received in step S161 (step S162).
[0135] The determination in step S162 is the same as the determination in step S142 shown in Fig. 14. In the example shown in Fig. 16, the AddPortMapping request in the example shown in Fig. 15 is transmitted again, and it is determined that the port setting requested by this AddPortMapping request is in the risk setting list, similar to the example shown in Fig. 15.
[0136] However, since device 14 is registered in the permitted device list at this point, router 11 opens the port in response to this AddPortMapping request in step S116 shown in FIG. 11 (step S163), and ends the series of processes.
[0137] (Display by the terminal device 12 in response to a push notification from the router 11 in the second embodiment) Fig. 17 is a diagram showing an example of a display by the terminal device 12 in response to a push notification from the router 11 of the second embodiment. As shown in Fig. 17, the terminal device 12 is a smartphone and has a touch panel 12a. For example, in step S122 shown in Fig. 12, the terminal device 12 displays a screen 170 on the touch panel 12a.
[0138] Screen 170 includes a message saying "A device with a problem with the password or encryption method has been detected. Do you want to allow this device to open the port?" and a character string indicating the device that sent the AddPortMapping request. This allows the user to recognize that there has been a request to open a device with security problems and the source of the request, and to review the security settings of that device. Screen 170 may also include a message such as "The password has not been set to the initial value" depending on the results of the security check.
[0139] The screen 170 also includes a permission button 102. The permission button 102 is a button for the user to select permission for port opening by UPnP for the displayed port opening request source. The determination in step S123 shown in FIG. 12 is, for example, a determination as to whether or not the permission button 102 has been touched by the user.
[0140] Also, instead of the above information, the screen 170 may include a message such as "Device XX is requesting to expose the device on the Internet using port YY. The authentication information (user name, password, etc.) set in this device can be easily guessed by an attacker, and there have been many reported cases of it being abused on the Internet. If communication from the Internet is required, we strongly recommend that you set the device's user name and password to an appropriate one before allowing it." In this way, by notifying the user of specific vulnerabilities found by the security check, the user can determine whether or not to allow the port to be opened after recognizing the specific vulnerabilities. Also, by notifying the user of the countermeasures to resolve the vulnerabilities when no access restriction is performed, the user can take measures to resolve the vulnerabilities even when the user intends to open a risky port.
[0141] As shown in Figures 11 to 17, when the router 11 of the second embodiment receives a packet requesting the opening of a port included in a predetermined list (danger port list) and detects a vulnerability in the device corresponding to the port, the router 11 accepts consent information (permitted device list registration request) indicating that the user has agreed to the opening of the port, and performs a setting to open the port if the consent information is accepted.
[0142] This allows the port to be opened only if the user, who understands the security risk, consents to it being opened if there is a vulnerability in the port that has been determined to be dangerous, preventing the user from opening a dangerous port unintentionally.
[0143] The detection of vulnerability of a device corresponding to a port is performed, for example, by accessing the device through the port. Specifically, the router 11 detects vulnerability by attempting authentication of the device using a combination of a predetermined user name (identifier) and password. Alternatively, the router 11 may detect vulnerability by attempting authentication of the device using either a predetermined user name (identifier) and password. Alternatively, the router 11 may detect vulnerability by determining whether the communication method of the device is a specific communication method. Alternatively, the router 11 may detect vulnerability by combining these methods.
[0144] In the second embodiment, the router 11 temporarily blocks a UPnP request from the device when performing a push notification to the terminal device 12, and when an allowed device list registration request is received from the terminal device 12, opens a port when there is another AddPortMapping request from the device. However, the process is not limited to this. For example, the router 11 may reserve a UPnP request from a device when performing a push notification to the terminal device 12, and open a port based on the reserved UPnP request when it receives an allowed device list registration request from the terminal device 12.
[0145] <Example 3> In the third embodiment, an example will be described in which the router 11 issues an unused UPnP port warning. The unused UPnP port warning is issued to the user when a port that is deemed unnecessary, such as a port that has not been used for data communication for a certain period of time, is open, even if the port map request is permitted to be used.
[0146] (Monitoring and Control Processing by Router 11 in Third Embodiment) 18 is a flowchart showing an example of a monitoring control process by the router 11 of the embodiment 3. When relaying communication between the WAN 18 and the LAN 19, the router 11 executes, for example, the process shown in FIG.
[0147] First, the router 11 acquires a list of ports that the router 11 has opened (step S181). These ports may be ports that have been opened by, for example, the method of the first or second embodiment, or may be ports that have been opened by another method. Next, the router 11 acquires the last communication time of each port indicated in the list acquired in step S181 (step S182). The last communication time of a port is the time when communication was last performed using that port in the router 11, and is acquired, for example, from the relay history of packets in the router 11.
[0148] Next, the router 11 judges whether or not there is any port among the ports shown in the list information acquired in step S181 for which a predetermined specified time or more has elapsed since the last communication time acquired in step S182 (step S183). This specified time is set based on the longest time interval during which a device connected to the LAN 19 communicates via the router 11, which is assumed when the device is being used by a user, and is 30 days as an example.
[0149] The processes in steps S181 to S183 are an example of monitoring a packet received from the LAN 19 or the WAN 18. In step S183, if there is no port for which a specified time or more has elapsed since the last communication time (step S183: No), the router 11 waits until the next polling cycle (step S184) and returns to step S181.
[0150] In step S183, if there is a port for which a specified time or more has elapsed since the last communication time (step S183: Yes), it can be determined that the port has not been used for a long period of time even though its use has been permitted. In this case, the router 11 sends a push notification to the terminal device 12 (step S185) and proceeds to step S184.
[0151] In the push notification of step S185, the router 11 transmits information indicating the target port (long-term unused port) for which a prescribed time or more has passed since the last communication time and the time (no communication time) elapsed since the last communication time of the port to the terminal device 12. This push notification is an example of a notification of a security risk related to a change in settings (stopping port opening). In other words, this push notification is a notification of a security risk caused by not stopping port opening.
[0152] The last communication time acquired in step S182 may be the time when communication was last performed using that port in the router 11, with a data transmission volume of a certain amount or more. This makes it possible to obtain the time when the target port was last actually used for data communication, excluding traffic intended for port scanning, for example.
[0153] For example, a single port scan generally checks whether a TCP session can be established, and if so, whether the input of a user name and password is accepted. Checking whether a TCP session can be established requires approximately 300 octets (bytes) per access, and checking whether the input of a user name and password is accepted requires approximately 1000 octets (bytes) per access. For this reason, access that does not exceed these octets (bytes) can be considered traffic for the purpose of a port scan. Therefore, the fixed amount of data transmission mentioned above can be set to approximately 2000 octets (bytes), as an example.
[0154] (Agreement confirmation process by terminal device 12 in the third embodiment) 19 is a flowchart showing an example of an approval confirmation process by the terminal device 12 of the embodiment 3. The terminal device 12 executes, for example, the process shown in FIG.
[0155] First, the terminal device 12 determines whether or not a push notification has been received from the router 11 (step S191), and waits until a push notification is received from the router 11 (step S191: No loop).
[0156] In step S191, when a push notification is received from the router 11 (step S191: Yes), the terminal device 12 displays ports that have not been used for a long time and a specified time or more since the last communication time based on the information received from the router 11 in the push notification (step S192). An example of the display in step S192 will be described later with reference to FIG.
[0157] Furthermore, the terminal device 12 accepts an operation to select to stop opening the port for the displayed long-term unused port (see FIG. 22). Next, the terminal device 12 judges whether or not the user has selected to stop opening the port (step S193). If the user has not selected to stop opening the port (step S193: No), the terminal device 12 returns to step S191.
[0158] In step S193, if the user selects to stop port opening (step S193: Yes), the terminal device 12 transmits a port opening stop request to the router 11 (step S194), and returns to step S191. The port opening stop request is a packet that requests the router 11 to stop opening ports that have not been used for a long time, and includes information that can identify the ports that have not been used for a long time. The port opening stop request is an example of consent information that indicates that the user has consented to the change in settings (stopping port opening).
[0159] (Processing for stopping port opening by router 11 in the third embodiment) 20 is a flowchart showing an example of a port opening stop process by the router 11 of the embodiment 3. The router 11 executes, for example, the process shown in FIG.
[0160] First, the router 11 determines whether or not a port opening stop request has been received from the terminal device 12 (step S201), and waits until the port opening stop request is received (step S201: No loop). If the port opening stop request has been received (step S201: Yes), the router 11 stops opening the port in accordance with the port opening stop request (step S202), and returns to step S201.
[0161] (Example of operation in the communication system 10 according to the third embodiment) Fig. 21 is a sequence diagram showing an example of the operation of the communication system 10 of the embodiment 3. In the example shown in Fig. 21, it is assumed that the router 11 has a long-term unused port that is open but has not been used for a long period of time.
[0162] First, the router 11 detects ports that have not been used for a long time based on the last communication time of each port (step S211). Next, the router 11 sends a push notification to the terminal device 12 to notify the terminal device 12 of the existence of a port that has not been used for a long time (step S212). Next, the router 11 displays the ports that have not been used for a long time and the time of no communication therefor based on the push notification of step S212 (step S213).
[0163] Next, the terminal device 12 accepts the selection of stopping the opening of the port not used for a long time displayed in step S213 (step S214). Here, it is assumed that the user selects stopping the opening of the port not used for a long time.
[0164] Next, the terminal device 12 transmits a port opening stop request to the router 11 (step S215). Next, the terminal device 12 stops opening the port in accordance with the port opening stop request transmitted in step S215 (step S216), and ends the series of processes.
[0165] (Display by the terminal device 12 in response to a push notification from the router 11 in the third embodiment) Fig. 22 is a diagram showing an example of a display by the terminal device 12 in response to a push notification from the router 11 of the third embodiment. In Fig. 22, the same parts as those shown in Fig. 6 are denoted by the same reference numerals and the description thereof will be omitted. For example, in step S192 shown in Fig. 19, the terminal device 12 displays a screen 220 on the touch panel 12a.
[0166] Screen 220 includes a message saying "A port that has not been used for 30 days remains open. Do you want to stop opening this port?", a character string indicating the port that has not been used for a long time, and a character string indicating the time of no communication for that port that has not been used for a long time. This allows the user to recognize that there is a port that has not been used for a long time, and to determine whether or not to use that port.
[0167] Screen 220 also includes a stop opening button 221. Stop opening button 221 is a button for the user to select to stop opening of the displayed long-term unused port. The determination in step S193 shown in Fig. 19 is, for example, a determination as to whether or not the stop opening button 221 has been touched by the user.
[0168] Also, instead of the above information, the screen 220 may include a message such as "Device XX is permitted to use port YY and expose the device on the Internet, but it has not been used for ZZ days. If unnecessary device ports are exposed, they may be exploited on the Internet if a new vulnerability is discovered in the future. If communication from the Internet is not required, we strongly recommend that you cancel the permission." In this way, by specifically notifying the user of the risks of leaving a port that has not been used for a long time open, the user can determine whether or not to continue opening the port after recognizing the specific risks. Also, by notifying the user that the permission should be canceled if the port opening is not required, the user is prompted to select to stop opening the port, thereby improving security. Also, by notifying the user of the device that opened the port, the user can recall the circumstances and background of the port opening, and can easily determine whether or not to continue opening the port.
[0169] As shown in Figures 18 to 22, the router 11 of the third embodiment detects a port as a port that has not been used for a long time based on received packets when communication through the open port has not been detected for a predetermined period of time or more, and when it detects a port that has not been used for a long time, it accepts consent information (port opening stop request) indicating that the user has agreed to stop the opening of the port, and when the consent information is accepted, it stops the opening of the port.
[0170] As a result, if there is an open port that has not been used for a long time, the port opening can be stopped if the user agrees to stop the port opening for that port, which makes it possible to prevent a port that has not been used for a long time from being left open unintentionally by the user.
[0171] <Example 4> In the fourth embodiment, an example will be described in which the router 11 blocks suspicious communications. When a port is opened with the user's permission and a certain time has passed since the user's permission designation, and a connection is made from an address that has never been connected before, the router 11 blocks the communication once and then checks the user's permission again.
[0172] (Access Block Processing by Router 11 in Fourth Embodiment) 23 is a flowchart showing an example of an access block process by the router 11 of the embodiment 4. When relaying communication between the WAN 18 and the LAN 19, the router 11 executes, for example, the process shown in FIG.
[0173] First, the router 11 determines, based on a packet received from the WAN 18 side, whether or not there has been access to a port that the router 11 has opened (step S231), and waits until there is access to the open port (step S231: No loop).
[0174] In step S231, if an open port is accessed (step S231: Yes), the router 11 judges whether a specified time or more has passed since the accessed port was opened (step S232). This specified time is set based on the longest expected time from the opening of a port to the first normal access to that port, and is, for example, one week.
[0175] In step S232, if the specified time has not elapsed since the port was opened (step S232: No), it can be determined that the access in step S231 is normal access. In this case, the router 11 adds the source address of the access to the source list (step S233).
[0176] The source list is a list of sources that have been confirmed to be safe among devices on the WAN 18 side. The source list may be stored in the memory of the router 11, or may be stored in another device accessible from the router 11. Next, the router 11 relays the access to the LAN 19 side (step S234), and returns to step S231.
[0177] In step S232, if a prescribed time or more has passed since the port was opened (step S232: Yes), the router 11 determines whether the source address of the access in step S231 is included in the source list (step S235).
[0178] In step S235, if the source address is included in the source list (step S235: Yes), the router 11 can determine that the access in step S231 is normal. In this case, the router 11 proceeds to step S234. The processes in steps S231, S232, and S235 are an example of monitoring a packet received from the WAN 18 side.
[0179] In step S235, if the source address is not included in the source list (step S235: No), the access in step S231 is from a device that has not been accessed in the period immediately after the port was opened, and may be malicious access.
[0180] In this case, the router 11 blocks the access and sends a push notification to the terminal device 12 notifying that the access has been blocked (step S236), and returns to step S231. In the push notification of step S236, the router 11 sends, for example, information indicating the port accessed in step S231 and the source of the access (for example, the source address) to the terminal device 12. This push notification is an example of a notification of a security risk related to a change in settings (registration in a source list).
[0181] In step S233, if the amount of data transmission from the access in step S231 is less than a certain amount, the router 11 may not add the source address of the access to the source list. This makes it possible to prevent a device that has only had traffic for the purpose of port scanning from being registered in the source list. As described above, this certain amount of data transmission can be, for example, about 2000 octets (bytes).
[0182] (Acceptance confirmation process by terminal device 12 in the fourth embodiment) 24 is a flowchart showing an example of an approval confirmation process by the terminal device 12 of the embodiment 4. In a state in which communication with the router 11 is possible, the terminal device 12 executes, for example, the process shown in FIG.
[0183] First, the terminal device 12 judges whether or not a push notification has been received from the router 11 (step S241), and waits until a push notification is received from the router 11 (step S241: No loop). When a push notification is received from the router 11 (step S241: Yes), the terminal device 12 displays the port that was accessed and the source of the access based on the information received from the router 11 in the push notification (step S242). An example of the display in step S242 will be described later with reference to FIG. 28.
[0184] Furthermore, the terminal device 12 accepts an operation to select permission for access from the displayed transmission source (see FIG. 28). Next, the terminal device 12 judges whether or not the user has selected permission for access (step S243). If the user has not selected permission for access (step S243: No), the terminal device 12 returns to step S241.
[0185] In step S243, if the user selects to permit access (step S243: Yes), the terminal device 12 transmits a source registration request to the router 11 (step S244), and returns to step S241. The source registration request is a packet that requests the router 11 to register the device that is the source of the access in the source list, and includes, for example, information that can identify the source of the access. The source registration request is an example of consent information that indicates that the user has consented to the change in settings (registration in the source list).
[0186] (Source Registration Processing by Router 11 in Fourth Embodiment) 25 is a flowchart showing an example of a source registration process by the router 11 of the embodiment 4. The router 11 executes, for example, the process shown in FIG.
[0187] First, the router 11 judges whether or not a source registration request has been received from the terminal device 12 (step S251), and waits until the source registration request is received (step S251: No loop). If the source registration request has been received (step S251: Yes), the router 11 registers the accessed source device in the source list in accordance with the source registration request (step S252), and returns to step S251.
[0188] As a result, when the target device accesses the port again, the access is relayed without notifying the user in step S234 shown in Fig. 23. On the other hand, if the router 11 does not receive a source registration request for the target device, when the target device accesses the port again, the access is blocked in step S236 shown in Fig. 23. As a result, the port opening for the port that was accessed is essentially stopped.
[0189] (Example of operation in the communication system 10 according to the fourth embodiment) Fig. 26 is a sequence diagram showing an operation example 1 in the communication system 10 of the fourth embodiment. In the example shown in Fig. 26, a case will be described in which a user connects the device 14 to the LAN 19 and opens a port by UPnP, and immediately thereafter, the device 14 is accessed as intended by the user from the device 261 on the WAN 18 side. One example of such a situation is a situation in which a user connects a web camera as the device 14 to the LAN 19, and immediately thereafter, the user uses the user's smartphone or the like as the device 261 to access the web camera via the WAN 18.
[0190] First, the device 14 connected to the LAN 19 transmits an AddPortMapping request to the router 11 (step S261). Next, the router 11 opens a port in accordance with the AddPortMapping request transmitted in step S261 (step S262). This port opening may be performed, for example, by the method of the first or second embodiment, or by another method.
[0191] Next, suppose that within a specified time from the port opening in step S262, device 261 on the WAN 18 side accesses device 14 to router 11 (step S263). In this case, router 11 makes an access permission decision as to whether or not to permit this access (step S264). In this case, since this access occurs within the specified time from the port opening, router 11 decides to permit this access.
[0192] Next, the router 11 registers the device 261, which is the source of the access in step S261, in the source list (step S265). Next, the router 11 relays the access in step S261 to the device 14 (step S266), and the series of processes ends.
[0193] Fig. 27 is a sequence diagram showing an operation example 2 in the communication system 10 of the fourth embodiment. In the example shown in Fig. 27, a case will be described in which, after the operation example 1 shown in Fig. 26, a device 262 on the WAN 18 side different from the device 261 accesses the device 14 unintentionally after a prescribed time has elapsed since the port is opened in step S262 shown in Fig. 26, without the user's intention. Here, it is assumed that the device 262 is not registered in the source list of the router 11.
[0194] First, assume that after a specified time has elapsed since the port was opened in step S262 shown in Fig. 26, the device 262 on the WAN 18 side accesses the device 14 to the router 11 (step S271). In this case, the router 11 makes an access permission decision as to whether or not to permit this access (step S272).
[0195] In this case, since this access occurs after the specified time has elapsed since the port was opened, the router 11 determines that the access from the device 262 is not permitted (not permitted). In this case, the router 11 blocks the access from the device 262 and sends a push notification to the terminal device 12 notifying that the access has been blocked (step S273).
[0196] Next, the terminal device 12 displays the port that was accessed and the source of the access (the device 262) based on the push notification in step S273 (step S274). The terminal device 12 also accepts the selection of permission for access from the displayed source (step S275). Here, it is assumed that the user has not selected permission for access (no permission).
[0197] In this case, the terminal device 12 does not transmit a source registration request to the router 11. As a result, even if the device 262 again attempts to access the device 14 via the router 11, the access is blocked again.
[0198] (Display by the terminal device 12 in response to a push notification from the router 11 in the fourth embodiment) Fig. 28 is a diagram showing an example of a display by the terminal device 12 in response to a push notification from the router 11 of the fourth embodiment. In Fig. 28, the same parts as those shown in Fig. 6 are denoted by the same reference numerals and the description thereof will be omitted. For example, in step S242 shown in Fig. 24, the terminal device 12 displays a screen 280 on the touch panel 12a.
[0199] Screen 280 includes the message "There has been an access request from an address that has never been accessed. Do you want to allow access from this address?", a character string indicating the port from which the access occurred, and a character string indicating the source address of the access. This allows the user to recognize that there has been access from a device that has never been accessed, and to determine whether or not to allow access from that device.
[0200] Screen 280 also includes access permission button 281. Access permission button 281 is a button for the user to select permission for access from the displayed transmission source. The determination in step S243 shown in Fig. 24 is, for example, a determination as to whether or not access permission button 281 has been touched by the user.
[0201] Furthermore, instead of the above information, the screen 280 may include a message such as "Device XX is permitted to use port YY and expose the device on the Internet, but communication from a location different from the usual access has been confirmed. If this communication is what you intended, please allow the communication. If not, please close this message." In this way, by notifying the user that communication from a location (address) different from the usual access should be permitted only if it is what the user intended, the user can easily determine whether or not to permit the access.
[0202] As shown in Figures 23 to 28, when the router 11 of the fourth embodiment receives a packet requesting access to an open port from a device on the WAN 18 side that has not accessed the port through that port within a predetermined time period since the port was opened, based on the received packet, the router 11 accepts consent information (source registration request) indicating that the user has consented to the registration of the device in the source list, and if the consent information is accepted, the router 11 registers the device in the source registration request.
[0203] This allows the port to be effectively opened only when the user consents to access from a device that has not accessed the port immediately after it is opened, thereby preventing the port from being effectively opened unintentionally by the user.
[0204] In the fourth embodiment, a configuration for blocking access to suspicious communications has been described, but the user may select to stop opening a port corresponding to the suspicious communications. When the user selects to stop opening a corresponding port, the router 11 transmits a port opening stop request to the terminal device 12, and the router 11 stops opening the port in accordance with the port opening stop request.
[0205] (Regarding Examples 1 to 4) According to the above-mentioned first to fourth embodiments, the user can easily understand the security risks related to port management by UPnP or the like, and can perform appropriate settings for the router 11.
[0206] The above-mentioned first to fourth embodiments can be combined. That is, in the communication system 10, two or more processes among the warning type dangerous UPnP blocking of the first embodiment, the proactive type dangerous UPnP blocking of the second embodiment, the unused UPnP port warning of the third embodiment, and the suspicious communication blocking of the fourth embodiment may be performed in parallel.
[0207] (Modification) Although UPnP has been described as the function of the router 11 that opens a port in response to a request packet received from the devices 13 and 14 connected to the LAN 19, this function is not limited to UPnP and may be something similar.
[0208] Also, instead of packets such as AddPortMapping, a packet similar to this may be used. For example, in UPnP for IPv6 (Internet Protocol Version 6), the command WANIPv6FirewallControl:AddPinhole() is used instead of AddPortMapping. Therefore, in IPv6, this WANIPv6FirewallControl:AddPinhole() packet may be used instead of AddPortMapping.
[0209] In addition, although the terminal device 12 is described as being a smartphone, the terminal device 12 is not limited to a smartphone, and can be any type of information terminal capable of communicating with the router 11, such as a tablet terminal or a personal computer.
[0210] Also, although a configuration in which the terminal device 12 communicates with the router 11 via the server 15 has been described, the present invention is not limited to such a configuration. For example, the terminal device 12 may communicate with the router 11 via the WAN 18 without the server 15. Moreover, the terminal device 12 may communicate with the router 11 without the WAN 18 by connecting to the LAN 19.
[0211] In addition, although various notifications by the terminal device 12 have been described using screen display, the terminal device 12 may also provide various notifications by voice, etc. In addition, although the terminal device 12 has been described accepting various selections by touch operation, the terminal device 12 may also accept various selections from the user by button operation, voice input, etc.
[0212] Although a configuration in which push notifications are used for various notifications from the router 11 to the terminal device 12 has been described, the router 11 may use email or the like for various notifications to the terminal device 12.
[0213] (About the control program) The control programs stored in the ROM 22 of the router device 20 and the ROM 32 of the terminal device 30 are stored in a non-transitory storage medium from which the control programs can be read by a computer. Such "computer-readable storage media" are, for example, optical media such as CD-ROMs (Compact Disc-ROMs) and magnetic storage media such as USB memories or memory cards. Such control programs can also be provided by downloading via a network.
[0214] As described above, this specification discloses the following:
[0215] The disclosed router is a router that relays communications between a wide area network and a local area network based on settings, and is equipped with a monitoring unit that monitors received packets, and a control unit that notifies a user when the monitoring results by the monitoring unit satisfy predetermined conditions, accepts consent information to the effect that the user has agreed to the change to the settings, and changes the settings in accordance with the result of the acceptance of the consent information.
[0216] The disclosed router is one in which the received packets are packets from the local area network.
[0217] The disclosed router has a function of opening a port in response to a request packet received from a device connected to the local area network, and the setting is a setting related to the function.
[0218] In the disclosed router, the function is a UPnP (Universal Plug and Play) function.
[0219] In the disclosed router, the notification is a notification of a security risk related to the change in the configuration.
[0220] In the disclosed router, the control unit performs the notification by communicating with the user's terminal device via a server.
[0221] In the disclosed router, the control unit receives the consent from the user by communicating with a terminal device of the user via a server.
[0222] The disclosed router is a server that manages a first identifier of the user's terminal device that can be acquired by the control unit and a second identifier of the terminal device that the server uses to communicate with the terminal device, and the control unit makes the notification via the server by sending the first identifier and the notification information to the server.
[0223] In the disclosed router, the condition is that the received packet is a packet requesting the opening of a port included in a predetermined list, and the setting change is the opening of that port.
[0224] In the disclosed router, when the control unit detects that the received packet is a packet requesting the opening of a port included in the list and a vulnerability in the device corresponding to that port is detected, the control unit accepts consent information indicating that the user has agreed to the opening of that port, and configures the router to open that port if the consent information is accepted.
[0225] In the disclosed router, the control unit detects the vulnerability by accessing the device through the port.
[0226] The disclosed router detects the vulnerability by having the control unit attempt to authenticate the device using at least one of a predetermined identifier and a password.
[0227] In the disclosed router, the control unit detects the vulnerability by determining whether or not the communication method of the device is a specific communication method.
[0228] In the disclosed router, the condition is that, based on the received packets, no communication through an open port in the settings is detected for a predetermined period of time or more, and the change in settings is to stop the opening of that port.
[0229] The disclosed router has a condition that a packet requesting access via a port that is currently open in the settings is received from a device on the wide area network side that has not been accessed via that port within a predetermined time period since the port was opened, and the change in settings is to allow that access from the device.
[0230] The disclosed control program causes a computer to function as the monitoring unit and the control unit of the router.
[0231] The disclosed terminal device is a terminal device capable of communicating with a router that relays communications between a wide area network and a local area network, and is equipped with a notification unit that notifies a user when the results of monitoring of received packets by the router satisfy predetermined conditions, a reception unit that receives an operation from the user after the notification by the notification unit to the effect that the user agrees to the change to the settings of the router, and a control unit that causes the router to execute the change to the settings in accordance with the result of the reception by the reception unit.
[0232] The disclosed control program causes a computer to function as the reception unit and the control unit of the terminal device.
[0233] The disclosed communication system includes the router and the terminal device. [Explanation of symbols]
[0234] 10. Communication Systems 11 Router 12,30 Terminal equipment 12a Touch Panel 13,14,261,262 equipment 15 Server 18 WAN 19 LAN 20 Router device 20a Monitoring section 20b, 30c Control section 21,31 CPU 22,32 ROM 23,33 RAM 24 WAN side communication module 25 LAN side communication module 26,39 Bus 27,37 Internal storage section 27a,37a Internal storage 27b,37b Internal Storage Interface 30a Notification section 30b Reception 34a LCD driver 34b Liquid crystal panel 35 Communication Module 36 Operation Interface 38a USB Controller 38b USB connector 100,170,220,280 screen 101 Prohibited Button 102 Allow button 221 Release stop button 281 Access permission button
Claims
1. A router that relays communication between a wide area network and a local area network based on a setting, A monitoring unit that monitors received packets; a control unit that notifies a user by communicating with a terminal device of the user via a server when a monitoring result by the monitoring unit satisfies a predetermined condition, receives consent information indicating that the user has consented to the change of the settings, and changes the settings in accordance with the result of the acceptance of the consent information; Equipped with the server is a server that manages a first identifier of the terminal device of the user that can be acquired by the control unit and a second identifier of the terminal device that the server uses for communication with the terminal device, The control unit transmits the first identifier and the notification information acquired from the terminal device of the user to the server, thereby making the notification via the server.
2. A router as claimed in claim 1, The first identifier is obtained by communicating with an application installed on the user's terminal device.
3. A router according to claim 1 or 2, The router, wherein the first identifier is an identifier specific to the application.
4. A router according to any one of claims 1 to 3, A router, wherein the received packet is a packet from the local area network.
5. A router according to any one of claims 1 to 4, a function of opening a port in response to a request packet received from a device connected to the local area network; The setting is a setting related to the function of the router.
6. A router according to claim 5, The function is a router that is a UPnP (Universal Plug and Play) function.
7. A router according to any one of claims 1 to 6, The notification is a notification of a security risk related to the change in the configuration of the router.
8. A router according to any one of claims 1 to 7, The control unit is a router that receives the consent information by communicating with the user's terminal device via a server.
9. A router according to any one of claims 1 to 8, the condition being that the received packet is a packet requesting the opening of a port included in a predetermined list, The setting change is to open the port on the router.
10. 10. The router of claim 9, The control unit is a router that, when the received packet is a packet requesting the opening of a port included in the list and a vulnerability is detected in the device corresponding to the port, accepts consent information indicating that the user has agreed to the opening of the port, and configures the port to be opened if the consent information is accepted.
11. 11. The router of claim 10, The control unit is a router that detects the vulnerability by accessing the device through the port.
12. 12. The router of claim 11, The control unit detects the vulnerability by attempting to authenticate the device using at least one of a predetermined identifier and a password.
13. 13. The router according to claim 11 or 12, The control unit detects the vulnerability by determining whether the communication method of the device is a specific communication method.
14. A router according to any one of claims 1 to 13, the condition being that communication through an open port in the setting has not been detected for a predetermined period of time or longer based on the received packet; The change in the settings of the router is to stop opening the port in question.
15. A router according to any one of claims 1 to 14, The condition is that a packet requesting access via a port that is open in the setting has been received from a device on the wide area network side that has not been accessed via the port within a predetermined time period since the port was opened, and The change in the settings of the router is to permit the access from the device.
16. A control program for causing a computer to function as the monitoring unit and the control unit of the router according to any one of claims 1 to 15.
17. A terminal device capable of communicating with a router that relays communication between a wide area network and a local area network, a notification unit that notifies a user when a result of monitoring a packet received by the router satisfies a predetermined condition based on communication with the router via a server; a reception unit that receives, after the notification by the notification unit, an operation indicating that the user agrees to the change in the setting of the router; a control unit that causes the router to change the setting in response to a result of the reception by the reception unit; Equipped with the server is a server that manages a first identifier of the terminal device that can be acquired by the router and a second identifier of the terminal device that the server uses for communication with the terminal device; The notification unit is a terminal device that transmits the first identifier to the router, causes the router to transmit the first identifier and the notification information to the server, and performs the notification by receiving the notification information from the server.
18. A control program for causing a computer to function as the notification unit, the acceptance unit, and the control unit of the terminal device according to claim 17.
19. A router according to any one of claims 1 to 15; A terminal device according to claim 17; A communication system comprising:
Citation Information
Patent Citations
Server
JP2004266320A
Relaying apparatus
JP2004328027A
Security management system, relay device, and program
JP2007272396A
Terminal device, information distribution device, push notification reception method, push notification transmission method, and computer program
JP2016184816A
Management system and management method
JP2019149741A
