Operation instruction processing method and device, electronic equipment and program product

By listening and matching user operation instructions in the software development platform and executing corresponding processing logic and permission adjustments, data leakage problems are solved and data security and permission management efficiency are improved.

CN118916870APending Publication Date: 2024-11-08BAIRONG ZHIXIN (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410946595.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The data leakage problem in the software development platform has not been effectively solved, and the existing technology cannot guarantee data security.

Method used

By listening to the user's operation instructions in the operation interface and matching them with the preset operation list, the corresponding processing logic is executed according to the matching results to limit the execution of the instructions, including intercepting file downloads, recording copy and cutting operations, and adding watermarks. , restrict file viewing and modification measures, and adjust permissions based on the user's historical operation records.

Benefits of technology

It effectively prevents data leakage, improves the data security of the software development platform, reduces unauthorized operation risks, and realizes flexible permission management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916870A_ABST
    Figure CN118916870A_ABST
Patent Text Reader

Abstract

The invention provides an operation instruction processing method and device, electronic equipment and a program product, and the method comprises the steps: monitoring an operation instruction of a user under the condition that a current operation interface is a preset interface, and enabling the monitored operation instruction to be a target instruction; the target instruction is matched with a pre-established operation list, and a plurality of pre-determined instructions with the data leakage risk and processing logics corresponding to the instructions with the data leakage risk are stored in the operation list; under the condition that it is determined that the target instruction is matched with the instruction in the operation list, target processing logic associated with a first matching instruction corresponding to the target instruction is obtained, and the first matching instruction is the instruction matched with the target instruction in the operation list; and limiting execution of the target instruction through the target processing logic. The technical problem that data of an existing software development platform is prone to being leaked is solved, data safety is improved, and data leakage is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of data security technology, and in particular relates to an operation instruction processing method and device, an electronic device, and a program product. Background Art

[0002] During the software development process, the software development platform can provide a development environment that supports running multiple languages ​​and multiple plug-ins. Users can write code, run code, visualize data, and view results without leaving this environment. Multiple members of the team can perform some operations in this environment, such as data cleaning, statistical modeling, building and training machine learning models, and visualizing data. Because the development platform provides a complete operating environment, multiple operations can be performed on files and data, which is bound to lead to data leakage.

[0003] There is currently no effective solution for ensuring data security in software development environments. Summary of the invention

[0004] The present disclosure aims to provide an operation instruction processing method and device, an electronic device, and a program product, which can avoid data leakage on a software development platform.

[0005] In a first aspect, the present disclosure provides an operation instruction processing method, comprising:

[0006] When the current operation interface is the preset interface, the user's operation instruction is monitored, wherein the monitored operation instruction is the target instruction;

[0007] Matching the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks;

[0008] When it is determined that the target instruction matches the instruction in the operation list, obtaining the target processing logic associated with the first matching instruction corresponding to the target instruction, wherein the first matching instruction is an instruction in the operation list that matches the target instruction;

[0009] Execution of the target instructions is restricted by the target processing logic.

[0010] Furthermore, the operation list includes at least one of the following instructions: an instruction for calling an interface to download a file, an instruction for copying or cutting the content in the edit box, an interface screenshot instruction, and a file viewing instruction.

[0011] Further, in the case of determining that the target instruction falls into the operation list, obtaining the target processing logic associated with the matching instruction corresponding to the target instruction includes at least one of the following:

[0012] When it is determined that the target instruction is an instruction for calling an interface to download a file, the target processing strategy is determined as: calling an interception plug-in to intercept the file to be downloaded through the interface through the interception plug-in;

[0013] When it is determined that the target instruction is a copy instruction or a cut instruction for the content in the edit box, the target processing strategy is determined as: actively calling a log file, and recording the copy instruction or the cut instruction in the log file through a preset write interface;

[0014] In the case where it is determined that the target instruction is an interface screenshot instruction, the target processing strategy is determined as: adding a watermark identifying the screenshot operator and the screenshot time in the screenshot interface;

[0015] When it is determined that the target instruction is a file viewing instruction, the target processing strategy is determined to be: displaying a preset part of the file content, and setting the file modification and save button to be unavailable, the file download button to be unavailable, and the button for copying the file download link to be hidden.

[0016] Furthermore, the above method also includes:

[0017] Obtaining a log record, wherein the log record records historical operation information of one or more users;

[0018] Determining the number of second matching instructions corresponding to each of the one or more users according to historical operation information of one or more users within a preset time range in the log record, wherein the second matching instructions match instructions in the operation list;

[0019] The authority of each user is adjusted according to the number of second matching instructions corresponding to each user.

[0020] Furthermore, adjusting the authority of each user according to the number of second matching instructions corresponding to each user includes:

[0021] Within a preset time range, when the number of second matching instructions corresponding to any user exceeds a preset threshold, the authority of any user is reduced.

[0022] Furthermore, the preset threshold corresponds to the instruction type, and the second matching instruction includes one or more types of instructions. When the number of second matching instructions corresponding to any user exceeds the preset threshold, lowering the authority of any user includes:

[0023] When the number of instructions of any type in the second matching instructions exceeds the target preset threshold corresponding to the instruction of any type, the permissions of any user are lowered to a preset level, and the preset level is set according to the level of the target preset threshold. The permissions of any user include the target permissions corresponding to the instruction of any type, and part or all permissions including the target permissions.

[0024] Further, the adjusting the permissions of each user includes at least one of the following:

[0025] Set the amount of files allowed to be accessed, set the content ratio allowed to be accessed for each document, and set the number of actionable buttons displayed in the interface.

[0026] In a second aspect, the present disclosure provides an operation instruction processing device, comprising:

[0027] A monitoring module is configured to monitor the user's operation instructions when the current operation interface is the preset interface, wherein the monitored operation instructions are target instructions;

[0028] a matching module configured to match the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks;

[0029] an acquisition module, configured to acquire a target processing logic associated with a first matching instruction corresponding to the target instruction when determining that the target instruction matches the instruction in the operation list, wherein the first matching instruction is an instruction matching the target instruction in the operation list;

[0030] The restriction module is configured to restrict the execution of the target instruction through the target processing logic.

[0031] In a third aspect, the present disclosure provides an electronic device, comprising a processor and a memory for storing processor-executable instructions, wherein the processor implements the steps of any one of the methods of the first aspect when executing the instructions.

[0032] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program / instruction stored thereon, which implements the steps of any method of the above-mentioned first aspect when the computer program / instruction is executed by a processor.

[0033] In a fifth aspect, the present disclosure provides a program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any method of the above-mentioned first aspect are implemented.

[0034] The operation instruction processing method provided by the present disclosure monitors the user's operation instructions when the current operation interface is a preset interface, wherein the monitored operation instructions are target instructions; the target instructions are matched with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks; when the target instruction is determined to match the instructions in the operation list, the target processing logic associated with the first matching instruction corresponding to the target instruction is obtained, wherein the first matching instruction is an instruction matching the target instruction in the operation list; and the execution of the target instruction is restricted by the target processing logic. That is, by pre-setting the operation list, the processing logic corresponding to various operation instructions is recorded in the operation list to ensure the security of data in the software development platform interface, thereby solving the technical problem that the data security of the existing software development platform cannot be guaranteed and data is easily leaked, and achieving the technical effect of improving data security and reducing data leakage.

[0035] Other optional features and technical effects of the embodiments of the present disclosure are partially described below, and partially can be understood by reading this document. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. The elements shown are not limited by the proportions shown in the accompanying drawings. The same or similar reference numerals in the accompanying drawings represent the same or similar elements, wherein:

[0037] Figure 1 An example flow chart showing the method for processing an operation instruction according to an embodiment of the present disclosure;

[0038] Figure 2 A schematic diagram showing an operation list of the operation instruction processing method according to an embodiment of the present disclosure;

[0039] Figure 3 A schematic diagram showing an operation interface of an operation instruction processing method according to an embodiment of the present disclosure;

[0040] Figure 4 An exemplary structural diagram showing an electronic device capable of implementing the operation instruction processing method according to an embodiment of the present disclosure; and

[0041] Figure 5 An exemplary structural diagram of an operation instruction processing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the technical solutions in the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present disclosure.

[0043] It should be noted that the user-related information and data involved in the embodiments of this specification are all information and data authorized by the user or fully authorized by relevant parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users or relevant parties to choose to authorize or refuse.

[0044] Figure 1 It is a method flow chart of an embodiment of the operation instruction processing method provided by the present disclosure. Although the present disclosure provides the method operation steps or device structure as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure described in the embodiments of the present disclosure and shown in the drawings. When the method or module structure is applied to the actual device or terminal product, it can be connected according to the method or module structure shown in the embodiments or drawings for sequential execution or parallel execution (for example, a parallel processor or a multi-threaded processing environment, or even a distributed processing environment). In some embodiments, the operation instruction processing method provided by the present disclosure can be applied to the server side. The above-mentioned server can also be connected to each user terminal.

[0045] Among them, the above-mentioned server may specifically include a main management system side applied to the software development platform, which can monitor the operation of each user terminal and manage the authority of each user terminal, so as to ensure the data security of the software development platform. Specifically, the server can be, for example, an electronic device with data processing, storage and network interaction functions. Alternatively, the server can also be a software program running in the electronic device to provide support for data processing, storage and network interaction. In this embodiment, the number of the servers is not specifically limited. The server can specifically be one server, or several servers, or a server cluster formed by several servers.

[0046] Specifically, Figure 1As shown, the above operation instruction processing method may include the following steps S110 to S140:

[0047] S110: When the current operation interface is a preset interface, the user's operation instruction is monitored, wherein the monitored operation instruction is a target instruction.

[0048] When implementing, the current interface can be monitored at any time. Each platform or application has an identifier, and based on the identifier, it can be determined whether the current operation is a preset interface. In a specific example, the preset interface is a software development platform interface, and the identifier of the interface is 123. Then, when it is detected that the current user's operation interface identifier is 123, it can be determined that the current operation interface is a software development platform interface. The following will further describe the operation instruction processing method of the present disclosure in conjunction with the software development platform interface, but it can be understood that the operation instruction processing method of the present disclosure can be applied to other operation interfaces, such as communication interfaces or data management interfaces, etc., and these situations fall within the scope of the present disclosure.

[0049] When it is determined that the current operation interface is a software development platform interface, the user's operation instructions can be monitored. Specifically, the operation of the mouse, keyboard, etc. can be monitored by setting a monitoring mechanism. The monitoring operations mentioned in this disclosure have been agreed by the user or fully authorized by all parties, and strictly abide by the laws and regulations of relevant countries and regions and industry standards. All operations are only used to achieve the technical effects described in this disclosure to ensure the security of the system and the integrity of the data.

[0050] S120: Match the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks.

[0051] S130: When it is determined that the target instruction matches the instruction in the operation list, obtain the target processing logic associated with the first matching instruction corresponding to the target instruction, wherein the first matching instruction is an instruction that matches the target instruction in the operation list.

[0052] S140: Limiting the execution of the target instruction through the target processing logic.

[0053] That is, by pre-setting an operation list and recording the processing logic corresponding to various operation instructions in the operation list, the security of data in the software development platform interface is ensured, which solves the technical problems of existing software development platforms that data security is not guaranteed and data is prone to leakage, and achieves the technical effect of improving data security and reducing data leakage.

[0054] The above operation list may include but is not limited to at least one of the following instructions: an instruction to call an interface to download a file, an instruction to copy or cut the content in the edit box, an interface screenshot instruction, and a file viewing instruction. Figure 2 As shown, the operation list can be set as: instructions and processing strategies corresponding to each instruction. Specifically, the processing strategy can be corresponding to each instruction in the following manner:

[0055] 1) When it is determined that the target instruction is an instruction for calling an interface to download a file, the target processing strategy is determined to be: calling an interception plug-in, and intercepting the file to be downloaded through the development environment interface through the interception plug-in.

