Communication device, control method, and program

The communication device addresses MSS-based attacks by allowing users to set a lower limit for MSS through a setting screen, ensuring effective protection while minimizing disruption to legitimate TCP communications and providing alert notifications.

JP7551403B2Active Publication Date: 2024-09-17CANON KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020143831
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-08-27
Publication Date
2024-09-17
Estimated Expiration
2040-08-27

AI Technical Summary

Technical Problem

Existing communication devices are vulnerable to attacks that exploit the Maximum Segment Size (MSS) determination in TCP communication, leading to denial of service or service delays, and existing protection methods either fail to prevent attacks effectively or disrupt legitimate TCP communications.

Method used

A communication device that allows users to set a lower limit value for MSS through a setting screen, with mechanisms to control TCP communication based on this value, including automatic or manual settings, and provides alerts for potential attacks.

Benefits of technology

Enables appropriate protection against MSS-based attacks by dynamically adjusting the MSS lower limit according to user environment, minimizing disruption to legitimate communications and providing alert notifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007551403000007
    Figure 0007551403000007
  • Figure 0007551403000013
    Figure 0007551403000013
  • Figure 0007551403000002
    Figure 0007551403000002
Patent Text Reader

Abstract

To provide a control method and program that can set a lower limit value appropriately according to a user environment in which a communication device is used via a setting screen for setting the lower limit value of MSS (Maximum Segment Size).SOLUTION: A communication device that performs TCP communication with an external device sets an MSS lower limit value to be used for the TCP communication on the basis of a user operation. The communication device also determines a smaller value among candidate values and an MSS set in the communication device as an MSS to be used for the TCP communication and establishes the TCP communication with the external device when a request to start the TCP communication is accepted from the external device if a candidate value of acceptable MSS received from the external device is greater than or equal to the set lower limit value.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication device, a control method, and a program for performing communication. [Background technology]

[0002] It is known that when TCP communication is performed between communication devices, a maximum segment size (MSS) that is the maximum size of a TCP segment exchanged in the communication is determined when the TCP communication is established.

[0003] Specifically, a mechanism is known in which communication devices notify each other of their acceptable MSSs and determine the smaller of the two MSSs as the MSS to be used in TCP communication. However, in recent years, vulnerabilities in the determination of MSS in TCP communication have been reported (Non-Patent Document 1).

[0004] An attacking technique that exploits this vulnerability may cause a denial of service or a service delay for any communication device. For example, an attacking communication device specifies a small MSS value, such as 50, to the communication device (also called the opposing device) to which the attack is directed, and transmits divided TCP data. In the subsequent communication sequence, the opposing device's receive buffer is exhausted by transmitting an intentionally tampered SACK (Selective ACK). The opposing device attacked by this technique may cause a kernel panic due to the exhaustion of the receive buffer, or may cause a service delay due to the exhaustion of the receive buffer or buffer resource management. In addition, the attacking communication device may simply transmit a large amount of TCP data with a small MSS value, consuming the resources of the opposing device and causing a service delay.

[0005] Known methods for avoiding this attack include disabling the SACK function or controlling the establishment of TCP communication with communication devices that notify an MSS below a certain level. [Prior art documents] [Patent documents]

[0006] [Non-Patent Document 1] CVE-2019-11478, [Retrieved July 9, 2020](https: / / nvd.nist.gov / vuln / detail / CVE-2019-11478] Summary of the Invention [Problem to be solved by the invention]

[0007] In order to deal with the above-mentioned vulnerabilities in a communication device, it is possible to set a threshold (lower limit) to be used to determine whether or not to impose some kind of restriction on TCP communication. However, if a predetermined threshold is adopted at the time of designing the communication device, the following problems may occur.

[0008] For example, if the lower limit is too small, there is a possibility that no protection against attacks will be obtained, whereas if the lower limit is too large, although adequate protection against attacks will be obtained, there is a risk that normal TCP communication that should be established will be adversely affected.

[0009] The present invention has been made in consideration of at least one of the above problems. One aspect of the present invention aims to provide a mechanism for appropriately setting a lower limit value according to a user environment in which a communication device is used, via a setting screen for setting a lower limit value for TCP communication. Another aspect of the present invention aims to provide information that appropriately guides a user when setting a lower limit value for TCP communication. [Means for solving the problem]

[0010] In order to achieve at least one of the above objects, a communication device according to one aspect of the present invention is a communication device that performs TCP (Transmission Control Protocol) communication with an external device, and includes: a setting means for setting a lower limit of an MSS (Maximum Segment Size) to be used in the TCP communication based on a user operation; and a communication control means for, upon receiving a request to start TCP communication from the external device, determining an acceptable MSS candidate value received from the external device as an MSS to be used in the TCP communication if the acceptable MSS candidate value is equal to or greater than the lower limit of the MSS set by the setting means, and establishing TCP communication with the external device. When the communication control means receives a request to start TCP communication from an external device, if an acceptable MSS candidate value received from the external device is smaller than the lower limit value of the MSS set by the setting means, the communication control means performs control to attempt to establish TCP communication with the external device using the lower limit value of the MSS. It is characterized by: Effect of the Invention

