Method for automatically searching and killing viruses through Maya software and computer equipment

By loading virus-actively detecting plug-ins in Maya software and registering callback functions, using the virus feature library to detect and clear virus instructions and data, the problem that the existing technology cannot effectively prevent virus infection in Maya software is solved, and the completion is achieved before starting 病毒查杀,保障了系统和用户数据的安全。

CN118965350AInactive Publication Date: 2024-11-15JUN YIXIN (BEIJING) CULTURE MEDIA CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411162169.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing antivirus software and specialized killing tools cannot effectively prevent the infection and attack of viruses in Maya software, causing system and user data to face security risks.

Method used

When Maya software is started, the virus is loaded with active virus detection plug-in, register a callback function to perform virus detection before opening the scene file, and automatically detect and delete or clear infected instructions and data through the virus feature library to prevent the spread of the virus.

Benefits of technology

It realizes the completion of virus detection before Maya software is started, effectively preventing virus infection and attack, ensuring the security of system and user data, and not consuming computer resources when Maya is not used.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965350A_ABST
    Figure CN118965350A_ABST
Patent Text Reader

Abstract

The invention discloses a method for automatically searching and killing viruses by Maya software and computer equipment. The method comprises the following steps: automatically searching and killing viruses in an operating system and a Maya system according to viruses in a virus feature library; calling a callback function, and opening the scene file in the callback function; judging a scene file format; if the scene file is a text scene file, reading an instruction and an attribute setting instruction in the text scene file line by line, detecting whether a virus record is matched or not according to features in a virus feature library, and if yes, deleting the instruction; if the scene file is a binary scene file, data blocks in the binary scene file are read block by block according to a binary data structure, the attribute data are analyzed, the attribute data are matched with features in the virus feature library, and if the attribute data are matched with the features in the virus feature library, the attribute data are emptied. According to the method, infection and attack of viruses in the Maya software can be effectively prevented, and the data security of a Maya system and a user is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Maya virus detection and killing, and in particular to a method and computer equipment for automatically detecting and killing viruses of Maya software. Background Art

[0002] Maya is a powerful 3D modeling, rendering and animation software developed by Autodesk. It is widely used in movies, animations, games, visual effects and virtual reality. Maya provides a complete set of tools and functions, including complex modeling tools, fine animation control, advanced rendering engine and smooth simulation effects, which enable artists and designers to create highly detailed and realistic 3D models, animations and visual effects. In addition to basic modeling and rendering, Maya also supports advanced technologies such as particle systems, fluid dynamics, hair and cloth simulation. Its flexible plug-in architecture and scripting capabilities also allow users to customize it according to specific needs. Due to its powerful functions and flexibility, Maya has become the tool of choice for many professional studios and individual creators.

[0003] Although Maya provides powerful scripting capabilities, it also brings security issues. Since Maya supports third-party plug-ins and custom scripts, malicious programs sometimes disguise themselves as legitimate plug-ins or scripts, potentially endangering the user's system. In the past few years, there have been several incidents with malicious programs. For example, the "Putian Tongqing" virus that broke out two years ago infected multiple systems by disguising itself as a Maya plug-in. This virus can spread rapidly through automatic propagation and self-replication, causing serious data loss and system crashes. In addition, the "uition" virus that broke out this year also infected users' systems through similar means. This virus not only destroys the file system, but also may steal sensitive information, posing a threat to users' work and security.

[0004] In order to deal with these risks, the mainstream approach in the market is to use antivirus software or special killing tools to manually check and kill viruses. However, due to the narrow spread of these viruses, which are limited to users who use Maya software in the industry, and the lag of antivirus software and special killing tools, the virus often takes a long time to spread before it attracts the attention of security companies, and it is impossible to effectively prevent the spread and outbreak of the virus, resulting in risks to the Maya system and its users' data. Summary of the invention