[0056] 2) When it is determined that the target instruction is a copy instruction or a cut instruction for the content in the edit box, the target processing strategy is determined as: calling a log file, and recording the copy instruction or the cut instruction in the log file through a preset write interface.

[0057] For example, you can monitor the copy and cut operations in the edit box (for example, pressing a key combination to copy or cut) by adding an event listener. In one example, you can use a JavaScript method to add an event listener to the document for monitoring. In a specific example, for example, you can use the document.addEventListener method to add an event listener to listen to the ctrl+c (copy) and ctrl+x (cut) operations. Then, the copied and cut content can be logged through a preset interface. In one example, you can define related logging operations in a tool in a development environment project, such as the clipboard.ts tool, and apply them to the copy and cut functions of the edit box. By capturing and recording copy and cut operations, the function of tracing data leaks can be implemented.

[0058] 3) When it is determined that the target instruction is an interface screenshot instruction, the target processing strategy is determined as: adding a watermark identifying the screenshot operator and the screenshot time in the screenshot interface.

[0059] For example, you can add a watermark to the development environment page. When adding a watermark, you can add the current user and time in the watermark. The user's screenshot will carry the watermark information. In this way, when the user sends data out in the form of a screenshot, it will have a watermark on it, which can be used to trace the source of the data. For another example, you can directly add a watermark to the screenshot, and the watermark includes the current user and time.