[0011] One aspect of the present invention is to provide a mechanism for setting an appropriate lower limit value according to the user environment in which the communication device is used, via a setting screen for setting the lower limit value related to TCP communication. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 illustrates an example of a communication system. [Diagram 2] 2 is a diagram illustrating an example of a hardware configuration of a communication device 200. [Diagram 3] FIG. 2 illustrates an example of a software configuration of a communication device 200. [Figure 4] FIG. 2 illustrates an example of a setting screen of the communication device 200. [Diagram 5] 10 is a flowchart showing an example of control of the communication device 200. [Figure 6] 10 is a flowchart showing an example of control of the communication device 200. [Figure 7] FIG. 10 is a diagram illustrating an example of a rule for discarding a packet. [Figure 8] 10 is a flowchart showing an example of control of the communication device 200. [Figure 9] 10 is a flowchart showing an example of control of the communication device 200. [Figure 10] FIG. 11 is a diagram illustrating an example of a software configuration of a communication device 200 according to a second embodiment. [Figure 11] 10 is a flowchart showing an example of a setting screen of the communication device 200 in the second embodiment. [Figure 12] 10 is a flowchart showing an example of control of the communication device 200 in the second embodiment. [Figure 13] FIG. 13 is a diagram illustrating an example of a rule for acquiring a packet log. [Figure 14] FIG. 11 is a diagram illustrating an example of a notification according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] <First embodiment> First, the configuration of a communication system according to the present invention will be described with reference to Fig. 1. In the communication system according to this embodiment, a communication apparatus 200 and devices 300 and 301 are connected to a network 100.

[0014] In this embodiment, an MFP (Multi Function Peripheral) having a printing function and a scanning function is illustrated as an example of the communication device 200. However, the communication device to which this embodiment can be applied is not limited to the MFP. It can also be applied to communication control of a single-function printing device. Furthermore, it can also be applied to communication control in, for example, an IoT device, a personal computer, an edge server, a smartphone, etc. In addition, the device 300 and the device 301 are assumed to be, for example, a file server, an information management server that manages information of the communication device 200, a server that provides a print service, etc. However, it is not limited to this, and may be a server of a core business system or a cloud server, etc.

[0015] The communication device 200 can transmit data based on an image obtained by scanning to an external device, and transmit data collected by the communication device 200 to an external server. The communication device 200 also has a Web server function, and can provide a Web screen that displays the operation settings of the communication device 200 on a Web browser of an external device and receives change instructions.

[0016] Next, the configuration of the communication device 200 will be described with reference to Fig. 2. Fig. 2 is a block diagram showing the hardware configuration of the communication device 200. The communication device 200 has a reading function for reading an image on a sheet, a file transmission function capable of transmitting the read image to an external communication device, and the like. It also has a printing function for printing an image on a sheet.

[0017] A control unit 201 including a central processing unit (CPU) 202 controls the operation of the entire communication device 200. A control program stored in a read only memory (ROM) 204 or a hard disk drive (HDD) 205 is loaded into a RAM 203. The CPU 202 reads out the control program loaded into the RAM 203 and performs various controls such as print control and read control. The ROM 204 stores a control program executable by the CPU 202. The random access memory (RAM) 203 is the main memory of the CPU 202 and is used as a work area or a temporary storage area for loading various control programs. The hard disk drive (HDD) 205 is a non-volatile storage area that stores print data, image data, various programs, and various setting information. In this way, the hardware such as the CPU 202, the ROM 204, the RAM 203, and the HDD 205 constitute a so-called computer.

[0018] In the communication device 200 of this embodiment, one CPU 202 executes each process shown in the flowchart described later using one memory (RAM 203), but other modes are also possible. For example, each process shown in the flowchart described later can be executed by making multiple processors, memories, and storages work together. Also, some of the processes can be executed using hardware circuits.

[0019] The printer I / F 206 connects the printer 207 (printer engine) and the control unit 201. The printer 207 prints an image on a sheet fed from a paper feed cassette (not shown) based on print data input via the printer I / F 206. The printing method may be an electrophotographic method in which toner is transferred to paper and fixed thereon, or an inkjet method in which ink is ejected onto paper for printing. The printer 207 may also be a 3D printer that generates a three-dimensional output object using a modeling material. In this case, the print data becomes print data indicating a 3D shape, and a three-dimensional output object is generated using a modeling material or a support material instead of color materials such as toner or ink.

[0020] The scanner I / F 208 connects the scanner 209 and the control unit 201. The scanner 209 reads a document placed thereon and generates image data. The image data generated by the scanner 209 is printed by the printer 207, stored in the HDD 205, or transmitted to an external device via the FAX I / F 214 or the communication I / F 212. Note that, in this embodiment, the scanner 209 that reads a document is exemplified, but is not limited to this. The scanner 209 may be a three-dimensional scanner that reads shape data of a three-dimensional object. In this case, the printer 207 functions as the above-mentioned 3D printer. When the scanner 209 is a three-dimensional scanner, shape data is generated instead of image data. The generated shape data is transmitted to an external device or used for duplicating (3D copying) a three-dimensional object by a 3D printer.