[0005] To this end, the present application provides a method and computer device for automatically detecting and killing viruses in Maya software, so as to solve the problem that the anti-virus software and special virus tools in the prior art cannot effectively prevent the infection and outbreak of viruses in Maya software.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] In a first aspect, a method for automatically detecting and killing viruses in Maya software is provided. A virus active detection and killing plug-in is installed in the Maya software. The virus active detection and killing plug-in is loaded and run after the Maya software is started and before the scene file is loaded. The virus active detection and killing plug-in registers a callback function capable of opening the scene file in the Maya software. The method is applied to the virus active detection and killing plug-in, and includes:

[0008] Step 1: Automatically detect and kill viruses in the operating system and Maya system based on the viruses in the virus signature database;

[0009] Step 2: Call the callback function and open the scene file in the callback function;

[0010] Step 3: Determine the scene file format; scene files are divided into text scene files and binary scene files according to the format;

[0011] Step 4: If the scenario file is a text scenario file, read the instructions and attribute setting instructions in the text scenario file line by line, and detect whether the virus record is matched according to the features in the virus feature library. If it is matched, delete the instructions;

[0012] Step 5: If the scene file is a binary scene file, read the data blocks in the binary scene file one by one according to the binary data structure, parse the attribute data, match the attribute data with the features in the virus feature library, and clear the attribute data if they match.

[0013] Preferably, in step 1, when automatically checking and killing viruses in the operating system according to viruses in the virus signature library, the inspection objects include: the operating system user document directory, the data directory, and the directories and files recorded in the virus library.

[0014] Preferably, in step 1, when automatically checking and killing viruses in the Maya system according to viruses in the virus signature library, the inspection objects include: Maya initialization scripts and resource scripts.

[0015] Preferably, the resource script includes userSetup.py, userSetup.mel and resource mel.

[0016] Preferably, in step 4, when reading the instructions and the attribute setting instructions in the text scene file line by line, when the createNode script instruction is read, its attribute setting instruction is checked in detail.

[0017] Preferably, in step 5, when the data blocks in the binary scene file are read block by block according to the binary data structure, when the SCRPCREA block is read, its attribute data block is detected in detail.

[0018] As a preferred embodiment, the method further includes: if no virus record is matched in the virus feature library but there is a case where Maya high-risk and sensitive functions are called, the program code to be detected is saved in the virus isolation area and a warning message is issued.

[0019] Preferably, the Maya high-risk and sensitive functions include python, eval and exec.

[0020] In a second aspect, a computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, steps of a method for automatically detecting and killing viruses in Maya software are implemented.

[0021] In a third aspect, a computer program product includes a computer program or instructions, which, when executed by a processor, implements the steps of a method for automatically detecting and killing viruses in Maya software.

[0022] Compared with the prior art, this application has at least the following beneficial effects:

[0023] The present application provides a method and computer device for automatically detecting and killing viruses in Maya software, the method comprising: automatically detecting and killing viruses in the operating system and Maya system according to viruses in a virus signature library; calling a callback function, and opening a scene file in the callback function; judging the scene file format; the scene file is divided into a text scene file and a binary scene file according to the format; if the scene file is a text scene file, the instructions and attribute setting instructions in the text scene file are read line by line, and whether the virus record is matched according to the feature detection in the virus signature library, if matched, the instruction is deleted; if the scene file is a binary scene file, the data blocks in the binary scene file are read block by block according to the binary data structure, and the attribute data is parsed, and the attribute data is matched with the features in the virus signature library, if matched, the attribute data is cleared. The method for automatically detecting and killing viruses in Maya software provided by the present application can complete the virus detection and killing before the scene file is loaded after the Maya software is started, thereby effectively preventing the infection and outbreak of viruses in the Maya software, and ensuring the data security of the Maya system and users. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more intuitively illustrate the prior art and the present application, exemplary drawings are given below. It should be understood that the specific shapes and structures shown in the drawings should not generally be regarded as limiting conditions for implementing the present application; for example, those skilled in the art are capable of easily making conventional adjustments or further optimizations to the addition / reduction / attribution division, specific shapes, positional relationships, connection methods, dimensional ratios, etc. of certain units (components) based on the technical concepts and exemplary drawings disclosed in the present application.