[0060] 4) When it is determined that the target instruction is a file viewing instruction, the target processing strategy is determined as: displaying part of the file content, setting the file modification and save buttons to be unavailable, the file download button to be unavailable, and the button for copying the file download link to be hidden. Figure 3 As shown, the save button after modification, file download button, etc. in the interface are set to be unavailable.

[0061] For example, you can disable the downloading of files to the local computer by:

[0062] Remove download commands from the user interface, such as removing the .download command, to prevent users from downloading files;

[0063] Remove export file to format commands in the user interface, such as removing the .exportToFormat command to prevent users from saving files;

[0064] In the user interface, the "Export" function commands in the development environment extension are removed, such as the Save and ExportNotebook As commands, to prevent users from saving files;

[0065] Hide the command to copy the download link in the user interface, such as hiding the .copyDownloadLink command and, to prevent users from downloading files through the link;

[0066] Set the properties of commands related to downloading files in the user interface, such as the properties of the .save, .saveAll, and .saveAs commands, to false, so that the save button cannot be clicked, preventing users from tampering with, saving, or saving files.

[0067] These methods can prevent files in the development environment from being downloaded to the user's local computer, thereby achieving the function of prohibiting file downloads.

[0068] In order to enable the software development platform to meet the above requirements and avoid data leakage, the code of the software development platform interface can be recompiled so that the target instruction is matched one by one with the pre-established operation list, and it is determined whether the target instruction falls into the operation list. When it is determined that the target instruction falls into the operation list, the processing logic associated with the instruction corresponding to the target instruction in the operation list is obtained as the target processing strategy, and the target instruction is restricted through the target processing strategy.