[0021] The operation panel I / F 210 connects the operation panel 211 and the control unit 201. The operation panel 211 is equipped with a liquid crystal display unit having a touch panel function, various hard keys, and the like. The operation panel 211 functions as a display unit that displays information and a reception unit that receives instructions from a user. The CPU 202 cooperates with the operation panel 211 to control the display of information and the reception of user operations.

[0022] A network cable having an RJ45 connector shape or a GG (GgigaGate) 45 connector shape is connected to the communication I / F 212, and communication with an external device via a network can be performed. The communication device 200 is connected to the network 100 via the communication I / F 212. Note that the communication method is an example, and the communication method in the physical layer of the communication I / F 212 may be a wireless communication method conforming to the wireless communication standard of the IEEE 802.11 series.

[0023] <Software configuration of information processing device 103> Next, an example of software modules of the communication device 200 will be described with reference to Fig. 3. The information processing device 103 includes an OS (Operating System) 1020 and middleware that cooperates with the OS.

[0024] First, the individual elements constituting the OS 1020 will be described. The OS 1020 is system software that controls and manages the entire communication device 200. Specifically, it provides basic management and control of a computer, such as input / output control, management of hardware such as memory and hard disk, and process management. Furthermore, the OS 1020 of this embodiment includes a packet filtering unit 1021 and a protocol stack unit 1022.

[0025] The filtering unit 1021 generally provides a function called a firewall and provides a packet filtering function that permits or discards packet communications according to specified rules. The protocol stack unit 1022 is a module that performs a series of controls for realizing TCP / IP communications. The protocol stack unit 1022 performs a three-way handshake with external devices such as the device 300 and the device 301 to establish TCP communications, and maintains and manages communication sessions. TCP (Transmission Control Protocol) communication is a communication method that establishes a connection with a communication partner (for example, the devices 300 and 301) and transmits and receives data via the established communication path.

[0026] Subsequently, the middleware will be described. The setting control unit 1010 is a module that displays a setting screen on the operation panel 211 and accepts changes to the operation settings of the communication device based on user operations via the screen. When the setting control unit 1010 accepts a setting change operation, it updates (changes) the setting of the setting value DB 1011 according to the setting.

[0027] The setting value DB 1011 stores various operation settings of the communication device 200. The setting is appropriately referred to or changed in the flowchart described later. The MSS control unit 1040 is a module that reflects the settings related to the MSS (Maximum Segment Size) in each module of the OS 1020. The MSS lower limit value automatic setting unit 1050 is a module that performs a process of dynamically determining the lower limit value when an operation setting for automatically setting the MSS is made on the setting screen described later.

[0028] <Setting of the lower limit value of MSS> Subsequently, the setting of the MSS in the present embodiment will be described with reference to FIG. 4. The setting screen 2000 shown in FIG. 4(A) is an example of the setting screen displayed by the setting control unit 1010 on the operation panel 211.

[0029] A user having administrator authority can set, via screen 2000, the lower limit of the MSS that communication device 200 allows for TCP communication, a defense method (restriction method) against communication outside the set MSS range, and the like.

[0030] Keys 2010 and 2011 are display items for selecting whether to set the lower limit value of the MSS automatically or manually. One of the keys 2010 and 2011 is set to an enabled state, and the other is set to an disabled state. Screen 2000 illustrates an example of a screen that is displayed when key 2011 is set to enabled and 48 is set as the lower limit value of the MSS of area 2012.

[0031] Information 2013 indicating an inputtable range is also displayed on the setting screen 2000. This information is for notifying the user that there are lower and upper limit values ​​that can be set.

[0032] In addition, in the communication device 200 of the present embodiment, in consideration of the fact that the maximum size of an Ethernet (registered trademark) frame is 1518 bytes, it is assumed that a setting is made to present 1460 bytes, which is the maximum frame size excluding various headers, as an MSS candidate to the other party. Also, this setting is stored in the setting value DB 1011.

[0033] The keys 2020 and 2021 are display items for selecting a method of handling a request for MSS communication that is outside the range and does not meet the lower limit of the MSS. One of the keys 2020 and 2021 is set to be valid, and the other is set to be invalid. In this embodiment, the case where the key 2021 is set to be valid is illustrated.

[0034] When key 2020 "force" is selected, an operation setting is set such that, if the MSS of the communication partner is less than the MSS lower limit value set in device 200, an attempt is made to establish TCP communication at the MSS specified by the MSS lower limit value in field 2012. Note that "force" in this embodiment may include attempting negotiation with the partner at the MSS lower limit value, and terminating communication with an error if rejected by the partner.

[0035] On the other hand, when the "Discard" key 2021 is selected, if the MSS of the communication partner is less than the lower limit MSS value set in the device 200, the operation setting is set so that the packet filtering unit 1021 is used to control the corresponding communication to be discarded.