[0025] Figure 1 A flow chart of a method for automatically detecting and killing viruses using Maya software provided in Example 1 of the present application;

[0026] Figure 2 A flow chart of a method for automatically detecting and killing viruses in Maya software provided in Example 1 of the present application;

[0027] Figure 3 A schematic diagram of automatic loading settings for the virus active detection and killing plug-in provided in Example 1 of the present application;

[0028] Figure 4 A flowchart of virus detection and killing of text scene files provided in Example 1 of the present application;

[0029] Figure 5 This is a flowchart of virus detection for binary scenario files provided in Example 1 of the present application. DETAILED DESCRIPTION

[0030] The present application is further described below in detail through specific embodiments in conjunction with the accompanying drawings.

[0031] In the description of this application: unless otherwise specified, the meaning of "plurality" is two or more. The terms "first", "second", "third", etc. in this application are intended to distinguish the objects referred to, and do not have special meanings in terms of technical connotations (for example, they should not be understood as emphasizing the importance or order, etc.). Expressions such as "including", "comprising", "having", etc. also mean "not limited to" (certain units, components, materials, steps, etc.).

[0032] The terms such as "upper", "lower", "left", "right", "middle", etc. cited in this application are usually used to indicate the general relative position relationship for the purpose of intuitive understanding by referring to the drawings, and are not absolute limitations on the position relationship in the actual product.

[0033] Embodiment 1

[0034] See also Figure 1This embodiment provides a method for automatically detecting and killing viruses in Maya software. A virus active detection and killing plug-in is installed in the Maya software. The virus active detection and killing plug-in is loaded and run after the Maya software is started and before the scene file is loaded. The virus active detection and killing plug-in registers a callback function that can open the scene file in the Maya software. The method is applied to the virus active detection and killing plug-in, and includes:

[0035] S1: Automatically detect and kill viruses in the operating system and Maya system based on the viruses in the virus signature database;

[0036] For details, please refer to Figure 2 In this embodiment, the Maya software can be started by directly starting the Maya software or directly opening the scene file. The scene file is generally divided into two formats: text scene file (.ma) and binary scene file (.mb).

[0037] like Figure 3 As shown, the virus active killing plug-in needs to be set to load automatically. The virus active killing plug-in will be loaded before loading the scene file (.ma or .mb) after Maya is started, because this is the best time to perform virus killing operations before the virus is run. When the virus active killing plug-in is run for the first time, it needs to register a callback function for opening the scene file in the Maya software. The Maya software will call this function before opening the scene file, and complete the virus killing in this function, so as to complete the virus killing before Maya opens the scene file.

[0038] More specifically, after the virus active killing plug-in is loaded by Maya, Maya will call the initializeP lugin() function to complete the initialization of the virus active killing plug-in. The initialization operation includes registering a callback function to open the scene file and scanning to detect whether the operating system and Maya system are infected.

[0039] The following is an example of the initialization code for the virus active detection plug-in:

[0040]

[0041] The scanning and detection of whether the operating system and Maya system are infected specifically includes: calling the above scanOs() function to check whether the operating system files are infected, and checking whether the operating system is infected by viruses based on the viruses in the virus signature library. The inspection objects include: the operating system user document directory, data directory, and other directories and files recorded in the virus library; calling the scanMaya() function to check whether the Maya system files are infected. The inspection objects include Maya initialization scripts, userSetup.py, userSetup.mel, resource scripts such as resource mel, etc.

[0042] When checking whether the operating system and Maya system are infected, if a virus is found, the virus in the infected system files is cleared and the related files where the virus survives are deleted.

[0043] S2: Call the callback function and open the scene file in the callback function;