[0069] In the disclosed embodiment, each operation of the user, whether it is an operation request or an actually completed operation, will be stored as a log in the log record. The log record can be recorded based on the user ID, operation time, operation type ID, etc. The logs of each user can be identified from the log record based on the user ID, and the operation request / operation instruction executed by the user can be identified based on the operation type ID. In order to achieve flexible adjustment of user rights, to further improve the data security of the software development platform and avoid data leakage, in this example, the log record can be periodically traversed and queried, and the user rights can be adjusted according to the query results.

[0070] In some embodiments of the present disclosure, log records can be obtained (for example, log records are regularly retrieved at certain time intervals), wherein the log records record multiple historical operation information of one or more users; based on the historical operation information of one or more users within a preset time range (for example, a week as a cycle, a day as a cycle, etc.) in the log records, the number of second matching instructions corresponding to each of the one or more users is determined, wherein the second matching instructions match the instructions in the operation list; and based on the number of second matching instructions corresponding to each user, the permissions of each user are adjusted.

[0071] In some embodiments of the present disclosure, adjusting the permissions of each user according to the number of second matching instructions corresponding to each user may include: within a preset time range, when the number of second matching instructions corresponding to any user exceeds a preset threshold, lowering the permissions of any user.

[0072] In one example, users whose number of second matching instructions matching the instructions in the operation list within a preset time range exceeds the preset threshold are regarded as target risk users; and the permissions of the target risk users are lowered to a preset level. For example, if it is determined that user A has made more than 5 risky operation requests within a week, the permissions of the user are lowered by one level; if it is determined that user A has made more than 10 risky operation requests within a week, the operation permissions of the user are revoked, and user A is controlled to no longer be able to access the software development platform.

[0073] In some embodiments of the present disclosure, the second matching instruction may include multiple types of instructions, such as file download related instructions, content copy or cut related instructions, interface screenshot related instructions, file viewing related instructions, etc. At the same time, different types of instructions may correspond to different preset thresholds.

[0074] In the embodiments of the present disclosure, different types of instructions correspond to preset thresholds of different levels. According to the comparison between the number of instructions of different types and the preset thresholds corresponding to the types, when the number of instructions of a certain type exceeds the preset threshold corresponding to the instructions of the type, the corresponding authority or the authority associated with the corresponding authority is lowered. Here, the authority associated with the corresponding authority at least includes: the authority of the corresponding authority and the authority associated with the corresponding authority. In one example, within the preset time range, when the number of second matching instructions corresponding to any user exceeds the preset threshold, lowering the authority of any user may include:

[0075] When the number of instructions of any type in the second matching instruction exceeds the target preset threshold corresponding to any type of instruction, the permissions of any user will be lowered to a preset level, and the preset level is set according to the level of the target preset threshold. The permissions of any user include the target permissions corresponding to any type of instruction, and part or all of the permissions including the target permissions.

[0076] In this example, different types of instructions may correspond to different levels of preset thresholds, where the level of the preset threshold is used to characterize the numerical value of the preset threshold. In a specific example, for file download related instructions, the corresponding preset threshold levels include three levels: high, medium, and low, where the preset threshold value corresponding to the high level within a week is 20, the medium level is 10, and the low level is 5. It should be understood that in other embodiments, more / fewer preset threshold levels and corresponding threshold values ​​can be set for a certain type of instruction according to specific needs, which falls within the scope of the present disclosure.

[0077] Continuing with the above example, user permissions may include one or more target permissions for one or more types of instructions. For a certain type of instruction, the corresponding user target permission is characterized by, for example, a preset permission level, which may be set according to the level of the target preset threshold of the corresponding type of instruction. In a specific example, for file download related instructions, the corresponding user preset permissions may also include three levels: high, medium, and low, which correspond to the high, medium, and low preset threshold levels corresponding to the file download related instructions.

[0078] In one example, within a preset time range, for a certain type of operation instruction, the corresponding target preset threshold level can be determined based on the user's preset level of authority for that type of operation instruction, and the specific target preset threshold value can be determined. By comparing the number of users executing this type of operation instructions in the historical records with the target preset threshold value, the corresponding authority level of the user can be lowered.

[0079] In a specific example, for file download related instructions, the preset level of user A is "high", and the level of the target preset threshold for file download related instructions corresponding to it is "high", thereby determining the corresponding target preset threshold for each week to be 20. When the number of file download related instructions executed by user A in a week exceeds 20, the preset level of user A for file download related instructions will be lowered to "medium".

