A file stream-based internal and external network data synchronization method and system
Through the internal and external network data synchronization method based on file flow, using XML files and scheduled scanning technology, the security problem of data synchronization between the internal network and the external network is solved, the timely update of data analysis results and the safe update of the database are realized, ensuring the data security. Transmission security and consistency.
Patent Information
- Application Number
- CN202410064575.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-01-16
AI Technical Summary
In the existing technology, there are security issues in the synchronization of data between the intranet and the external network, resulting in gaps in data analysis results, inability to update the database in a timely manner, and affecting corporate decision-making.
Adopt an internal and external network data synchronization method based on file flow, generate XML files for data transmission, use scheduled scanning and analysis technology to synchronize data between the internal and external networks, and perform data cleaning, analysis and display to ensure data security and consistency.
It realizes the safe update of the database in the internal network environment, solves the problem of data analysis result faults, improves the security and reliability of data transmission, and ensures the independence and isolation of the internal and external network environments.
Smart Images

Figure CN117914847B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for synchronizing intranet and extranet data based on file streams. Background Art
[0002] For enterprises with confidential or sensitive data, their system service programs are generally deployed in the intranet environment and isolated from the external network. Many of these enterprises need to make decisions by analyzing the latest data. Therefore, to support their business, at least one system must be deployed in both the intranet and the external network. The data generated in the intranet is all in the intranet, and the data generated in the external network is all in the external network. How to synchronize the data between the internal and external networks within a certain period of time is the main problem to be solved at present.
[0003] In the prior art, the mapping function of the network gate is used to configure the external network machine with a specified IP segment, so that only the specified service provided by the machine with the specified IP and port in the internal network can be accessed. Then, the internal and external network data are synchronized at the fixed IP segment and port. Although this prior art solution is relatively convenient to implement, there are security issues due to the exposed IP ports in the internal network. Summary of the invention
[0004] Based on this, the embodiment of the present application provides an intranet and extranet data synchronization method and system based on file stream transmission, which updates the customer's database in a relatively secure intranet environment, thereby solving the problem of data analysis result gaps caused by intranet isolation.
[0005] In a first aspect, a method for synchronizing intranet and extranet data based on file stream is provided, the method comprising:
[0006] Obtain an intranet data synchronization request, generate an XML file containing IP search data according to the intranet data synchronization request, and store the XML file in a first sharing request directory; wherein the intranet data synchronization request includes a user-specified IP;
[0007] Scan the first shared request directory regularly and synchronize the newly added files to the shared folder of the external network system;
[0008] Read the XML file in the shared folder regularly, scan and analyze the IP data in the XML file, conduct global data capture, collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory;
[0009] The second shared request directory is scanned regularly, and the newly added result data files are parsed and displayed on the front-end platform of the intranet.
[0010] Optionally, conduct a global data attack to collect detailed data of the user-specified IP, including:
[0011] Use various open source intelligence tools and techniques to collect information related to the target IP from public network resources;
[0012] Automatically crawl the web pages related to the target IP through web crawler technology;
[0013] Use tools such as WHOIS query to obtain information about the IP; including the owner, contact information, and registration date.
[0014] Optionally, collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory:
[0015] The result data file is a CSV format file;
[0016] The result data file is cleaned and parsed and then stored in the second shared request directory.
[0017] Optionally, the data cleaning specifically includes:
[0018] Missing value processing: Check the missing values in the data and decide whether to fill or delete them according to the actual situation;
[0019] Outlier processing: Identify and handle outliers in the data;
[0020] Format conversion: ensure the uniformity of data formats, including converting strings into date formats or numeric formats;
[0021] Standardization and normalization: scaling the data to fit within a standard range;
[0022] Deduplication and de-redundancy: Remove duplicate or redundant data records to reduce the size of the data set and improve processing efficiency.
[0023] Optionally, the data analysis specifically includes:
[0024] Feature extraction: extracting meaningful features from raw data; wherein the features are used to characterize the inherent laws and patterns of the data;
[0025] Text parsing: For text data, natural language processing technology may be needed for parsing, including word segmentation, part-of-speech tagging or syntactic analysis;
[0026] Time series analysis: For time series data, the data needs to be organized and analyzed in chronological order;
[0027] Structured and unstructured data conversion: converting unstructured data into structured data for analysis and processing; wherein the unstructured data includes pictures, audio and video.
[0028] Optionally, the method includes: setting a scheduled task to periodically check a specified sharing request directory.
[0029] Optionally, the newly added result data file is parsed and displayed on the front-end platform of the intranet, including:
[0030] The front-end platform uses charts, tables or other visual components for display and uses relational databases or NoSQL databases for data storage.
[0031] In a second aspect, a file stream-based intranet and extranet data synchronization system is provided, the system comprising:
[0032] The intranet system is used to obtain an intranet data synchronization request, generate an XML file containing IP search data according to the intranet data synchronization request, and store the XML file in a first shared request directory; wherein the intranet data synchronization request includes a user-specified IP;
[0033] The file exchange system is used to periodically scan the first sharing request directory and synchronize the newly added files to the shared folder of the external network system;
[0034] The external network system is used to read the XML file in the shared folder at regular intervals, scan and analyze the IP data in the XML file, conduct global data capture, collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory;
[0035] The file exchange system is also used to periodically scan the second shared request directory, and parse the newly added result data files and display them on the front-end platform of the intranet.
[0036] Optionally, the system also includes a front-end platform, which is used to specify the target IP through the front-end platform and collect relevant data information in the intranet database.
[0037] Optionally, the external network system includes a server cluster formed by multiple servers providing the same service; wherein each server is responsible for different tasks; and the tasks include at least attack simulation and data collection.
[0038] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0039] (1) Service security issues arising from data transmission can be controlled;
[0040] (2) Isolation of internal and external networks can ensure the security and stability of the internal network environment;
[0041] (3) The main transmission work is controlled by the network gate in the isolation area, ensuring the independence of the internal and external network environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0043] Figure 1 A flowchart of an intranet and extranet data synchronization method based on file stream is provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] In the description of the present invention, unless otherwise specified, "plurality" means two or more than two. The terms "first" and "second" in the specification and claims of the present invention and the above-mentioned drawings are intended to distinguish the objects referred to. For schemes with a sequential flow, this terminology does not have to be understood as describing a specific order or sequence. For schemes with device structures, this terminology does not distinguish between importance, positional relationships, etc.
[0046] In addition, the terms "comprises", "has" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that have been explicitly listed, but may also include other steps or units that are not explicitly listed but are inherent to these processes, methods, products or apparatuses, or steps or units that are added based on further optimization schemes conceived by the present invention.
[0047] Based on security considerations, many customers will only deploy the system on the intranet, and then perform some data flow analysis in the intranet environment. Due to the isolation between the internal and external networks, the database cannot be updated in a timely manner, resulting in a gap between the data analysis results and the actual situation, affecting the customer's decision-making. The present invention updates the customer's database in a relatively safe environment of the intranet based on the transmission of file streams, thereby solving the problem of data analysis result gaps caused by the isolation of the intranet. Further reinforcement is made for security issues derived from the data transmission process. By transmitting data through file streams, further security guarantees can be made in the future through file encryption and other solutions on this basis, so as to achieve the security of the intranet environment and the reliability of data synchronization.
[0048] Please refer to Figure 1 , which shows a flowchart of an intranet and extranet data synchronization method based on file stream provided by an embodiment of the present application, the method may include the following steps:
[0049] 1. Obtain an intranet data synchronization request, generate an XML file containing IP search data according to the intranet data synchronization request, and store the XML file in the first shared request directory.
[0050] Among them, the intranet data synchronization request includes the user-specified IP, and the first shared request directory refers to the shared request directory of the external network server in this embodiment. The user enters or selects the target IP on the front-end operating platform of the intranet system. The front-end platform encapsulates the IP information entered by the user into a data request and sends it to the back-end service through the API interface. After receiving the data request, the intranet system verifies the user's identity and authority. After the verification is passed, the intranet system generates a corresponding XML file according to the user request.
[0051] 2. Regularly scan the first shared request directory and synchronize the newly added files to the shared folder of the external network system.
[0052] In this step, set a scheduled task to regularly check the shared request directory. Scan the newly added files in the directory and check the file type, size and other attributes. For qualified files (such as XML files), synchronize them to the shared folder of the external network system.
[0053] 3. Regularly read the XML file in the shared folder, scan and analyze the IP data in the XML file, conduct global data capture, collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory.
[0054] The second shared request directory refers to the shared request directory of the intranet server. In this step, set another scheduled task to regularly read the XML file in the shared folder. Use the parser to parse the XML file and extract IP data and other related information. Scan and analyze the IP data, and use various technologies and tools to conquer the global data. Collect detailed data of the target IP and generate a result data file.
[0055] 4. Regularly scan the second shared request directory, parse the newly added result data files, and display them on the front-end platform of the intranet.
[0056] In this step, a scheduled task is set to scan the result data file regularly. The parsed result data is synchronized back to the shared folder of the intranet system. The intranet system periodically scans the result data file in the second shared request directory. The parsed data is stored in the intranet database and displayed on the front-end platform.
[0057] In another optional embodiment of the present application, the IAS attack decision-making support system (hereinafter referred to as IAS) is used to illustrate that the IAS attack decision-making support system is a complex network security solution designed to help users better understand and respond to network threats. The system includes multiple key components, including hardware systems, synchronous data processing, IP scanning analysis, and internal and external network switching systems. We will study each aspect in depth to more fully understand the working principle and advantages of the system. The hardware system implemented by the above method includes multiple key components, which provides users with a platform for performing network attack analysis and decision-making. Specifically:
[0058] External network server cluster: The external network IAS system deploys multiple servers with the same service to form a cluster. This architecture helps improve the availability and performance of the system. Each server may be responsible for different tasks, such as attack simulation, data collection, etc.
[0059] File exchange system: The file exchange system plays a key role in the entire system. It serves as a bridge for data synchronization between the internal and external networks, and exchanges data in shared folders through file streams. This separation and synchronization method helps ensure data consistency between the internal and external network systems.
[0060] Intranet server and intranet file synchronization server: The intranet server is deployed in the customer's intranet environment and isolated from the external network through the intranet exchange system. The intranet file synchronization server is responsible for synchronizing and parsing intranet files. This deployment method helps improve the security of the system.
[0061] Front-end user operation platform: The front-end platform provided to users is their interface for interacting with the entire system. Users can specify the target IP through the platform and collect relevant data information in the intranet database. This user-friendly interface helps simplify user operations and decision-making processes.
[0062] The synchronous data processing process in the above hardware system specifically includes:
[0063] Synchronous data processing is a crucial component of the entire system, ensuring data synchronization and consistency between internal and external network systems. The process mainly includes steps such as file exchange, data parsing and database synchronization.
[0064] The role of the file exchange system: The file exchange system acts as an isolation area to manage data exchange between internal and external network systems. When the internal network IAS system obtains target information, the request information is written into the file exchange area. The file exchange system transfers the file to the external network file parsing area in real time. This staged file processing ensures smooth data synchronization.
[0065] Global data attack: The external network device uses global data attack when parsing external network data. This may involve multiple network attack techniques to obtain more comprehensive target information. This step is the core of the entire system and ensures in-depth analysis and data collection of the target.
[0066] Data cleaning and analysis: After the external IAS request is completed, the result data is generated into a CSV or other format file and placed in the shared request directory of the intranet server. The intranet file processing system is responsible for parsing the data into the database and returning it to the front-end user operation platform to display the data collection results. This process includes multiple steps such as data cleaning, parsing and storage to ensure that users get accurate and understandable information.
[0067] Based on the above scheme, a specific operation process is given below:
[0068] The main operation process of the IAS system involves multiple steps, from the customer performing IP scanning and analysis in the intranet IAS system to finally displaying the data collection results on the front-end platform. The following is the main operation process:
[0069] Customers conduct IP scanning analysis: In the intranet IAS system, users specify an IP as a target through the front-end operation platform. The system searches for relevant data in the intranet database, and the collected data can be viewed on the front-end platform to assist users in making decisions.
[0070] Intranet and extranet file exchange: The intranet IAS system generates an XML file of IP and other related search data, and puts the file into the shared request directory of the extranet server. Through the configuration of the intranet and extranet exchange system, the file exchange system regularly scans the designated directories of the intranet and extranet servers and synchronizes the newly added files. The extranet IAS system regularly reads files and performs IP scanning and analysis.
[0071] Global data attack: The external IAS system conducts in-depth analysis of the target through global data attack. The attack may include a variety of techniques to ensure that the system obtains detailed data on the target.
[0072] Result data generation and transmission: The external IAS system generates a CSV or other format file after the request is completed, and puts the result data into the shared request directory of the internal server. The internal and external network exchange system is responsible for regular file synchronization to ensure data transmission.
[0073] Data analysis and synchronization: The intranet IAS system regularly scans the files in the shared directory, analyzes the data and stores it in the database, and returns the operation response to the front-end user. After this step is completed, the front-end platform can display the latest data collection results.
[0074] The entire operation process works together through file exchange and synchronization systems between the intranet and the external network, ensuring that the user's decision support system in the intranet environment can obtain comprehensive data from the external network.
[0075] In summary, the IAS attack decision support system is a comprehensive network security solution that provides users with comprehensive and reliable network attack analysis and decision support through the collaborative work of hardware systems, synchronous data processing, and major operating processes. The system's distributed architecture, file exchange and synchronization mechanism, and global data capture make it a powerful tool that is expected to help users better understand and combat network threats. However, the security and stability of the system are still aspects that need to be highly valued to ensure that users' data and operations are fully protected.
[0076] The embodiment of the present application also provides an intranet and extranet data synchronization system based on file stream, including:
[0077] The intranet system is used to obtain an intranet data synchronization request, generate an XML file containing IP search data according to the intranet data synchronization request, and store the XML file in a first shared request directory; wherein the intranet data synchronization request includes a user-specified IP;
[0078] The file exchange system is used to periodically scan the first sharing request directory and synchronize the newly added files to the shared folder of the external network system;
[0079] The external network system is used to read the XML file in the shared folder at regular intervals, scan and analyze the IP data in the XML file, conduct global data capture, collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory;
[0080] The file exchange system is also used to periodically scan the second shared request directory, and parse the newly added result data files and display them on the front-end platform of the intranet.
[0081] In an optional embodiment of the present application, the system also includes a front-end platform, which is used to specify the target IP through the front-end platform and collect relevant data information in the intranet database.
[0082] The external network system includes a server cluster formed by multiple servers providing the same service; each server is responsible for different tasks; and the tasks at least include attack simulation and data collection.
[0083] For the specific definition of the intranet and extranet data synchronization system based on file stream, please refer to the definition of the intranet and extranet data synchronization method based on file stream in the above text, which will not be repeated here. Each module in the above-mentioned intranet and extranet data synchronization system based on file stream can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0084] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0085] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A method for synchronizing intranet and extranet data based on file stream, characterized in that: The method comprises: Obtain an intranet data synchronization request, generate an XML file containing IP search data according to the intranet data synchronization request, and store the XML file in a first sharing request directory; wherein the intranet data synchronization request includes a user-specified IP; Scan the first shared request directory regularly and synchronize the newly added files to the shared folder of the external network system; Read the XML file in the shared folder regularly, scan and analyze the IP data in the XML file, conduct global data capture, collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory; Scan the second shared request directory regularly, parse the newly added result data files and display them on the front-end platform of the intranet; Conduct global data capture and collect detailed data of user-specified IP addresses, including: Use various open source intelligence tools and techniques to collect information related to the target IP from public network resources; Automatically crawl the web pages related to the target IP through web crawler technology; Use tools such as WHOIS query to obtain IP information, including owner, contact information, and registration date; Collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory: The result data file is a CSV format file; The result data file is cleaned and parsed and then stored in the second shared request directory.
2. The method for synchronizing data between an intranet and an extranet according to claim 1, characterized in that: The data cleaning specifically includes: Missing value processing: Check the missing values in the data and decide whether to fill or delete them according to the actual situation; Outlier processing: Identify and handle outliers in the data; Format conversion: ensure the uniformity of data formats, including converting strings into date formats or numeric formats; Standardization and normalization: scaling the data to fit within a standard range; Deduplication and de-redundancy: Remove duplicate or redundant data records to reduce the size of the data set and improve processing efficiency.
3. The method for synchronizing data between internal and external networks according to claim 1, characterized in that: The data analysis specifically includes: Feature extraction: extracting meaningful features from raw data; wherein the features are used to characterize the inherent laws and patterns of the data; Text parsing: For text data, natural language processing technology may be needed for parsing, including word segmentation, part-of-speech tagging or syntactic analysis; Time series analysis: For time series data, the data needs to be organized and analyzed in chronological order; Structured and unstructured data conversion: converting unstructured data into structured data for analysis and processing; wherein the unstructured data includes pictures, audio and video.
4. The method for synchronizing data between internal and external networks according to claim 1, characterized in that: The method comprises: setting a timed task and regularly checking a designated sharing request directory.
5. The method for synchronizing data between internal and external networks according to claim 1, characterized in that: The newly added result data files are parsed and displayed on the front-end platform of the intranet, including: The front-end platform uses charts, tables or other visual components for display and uses relational databases or NoSQL databases for data storage.
6. A file stream-based intranet and extranet data synchronization system, characterized in that: The system comprises: The intranet system is used to obtain an intranet data synchronization request, generate an XML file containing IP search data according to the intranet data synchronization request, and store the XML file in a first shared request directory; wherein the intranet data synchronization request includes a user-specified IP; The file exchange system is used to periodically scan the first sharing request directory and synchronize the newly added files to the shared folder of the external network system; The external network system is used to read the XML file in the shared folder at regular intervals, scan and analyze the IP data in the XML file, conduct global data capture, collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory; The file exchange system is also used to periodically scan the second shared request directory and parse the newly added result data files and display them on the front-end platform of the intranet; Conduct global data capture and collect detailed data of user-specified IP addresses, including: Use various open source intelligence tools and techniques to collect information related to the target IP from public network resources; Automatically crawl the web pages related to the target IP through web crawler technology; Use tools such as WHOIS query to obtain IP information, including owner, contact information, and registration date; Collect detailed data of the user-specified IP to generate a result data file; and put the result data file into the second shared request directory: The result data file is a CSV format file; The result data file is cleaned and parsed and then stored in the second shared request directory.
7. The intranet and extranet data synchronization system according to claim 6, characterized in that: The system also includes a front-end platform, which is used to specify the target IP through the front-end platform and collect relevant data information in the intranet database.
8. The intranet and extranet data synchronization system according to claim 6, characterized in that: The external network system includes a server cluster formed by multiple servers providing the same service; each server is responsible for different tasks; the tasks at least include attack simulation and data collection.