[0044] Specifically, the virus active killing plug-in will call the above registered fileCheckCallback() function (ie callback function) before the Maya software opens the scene, and complete the process of opening the scene file and executing the virus killing in the callback function.

[0045] S3: Determine the scene file format; scene files are divided into text scene files and binary scene files according to the format;

[0046] Specifically, there are two types of Maya scene file formats: text scene files (.ma) and binary scene files (.mb). In this embodiment, the corresponding viruses need to be checked and killed according to different formats.

[0047] S4: If the scenario file is a text scenario file, the instructions and attribute setting instructions in the text scenario file are read line by line, and whether the virus record is matched according to the features in the virus feature library is detected. If the match is matched, the instructions are deleted;

[0048] For details, please refer to Figure 4 When processing a text scene file (.ma), the instructions and attribute setting instructions in the scene file are read line by line, and the virus record is matched according to the features in the virus feature library. If the virus feature is matched, the instruction is deleted to complete the virus removal.

[0049] When reading the instructions and attribute setting instructions in the scene file line by line, when the "createNodescript" instruction is detected, its attribute setting instructions are checked in detail, because the virus is only hidden in the string type attributes. The following is a typical virus feature code:

[0050]

[0051]

[0052] S5: If the scene file is a binary scene file, data blocks in the binary scene file are read block by block according to the binary data structure, and attribute data is parsed, and the attribute data is matched with features in the virus feature library. If a match is found, the attribute data is cleared.

[0053] For details, please refer to Figure 5When processing a binary scene file (.mb), the data blocks in the scene file are read one by one according to the binary data structure. Maya's node data blocks are uniformly encapsulated, and the structure is defined as:

[0054]

[0055] Among them, the data block Tag name is "FOR8" or "LIS8", node_name is the node type name of various Maya objects, and this embodiment only needs to process the program script, and node_name is "SCRPCREA". Therefore, when the "SCRPCREA" block is detected, its attribute data block is checked in detail, each attribute is parsed, and the string attribute is found. Because the virus is only hidden in the attribute of the string type, it can be detected according to the features in the virus feature library to match the virus record. If the virus feature is matched, the attribute value can be cleared to remove the virus.

[0056] In this embodiment, when checking whether a virus is infected, the virus active killing plug-in will check whether the scene file is infected according to the characteristic keywords in the virus feature library. Specifically, whether there is an exact matching feature in the virus feature library, such as an exact string, an exact string sequence, etc.; if the virus record that exactly matches the target is not found in the virus feature library but there are calls to high-risk and sensitive Maya functions such as python, eval, and exec, the program code to be detected will be saved in the virus isolation area and a warning message will be issued for the user to analyze and judge.

[0057] When a virus infection is detected, the virus code in the scene file is cleared. This embodiment uses different virus clearing methods for text scene files (.ma) and binary scene files (.mb). After the virus is cleared, the scene file can be opened normally.

[0058] The present embodiment provides a method for automatically detecting and killing viruses in Maya software. The method directly parses the Maya scene file, performs lexical analysis and grammatical semantic analysis on the codes in the program script nodes in the scene file, and matches the codes according to the feature data of known viruses extracted from the virus feature library. If the match is successful, the program to be detected is determined to be a virus and is removed.

[0059] The method for automatically detecting and killing viruses in Maya software provided in this embodiment is integrated with Maya, and can complete the detection and killing before the Maya virus runs, thereby effectively preventing the infection and outbreak of viruses in the Maya software, ensuring the data security of the Maya system and users, and not consuming computer resources such as CPU and memory when Maya is not in use.

[0060] Embodiment 2

[0061] This embodiment provides a virus active detection and killing plug-in (.mll file), which is integrated with the Maya system to implement a method for automatically detecting and killing viruses in Maya software provided in an implementation, including:

[0062] A timed killing module, which is integrated with the operating system and is used to automatically and regularly kill viruses in the operating system and Maya system according to viruses in the virus signature library;