[0080] In an embodiment of the present disclosure, a user's preset level for a certain type of related instruction will affect the user's acquisition of information and content related to the type of instruction. In a specific example, for file download related instructions, the user's preset level for this type of instruction will affect the amount of files that the user can access: a user with a preset level of "high" can access all files, a user with a preset level of "medium" can only access 50% of the files, and a user with a preset level of "low" can only access 30% of the files. However, it is understandable that in other embodiments, more / fewer preset levels can be set according to demand, and specific permissions for obtaining information and content can be set accordingly, which falls within the scope of the present disclosure.

[0081] In the disclosed embodiment, the above adjustment of the permissions of each user may include at least one of the following: setting the amount of files allowed to be accessed, setting the content ratio of each document allowed to be accessed, and setting the number of operable buttons displayed in the interface. For example, setting the amount of files allowed to be accessed to: all, preset 50%, preset 30%, setting the content ratio of each document allowed to be accessed to: 100%, 50%, 10%, etc., setting the number of operable buttons displayed in the interface to: all operable buttons, two buttons (such as view and copy buttons), one button (such as view button), etc.

[0082] In another example, the preset permissions of the user for different types of instructions may be associated with each other. When the user's first preset permission for a first type of instruction is adjusted, the second preset permission for a second type of instruction associated with the first preset permission is also adjusted accordingly. In a specific example, file download-related instructions and file viewing-related instructions are associated. When the preset permission level of user A for file download-related instructions is lowered, the preset permission level of user A for file viewing-related instructions is also lowered. It is understandable that specific association rules can be formulated according to needs, and the present disclosure does not limit this.

[0083] Different user levels correspond to different permissions, and different permissions correspond to different file access amounts, file access content ratios, etc. The specific settings can be made according to actual needs, and this disclosure does not limit this. The above log records can be stored in a database, and when a query is needed, the database is called for query.

[0084] In another embodiment, a certain type of instruction can also be set as a high-risk type instruction. The target permission of the high-risk type instruction has an impact on the target permission of the user for all types of instructions. Therefore, when the user's permission preset level for the high-risk type instruction is adjusted, the user's permission preset level for all types of instructions is adjusted accordingly. In a specific example, the interface screenshot related instructions are set as high-risk type instructions. When the permission preset level of user A for the interface screenshot related instructions is lowered, the permission preset levels of user A for file download related instructions, content copy or cut related instructions, interface screenshot related instructions, and file viewing related instructions are all lowered.

[0085] Through the method of the embodiment of the present disclosure, user permissions can be flexibly configured and adjusted according to needs, refined permission management can be performed for different types of instructions, and permissions can be dynamically adjusted according to the actual operations of users. By setting different user permission levels, comprehensive management of viewing, access and operation is achieved. At the same time, by setting specific types of instructions as high-risk instructions, when the permissions of high-risk instructions are adjusted, the permissions of other types of instructions can be synchronously affected, thereby strengthening overall security control. The operation instruction processing method disclosed in the present disclosure significantly improves data security, realizes flexible permission management, and effectively prevents data leakage and unauthorized operations.

[0086] Furthermore, the user's permissions may also be related to the user's role, that is, different roles correspond to different permissions, and each user has his or her own role, so that permission matching can be achieved based on the role.

[0087] The above-mentioned user initial permission settings, user permission adjustment results, etc. can all be stored in the browser's cache. The user runs the software development platform through the browser, and the software development platform obtains these permission data from the browser's cache, that is, the permission data is stored in the browser's cache and the log records are stored in the database. The two are stored separately to avoid the impact on the software development platform and improve the stability of the platform. Moreover, because permission data needs to ensure fast acquisition and real-time requirements, this requirement can be met by storing it in the cache.

[0088] The above method is described below in conjunction with a specific embodiment. However, it is worth noting that this specific embodiment is only for better illustrating the present disclosure and does not constitute an improper limitation on the present disclosure.

[0089] In this example, we use the JupyterLab platform as a software development platform. During the development process, there is a large amount of data, and much of this data needs to be kept confidential. However, JupyterLab allows teams to create and share their documents, from code to comprehensive reports. JupyterLab provides a complete operating environment that can perform various operations on files and data, which is bound to cause data leakage. To this end, this example provides a solution to prevent data dissemination and data leakage when using JupyterLab, so that developers can use JupyterLab platform development process more secure data without worrying about the risk of data leakage.

[0090] There are some data security issues in the use of JupyterLab, such as downloading and copying project data locally and then sending it out, which will cause data leakage and reduce data confidentiality. To this end, in this example, the JupyterLab source code is modified to prevent data from being sent out and tampered with during use. Specifically, JupyterLab prohibits downloading files locally to prevent data from being sent out, collects JupyterLab clipboard information, and adds watermark information to the page to facilitate tracing; only a part of JupyterLab large files can be queried to protect data, and for some files that do not support modification, the save function is not provided for user modifications to prevent data tampering.

