CN110858132B - Configuration security detection method and device for printing equipment - Google Patents

Configuration security detection method and device for printing equipment Download PDF

Info

Publication number
CN110858132B
CN110858132B CN201811394490.2A CN201811394490A CN110858132B CN 110858132 B CN110858132 B CN 110858132B CN 201811394490 A CN201811394490 A CN 201811394490A CN 110858132 B CN110858132 B CN 110858132B
Authority
CN
China
Prior art keywords
configuration information
information acquisition
printing
security
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811394490.2A
Other languages
Chinese (zh)
Other versions
CN110858132A (en
Inventor
陈震东
黄显澍
王小丰
肖新光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Antiy Technology Group Co Ltd
Original Assignee
Antiy Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Antiy Technology Group Co Ltd filed Critical Antiy Technology Group Co Ltd
Priority to CN201811394490.2A priority Critical patent/CN110858132B/en
Publication of CN110858132A publication Critical patent/CN110858132A/en
Application granted granted Critical
Publication of CN110858132B publication Critical patent/CN110858132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1209Improving or facilitating administration, e.g. print management resulting in adapted or bridged legacy communication protocols, e.g. emulation, protocol extension
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1222Increasing security of the print job
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1238Secure printing, e.g. user identification, user rights for device usage, unallowed content, blanking portions or fields of a page, releasing held jobs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Abstract

The embodiment of the invention discloses a configuration security detection method and device of printing equipment, relates to the technical field of information security, and can improve the efficiency and accuracy of configuration security detection of the printing equipment. The method comprises the following steps: constructing a configuration information acquisition instruction based on a preset language standard; sending the configuration information acquisition instruction to target printing equipment to be detected, and receiving printing configuration information fed back by the target printing equipment; and comparing the printing configuration information with preset reference configuration information to detect the security of the configuration information of the target printing equipment. The invention can be used for the configuration security detection of the printing equipment.

Description

Configuration security detection method and device for printing equipment
Technical Field
The present invention relates to the field of network security technologies, and in particular, to a method and an apparatus for detecting configuration security of a printing device.
Background
The printer is the most widely used office equipment at present, and is the essential seal equipment for enterprises and even families. In general, a printer may be connected to one terminal device via a network cable, or may be connected to a switch or a server, and thus connected to a plurality of terminal devices via a network.
The printer is used as a device for accessing the network, and the security problem of the printer is not ignored. Since specific attributes of the printing device need to be configured, and a configuration policy determines whether the printing device is connected to a public network, caches data, exposes a port, exposes a service, and the like, the configuration security of the printing device is of great significance.
However, at present, the configuration of the printing device can only be safely checked by checking the configuration information one by one through a Web page or a device operation panel, so that the efficiency is low, key items are easily missed, and the accuracy is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for detecting configuration security of a printing device, which can quickly obtain configuration information of the printing device and accurately detect whether the configuration is secure to the printing device, thereby improving efficiency and accuracy of configuration security detection of the printing device.
In a first aspect, an embodiment of the present invention provides a configuration security detection method of a printing apparatus, including: constructing a configuration information acquisition instruction based on a preset language standard; sending the configuration information acquisition instruction to target printing equipment to be detected, and receiving printing configuration information fed back by the target printing equipment; and comparing the printing configuration information with preset reference configuration information to detect the security of the configuration information of the target printing equipment.
Optionally, the constructing the configuration information obtaining instruction based on the preset language standard includes: constructing the configuration information acquisition instruction based on a printer job language standard, wherein the configuration information acquisition instruction comprises at least one of the following: identification information acquisition instructions, configuration information acquisition instructions, product information acquisition instructions, firmware information acquisition instructions, memory information acquisition instructions, page number information acquisition instructions, status information acquisition instructions, and variable information acquisition instructions.
Optionally, the sending the configuration information obtaining instruction to the target printing device to be detected includes: encapsulating the configuration information acquisition instruction into a data packet message with a corresponding format according to a preset network protocol; and sending the data packet message to the target printing equipment.
Optionally, the comparing the print configuration information with preset reference configuration information to detect security of configuration information of the target printing device includes: analyzing the received printing configuration information to obtain the brand and/or model of the target printing equipment; searching corresponding basic configuration information items in a basic configuration information base by taking the brand and/or model as an index; comparing each item of the analyzed printing configuration information with the corresponding item in the searched reference configuration information item respectively; if the comparison result shows that all the configurations are consistent, determining the configuration information security of the target printing equipment; and if any configuration is inconsistent in the comparison result, determining that the configuration information of the target printing device is at risk.
Optionally, after comparing the print configuration information with preset reference configuration information to detect security of configuration information of the target printing device, the method further includes: and recommending corresponding configuration in the preset reference configuration information to a user under the condition that the detection result shows that the configuration information of the target printing equipment is at risk.
Optionally, before comparing the print configuration information with the preset reference configuration information, the method further includes: acquiring security printing configuration information of the security printing equipment; and establishing the preset reference configuration information according to the secure printing configuration information.
In a second aspect, an embodiment of the present invention further provides a configuration security detection apparatus of a printing device, including: the construction unit is used for constructing a configuration information acquisition instruction based on a preset language standard; the receiving and transmitting unit is used for sending the configuration information acquisition instruction to the target printing equipment to be detected and receiving printing configuration information fed back by the target printing equipment; and the comparison unit is used for comparing the printing configuration information with preset reference configuration information so as to detect the security of the configuration information of the target printing equipment.
Optionally, the construction unit is specifically configured to construct the configuration information acquisition instruction based on a printer job language standard, where the configuration information acquisition instruction includes at least one of the following: identification information acquisition instructions, configuration information acquisition instructions, product information acquisition instructions, firmware information acquisition instructions, memory information acquisition instructions, page number information acquisition instructions, status information acquisition instructions, and variable information acquisition instructions.
Optionally, the transceiver unit includes: the packaging module is used for packaging the configuration information acquisition instruction into a data packet message with a corresponding format according to a preset network protocol; and the sending module is used for sending the data packet message to the target printing equipment.
Optionally, the comparing unit includes: the analysis module is used for analyzing the received printing configuration information to obtain the brand and/or model of the target printing equipment; the searching module is used for searching corresponding reference configuration information items in the reference configuration information base by taking the brand and/or model as an index; the comparison module is used for respectively comparing each item of the analyzed printing configuration information with the corresponding item in the searched reference configuration information item; a determining module for: if the comparison result shows that all the configurations are consistent, determining the configuration information security of the target printing equipment; and if any configuration is inconsistent in the comparison result, determining that the configuration information of the target printing device is at risk.
Optionally, the apparatus further includes a recommending unit, configured to compare the print configuration information with preset reference configuration information, and after detecting the security of the configuration information of the target printing device, recommend the corresponding configuration in the preset reference configuration information to the user if the detection result is that the configuration information of the target printing device is at risk.
Optionally, the apparatus further includes a reference establishing unit configured to, before comparing the print configuration information with preset reference configuration information: acquiring security printing configuration information of the security printing equipment; and establishing the preset reference configuration information according to the secure printing configuration information.
In a third aspect, embodiments of the present invention further provide an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing any one of the configuration security detection methods of the printing apparatus provided by the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the configuration security detection method of any one of the printing apparatuses provided by the embodiment of the present invention.
The configuration security detection method, the device, the electronic equipment and the storage medium of the printing equipment provided by the embodiment of the invention can construct the configuration information acquisition instruction based on the preset language standard, send the constructed instruction to the target printing equipment to be detected, and detect the security of the configuration information of the target printing equipment by comparing the printing configuration information with the preset reference configuration information after receiving the printing configuration information fed back by the target printing equipment. Because the configuration information of the printing equipment can be obtained through the computer instruction and the network communication, and the obtained configuration information is compared with the preset reference configuration information, the configuration information of the printing equipment can be quickly obtained, whether the configuration is safe for the printing equipment or not can be accurately detected, and therefore the efficiency and the accuracy of the configuration safety detection of the printing equipment are effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a configuration security detection method of a printing apparatus according to an embodiment of the present invention;
fig. 2 is a detailed flowchart of a configuration security detection method of a printing apparatus according to an embodiment of the present invention;
FIG. 3 is a flowchart showing a step of FIG. 2;
fig. 4 is a schematic structural view of a configuration security detection device of a printing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In a first aspect, an embodiment of the present invention provides a method for detecting configuration security of a printing device, which can quickly obtain configuration information of the printing device and accurately detect whether the configuration is secure for the printing device, thereby improving efficiency and accuracy of configuration security detection of the printing device.
As shown in fig. 1, a configuration security detection method of a printing apparatus according to an embodiment of the present invention includes:
s11, constructing a configuration information acquisition instruction based on a preset language standard;
the preset language standard may be a language rule that the terminal and the printing device are well defined and that both parties can mutually understand and communicate. The terminal may construct a series of instructions for acquiring print configuration information from the printing apparatus based on the standard, thereby knowing how various attributes and parameters of the printing apparatus are configured. Alternatively, in the embodiment of the present invention, the configuration information acquisition instruction may be constructed in a variety, and one instruction may be used to specifically acquire one type of configuration information, or may be used as a general instruction to acquire some type or all of configuration information of the printing apparatus, which is not limited in the embodiment of the present invention.
S12, sending the configuration information acquisition instruction to target printing equipment to be detected, and receiving printing configuration information fed back by the target printing equipment;
in this step, the constructed configuration information acquisition instruction may be transmitted to the target printing apparatus to be detected, as needed. The target printing device can recognize the received configuration information acquisition instruction, respond to the instruction, and feed back the corresponding printing configuration information to the terminal sending the instruction.
S13, comparing the printing configuration information with preset reference configuration information to detect the security of the configuration information of the target printing equipment.
Specifically, after the print configuration information of the target printing apparatus is acquired, the print configuration information may be compared with preset reference configuration information whose security is known, and whether the configuration of the target printing apparatus to be detected is safe or not may be simply determined by detecting whether the security meets the corresponding reference.
According to the configuration security detection method for the printing equipment, provided by the embodiment of the invention, the configuration information acquisition instruction can be constructed based on the preset language standard, the constructed instruction is sent to the target printing equipment to be detected, and after the printing configuration information fed back by the target printing equipment is received, the security of the configuration information of the target printing equipment is detected by comparing the printing configuration information with the preset reference configuration information. Because the configuration information of the printing equipment can be obtained through the computer instruction and the network communication, and the obtained configuration information is compared with the preset reference configuration information, the configuration information of the printing equipment can be quickly obtained, whether the configuration is safe for the printing equipment or not can be accurately detected, and therefore the efficiency and the accuracy of the configuration safety detection of the printing equipment are effectively improved.
Specifically, in one embodiment of the present invention, the language standard preset in step S11 may be a printer job language (PJL, print job language) standard, that is, the configuration information acquisition instruction may be constructed based on the printer job language (PJL, print job language) standard.
According to the difference of the items and types of the configuration information of the printing device, the constructed configuration information acquisition instructions are correspondingly different. Optionally, in an embodiment of the present invention, the configuration information acquisition instruction may include one or more of: identification information acquisition instruction (@ PJL INFO ID), configuration information acquisition instruction (@ PJL INFO CONFIG), product information acquisition instruction (@ PJL INFO PRODINFO), firmware information acquisition instruction (@ PJL INFO BRFIRMWARE), MEMORY information acquisition instruction (@ PJL INFO MEMORY), page number information acquisition instruction (@ PJL INFO PAGECOUNT), STATUS information acquisition instruction (@ PJL INFO STATUS), variable information acquisition instruction (@ PJL INFO VARIABLES), and the like. Alternatively, in another embodiment of the present invention, a wild card may be used to enable one instruction to obtain multiple or all configuration information.
After the configuration information acquisition instruction is constructed, in step S12, the configuration information acquisition instruction may be transmitted to the target printing apparatus to be detected, so as to acquire the configuration information of the target printing apparatus to be detected. Specifically, if the target printing device is connected with the terminal through the network, the configuration information acquisition instruction can be packaged into a data packet message with a corresponding format according to a preset network protocol, and the data packet message is sent to the target printing device. For example, the configuration information acquisition instruction may be encapsulated into data packet messages conforming to the TCP/IP protocol, and these data packet messages are sent to the target printing device through the network, so that the target printing device feeds back its own print configuration information to the terminal according to the configuration information acquisition instruction in these messages.
After the terminal sends the configuration information acquisition instruction, the terminal can wait for feedback of the target printing equipment. If the fed back print configuration information is still transmitted through the network, the terminal may analyze the received message according to the preset network protocol, and then acquire the print configuration message from the analyzed message.
After the print configuration information of the target printing apparatus is obtained, the print configuration information may be compared with the preset reference configuration information in step S13 to detect the security of the configuration information of the target printing apparatus. In this step, the preset reference configuration information is one of configuration information of which the security of the printing apparatus is known. The reference configuration information corresponding to different brands or models of printing apparatuses may be the same or different. In one embodiment of the present invention, the reference configuration information corresponding to the printing apparatuses of various brands or models may be organized into a lookup table and stored. When the target printing equipment to be detected needs to read the corresponding reference configuration information and compare the reference configuration information, the target printing equipment can be directly read from the lookup table, so that a reliable basis is provided for judging the security of the printing configuration information, the judging speed is increased, and the efficiency and the effect of the security detection of the configuration information are effectively improved.
Specifically, in one embodiment of the present invention, the step S13 of comparing the print configuration information with the preset reference configuration information may specifically include:
analyzing the received printing configuration information to obtain the brand and/or model of the target printing equipment;
searching corresponding basic configuration information items in a basic configuration information base by taking the brand and/or model as an index;
comparing each item of the analyzed printing configuration information with the corresponding item in the searched reference configuration information item respectively;
if the comparison result shows that all the configurations are consistent, determining the configuration information security of the target printing equipment;
and if any configuration is inconsistent in the comparison result, determining that the configuration information of the target printing device is at risk.
Because the print configuration information fed back by the target printing device can contain one or more configuration parameters corresponding to the configuration information acquisition instruction, when detecting whether the print configuration of the target printing device is safe, the method also needs to comprehensively examine whether each configuration parameter is safe. In order to avoid missing or repeating the inspected item, in one embodiment of the present invention, the brand and/or model of the target printing device may be used as an index, and corresponding reference configuration information items may be searched in the reference configuration information base, and the corresponding items may be compared after being locked. For example, if the brand and model of the target printing device is Epson I380, an entry corresponding to Epson I380 may be found in the reference configuration information base, and optionally, the reference configuration information in the entry may include, for example, memory information, state information, variable information, and the like.
After finding the corresponding item, each configuration parameter in the parsed print configuration information may be compared with the corresponding item in the found reference configuration information item, for example, the memory information, the state information and the variable information of the two may be compared respectively. It will be appreciated that, in order to make the comparison more comprehensive, as many configuration items as possible may be included in the reference configuration information, and the configuration items included in the print configuration information of the target printing apparatus to be detected may be the same as or different from those in the reference configuration information, for example, may be fewer than those in the reference configuration information, which is not limited by the embodiment of the present invention.
Through the comparison, if the comparison result is that all the configurations are consistent, the configuration information security of the target printing equipment can be determined; if any configuration is inconsistent in the comparison result, it can be determined that the configuration information of the target printing device is at risk.
Further, for the target printing device with risk, in an embodiment of the present invention, after comparing the print configuration information with the preset reference configuration information to detect the security of the configuration information of the target printing device, if the detection result is that the configuration information of the target printing device is at risk, the corresponding configuration in the preset reference configuration information may be recommended to the user. For example, if the automatic sleep time in the print configuration information of the target printing apparatus is 15 minutes and the automatic sleep time in the reference configuration information is 3 minutes, the user may be informed that there is a risk of the automatic sleep time in the formed detection report, and it is recommended to set the automatic sleep time to 3 minutes.
In the above-described embodiment, the reference configuration information is established in advance, but the embodiment of the present invention is not limited thereto. In other embodiments of the present invention, if there is no reference configuration information established in advance, or no corresponding reference configuration information is found in the reference configuration information library, the reference configuration information may also be established by using a printing device with known security, so that the detection of the security of the configuration of the printing device is more flexible. For example, in one embodiment of the present invention, the secure print configuration information of the secure printing apparatus may also be acquired before comparing the print configuration information with the preset reference configuration information; and establishing the preset reference configuration information according to the secure printing configuration information. Alternatively, when the preset reference configuration information is established, an information item may be formed by indexing the brand and/or model of the security printing apparatus, and the newly formed item may be inserted into an existing database.
The configuration security detection method of the printing apparatus provided by the embodiment of the present invention is described in detail below by way of specific embodiments.
As shown in fig. 2, the configuration security detection method of a printing apparatus provided by an embodiment of the present invention may include:
the method needs to be communicated with the network printer, so that the communication with the printer is ensured, equipment such as a switch, a router and the like which can be selectively accessed to the network where the printer is located can also be directly connected with the printer, but the method is not limited to the method and can be communicated with the printer;
s201, constructing a configuration information acquisition instruction according to detection requirements.
Alternatively, the configuration information acquisition instruction may be constructed according to the PJL language. The PJL language is a standard language facing the printer and is composed of a plurality of instructions for inquiring, managing and controlling the printer. The instructions constructed in this step may include: @ PJL INFO ID, @ PJL INFO CONFIG, @ PJL INFO PRODINFO, @ PJL INFO BRFIRMWARE, @ PJL INFO MEMORY, @ PJL INFO PAGECOUNT, @ PJL INFO STATUS, @ PJL INFO VARIABLES, and the like.
S202, respectively packaging the constructed configuration information acquisition instructions into IP data packets.
And S203, sending the packaged configuration information acquisition instruction to the target printing equipment to be detected.
S204, receiving the data packet fed back by the target printing equipment, and analyzing according to the PJL language standard to obtain the printing configuration of the target printing equipment.
S205, judging whether all configuration information is acquired, if so, executing step S206, otherwise executing step S201.
S206, extracting the standard configuration information of the brand and the model from a preset standard configuration information base according to the brand and the model analyzed in the S204;
in this step, the method for establishing the preset reference configuration information base may be as shown in fig. 3.
S2061, acquiring configuration information of the printing equipment with safe configuration;
specifically, a configuration information acquisition instruction may be constructed and sent to the printing device, and the printing configuration information fed back by the printing device may be received. Unlike the target printing apparatus to be detected, each configuration of the printing apparatus for which security is configured in this step is known to be secure. The reference configuration information is used as a detection basis and standard, and has requirements on the accuracy and safety of the configuration of the printing equipment, so that a new printing equipment or a safe printing equipment can be selected for the operation;
s2062, using the brand and/or model in the obtained printing configuration information as a label, forming a printing configuration information item by the printing configuration information, and inserting the printing configuration information item into a database, wherein the database is the reference configuration information base.
S207, comparing the printer configuration information analyzed in S204 with the reference configuration information extracted in S206, checking whether the values of each item are matched, and recording as an abnormality if the values are not matched with the reference configuration information.
S208, the recommended configuration in the reference information base is given for the abnormal item in S207, and a configuration safety detection report is formed.
For example, if the current value of the timeout is 10S, the reference value is 5S, the two are inconsistent, the risk is prompted, and the proposal is set to 5S;
if the current value of automatic dormancy is 10min, the reference value is 3min, the current value and the reference value are inconsistent, the risk is prompted, and the recommendation is set to be 3min;
if the current value of the watermark attribute is supported, the reference value is not supported, the two values are inconsistent, the risk is prompted, and a driver which does not support the watermark is recommended to be used.
In a second aspect, an embodiment of the present invention further provides a configuration security detection apparatus for a printing device, which is capable of quickly acquiring configuration information of the printing device and accurately detecting whether the configuration is secure for the printing device, thereby improving efficiency and accuracy of configuration security detection of the printing device.
As shown in fig. 4, a configuration security detection apparatus of a printing device provided by an embodiment of the present invention may include:
a construction unit 31 for constructing a configuration information acquisition instruction based on a preset language standard;
a transceiver unit 32, configured to send the configuration information acquisition instruction to a target printing device to be detected, and receive print configuration information fed back by the target printing device;
a comparing unit 33 for comparing the print configuration information with preset reference configuration information to detect the security of the configuration information of the target printing apparatus.
The configuration security detection device of the printing equipment provided by the embodiment of the invention can construct a configuration information acquisition instruction based on a preset language standard, send the constructed instruction to the target printing equipment to be detected, and detect the security of the configuration information of the target printing equipment by comparing the printing configuration information with the preset reference configuration information after receiving the printing configuration information fed back by the target printing equipment. Because the configuration information of the printing equipment can be obtained through the computer instruction and the network communication, and the obtained configuration information is compared with the preset reference configuration information, the configuration information of the printing equipment can be quickly obtained, whether the configuration is safe for the printing equipment or not can be accurately detected, and therefore the efficiency and the accuracy of the configuration safety detection of the printing equipment are effectively improved.
Optionally, the construction unit 31 is specifically configured to construct the configuration information acquisition instruction based on a printer job language standard, where the configuration information acquisition instruction includes at least one of the following: identification information acquisition instructions, configuration information acquisition instructions, product information acquisition instructions, firmware information acquisition instructions, memory information acquisition instructions, page number information acquisition instructions, status information acquisition instructions, and variable information acquisition instructions.
Alternatively, the transceiving unit 32 may include:
the packaging module is used for packaging the configuration information acquisition instruction into a data packet message with a corresponding format according to a preset network protocol;
and the sending module is used for sending the data packet message to the target printing equipment.
Alternatively, the comparison unit 33 may include:
the analysis module is used for analyzing the received printing configuration information to obtain the brand and/or model of the target printing equipment;
the searching module is used for searching corresponding reference configuration information items in the reference configuration information base by taking the brand and/or model as an index;
the comparison module is used for respectively comparing each item of the analyzed printing configuration information with the corresponding item in the searched reference configuration information item;
a determining module for: if the comparison result shows that all the configurations are consistent, determining the configuration information security of the target printing equipment; and if any configuration is inconsistent in the comparison result, determining that the configuration information of the target printing device is at risk.
Optionally, the configuration security detection device of a printing apparatus according to the embodiment of the present invention may further include a recommending unit, configured to compare the print configuration information with preset reference configuration information, so as to recommend, after detecting security of the configuration information of the target printing apparatus, a corresponding configuration in the preset reference configuration information to a user when the detection result indicates that the configuration information of the target printing apparatus is at risk.
Optionally, the configuration security detection apparatus of a printing device provided by the embodiment of the present invention may further include a reference establishing unit, configured to, before comparing the print configuration information with preset reference configuration information: acquiring security printing configuration information of the security printing equipment; and establishing the preset reference configuration information according to the secure printing configuration information.
In a third aspect, an embodiment of the present invention provides an electronic device, which is capable of quickly acquiring configuration information of a printing device and accurately detecting whether the configuration is safe for the printing device, so as to improve efficiency and accuracy of configuration security detection of the printing device.
As shown in fig. 5, an electronic device provided by an embodiment of the present invention may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged in a space surrounded by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to the respective circuits or devices of the above-described electronic apparatus; the memory 43 is for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for executing the configuration security detection method of the printing apparatus described in any one of the foregoing embodiments.
The specific implementation of the above steps by the processor 42 and the further implementation of the steps by the processor 42 through the execution of the executable program code may be referred to the description of the foregoing embodiments, and will not be repeated here.
The electronic device exists in a variety of forms including, but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc.
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad.
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices.
(4) And (3) a server: the configuration of the server includes a processor, a hard disk, a memory, a system bus, and the like, and the server is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like.
(5) Other electronic devices with data interaction functions.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium storing one or more programs, where the one or more programs may be executed by one or more processors, to implement any of the configuration security detection methods of the printing apparatus provided in the foregoing embodiments, so that corresponding technical effects may also be achieved, and the foregoing details are not repeated herein.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
For convenience of description, the above apparatus is described as being functionally divided into various units/modules, respectively. Of course, the functions of the various elements/modules may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (12)

1. A configuration security detection method of a printing apparatus, which is applied to security detection of a printing apparatus accessing a network, comprising:
constructing a configuration information acquisition instruction based on a preset language standard;
sending the configuration information acquisition instruction to target printing equipment to be detected, and receiving printing configuration information fed back by the target printing equipment;
comparing the printing configuration information with preset reference configuration information to detect the security of the configuration information of the target printing device; the preset reference configuration information is a configuration information of which the security of the printing apparatus is known;
the comparing the print configuration information with preset reference configuration information to detect the security of the configuration information of the target printing apparatus includes:
analyzing the received printing configuration information to obtain the brand and/or model of the target printing equipment;
searching corresponding basic configuration information items in a basic configuration information base by taking the brand and/or model as an index;
comparing each item of the analyzed printing configuration information with the corresponding item in the searched reference configuration information item respectively;
if the comparison result shows that all the configurations are consistent, determining the configuration information security of the target printing equipment;
and if any configuration is inconsistent in the comparison result, determining that the configuration information of the target printing device is at risk.
2. The method of claim 1, wherein constructing the configuration information acquisition instruction based on the preset language criteria comprises:
constructing the configuration information acquisition instruction based on a printer job language standard, wherein the configuration information acquisition instruction comprises at least one of the following: identification information acquisition instructions, configuration information acquisition instructions, product information acquisition instructions, firmware information acquisition instructions, memory information acquisition instructions, page number information acquisition instructions, status information acquisition instructions, and variable information acquisition instructions.
3. The method of claim 1, wherein the sending the configuration information acquisition instruction to the target printing device to be detected comprises:
encapsulating the configuration information acquisition instruction into a data packet message with a corresponding format according to a preset network protocol;
and sending the data packet message to the target printing equipment.
4. The method according to claim 1, wherein after comparing the print configuration information with preset reference configuration information to detect security of configuration information of the target printing apparatus, the method further comprises:
and recommending corresponding configuration in the preset reference configuration information to a user under the condition that the detection result shows that the configuration information of the target printing equipment is at risk.
5. The method according to any one of claims 1 to 4, wherein prior to said comparing said print configuration information with preset reference configuration information, the method further comprises:
acquiring security printing configuration information of the security printing equipment;
and establishing the preset reference configuration information according to the secure printing configuration information.
6. A configuration security detection apparatus of a printing device, which is applied to security detection of a printing device accessing a network, comprising:
the construction unit is used for constructing a configuration information acquisition instruction based on a preset language standard;
the receiving and transmitting unit is used for sending the configuration information acquisition instruction to the target printing equipment to be detected and receiving printing configuration information fed back by the target printing equipment;
a comparison unit configured to compare the print configuration information with preset reference configuration information to detect security of configuration information of the target printing apparatus; the preset reference configuration information is a configuration information of which the security of the printing apparatus is known;
the comparison unit includes:
the analysis module is used for analyzing the received printing configuration information to obtain the brand and/or model of the target printing equipment;
the searching module is used for searching corresponding reference configuration information items in the reference configuration information base by taking the brand and/or model as an index;
the comparison module is used for respectively comparing each item of the analyzed printing configuration information with the corresponding item in the searched reference configuration information item;
a determining module for: if the comparison result shows that all the configurations are consistent, determining the configuration information security of the target printing equipment; and if any configuration is inconsistent in the comparison result, determining that the configuration information of the target printing device is at risk.
7. The apparatus according to claim 6, wherein the construction unit is specifically configured to construct the configuration information acquisition instruction based on a printer job language standard, wherein the configuration information acquisition instruction includes at least one of: identification information acquisition instructions, configuration information acquisition instructions, product information acquisition instructions, firmware information acquisition instructions, memory information acquisition instructions, page number information acquisition instructions, status information acquisition instructions, and variable information acquisition instructions.
8. The apparatus of claim 6, wherein the transceiving unit comprises:
the packaging module is used for packaging the configuration information acquisition instruction into a data packet message with a corresponding format according to a preset network protocol;
and the sending module is used for sending the data packet message to the target printing equipment.
9. The apparatus according to claim 6, further comprising a recommending unit configured to compare the print configuration information with preset reference configuration information to detect security of the configuration information of the target printing device, and then recommend corresponding configuration in the preset reference configuration information to a user if the detection result is that the configuration information of the target printing device is at risk.
10. The apparatus according to any one of claims 6 to 9, further comprising a reference establishing unit configured to, before comparing the print configuration information with preset reference configuration information:
acquiring security printing configuration information of the security printing equipment;
and establishing the preset reference configuration information according to the secure printing configuration information.
11. An electronic device, the electronic device comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the configuration security detection method of the printing apparatus according to any one of the preceding claims 1 to 5.
12. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the configuration security detection method of a printing apparatus according to any one of the preceding claims 1 to 5.
CN201811394490.2A 2018-11-22 2018-11-22 Configuration security detection method and device for printing equipment Active CN110858132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811394490.2A CN110858132B (en) 2018-11-22 2018-11-22 Configuration security detection method and device for printing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811394490.2A CN110858132B (en) 2018-11-22 2018-11-22 Configuration security detection method and device for printing equipment

Publications (2)

Publication Number Publication Date
CN110858132A CN110858132A (en) 2020-03-03
CN110858132B true CN110858132B (en) 2023-07-21

Family

ID=69636433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811394490.2A Active CN110858132B (en) 2018-11-22 2018-11-22 Configuration security detection method and device for printing equipment

Country Status (1)

Country Link
CN (1) CN110858132B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112379852B (en) * 2020-12-03 2022-04-26 厦门米应科技有限公司 Method and device for reading and identifying printing parameters
CN112905131B (en) * 2021-02-05 2023-12-15 深圳市商汤科技有限公司 Self-service printing background compatible method and device, equipment, storage medium and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866866A (en) * 2011-07-05 2013-01-09 富士施乐株式会社 Information processing apparatus and method, printing system
CN108202533A (en) * 2016-12-19 2018-06-26 大数据奥尼尔公司 For examining the printer verifier of franking and system and method
CN108255444A (en) * 2018-02-09 2018-07-06 上海宝尊电子商务有限公司 A kind of general WIFI Method of printings and system based on iOS movement equipment
US10122872B1 (en) * 2017-05-31 2018-11-06 Xerox Corporation Automatic configuration of network devices in remote managed print service applications utilizing groups of historical device data

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009297994A (en) * 2008-06-12 2009-12-24 Ricoh Co Ltd Printing apparatus, printing system and program
JP5822503B2 (en) * 2011-03-30 2015-11-24 キヤノン株式会社 Inspection system, inspection system control method and program
CN103390132A (en) * 2012-05-07 2013-11-13 恒安嘉新(北京)科技有限公司 Automatic Unix system security configuration check method
CN104601524A (en) * 2013-10-30 2015-05-06 北京神州泰岳软件股份有限公司 Security check method and system
JP2016052766A (en) * 2014-09-04 2016-04-14 キヤノン株式会社 Printer, printing method, program and printing system
CN105592015B (en) * 2014-10-24 2019-05-24 中国移动通信集团广东有限公司 Safety detection method and device under cloud environment
CN205827361U (en) * 2016-05-23 2016-12-21 中山市三藏电子科技有限公司 Off-line printing testing and control equipment
CN106027575A (en) * 2016-08-01 2016-10-12 湖南润安危物联科技发展有限公司 Client and security check device and method
CN106484343B (en) * 2016-09-13 2019-09-17 北京三快在线科技有限公司 Control method and device, the electronic equipment of printer
CN107294979A (en) * 2017-06-29 2017-10-24 国家计算机网络与信息安全管理中心 The network safety evaluation method and device verified based on configuration
CN107578345A (en) * 2017-09-08 2018-01-12 南方电网科学研究院有限责任公司 Power system security detection method, device, storage medium and computer equipment
CN107590389B (en) * 2017-10-18 2020-09-11 北京奇虎科技有限公司 Security testing method and device, electronic equipment and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866866A (en) * 2011-07-05 2013-01-09 富士施乐株式会社 Information processing apparatus and method, printing system
CN108202533A (en) * 2016-12-19 2018-06-26 大数据奥尼尔公司 For examining the printer verifier of franking and system and method
US10122872B1 (en) * 2017-05-31 2018-11-06 Xerox Corporation Automatic configuration of network devices in remote managed print service applications utilizing groups of historical device data
CN108255444A (en) * 2018-02-09 2018-07-06 上海宝尊电子商务有限公司 A kind of general WIFI Method of printings and system based on iOS movement equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
在CCED中挂接UCDOS 6.0的打印机断针免修程序;王德祥\n\n\n,冯麒\n\n\n,王志斌;电子与电脑(08);第149-150页 *

Also Published As

Publication number Publication date
CN110858132A (en) 2020-03-03

Similar Documents

Publication Publication Date Title
EP3178011B1 (en) Method and system for facilitating terminal identifiers
US10404753B2 (en) Method and apparatus for detecting security using an industry internet operating system
US20160241589A1 (en) Method and apparatus for identifying malicious website
CN105809471B (en) Method and device for acquiring user attribute and electronic equipment
CN110858132B (en) Configuration security detection method and device for printing equipment
WO2014194808A1 (en) Method and device for comparing and analysing pcb engineering problems and for sending results thereof
CN113973012B (en) Threat detection method and device, electronic equipment and readable storage medium
CN110619022B (en) Node detection method, device, equipment and storage medium based on block chain network
CN108833961B (en) Method, server and system for acquiring flight record data
CN110737565A (en) data monitoring method, device, electronic equipment and storage medium
CN112613576A (en) Method and device for determining alarm, electronic equipment and storage medium
CN110932960A (en) Social software-based fraud prevention method, server and system
CN106803830B (en) Method, device and system for identifying internet access terminal and User Identity Module (UIM) card
CN103853980A (en) Safety prompting method and device
CN110503504B (en) Information identification method, device and equipment of network product
CN114070819B (en) Malicious domain name detection method, device, electronic device and storage medium
CN110875921A (en) Printer network access security detection method and device and electronic equipment
CN105812433B (en) Cloud adaptation processing method and device, terminal and cloud server
CN110874195B (en) Printing language identification method, device, electronic equipment and storage medium
CN113839784B (en) Secure call method and device, electronic equipment and storage medium
CN112214182B (en) Printer identification method and device, electronic equipment and storage medium
CN110418174B (en) Method and device for determining type of terminal equipment, electronic equipment and storage medium
CN115811439A (en) Method and device for detecting abnormal scanning behaviors in network, electronic equipment and medium
CN111030987A (en) Correlation analysis method and device for multiple safety devices and storage medium
CN114417331A (en) Method and device for determining virus characteristic credibility, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 150028 Building 7, Innovation Plaza, Science and Technology Innovation City, Harbin High-tech Industrial Development Zone, Heilongjiang Province (838 Shikun Road)

Applicant after: Antan Technology Group Co.,Ltd.

Address before: 150028 Building 7, Innovation Plaza, Science and Technology Innovation City, Harbin High-tech Industrial Development Zone, Heilongjiang Province (838 Shikun Road)

Applicant before: Harbin Antian Science and Technology Group Co.,Ltd.

GR01 Patent grant
GR01 Patent grant