[0063] The callback function calling module is used to call the callback function and open the scene file in the callback function;

[0064] A judgment module is used to judge the format of the scene file; the scene file is divided into a text scene file and a binary scene file according to the format;

[0065] Text scene file parsing module, used to load and parse text scene files;

[0066] Binary scene file parsing module, used to load and parse binary scene files;

[0067] The virus signature matching module is used to detect whether the program script parsed from the scene file matches the virus signature based on the virus signature library.

[0068] For the specific implementation content of each module in a virus active detection and killing plug-in, please refer to the above definition of the method for automatically detecting and killing viruses for Maya software, which will not be repeated here.

[0069] Embodiment 3

[0070] This embodiment provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, steps of a method for automatically detecting and killing viruses in Maya software are implemented.

[0071] Embodiment 4

[0072] This embodiment provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of a method for automatically detecting and removing viruses in Maya software.

[0073] The technical features of the above embodiments may be arbitrarily combined (as long as there is no contradiction in the combination of these technical features). To make the description concise, not all possible combinations of the technical features in the above embodiments are described; these embodiments that are not explicitly written should also be considered to be within the scope of this specification.

Claims

1. A method for automatically detecting and killing viruses in Maya software, characterized in that: A virus active detection and killing plug-in is installed in the Maya software. The virus active detection and killing plug-in is loaded and run after the Maya software is started and before the scene file is loaded. The virus active detection and killing plug-in registers a callback function capable of opening the scene file in the Maya software. The method is applied to the virus active detection and killing plug-in, and includes: Step 1: Automatically detect and kill viruses in the operating system and Maya system based on the viruses in the virus signature database; Step 2: Call the callback function and open the scene file in the callback function; Step 3: Determine the scene file format; scene files are divided into text scene files and binary scene files according to the format; Step 4: If the scenario file is a text scenario file, read the instructions and attribute setting instructions in the text scenario file line by line, and detect whether the virus record is matched according to the features in the virus feature library. If it is matched, delete the instructions; Step 5: If the scene file is a binary scene file, read the data blocks in the binary scene file one by one according to the binary data structure, parse the attribute data, match the attribute data with the features in the virus feature library, and clear the attribute data if they match.

2. The method for automatically detecting and killing viruses in Maya software according to claim 1, characterized in that: In step 1, when automatically checking and killing viruses in the operating system according to the viruses in the virus signature database, the inspection objects include: the operating system user document directory, the data directory, and the directories and files recorded in the virus database.

3. The method for automatically detecting and killing viruses in Maya software according to claim 1, characterized in that: In the step 1, when automatically checking and killing viruses in the Maya system according to the viruses in the virus signature library, the inspection objects include: Maya initialization scripts and resource scripts.

4. The method for automatically detecting and killing viruses in Maya software according to claim 3, characterized in that: The resource scripts include userSetup.py, userSetup.mel and resource mel.

5. The method for automatically detecting and killing viruses in Maya software according to claim 1, characterized in that: In step 4, when reading the instructions and the attribute setting instructions in the text scene file line by line, when the createNode script instruction is read, its attribute setting instruction is checked in detail.

6. The method for automatically detecting and killing viruses in Maya software according to claim 1, characterized in that: In step 5, when the data blocks in the binary scene file are read block by block according to the binary data structure, when the SCRPCREA block is read, its attribute data block is detected in detail.

7. The method for automatically detecting and killing viruses in Maya software according to claim 1, characterized in that: Also includes: If no virus record is matched in the virus signature database but there is a call to Maya high-risk and sensitive functions, the program code to be detected will be saved in the virus isolation area and a warning message will be issued.

8. The method for automatically detecting and killing viruses in Maya software according to claim 7, characterized in that: The high-risk and sensitive functions of Maya include python, eval and exec.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Virus searching and killing method and system for distributed energy security data

    CN120951324A

  • A virus detection method and system for distributed energy security data

    CN120951324B