[0091] For example, in a specific example, source code transformation can be performed as follows:

[0092] 1) Prohibit files from being downloaded locally:

[0093] Hide JupyterLab's existing download button and the button for copying the download link: Hide the .download command in the document management extension directory, such as index.tsx in the docmanager-extension directory;

[0094] Hide the Jupyter notebook extension tool directory, such as the .exportToFormat command and the save and export notebook as command in the notebook-extensionindex directory;

[0095] Hide the .copyDownloadLink command and Copy Download Link command in the file management system, such as filebrowser-extension;

[0096] The server can also block the interface under jupyterhub.xxx.cn, so that even if the user knows the download address of a file, he cannot download the file;

[0097] In this way, you can prevent JupyterLab files from being downloaded locally by users, thereby achieving the function of prohibiting file downloads.

[0098] 2) Collect clipboard information to facilitate subsequent tracing:

[0099] In one example, document.addEventListener can be used in a TypeScript file to listen to the copying and cutting of the edit box, for example, to listen to the ctrl+c and ctrl+x operations of the browser, and then the copied and cut contents can be logged through the interface; specifically, the logging operation can be defined through the clipboard clipboard.ts, and the copying and cutting contents of the right button of JupyterLab itself can be logged through the interface;

[0100] In this way, the copy and cut operations on JupyterLab can be collected and recorded, so as to trace the source of data leakage.

[0101] 3) Add a watermark to the JupyterLab page to facilitate tracing:

[0102] Specifically, you can add a watermark to the JupyterLab page. The watermark can be implemented through the watermark plug-in watermark. The watermark content shows the current user and time. The user's screenshot will carry the watermark information. When the user sends data in the form of a screenshot, the watermark carried on the screenshot can be used to check the screenshot person and time.

[0103] 4) Restriction to not be able to see all the data of the file:

[0104] When opening a file that contains a large amount of data, only part of the data can be displayed; at the same time, the modification and saving operations of the file are restricted to prevent tampering with the file.

[0105] Specifically, you can modify the isEnabled property in the commandIDs.save, commandIDs.saveAll, and commandIDs.saveAs commands in the TypeScript file to make the corresponding save buttons unclickable, thereby preventing data tampering.

[0106] Make the above code modifications in the JupyterLab source code, and recompile JupyterLab to get the recompiled software development platform to take effect. The recompiled software development platform will be provided to users for data analysis, model development, machine learning, etc., to prevent data leakage.

[0107] In the above example, by controlling the files on JupyterLab, it is not possible to directly download them locally. If you want to download the files, you need to make them public before you can download them. This can prevent data leakage caused by private downloading of files. Furthermore, the clipboard information of JupyterLab is collected, so that all copy and cut operations on JupyterLab (including right-click operations on JupyterLab and operations on the browser) can be monitored and recorded in the log file. In addition, watermark information can be added to the pages of JupyterLab. For files with large amounts of data, they can be restricted from being opened and viewed all at once, so that users are restricted to viewing part of the file and cannot modify or save the file, preventing users from tampering with the data.

[0108] In an embodiment of the present disclosure, an electronic device is provided, including: a processor and a memory storing a computer program, wherein the processor is configured to execute any method of the embodiment of the present disclosure when running the computer program.

[0109] Figure 4 A schematic diagram of an electronic device 400 that can implement the method of the disclosed embodiment or implement the disclosed embodiment is shown, and in some embodiments, more or fewer electronic devices may be included than shown. In some embodiments, it can be implemented using a single or multiple electronic devices. In some embodiments, it can be implemented using cloud or distributed electronic devices.

[0110] like Figure 4 As shown, the electronic device 400 includes a central processing unit (CPU) 401, which can perform various appropriate operations and processes according to the programs and / or data stored in the read-only memory (ROM) 402 or the programs and / or data loaded from the storage part 408 to the random access memory (RAM) 403. CPU 401 can be a multi-core processor, or it can include multiple processors. In some embodiments, CPU 401 can include a general main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a neural network processor (NPU), a digital signal processor (DSP), etc. In RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.

[0111] The processor and the memory are used together to execute a program stored in the memory. When the program is executed by a computer, the steps or functions of the methods described in the above embodiments can be implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0112] Step 1: When the current operation interface is a software development platform interface, the user's operation instruction is monitored, wherein the monitored operation instruction is a target instruction;

[0113] Step 2: Match the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks;

[0114] Step 3: When it is determined that the target instruction matches the instruction in the operation list, obtain the target processing logic associated with the matching instruction corresponding to the target instruction in the operation list;

[0115] Step 4: Restricting the execution of the target instruction through the target processing logic.

[0116] The embodiments of the present disclosure also provide a program product capable of implementing all the steps in the operation instruction processing method in the above embodiments. The program product includes a computer program. When the computer program is executed by a processor, all the steps of the method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0117] Step 1: When the current operation interface is a software development platform interface, the user's operation instruction is monitored, wherein the monitored operation instruction is a target instruction;