[0036] In this embodiment, the display item is a general term for display objects including keys for receiving user operations, buttons, labels for displaying information, display areas, drawing objects, etc. Hereinafter, for the sake of explanation, a case where a setting screen is displayed on operation panel 211 of communication device 200 will be described as an example. However, the present invention is not limited to this. It is also possible to configure the device so that the same settings can be performed by accessing a Web page provided by the Web server function of communication device 200 from a Web browser of a client terminal.

[0037] Key 2100 is a key used to discard settings and transition to a screen one level above. Key 2101 is a key used to reflect settings made via screen 2000. When setting control unit 1010 detects that key 2101 has been pressed, it updates the setting values ​​in setting DB 1011 based on the settings made via screen 2000. These setting values ​​are referred to as appropriate in the flow chart described later.

[0038] Next, the control of manual setting of the MSS lower limit value will be described with reference to the flowchart of Fig. 5. Fig. 5 is a flowchart showing the control of the reception process in which the setting control unit 1010 receives a setting value.

[0039] Each operation shown in the flowcharts of Figures 5, 6, 8, 9, and 12 is realized by loading program codes for implementing each module (control unit) described in Figure 3 into the RAM 203 and executing them in the CPU 202. In order to clarify the subject of processing, each control unit, which is each software module, will be described as the subject, as necessary.

[0040] In S100, the setting control unit 1010 cooperates with the operation panel 211 to accept an input operation of an MSS lower limit value for the area 2012. Then, in S101, it is determined whether the operation setting indicating the method of determining the MSS lower limit value is set to manual or automatic.

[0041] If the operation setting is set to automatic, the input lower limit value is not reflected in the operation setting and the process proceeds to error processing in S104. On the other hand, if the operation setting is set to manual, the process proceeds to S102.

[0042] In S102, the setting control unit 1010 checks whether the MSS lower limit value inputted in S100 is within a valid range. Specifically, the setting control unit 1010 acquires the settable range of the MSS lower limit value from the setting value DB 1011. In this embodiment, as an example, it is assumed that the settable range is stored as 48 to 1000 at the time of shipment from the factory. Next, the setting control unit 1010 compares the received MSS lower limit value with the acquired settable range. If it is determined as a result of the comparison that the MSS lower limit value is within the settable range, the process proceeds to S103, and if it is determined that the MSS lower limit value is not within the settable range, the process proceeds to S104. In S103, the setting control unit 1010 saves the MSS lower limit value inputted in S100 in the setting value DB 1011, and ends the series of processes.

[0043] In S104, the setting control unit 1010 cooperates with the operation panel 211 to notify the user of the error. A pop-up screen 2200 shown in Fig. 4(B) is an example of the error notification displayed in S104, and includes a message notifying the user of a setting error. When the setting control unit 1010 receives a user operation to close the error notification, the process returns to S100 and waits for further change operations.

[0044] In this embodiment, the case where the input of the MSS lower limit value can be accepted even when the automatic setting is set in the operation setting indicating the method for determining the MSS lower limit value has been exemplified, but the present invention is not limited to this. For example, when the automatic setting is set in the operation setting indicating the method for determining the MSS lower limit value, the display item 2012 may be controlled to be displayed in a grayed-out state and in a state in which no input operation is accepted.

[0045] Also, even if the value is within the settable range, a confirmation notification may be given depending on the range of the value. For example, if an input MSS lower limit of 60 or less is received, a confirmation message may be displayed indicating that appropriate defense effects may not be obtained. Also, for example, if an input MSS lower limit of 900 or more is received, a confirmation message may be displayed indicating that normal TCP communication may not be possible.

[0046] Next, a method of controlling settings for the protocol stack unit based on the operation settings explained in Fig. 4 and Fig. 5 will be explained using the flowchart in Fig. 6. Fig. 6 shows an example of communication control when either "enforce" of key 2020 or "discard" of key 2021 is selected as a defense method for being outside the MSS range on setting screen 2000. Each control shown in the flowchart in Fig. 6 is executed when the settings related to MSS shown in Fig. 4 are changed, when communication device 200 is powered on, when NW settings are changed, and when communication device 200 returns from a sleep state.

[0047] In S200, the MSS control unit 1040 acquires settings related to the MSS by referring to the setting DB 1011. Here, the MSS lower limit value and the operation settings of the defense method are acquired.

[0048] Next, in S201, if the operation setting of the acquired defense method is set to "enforce," the MSS control unit 1040 advances the process to S202, and if the operation setting of the acquired defense method is set to "discard," the MSS control unit 1040 advances the process to S203.

[0049] In S202, the MSS control unit 1040 changes the setting of the protocol stack unit 1022 to an operation setting for attempting to establish communication using the MSS lower limit with a destination device that has presented an MSS below the lower limit.

[0050] The communication control of the protocol stack unit 1022 when this setting is made will be described below. If the acceptable MSS candidate value presented by the communication partner is less than the MSS lower limit value set in S202, the stack unit 1022 attempts to establish communication at the MSS lower limit value. In other words, the candidate value presented by the communication partner is intentionally ignored, and communication is attempted to be established at an MSS lower limit value greater than the candidate value. When TCP communication is established with the communication partner, communication control is performed using the lower limit MSS value.

[0051] On the other hand, if the MSS value presented by the communication partner is equal to or greater than the lower limit MSS value, the stack unit 1022 performs control according to the normal TCP communication establishment sequence. That is, the stack unit 1022 compares the MSS presented by the communication device 200 and the opposing communication device, and performs control to establish TCP communication using the smaller MSS.

[0052] Returning to the explanation of FIG. 6, in S203, the MSS control unit 1040 controls the packet filtering unit 1021 to register a rule for discarding communications that do not meet the lower limit of MSS when received. The filtering unit 1021 generally provides a function called a firewall, and provides a function for permitting or discarding communications according to a specified rule. In this embodiment, a specific example will be described in which iptables is adopted as an internal implementation of the packet filtering unit. If the lower limit of MSS acquired in S200 is "500", the MSS control unit 1040 issues a command shown in FIG. 7 to the packet filtering unit 1021 of the OS 1020. This command is a command that means adding a rule (policy) for discarding packets that are sent from the other party when establishing a connection by TCP and have an MSS of 1 to 499. The filtering unit 1021 updates the filtering table based on the command.

[0053] The filtering unit 1021 controls permission and abandonment of communication based on the updated filtering table. Therefore, in the communication device 200, it becomes possible to uniformly prohibit TCP communication with a destination device that presents an MSS below the lower limit (for example, an MSS smaller than 500).

[0054] Next, communication control in communication device 200 will be described with reference to the flowcharts of Figures 8 and 9. Each process shown in the flowchart of Figure 8 is repeatedly executed when communication device 200 is in normal mode and providing functions to the user.

[0055] In S301, the MSS control unit 1040 determines whether the operation setting indicating the method of determining the MSS lower limit is set to manual or automatic. If manual is set as the operation setting indicating the method of determining the MSS lower limit, the process proceeds to S308, and if automatic is set as the operation setting indicating the method of determining the MSS lower limit, the process proceeds to S302.

[0056] In S302, the MSS control unit 1040 cooperates with the OS 1020 to determine whether a predetermined time corresponding to a polling interval has elapsed. The polling interval for checking the resource usage status may be, for example, 30 seconds. If the control unit 1040 determines that the predetermined time has elapsed, it proceeds to processing in S303, and if it determines that the predetermined time has not elapsed, it proceeds to processing in S308.

[0057] In S303, the MSS control unit 1040 makes a request to the automatic setting unit 1050 to confirm the resource usage status. Upon receiving the confirmation request, the automatic setting unit 1050 cooperates with the OS 1020 to obtain the usage status of the data reception memory resource of the protocol stack unit 1022. Specifically, the usage status of the memory resource secured for selective acknowledgment (SACK) is obtained.

[0058] In S304, the automatic setting unit 1050 judges whether the usage status used in S303 exceeds a predetermined threshold value. If the usage status exceeds the predetermined threshold value, the process proceeds to S305. If the usage status does not exceed the predetermined threshold value, the process proceeds to S306.

[0059] In S305, the automatic setting unit 1050 determines to set the lower limit of the MSS to 1000. Meanwhile, in S306, the automatic setting unit 1050 determines to set the lower limit of the MSS to 48. An attack exploiting the vulnerability of CVE-2019-11478 is caused, for example, by transmitting a packet processed to fragment the retransmission queue, which is a memory resource reserved for SACK. Therefore, in this embodiment, when the memory resource reserved for SACK is excessively consumed, the control is performed to automatically raise the lower limit described in S305. This process can suppress further attacks exploiting the vulnerability and suppress an increase in the processing load in the information processing device. In addition, the communication device 200 may be configured to perform a process of resetting the TCP communication already established with the external device when the MSS lower limit is changed to 1000 in S305.

[0060] In S307, the automatic setting unit 1050 cooperates with the MSS control unit 1040 and the OS 1020 to execute a process of updating settings related to the MSS. First, the automatic setting unit 1050 notifies the MSS control unit 1040 of the lower limit value determined in S305 or S306 as the result of the confirmation request. The MSS control unit 1040, which has received the result of the confirmation request, updates the lower limit value of the MSS in the setting DB 1011. Next, the MSS control unit 1040 cooperates with the OS 1020 to perform the setting change control described in S200 to S203 of the flowchart in Fig. 6. This process makes it possible to dynamically switch the communication operations of the protocol stack unit 1022 and the packet filtering unit 1021 according to the resource usage status.

[0061] On the other hand, in S308, the OS 1020 performs communication control and packet filtering control of the TCP communication based on the operation settings. The communication control and packet filtering control will be described with reference to FIG.

[0062] In S401, the OS 1020 determines whether or not a packet has been received. If a packet has been received, the process proceeds to S402, and if not, the process proceeds to S309.

[0063] In S402, the filtering unit 1021 judges whether the received packet corresponds to the discard rule. If the received packet corresponds to the discard rule, the filtering unit 1021 advances the process to S410. On the other hand, if the received packet does not correspond to the discard rule, the filtering unit 1021 transfers the received packet to the protocol stack unit 1022 and advances the process to S402. Note that, if the discard rule illustrated in FIG. 7 is registered in the filtering rules, the filtering unit 1021 judges that the connection establishment request with an MSS less than the lower limit corresponds to the discard rule. On the other hand, if the discard rule illustrated in FIG. 7 is not registered in the filtering rules, the filtering unit 1021 judges that the connection establishment request with an MSS less than the lower limit does not correspond to the discard rule.