[0118] Step 2: Match the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks;

[0119] Step 3: When it is determined that the target instruction matches the instruction in the operation list, obtain the target processing logic associated with the matching instruction corresponding to the target instruction in the operation list;

[0120] Step 4: Restricting the execution of the target instruction through the target processing logic.

[0121] Figure 4The following components in the computer are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, a touch screen, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed. Figure 4 Only some components are schematically shown in the figure, which does not mean that the computer system 400 only includes Figure 4 Components shown.

[0122] In some embodiments, the electronic device 400 refers to a mobile terminal or a computer, including a mobile phone, a car terminal, a smart TV, etc. Taking a mobile phone as an example, the electronic device 400 also includes a display screen with a touch function, an external speaker, a gyroscope, a camera, a 4G / 5G antenna and other device modules.

[0123] The systems, devices, modules or units described in the above embodiments may be implemented by a computer or its associated components. The computer may be, for example, a mobile terminal, a smart phone, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a personal digital assistant, a media player, a navigation device, a game console, a tablet computer, a wearable device, a smart TV, an Internet of Things system, a smart home, an industrial computer, a server or a combination thereof.

[0124] At the software level, the above-mentioned operation instruction processing device can be as follows Figure 5 As shown, including:

[0125] The monitoring module 501 is configured to monitor the user's operation instructions when the current operation interface is the preset interface, wherein the monitored operation instructions are target instructions;

[0126] A matching module 502 is configured to match the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks;

[0127] The acquisition module 503 is configured to acquire the target processing logic associated with the first matching instruction corresponding to the target instruction when it is determined that the target instruction matches the instruction in the operation list, wherein the first matching instruction is an instruction matching the target instruction in the operation list;

[0128] The restriction module 504 is configured to restrict the execution of the target instruction through the target processing logic.

[0129] In one embodiment, the operation list may include but is not limited to at least one of the following instructions: an instruction to call an interface to download a file, an instruction to copy or cut the content in the edit box, an interface screenshot instruction, and a file viewing instruction.

[0130] In one implementation, the acquisition module 503 may specifically perform at least one of the following operations:

[0131] 1) When it is determined that the target instruction is an instruction for calling an interface to download a file, the target processing strategy is determined to be: calling an interception plug-in, and intercepting the file to be downloaded through the interface through the interception plug-in;

[0132] 2) When it is determined that the target instruction is a copy instruction or a cut instruction for the content in the edit box, the target processing strategy is determined as: actively calling a log file, and recording the copy instruction or the cut instruction in the log file through a preset write interface;

[0133] 3) When it is determined that the target instruction is an interface screenshot instruction, the target processing strategy is determined as: adding a watermark identifying the screenshot operator and the screenshot time to the screenshot interface;

[0134] 4) When it is determined that the target instruction is a file viewing instruction, the target processing strategy is determined as: displaying a preset part of the file content, and setting the file modification and save buttons to be unavailable, the file download button to be unavailable, and the button for copying the file download link to be hidden.

[0135] In one embodiment, the above-mentioned operation instruction processing device can also recompile the code of the software development platform interface so that the target instruction is matched one by one with the pre-established operation list, and determine whether the target instruction falls into the operation list. When it is determined that the target instruction falls into the operation list, the processing logic associated with the instruction corresponding to the target instruction in the operation list is obtained as the target processing strategy, and the target instruction is restricted through the target processing strategy.

[0136] In one embodiment, the above-mentioned operation instruction processing device can also obtain log records, wherein the log records record historical operation information of one or more users; determine the number of second matching instructions corresponding to each of the one or more users based on the historical operation information of one or more users within a preset time range in the log records, wherein the second matching instructions match the instructions in the operation list; and adjust the permissions of each user based on the number of second matching instructions corresponding to each user.

[0137] In one embodiment, adjusting the authority of each user according to the number of second matching instructions corresponding to each user may include: within a preset time range, when the number of second matching instructions corresponding to any user exceeds a preset threshold, lowering the authority of any user.

[0138] In one embodiment, adjusting permissions for each of the multiple users includes at least one of the following: setting the amount of files allowed to be accessed, setting the content ratio of each document allowed to be accessed, and setting the number of operable buttons displayed in the interface.

[0139] From the above description, it can be seen that in the embodiment of the present disclosure, when it is determined that the current operation interface is a software development platform interface, a monitoring mechanism is set to monitor the user's operation instructions; the monitored operation instructions are used as target instructions; the target instructions are matched one by one with the pre-established operation list to determine whether the target instruction falls into the operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks, and the processing logic corresponding to each instruction with data leakage risk; when it is determined that the target instruction falls into the operation list, the processing logic associated with the instruction corresponding to the target instruction in the operation list is obtained as the target processing strategy; the target instruction is restricted by the target processing strategy. That is, by pre-setting the operation list, the processing logic corresponding to various operation instructions is recorded in the operation list to ensure the security of data in the software development platform interface, which solves the technical problem that the data security of the existing software development platform is not guaranteed and the data is easy to leak, and achieves the technical effect of improving data security and reducing data leakage.