[0064] In S410, the filtering unit 1021 discards the received packet, and the process proceeds to S309.

[0065] In S403, the protocol stack unit 1022 judges whether the received packet is a connection establishment request packet. If it is judged to be a connection establishment request packet, the process proceeds to S404, and if it is judged not to be a connection establishment request packet, the process proceeds to S409.

[0066] In S409, the OS 1020 and an application (not shown) execute processing according to the received packets. When the OS 1020 completes processing according to the received packets, the process proceeds to S309. For example, when a series of packets related to print data is received, print processing is performed based on the print data included in the packets. Also, for example, when the communication device 200 has a Web server function and receives a packet of an HTTP request, the communication device 200 executes processing to provide Web data corresponding to the HTTP request.

[0067] In S404, the protocol stack unit 1022 refers to the setting value DB 1011 and determines whether or not an operation setting is configured to attempt to establish communication with a destination device that has presented an MSS below the lower limit using the MSS lower limit. If an operation setting is configured to attempt to establish communication with a destination device that has presented an MSS below the lower limit using the MSS lower limit, the process proceeds to S406. On the other hand, if an operation setting is not configured to attempt to establish communication with a destination device that has presented an MSS below the lower limit using the MSS lower limit, the process proceeds to S405.

[0068] In S405, protocol stack unit 1022 compares the MSS value presented by the counterpart device included in the connection establishment start request with the MSS value (e.g., 1460 Bytes) set in communication device 200. Next, protocol stack unit 1022 attempts to establish TCP communication with the counterpart device using the smaller value as a result of the comparison.

[0069] In S406, the protocol stack unit 1022 refers to the setting DB 1011 and acquires the value of the MSS lower limit. Then, it is determined whether the MSS value presented by the destination device included in the connection establishment request is less than the acquired MSS lower limit. If the MSS value presented by the destination device is less than the acquired MSS lower limit, the process proceeds to S407. If the MSS value presented by the destination device is equal to or greater than the acquired MSS lower limit, the process proceeds to S405.

[0070] In S407, the protocol stack unit 1022 attempts to establish TCP communication with the destination device using the MSS lower limit value acquired in the process of S406. By performing the process described above with reference to Fig. 9, it becomes possible to perform communication control based on the operation settings.

[0071] Returning to the explanation of Fig. 8, in S309, OS1020 determines whether or not a shutdown operation has been received. Specifically, if a shutdown operation has been performed via operation panel 211, or if a hardware power button or power key of communication device 200 has been pressed, OS1020 determines that a shutdown operation has been received. If a shutdown operation has not been received, OS1020 returns to S301 and repeats communication control and resource confirmation processing. On the other hand, if a shutdown operation has been received, OS1020 performs shutdown control and ends the series of controls.

[0072] The above-described process makes it possible to provide a mechanism for setting an appropriate lower limit value for MSS according to the user environment in which the communication device is used, via a setting screen for setting the lower limit value.

[0073] <Second embodiment> In the first embodiment, a control for protecting the communication device 200 when an attack exploiting a vulnerability is made has been described. In the second embodiment, in addition to the control described in the first embodiment, a mechanism is provided for issuing an alert notification indicating that an attack exploiting a vulnerability may be made. Note that the hardware configuration in the second embodiment is similar to that in the first embodiment, and therefore a description thereof will be omitted.

[0074] A specific description will be given below. Fig. 10 is a diagram showing the software configuration in the second embodiment. The difference from the configuration explained in the first embodiment is that a notification control unit 1030 is provided. The notification control unit 1030 has a function to add a rule to the packet filtering unit 1021 for performing log output for packets that satisfy a predetermined condition, and a function to analyze the log and notify an alert when a packet log that satisfies the predetermined condition is present.

[0075] Next, the operation settings related to the notification control unit 1030 will be described with reference to FIG.

[0076] The setting screen shown in Fig. 11 is an example of a setting screen that the setting control unit 1010 displays on the operation panel 211. This screen is displayed in place of the screen exemplified in Fig. 4(A) in the first embodiment. Note that a description of display items similar to those in the first embodiment will be omitted. The setting screen in Fig. 11 differs from the setting screen in Fig. 4(A) in that it has setting items related to alert notification.

[0077] The screen of FIG. 11 includes labels indicating setting items including information such as "Send an alert if communication outside the MSS range is attempted," and keys 2030 and 2031.

[0078] Key 2030 is a display item for selecting whether to notify the occurrence of MSS communication outside the range that does not meet the lower limit of MSS when such communication is detected. Either key 2030 or 2031 is set to enabled, and the other is set to disabled. In this embodiment, a case where key 2031 is set to enabled is illustrated. Each setting made via the screen in FIG. 11 is stored in setting value DB 1011, and is referred to as appropriate in the flow chart described later.

[0079] The communication device 200 provides a mechanism for performing notification processing when this setting is enabled. Specific control will be described with reference to Figs. 12(A) to (C).

[0080] Fig. 12(A) is a flowchart for explaining each process executed when the setting related to the MSS shown in Fig. 10 is changed, when the communication device 200 is powered on, when the NW setting is changed, and when the communication device 200 returns from a sleep state. Meanwhile, the flowchart shown in Fig. 12(B) is an example of a flowchart for explaining a process for recording a log when performing communication control. Also, the flowchart shown in Fig. 13(C) is a flowchart for explaining each process repeatedly executed by the notification control unit 1030 when the communication device 200 is providing a function to the user in normal mode. Note that each process shown in the flowchart in Fig. 12(B) and each process shown in the flowchart in Fig. 12(C) are executed in parallel.

[0081] First, the operation setting will be described with reference to Fig. 12(A). In S501, the notification control unit 1030 refers to the setting DB 1011 and determines whether or not the operation setting for performing the communication alert notification is set. If the operation setting for performing the communication alert notification is set, the process proceeds to S502, and if not, the process ends.

[0082] In S502, the notification control unit 1030 sets a rule for the packet filtering unit 1021 to acquire a log of communication that does not meet the lower limit of the MSS acquired in S200. For example, when the lower limit of the MSS stored in the setting value DB 1011 is "500", the MSS control unit 1040 issues a command shown in FIG. 13 to the packet filtering unit 1021 of the OS 1020. This command is a command that means to write out to a log file packets that are sent from the other party when establishing a connection by TCP and have an MSS of 1 to 499. The filtering unit 1021 updates the filtering table based on this command. Therefore, when a communication outside the MSS range is attempted, it is possible to store a log indicating that the attempt occurred.

[0083] The storage of the log will be described with reference to Fig. 12(B). Fig. 12(B) shows a process that the packet filtering unit 1021 performs in addition to the processes described in the flowchart of Fig. 9 of the first embodiment. In the second embodiment, when it is determined in S401 of Fig. 9 that a packet has been received, the process of S511 is executed. In S511, the filtering unit 1021 judges whether or not the received packet satisfies the log output rule. If it satisfies the log output rule, the process proceeds to S512, and if it does not satisfy the log output rule, the process of judging whether or not it satisfies the discard rule of the first embodiment (S402 of Fig. 9) is executed.

[0084] In S512, the packet filtering unit 1021 cooperates with the system log daemon provided by the OS 1020 to record a log relating to the received packet in a predetermined storage area. The log is referred to as appropriate in each process of the flowchart described in Fig. 12(C). When the log storage process is completed, each process from S402 onwards in Fig. 9 is executed.

[0085] Finally, a mechanism for monitoring logs and notifying alerts will be described with reference to Fig. 12(C). In S521, the notification control unit 1030 cooperates with the OS 1020 to determine whether a predetermined time equivalent to a polling interval has elapsed. The polling interval for checking the resource usage status may be, for example, 5 minutes. If the control unit 1030 determines that the predetermined time has elapsed, it proceeds to processing in S522, and if it determines that the predetermined time has not elapsed, it waits for the predetermined time to elapse.

[0086] In S522, the notification control unit 1030 refers to a log file (log data) generated by the packet filtering unit 1021. Then, it is determined whether or not a log indicating that communication below the MSS lower limit has been attempted remains in the log file. If a log indicating that communication below the MSS lower limit has been attempted remains, the process proceeds to S523. On the other hand, if a log indicating that communication below the MSS lower limit has been attempted does not remain, the process proceeds to S524. Specifically, if the polling interval is set to every 5 minutes, the notification control unit 1030 obtains the current time from the OS 1020 and extracts log information up to 5 minutes before the current time. Then, the notification control unit 1030 determines whether or not a log indicating that communication below the MSS lower limit has been attempted remains in the extracted logs.

[0087] In S523, the notification control unit 1030 notifies the user of a communication alert in cooperation with the operation panel 211. A screen 2300 in Fig. 13 illustrates an example of a case where a notification is made in a status notification area 2310 arranged and displayed at the bottom of the operation panel 211 provided in the communication device 200. By checking a message 2311 displayed in the area 2210, the user can recognize the possibility that an attack is occurring.

[0088] Note that the notification method is just an example, and for example, in the case of a device such as a PC, the notification may be made using a notification banner such as a toast. Also, for example, in the case of a device such as a smartphone, the notification may be issued in a notification area using a notification function provided by the OS 1020.

[0089] Furthermore, the method of notification is not limited to display. For example, a notification destination email address to which an event occurring in communication device 200 is to be notified may be registered in advance in communication device 200, and a communication alert may be notified to the notification destination email address.

[0090] Furthermore, if the communication device 200 is managed by a management server or the like, the communication alert can be configured to be notified to the management server. Specifically, if the communication device 200 is managed by a directory service such as Active Directory (registered trademark), the communication alert can be notified to the server that provides the directory service. These notifications make it possible to notify an IT administrator or a network administrator who comprehensively manages the communication device 200 of the possibility that an attack is occurring.