[0140] The acquisition, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of laws and regulations.

[0141] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0142] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0143] Although the present specification embodiment provides the method operation steps as described in the embodiment or flow chart, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way in the order of execution of many steps, and does not represent a unique execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel (such as a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment) according to the method shown in the embodiment or the accompanying drawings. The term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements not only includes those elements, but also includes other elements not clearly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements.

[0144] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0145] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0146] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0148] The above is only an example of the embodiment of the present specification and is not intended to limit the embodiment of the present specification. For those skilled in the art, the embodiment of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiment of the present specification shall be included in the scope of the claims of the embodiment of the present specification.

Claims

1. A method for processing an operation instruction, It is characterized in that The method comprises: When the current operation interface is the preset interface, the user's operation instruction is monitored, wherein the monitored operation instruction is the target instruction; Matching the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks; When it is determined that the target instruction matches the instruction in the operation list, obtaining the target processing logic associated with the first matching instruction corresponding to the target instruction, wherein the first matching instruction is an instruction in the operation list that matches the target instruction; Execution of the target instructions is restricted by the target processing logic.

2. The method according to claim 1, It is characterized in that The operation list includes at least one of the following instructions: an instruction for calling an interface to download a file, an instruction for copying or cutting the content in the edit box, an interface screenshot instruction, and a file viewing instruction.

3. The method according to claim 2, It is characterized in that The step of obtaining the target processing logic associated with the matching instruction corresponding to the target instruction when determining that the target instruction matches the instruction in the operation list includes at least one of the following: When it is determined that the target instruction is an instruction for calling an interface to download a file, the target processing strategy is determined as: calling an interception plug-in to intercept the file to be downloaded through the interface through the interception plug-in; When it is determined that the target instruction is a copy instruction or a cut instruction for the content in the edit box, the target processing strategy is determined as: actively calling a log file, and recording the copy instruction or the cut instruction in the log file through a preset write interface; In the case where it is determined that the target instruction is an interface screenshot instruction, the target processing strategy is determined as: adding a watermark identifying the screenshot operator and the screenshot time in the screenshot interface; When it is determined that the target instruction is a file viewing instruction, the target processing strategy is determined to be: displaying a preset part of the file content, and setting the file modification and save button to be unavailable, the file download button to be unavailable, and the button for copying the file download link to be hidden.

4. The method according to claim 1, It is characterized in that Also includes: Obtaining a log record, wherein the log record records historical operation information of one or more users; Determining the number of second matching instructions corresponding to each of the one or more users according to historical operation information of one or more users within a preset time range in the log record, wherein the second matching instructions match instructions in the operation list; The authority of each user is adjusted according to the number of second matching instructions corresponding to each user.

5. The method according to claim 4, It is characterized in that The step of adjusting the permissions of each user according to the number of second matching instructions corresponding to each user includes: Within a preset time range, when the number of second matching instructions corresponding to any user exceeds a preset threshold, the authority of any user is reduced.

6. The method according to claim 5, It is characterized in that The preset threshold corresponds to the instruction type, and the second matching instruction includes one or more types of instructions. When the number of second matching instructions corresponding to any user exceeds the preset threshold, lowering the authority of any user includes: When the number of instructions of any type in the second matching instructions exceeds the target preset threshold corresponding to the instruction of any type, the permissions of any user are lowered to a preset level, and the preset level is set according to the level of the target preset threshold. The permissions of any user include the target permissions corresponding to the instruction of any type, and part or all permissions including the target permissions.

7. The method according to claim 4, It is characterized in that The adjusting the permissions of each user includes at least one of the following: Set the amount of files allowed to be accessed, set the content ratio of the document allowed to be accessed, and set the number of actionable buttons displayed in the interface.

8. An operation instruction processing device, It is characterized in that include: A monitoring module is configured to monitor the user's operation instructions when the current operation interface is the preset interface, wherein the monitored operation instructions are target instructions; a matching module configured to match the target instruction with a pre-established operation list, wherein the operation list stores a plurality of pre-determined instructions with data leakage risks and processing logic corresponding to each instruction with data leakage risks; an acquisition module, configured to acquire a target processing logic associated with a first matching instruction corresponding to the target instruction when determining that the target instruction matches the instruction in the operation list, wherein the first matching instruction is an instruction matching the target instruction in the operation list; The restriction module is configured to restrict the execution of the target instruction through the target processing logic.

9. An electronic device comprising a processor and a memory for storing instructions executable by the processor, It is characterized in that When the processor executes the instructions, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A program product comprising a computer program, in, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.