[0091] Returning to the explanation of Fig. 12C, in S524, the OS 1020 judges whether or not a shutdown operation has been received. This control is the same as S309 explained in Fig. 8. If a shutdown operation has been received, the shutdown process is executed and the series of processes is terminated, and if a shutdown operation has been received, the process returns to S521 and the log monitoring process is repeated.

[0092] The above-described process makes it possible to issue an alert notification indicating that an attack exploiting a vulnerability may be underway.

[0093] <Modification> In the first and second embodiments, as shown in Fig. 4, the MSS lower limit is configured to be changeable based on a user operation. However, the present invention is not limited to this. For example, the lower limit of an MTU (Maximum Transmission Unit) indicating the maximum datagram of Ethernet can be modified as appropriate to be changeable by a user operation. In this case, the setting control unit 1010 may be configured to store in the setting DB 1011, as the MSS lower limit, a value obtained by subtracting 40 bytes, which is the size of an IP header and a TCP header, from the MTU lower limit accepted by the user operation.

[0094] <Other embodiments> The present invention can also be realized by supplying a program that realizes one or more functions of each of the above-mentioned embodiments to a system or device via a network or a storage medium, and having one or more processors in a computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC or FPGA) that realizes one or more functions. [Explanation of symbols]

[0095] 100 Network 200 Communication equipment 300 devices

Claims

1. A communication device that performs TCP (Transmission Control Protocol) communication with an external device, a setting means for setting a lower limit of a maximum segment size (MSS) used in the TCP communication based on a user operation; a communication control means for, when receiving a request to start TCP communication from an external device, determining an acceptable MSS candidate value received from the external device as an MSS to be used in the TCP communication if the acceptable MSS candidate value is equal to or greater than a lower limit value of the MSS set by the setting means, and establishing TCP communication with the external device; wherein when a request to start TCP communication is received from an external device, the communication control means performs control to attempt to establish TCP communication with the external device using the lower limit value of the MSS if an acceptable MSS candidate value received from the external device is smaller than a lower limit value of the MSS set by the setting means.

2. A communication device that performs TCP (Transmission Control Protocol) communication with an external device, a display control means for displaying a setting screen for setting a lower limit of a maximum segment size (MSS) to be used in the TCP communication based on a user operation; A setting means for setting a lower limit value of the MSS; a communication control means for, when receiving a request to start TCP communication from an external device, determining an acceptable MSS candidate value received from the external device as an MSS to be used in the TCP communication if the acceptable MSS candidate value is equal to or greater than a lower limit value of the MSS set by the setting means, and establishing TCP communication with the external device; and the setting screen displays at least a display item for receiving an input of the lower limit value and information indicating an input range of the lower limit value. A communication device comprising:

3. The communication device according to claim 2, further comprising a second communication control means for controlling the establishment of TCP communication with the external device when a request to start TCP communication is received from the external device and the acceptable MSS candidate value received from the external device is smaller than the lower limit value of the MSS set by the setting means.

4. The communication device according to claim 3, characterized in that the second communication control means uses a packet filtering function to discard the start request including an MSS candidate value smaller than the lower limit value, thereby controlling the establishment of TCP communication with the external device not to be established.

5. The communication device according to claim 2, characterized in that when the communication control means receives a request to start TCP communication from an external device, if the acceptable MSS candidate value received from the external device is smaller than the lower limit value of the MSS set by the setting means, the communication control means controls to attempt to establish TCP communication with the external device using the lower limit value of the MSS.

6. 6. The information processing apparatus according to claim 1, wherein the communication device is a printing device.

7. A display control unit is further provided for displaying a setting screen for setting the lower limit value of the MSS, 2 . The information processing apparatus according to claim 1 , wherein the setting screen displays at least a display item for receiving input of the lower limit value and information indicating an input range of the lower limit value.

8. 8. An information processing device according to claim 1, further comprising a notification means for issuing a predetermined notification when, upon receiving a request to start TCP communication from an external device, the acceptable MSS candidate value received from the external device is smaller than the lower limit value of the MSS set by the setting means.

9. A method for controlling a communication device that performs TCP (Transmission Control Protocol) communication with an external device, comprising: a setting step of setting a lower limit of a maximum segment size (MSS) used in the TCP communication based on a user operation; a communication control step of, when receiving a request to start TCP communication from an external device, determining an acceptable MSS candidate value received from the external device as an MSS to be used in the TCP communication if the acceptable MSS candidate value is equal to or greater than the lower limit value of the MSS set in the setting step, and establishing TCP communication with the external device; and in the communication control step, when a request to start TCP communication is received from an external device, if an acceptable MSS candidate value received from the external device is smaller than a lower limit value of the MSS set in the setting step, control is performed to attempt to establish TCP communication with the external device using the lower limit value of the MSS.

10. A program for causing a computer to execute the method for controlling a communication device according to claim 9.

Citation Information

Patent Citations

  • CVE-2019-11478

  • Communication apparatus

    JP2012160901A

  • Communication apparatus

    JP2012205248A