Wireless architecture with malware scanning component manager and associated API

Abstract
A system, method and computer program product are provided for scanning a mobile wireless device for malware. A scan command is initially received from a user utilizing a mobile wireless device. Further, a component manager of the mobile wireless device is instantiated in response to the scan command. An anti-malware scanner is then executed utilizing the component manager. Further, the mobile wireless device is scanned utilizing the anti-malware scanner.
Description


FIELD OF THE INVENTION

[0002] The present invention relates to wireless device security, and more particularly to scanning wireless devices for malware.



BACKGROUND OF THE INVENTION

[0003] The last decade has seen a rapid growth in the number and use of mobile cellular telephones. More recently, wireless devices have been introduced which combine the functionality of mobile telephones and Personal Digital Assistants (PDAs). It is expected that this area will undergo massive growth in the near future as new cellular telecommunication standards (e.g. GPRS, UMTS, and WAP) make possible the high speed transfer of data across the wireless interface.


[0004] It can be expected that such platforms will be susceptible to attack from so-called “malware” such as viruses, Trojan horses, and worms (referred to collectively hereinafter as “viruses”) in much the same way as present day personal computers and workstations are susceptible to malware attack. A number of mobile telephone viruses have already been identified.


[0005] In order to resist virus attacks, anti-virus software must be deployed into mobile platforms in much the same way as it has been deployed in the desktop environment. A number of different desktop anti-virus applications are currently available. The majority of these applications rely upon a basic scanning engine which searches suspect files for the presence of predetermined virus signatures. These signatures are held in a database which must be constantly updated to reflect the most recently identified viruses.


[0006] Typically, users download replacement databases every so often, either over the Internet, from a received e-mail, or from a CDROM or floppy disk. Users are also expected to update there software engines every so often in order to take advantage of new virus detection techniques (e.g. which may be required when a new strain of virus is detected).


[0007] Mobile wireless platforms present a series of problems for software developers (including developers of anti-virus software). Chief among these are the limited memory and processing power of mobile platforms, and the limited input/output capabilities which they possess (i.e. no CDROM or floppy drive, and no high bandwidth fixed line network or Internet connectivity).


[0008] Moreover, mobile wireless platforms are traditionally not standardized like conventional desktops. For example, instead of running Microsoft™ Windows™, such mobile wireless platforms may have installed thereon a variety of types of operating systems. This complicates the act of designing an anti-virus scanner that is capable of operating on any one of a plurality of mobile wireless platforms.



DISCLOSURE OF THE INVENTION

[0009] A system, method and computer program product are provided for scanning a mobile wireless device for malware. A scan command is initially received from a user utilizing a mobile wireless device. Further, a component manager of the mobile wireless device is instantiated in response to the scan command. An anti-malware scanner is then executed utilizing the component manager. Further, the mobile wireless device is scanned utilizing the anti-malware scanner.


[0010] In one embodiment, the instantiation of the component manager may include allocating memory of the mobile wireless device to the component manager. Further, the instantiation of the component manager may further include loading anti-malware scanner configuration settings in the allocated memory.


[0011] As an option, the anti-malware scanner may be executed based on the configuration settings. Similarly, the anti-malware scanner may scan the mobile wireless device based on the configuration settings. Still yet, the anti-malware scanner may clean the mobile wireless device based on the configuration settings.


[0012] In another embodiment, the component manager may log the scanning of the mobile wireless device. Further, the scanning may include on-access scanning and on-demand scanning. Optionally, such on-access scanning may be disabled during on-demand scanning to preserve resources on the mobile wireless device.


[0013] In still another embodiment, the component manager may generate a call back function to control the anti-malware scanner.


[0014] Further, the component manager may control a plurality of functional modules. The component manager may further be platform independent. In other words, the component manager may be capable of interfacing with any one of a plurality of mobile wireless device platforms. Optionally, the mobile wireless device may be updated based on an external trigger.







BRIEF DESCRIPTION OF THE DRAWINGS

[0015]
FIG. 1 illustrates an exemplary architecture for scanning a mobile wireless device for malware, in accordance with one embodiment.


[0016]
FIG. 2 illustrates an overview of the component architecture associated with the anti-malware scanner running on the mobile wireless devices.


[0017]
FIG. 3 illustrates a method for scanning a mobile wireless device for malware utilizing a user interface, in accordance with one embodiment.


[0018]
FIG. 4 illustrates a sample user interface screen that shows the features exposed by the anti-malware scanner.


[0019]
FIG. 5 illustrates a block diagram showing the interaction between a component manager and other subsystems such as the user interface.


[0020]
FIG. 6 illustrates a method for scanning a mobile wireless device for malware utilizing a component manager, in accordance with one embodiment.


[0021]
FIG. 7 illustrates a system including an on-access scanner, in accordance with one embodiment.


[0022]
FIG. 8 illustrates a framework with an on-access scanner interfacing with a file system, and filtering all file I/O related events.


[0023]
FIG. 9 illustrates the manner in which the on-access scanner is enabled and disabled during use based on on-demand scanning.


[0024]
FIG. 10 illustrates a Java scanning module interfacing with Java, and filtering all Java applet and Java script executions.


[0025]
FIG. 11 illustrates an on-demand scanner system including an on-demand scanner interacting with a component manager and a scan engine.


[0026]
FIG. 12 illustrates a method for performing on-demand scanning, in accordance with one embodiment.


[0027]
FIG. 13 illustrates a scan engine system including a scan engine module, a file parser, and an interpreter.


[0028]
FIG. 14 illustrates a service agent (SA) architecture, in accordance with one embodiment.


[0029]
FIG. 15 illustrates a method for scanning a mobile wireless device for malware, involving service agents.


[0030]
FIG. 16 illustrates a sample service agent activation method, in accordance with one embodiment.


[0031]
FIG. 17 provides a method for client and server package handling.


[0032]
FIG. 18 illustrates the various steps of a package installation process, in accordance with one embodiment.


[0033]
FIG. 19 illustrates the components of the platform abstraction layer and the manner in which they interface with a mobile wireless device and operating system thereof.


[0034]
FIG. 20 illustrates a transaction server command process flow, in accordance with one embodiment.


[0035]
FIG. 21 illustrates a plurality of personal device database table relationships, in accordance with one embodiment.


[0036]
FIG. 22 shows an exemplary client information flow, in accordance with one embodiment.







DETAILED DESCRIPTION

[0037]
FIG. 1 illustrates an exemplary architecture 100 for scanning a mobile wireless device for malware, in accordance with one embodiment. As shown, the architecture 100 includes a mobile wireless device 102. Such mobile wireless device 102 may include, but is not limited to a cellular phone, personal digital assistant (PDA), a palm computer, or any combination thereof. Further, such mobile wireless device 102 may rely on any desired operating system. It should be noted that the vast variety of mobile wireless devices 102 operate different operating systems, unlike traditional desktop and laptop environments which typically run Microsoft™ Windows™ operating systems.


[0038] As may soon become apparent, the mobile wireless device 102 is associated with an application service provider and is equipped with an anti-malware scanner for providing active content security service. In the context of the present description, such anti-malware scanner may include any program adapted to scan or detect malware (i.e. virus, Trojan horse, worm and other forms of data or program that may result in an unexpected and/or unwanted outcome).


[0039] In use, the application service provider is initiated utilizing the mobile wireless device 102. Next, the anti-malware scanner installed on the mobile wireless device 102 is updated over a wireless network utilizing the application service provider. The mobile wireless device 102 is then scanned utilizing the updated anti-malware scanner.


[0040] In communication with the mobile wireless device 102 are server-side systems, or a back-end architecture 104. Such back-end architecture 104 is located at a service-provider site and provides centrally managed provisioning, component updates and usage reporting for serviced mobile wireless devices 102.


[0041] As shown in FIG. 1, the back-end architecture 104 may, in one embodiment, include a carrier gateway 106 for communicating with the mobile wireless device 102. A load distributor 108 may be coupled between the carrier gateway 106 and a plurality of hypertext transfer protocol (HTTP) servers 110 which, in turn, are coupled to a plurality of transaction servers 112. Further included is a database 114 coupled between the transaction servers 112 and a configuration/reporting server 116.


[0042] In use, the back-end architecture 104 receives device requests, and sends and receives client-specific data to and from the mobile wireless devices 102. The transaction servers 112 make database queries to store and retrieve information to/from the database 114. Client configuration information, usage information and component update packages are stored in the database 114. Configuration and reporting may be accomplished via Web interfaces 118. More information regarding such back-end architecture 104 will be set forth hereinafter in greater detail.


[0043] More information will now be set forth regarding an exemplary design of the mobile wireless devices 102. As wireless devices have limited resources, the anti-malware scanner on the mobile wireless devices 102 may be specifically designed with the following objects set forth in Table 1A in mind.
1TABLE 1AMaintain a low memory footprint.Consume as little CPU resources as possible, yet maintainactive monitoring for malicious software on the device.Minimize bandwidth requirements to the back-end server.Use the back-end server to minimize the work the device isrequired to perform.Maximize the flexibility of the scanner to address newthreats.


[0044] The anti-malware scanner may evolve over time as new computer viruses and other malicious code are discovered.


[0045] The anti-malware scanner is designed to protect wireless devices 102 from malicious code. The scope of this protection includes, but is not limited to the following set forth in Table 1B.
2TABLE 1BIdentify malicious code in persistent data stored on thedevice. This includes native executables as well asscripting languages embedded in documents.Prevent malicious code from being executed by activelyintervening when the data is accessed.Potentially monitor network activity to detect and interveneagainst external threats on the device.Provide a means for cleaning programs and documents that havebeen infected by malicious software.Report the necessary information to track active threats onthe network of wireless devices.


[0046] A glossary of terms that will be used in the present description is set forth in Table 1C.
3TABLE 1CTermDescriptionVirusA piece of executable binary or script that replicatesby modifying and attaching to programs or executable/automation scripts. Viruses may damage data, causethe computer to crash, display messages, or lie dormant.TrojanA program that either pretends to have, or is describedHorseas having, a set of useful or desirable features, butactually contains a damaging payload. Most frequentlythe usage is shortened to “Trojan”. Trojan Horses are nottechnically viruses, since they do not replicate.WormA malware that replicates itself using computer networks,such as via email or IRC (Internet Relay Chat).MalwareVirus, Trojan horse, worm and other forms of data orprogram that result in unexpected and/or unwantedoutcome.StorageDisk, flash-memory or other forms of non-volatile memorydevice.FileSingle storage object entity such as a program or a datafile.DirectoryA storage index that contains a list of files or sub-directories.ArchiveSingle file containing multiple files organized by aFiledirectory structure. Example: ZIP, CAB, JRE, SISFileThe process used for detecting, identifying and removingScanningmalware on a storage.ProcessThe process used for detecting, identifying and removingScanningmalware in execution.Application-Malware scanning process for a particular application.specificExample: hostile SMS/MMS scanning, Email attachmentScanningscanning, hostile Java Applet scanningOn-demandMalware scanning process initiated by the user or anotherScanningapplication. Usually involves a complete system-widescanning, and the process is terminated when scanningis completed.On-accessScanning process triggered by an OS or an applicationScanningevent. The on-access scanner stays resident in thesystem.


[0047] Anti-Malware Scanner Architecture


[0048] The anti-malware scanner architecture is based on a collection of components. These components are further analysed to expose properties and interfaces. This design helps isolate defects to specific components as well as providing a framework for porting the design to other devices with different hardware requirements.


[0049]
FIG. 2 illustrates an overview of the component architecture 200 associated with the anti-malware scanner running on the mobile wireless devices. As shown, a user interface 202 is provided which communicates with a component manager 204. Such component manager 204 is responsible for controlling and managing an on-access scanner module 206, on-demand scanner module 208, Java-scanner module 210, service manager module 212, and activity logging module 214. As shown, the on-access scanner module 206, on-demand scanner module 208, and the Java-scanner module 210 utilize a common scan engine 216.


[0050] For reasons that will soon become apparent, the anti-malware scanner component architecture 200 further includes a platform abstraction layer 218 that provides an interface between an operating system 220 of the mobile wireless device and the component manager 204 and the components associated therewith. Each of the foregoing components will be discussed subsequently in greater detail.


[0051] User Interface Design (202 of FIG. 2)


[0052]
FIG. 3 illustrates a method 300 for scanning a mobile wireless device for malware utilizing a user interface, in accordance with one embodiment. Initially, in decision 302, it is determined whether an update command is received from a user utilizing a graphical user interface of a mobile wireless device. As an option, the update command may be received upon the selection of an update icon displayed on the graphical user interface of the mobile wireless device. In operation 304, an anti-malware scanner installed on the mobile wireless device is then updated over a wireless network in response to the update command.


[0053] Next, it is determined in decision 306 as to whether a scan command has been received via the selection of a scan icon displayed on the graphical user interface of the mobile wireless device. More information regarding an exemplary interface with such icons will be set forth hereinafter during reference to FIG. 4. The mobile wireless device is then scanned utilizing the updated anti-malware scanner, as indicated in operation 308. Such anti-malware scanner may be conditionally updated based on the update command so as to regulate usage of the wireless network with the mobile wireless device.


[0054] As an option, a version number of a last update may be displayed utilizing the graphical user interface of the mobile wireless device. Further, a time of a last update may be displayed utilizing the graphical user interface of the mobile wireless device.


[0055] The anti-malware scanner user interface is very effective in design. Configuration settings and updates are handled by the back-end system, relieving the user from any responsibilities. Some basic feedback such as the product name, logo, and version information is provided. The user may check for product updates, and initiate a scan for malicious programs on removable media. The details for these capabilities are provided below.


[0056] Manual Virus Scanning


[0057] Manually virus scanning of the entire device is performed according to the configuration settings set by the IT administrator. That is, either all files may be scanned or only certain types of files. Also, the IT Administrator specifies how the anti-malware scanner responds to any infected file that is found. Upon scan completion, a report is created that reflects what was scanned and whether any computer viruses were found.


[0058] Check for Product Updates


[0059] Checking for product updates is made available from the main user interface. When update checking is requested, the anti-malware scanner attempts to update itself using a service agent in a manner that will soon be set forth.


[0060] About the Anti-Malware Scanner


[0061] An ‘About the anti-malware scanner’ dialog box is displayed upon user request. The contents of this dialog box contain the information of Table 1C-1.
4TABLE 1C-1All the necessary anti-malware scanner copyright messages.Scan engine and virus definition file version numbers.Last time the product was updated.


[0062]
FIG. 4 illustrates a sample user interface screen 400 that shows the features exposed by the anti-malware scanner. The user interface screen 400 may be displayed upon the selection of an anti-malware scanner tab 401 always shown on the user interface screen 400. Of course, other tabs such as a contacts tab 401-A, a mail tab 401-B, a browser tab 401-C, an address book tab 401-D, and a notes tab 401-E may also be provided. As shown in FIG. 4, a scan icon 402, an update icon 404, and an about icon 406 are illustrated upon the selection of the anti-malware scanner tab 401 for allowing a user to carry out the functionality of the anti-malware scanner.


[0063] Component Manager Design Specification (204 of FIG. 2)


[0064] The component manager inside the anti-malware scanner is the logic layer that instantiates the following subsystems of Table 1D.
5TABLE 1DOn-access scanning subsystem.On-demand scanning subsystem.Activity logging subsystem.Service agent subsystem.


[0065] The component manager contains logic on how to instantiate the different subsystems, how to configure them, and manages when to activate and deactivate subsystems. It drives the entire application and can provide the user interface with feedback on subsystem progress.


[0066] The user interface relies on the component manager to initiate actions such as manually scanning for computer viruses and to check for product updates.


[0067]
FIG. 5 illustrates a block diagram 500 showing the interaction between the component manager 502 and the other subsystems 504 such as the user interface 506. As shown, any number of subsystems 508 may be employed per the desires of the user.


[0068] How the Component Manager Works


[0069]
FIG. 6 illustrates a method 600 for scanning a mobile wireless device for malware utilizing a component manager, in accordance with one embodiment. The component manager is initially instantiated, in operation 602, just like any other core technology component of the present embodiment. As an option, the operation 602 may be executed in response to a scan command received from a user utilizing the user interface of the mobile wireless device.


[0070] Next, in operation 604, memory is allocated to store private data information for the component manager. The configuration manager is then used to load in anti-malware scanner scan settings in the private memory just allocated. See operation 606.


[0071] Based on the scan settings, the specialized subsystems are initiated. See operation 608. These subsystems may include the on-access scanning, activity logging and/or a service agent function. The on-demand scanning subsystem is only instantiated on a per need basis in order to save system resources. On-demand scanning is only needed when manual device scanning is requested. Based on these initialisation steps, a completion return code is returned to the owner of this subsystem.


[0072] The on-access scanning subsystem is initiated so real-time monitoring for viruses begins. When a computer virus is detected, a component manager callback function is called by the on-access scanning subsystem. Within this callback function the component manager determines based on the scan settings how it wishes the on-access scanning subsystem to deal with infected items. The completion status of this event is then passed to the activity logging subsystem for recording purposes.


[0073] When manual scanning is requested, it is performed according to the established configuration provided by an IT administrator. Manual scanning involves accessing several files or databases on the device and this same action is what the on-access scanner also monitors. In order to not cause system resources to be spent unnecessarily, the on-access scanning subsystem is disabled for the brief time period that the on-demand scanning is active.


[0074] Component Manager API


[0075] The component manager exposes all its functionality through an API layer. No platform dependencies are necessarily assumed. All interfaces follow a sandwiched approach where there is an initialisation to obtain an instance handle. Based on this instance handle, the component manager worker functions are available and when the object is not needed anymore the object is destroyed. The number of features that a user interface can request to be performed by the component manager may be limited. All knowledge on how scanning is performed may be contained within the component manager. A user interface can request from the component manager to do the following steps of Table 1E.
6TABLE 1EStart an on-demand scan.Start the service agent to check for updates.Find out the version of the scan engine and DAT files.Find out when was updating done the last time.


[0076] As the component manager handles different specialized subsystems, all events that are generated may be communicated back to the owner of the component manager handle using a callback function. To some of these events the callback function may return a TRUE Boolean value to indicate an affirmative answer that the core technology in question should proceed with the action that is about to happen, or return a FALSE to indicate that the action should not be performed.


[0077] As an example, when the service agent indicates that it is about to check for updates, if the callback function returns FALSE, this action may not happen.


[0078] See Table 2A for an exemplary component manager API.


[0079] On-Access Scanner Module (206 of FIG. 2)


[0080]
FIG. 7 illustrates a system 700 including an on-access scanner 702, in accordance with one embodiment. In general, the on-access scanner 702 is governed by operating system hooks 704 which provide document access notification. Further, the on-access scanner 702 interfaces with a scan engine 706 to scan documents. Still yet, the on-access scanner 702 reports scan activity to a component manager 708. More information relating to such operation will now be set forth.


[0081] The on-access scanner 702 identifies malware as documents are being access on the device. The on-access scanner 702 may be entirely transparent to the user until malicious code is discovered. Scanning can be performed on all executables and documents. This includes word processor documents or files being downloaded by a web browser. The on-access scanner can be configured to only scan certain types of documents.


[0082] The on-access scanner 702 is notified of various events related to accessing documents. It then determines whether the document needs to be scanned. The scan engine 706 is used to detect malicious code. When malicious code is discovered, the on-access scanner 702 notifies the component manager 708. It is then the component manager's responsibility to determine which of the following sections in Table 2B to perform.
7TABLE 2BNotify the user that malicious code was discovered.Clean the infected file. Once successfully cleaned, the usermay access the file.Delete the infected file. This results in an error messagedisplayed to the user that the file could not be accessed.Optionally ask the user whether the infected items should becleaned, deleted, or just denying access to it.


[0083] On-access file scanning is accomplished by hooking into a file access notification mechanism that resides inside the operating system. For a comprehensive protection it is crucial to be able to hook into all file access events prior to them happening and after they have occurred.


[0084] The purpose of hooking into all file access events prior to them happening is so they can be intercepted. The purpose of hooking into all file access events after they have occurred is so the file in question can be analyzed prior to control being returned to the operating system. An important part of this notification interception is that an application that is part of this notification chain must have the capability to allow or disallow an event from continuing through the file system notification. Of course nothing can be allowed or disallowed once the event has already happened, such as a close event, but in case an infected file is opened, the hooking application must indicate to the operating system that this event should not traverse further in the file system.


[0085] The file system related events that are filtered are as follows:


[0086] File Create Event


[0087] When a file create event is received it may be because the user has decided to download, beam or install some sort of application. When a create event occurs, the anti-malware scanner keeps track of a reference information that is associated with this event, and matches it up with the corresponding close event. This is done because when a new file is created it does not contain any information that can be analyzed for malicious code. It is important to know that if a “file create” event is the same as a file open event, these two are combined into one.


[0088] File Open, Execute Program Event


[0089] Prior to opening a file, the anti-malware scanner must make sure that the file is not infected. If the file is not infected, identification information is obtained from it. This way, when the file is closed this same information is compared to determine if any changes were made to the file. If changes were made, the anti-malware scanner resorts to a more resource intensive task to ensure that the file does not contain any malicious code. It is important to note that if application execution is a different event from a regular file open event, file execution should be monitored the same way.


[0090] File Close Event


[0091] The close event must be monitored for several reasons. As described above, when a file is created, it is scanned after the close operation occurred so the anti-malware scanner can analyze its content for computer viruses.


[0092] File Rename Event


[0093] This is yet another important part of the protection because a smarter computer virus could try to create a text file that contains malicious executable code and prior to launching it, rename it to an executable file type.


[0094] On-Access Scanner Subsystem Interaction


[0095] The on-access scanner subsystem is made unable with the help of other application subsystems. Each subsystem that on-access scanning interacts with are described below. A reason why this interaction is needed is also explained.


[0096] Component Manager


[0097] When the on-access scanning subsystem determined that there is something important to notify about such as an error condition or that an infected files was found, it informs the component manager.


[0098] Scan Engine


[0099] The scan engine is the component that takes a file and analyzes it to see if the file contains any malicious code. The scan engine is invoked prior to an open event happening and after a close event has happened.


[0100] Operating System


[0101] The on-access scanning subsystem must interact with the underlying operating system that informs of all file related events that take place. The operating system may always inform about the following information in Table 2C.
8TABLE 2CThe full path and filename of the file that is being handledby the operating system.The function that the operating system is about to perform onthe indicated file.Any time a drive is being connected and disconnected.


[0102] It is important to know that the file system should allow for re-entrancy so when a file system event is intercepted, the file system hooking function can open any file on any drive and perform I/O operations.


[0103] On some operating systems it is not possible for an application to use static or global data. Therefore, it would be required on those platforms that a mechanism is provided where the hooked function can access some previously allocated and initiated data.


[0104] An example way of accomplishing this would be to have a file system hook installation function that accepts a pointer to a callback function and a void pointer to application defined data. This application defined data would then be passed with every call to the hooking function. An example set of functions that are required to perform comprehensive file system hooking is described in Table 3.


[0105] On-Access Scanner API


[0106] To protect against malicious code such as computer viruses, the anti-malware scanner requires access to all files being accessed through system provided APIs. The on-access scanning subsystem resides parallel to the other specialized subsystems and as such the component manager manages it.


[0107]
FIG. 8 illustrates a framework 800 with an on-access scanner 801 interfacing with the file system 802 and filtering all file I/O related events. Every file that is about to be accessed is passed to the scan engine 804 that determines whether it is safe to access it. If the scan engine 804 determines that it is not safe, the component manager 806 may be notified and, based on established scan settings, some action may be done on the infected file. See Table 4 for an exemplary API.


[0108] Table 5 illustrates additional optional components of the on-access scanner API.


[0109]
FIG. 9 illustrates the manner 900 in which the on-access scanner is enabled and disabled during use based on on-demand scanning. Upon on-demand scanning being requested in operation 902, on-access scanning is disabled in operation 904. Thus, on-demand scanning may be performed in operation 906.


[0110] Once the on-demand scanning is complete, the on-access scanning may be enabled in operation 908. By this design, the on-access scanning is disabled when on-demand scanning to preserve resources on the mobile wireless device. In the context of the foregoing interface, the OnAccEnable() command may be used to effect the enabling and disabling of the on-access scanning. More information on the on-demand scanning will be set forth hereinafter in greater detail.


[0111] Java Scanner (210 of FIG. 2)


[0112] Java Applet and Script Scanning


[0113] To protect against malicious Java applets and Java scripts, the anti-malware scanner requires access to executable images and scripts through system provided APIs. The Java applet/script scanning subsystem resides parallel to on-access scanning and on-demand scanning subsystems and, as such, it is managed by the component manager.


[0114]
FIG. 10 illustrates the Java scanning module 1000 interfacing with the Java VM 1002 and filtering all Java applet and Java script executions. Every Java object that is about to be executed is passed to the scan engine 1004 that determines whether it is safe to execute the Java object. If the scan engine determines that it is not safe, the component manager 1006 may be notified and, based on established scan settings, some action may be done on it.


[0115] See Table 6 for an exemplary Java Scanner API.


[0116] On-Demand Scanner Module (208 of FIG. 2)


[0117]
FIG. 11 illustrates an on-demand scanner system 1100 including an on-demand scanner 1101 interacting with a component manager 1102 and a scan engine 1004. Further provided is plug-in support 1006 which interfaces a plurality of abstract file system plug-ins 1108.


[0118] The on-demand scanner 1101 is a component of the anti-malware scanner system responsible for scanning collections of data objects. The component manager 1102 initiates calls to the on-demand scanner 1101. The on-demand scanner 1101 makes use of the scan engine 1102 to detect and clean malware. It also makes use of plug-ins 1106, 1108 to determine if a given file can be interpreted as a directory. For example, a compress archive can be enumerated like a directory. The plug-ins 1108 may supply alternate translations to files for decompression, decryption, or other aspects of using the file.


[0119] The on-demand scanner 1101 recursively enumerates all data objects on the device from a given starting location. While scanning files, three callback functions are used: pScanFile, pScanDirectory, and pCleanFile. To use the on-demand scanner 1101, the caller must initialise an SE_SCANNER from the scan engine 1104 and the proper callback functions.


[0120]
FIG. 12 illustrates a method 1200 for performing on-demand scanning, in accordance with one embodiment. As shown, the scanner is started in operation 1202, after which a first entry is identified in operation 1204. It is then determined whether the entry is of a file type or a directory type in decision 1206.


[0121] If the entry is of a file type, a filter is obtained in operation 1208, after which a file callback is executed in operation 1210. Based on the callback function, the file is then conditionally scanned in operation 1212. If the file is deemed infected, a clean callback is executed. See operation 1214.


[0122] If, on the other hand, the entry is of a directory type (see decision 1206), a directory callback is executed in operation 1216. Next, a recursive scan is executed in operation 1218. The foregoing method 1200 is continued until all of the entries are identified (see operation 1220).


[0123] On-Demand Scanner API


[0124] An exemplary API for carrying out the foregoing functionality is set forth in Table 7.


[0125] Scan Engine (216 of FIG. 2)


[0126]
FIG. 13 illustrates a scan engine system 1300 including a scan engine module 1302, a file parser 1304, and an interpreter 1306. The scan engine system 1300 interfaces the on-access and on-demand scanner modules 1308 to carry out virus detection and clean files. See operation 1310.


[0127] The scan engine system 1300 is responsible for scanning individual data objects for malware and to repair infected documents. Potentially infected data is presented to the scan engine system 1300 from the on-access and on-demand scanner modules 1308. It is built to be system independent, and thus has an abstraction for data objects that can be scanned and cleaned.


[0128] Scan Engine API


[0129] The purpose of the scanner API is to enable the on-demand and on-access scanner modules 1308 to initiate detection and cleaning of malware in a given data object. This involves providing the necessary detection and cleaning files as well as providing data objects to scan.


[0130] An abstract file system is used to make the scan engine system 1300 portable to new devices and enable scanning of many different data objects. More information about ADIR, ADIRENT, and AFILE data objects of the abstract file system will be set forth hereinafter in greater detail.


[0131] Table 8 illustrates an exemplary scan engine API.


[0132] PD File Format


[0133] The purpose of this file is to provide the necessary information to detect and clean malware on handheld devices.


[0134] The PD file is composed of a header and a collection of records. The header provides general information about the use and management of the PD file. The records contain details about scanning and cleaning malware.


[0135] One of the design considerations is that 2-byte entries is desired to be 2-byte aligned, and 4-byte entries to be 4-byte aligned. This resolves some portability issues to processors that can't or have difficulty accessing non-aligned memory references. Note that aligned 4-byte values are not enforced with the instruction byte-code unless the target platform requires it.


[0136] Other than keeping the scan engine small, one may also want to support incremental updates for the PD file. One goal is to keep file transfers to the PD devices small.


[0137] The following capabilities of Table 9 may be required.
9TABLE 9After the file header, the rest of the file is a list ofrecordsNew records can be added to the end of the fileRecords can be marked as freeFree records can be re-used for new recordsNeighboring free records are merged to create a largerfree recordA record may be moved in memory when updating the contentsof that recordIt's possible that all records may be moved when de-fragmenting the fileAvoid re-encrypting the entire file because of a smallchangeAn updated checksum needs to be supplied with patches toverify the update


[0138] File Header


[0139] Table 10 illustrates an exemplary file header.
10TABLE 10BytesDescription48 Copyright notice, end with CTRL + Z2Header size2Target platform identifier2Scan class identifier2Reserved. (To be determined - used as 4-byte alignment padding)4File version number (major, minor, revision, build)4File format version number4Date of creation4Date of last incremental update4Checksum of contents4Encryption seed4First scan record offset4First check record offset4First clean record offset4First free record offset


[0140] Header Size


[0141] This is used for future expansion. One can add new information to the header without breaking compatibility with older scan engines. This may never actually be used. Byte order for this value is target platform dependant.


[0142] Target Platform Identifier


[0143] To simplify parsing the PD file on the target machine, the PD file is formatted for the target. The target platform identifier denotes which type of target the file is intended. From this, the following information of Table 11 can be deduced.
11TABLE 11Big-endian or little endian byte orderText encoding formatByte alignment


[0144] The only defined combination is the following set forth in Table 12.
12TABLE 12Little endian byte orderUTF-8 text encoding2-byte values are 2 byte aligned, 4 byte values are4-byte aligned


[0145] The definition of Table 12 is used for the target platforms of Table 13.
13TABLE 13Windows variants on IA-32 processorsLinux on IA-32 processorsSymbian EPOC on ARM processors


[0146] Scan Class Identifier


[0147] The scan class identifier is a value for identifying what class of data the PD file is designed to scan. The following classes of Table 14 are identified at this time.
14TABLE 14ValueDescription1File system2Process3Data stream


[0148] Record Header


[0149] The records have a common layout to make incremental update simple and aide in finding records without making the scan engine large. An update would send only those records that need to be deleted, replaced, or added. See Table 15.
15TABLE 15OffsetBytesDescription02Record length (N)22Record type (Scan, name, check, clean, or free)44Record identifier84Address of next record of this type (0 if end of list)12Record data0-3Pad record out to 4-byte align


[0150] Instead of referencing parts of the file by address, the PD file uses record ID's. This makes it possible to move a record without having to change every reference to the record.


[0151] The record header uses addresses to create a linked list of each type of record. This may help improve performance in finding the proper record. Eventually this could be used to sort records by record ID.


[0152] Record lengths are only 2-byte values. This is intentional to make porting between 16-bit processors simple. For example, a mobile wireless device such as a Palm® Pilot™ uses a database instead of a file system. Each record can be at most 64 KB. Nearly all scan functions may be very small. As they get larger, new instructions should be added to the language to move the functionality into the scan engine.


[0153] It may be interesting to apply a simple Huffman compression algorithm to the PD byte codes on a record-by-record basis.


[0154] Scan Records


[0155] This record contains a function for doing an initial scan of the selected file. The amount of code needed for this scan may exceed 64 KB (the maximum record size). Thus, the first scan record starts the process, but may reference other scan records. One goal is to keep the initial scan record small, yet able to eliminate 80% of the clean files. This keeps the scan engine's memory footprint small as well as making efficient use of the processor.


[0156] If malware is discovered, the scan function may return the record ID of the name record for this item. This table entry may provide the proper check function to verify the malware variant present. Though this does a double reference, it may not be important. Most of the time is spent eliminating files so that this step may be rare.


[0157] Check Records


[0158] Check records contain functions for identifying the specific malware variant once identified by the scan records.


[0159] The check record starts with the following header information in Table 16.
16TABLE 16OffsetBytesDescription04Record ID of the clean function to call (or 0 if none)42Number of bytes in name section (N)61Number of names provided71Length of malware name, (N0)8N0Text name of the malware1Length of variant name (N1)N1Text name of the variant. . . (Repeat for k variants)1Length of variant name (Nk)NkText name of the variant0-1Pad record out to 2-byte align lengthN + 4Instructions for the check function


[0160] If no variants are detected, then −0 is returned. Otherwise, the index for the variant is returned. A 0 is used if the generic malware detection suffices.


[0161] It should be noted that many different check functions can be merged into a single record to reduce the file size if they are sufficiently similar. However, this can cause trouble for incremental updates.


[0162] Clean Records


[0163] A clean record contains a function for removing the malware and repairing files if possible.


[0164] It should be noted that multiple detected malware may use the same clean function.


[0165] Free Records


[0166] When a record is deleted, it is merged with other free records or added to the free record list. This allows the system to re-use space when performing incremental updates. It solves the problem of re-writing the entire file just because a portion was modified.


[0167] Replacing a record is the same as deleting the original, and then adding a new record in its place.


[0168] Free records may be set to zero to make predicting the checksum easier.


[0169] Activity Logging Module (214 of FIG. 2)


[0170] The activity logging subsystem is responsible for recording significant events to be collected at the back-end for analysis. This aids in providing information from the field to track outbreaks, detect and diagnose issues, and help determine how to improve the product.


[0171] The following are logged events in Table 17.
17TABLE 17Error conditions and warningsDetection of malwareInfected file name and pathMalware name and variantResponse to malwareFile name and pathAction takenStarting and stopping of servicesOn-demand scanOn-access scannerVirus scanner applicationService agent upgrades


[0172] The detection of and response to malware is separated. Detection is logged immediately when the malware it detected. Once the action is taken and successfully completed, the response is logged. If anything were to go wrong with the response, one would at least see the detection entry.


[0173] Adding log file entries is supported at two levels. The most common are functions that handle specific logging needs. These require all the necessary information and add them to the log file with the minimum effort from the programmer. The lower layer manages the log file rotation and a generic mechanism for adding entries.


[0174] Configuration


[0175] The activity log requires the following configuration values in Table 18.
18TABLE 18Log file rotation sizeLog file maximum sizeLog trace messages (yes/no)


[0176] A single log file is used until is reaches the log file rotation size. At which point, it is renamed and a new log file is started. Once the total space used by all of the log files exceeds the maximum, the oldest log file is removed. As log files are uploaded from the device, they are deleted from the device.


[0177] The log file location and naming conventions are configured per platform when the program is compiled.


[0178] Requirements


[0179] See Table 19 for possible requirements.
19TABLE 19It must be reasonable to translate the log file to multiplelanguages.Limit the log file size to a reasonable (configurable) maximumScroll log file entries as the log file becomes too large (?)Track time and date of log entriesAvailable to the service agent for transmission to the back-endOnce transferred, the log file may be truncated.It must be resilient to system crashesOutput in a simplified, structured XML format with header forASCII or UNICODE encodingEnforce log file structure and completeness if informationpresentedAbility to detect when log files have been lost due to exceedingthe maximum log file size.


[0180] Table 20 illustrates an exemplary interface associated with the activity logging module.


[0181] File Format


[0182] The file format may be based on XML. There is a common form that is supported by the low-level API. This is described as follows. Then below, specifics for each type of logged event are provided as well.


[0183] Each log file is numbered sequentially. This enables sorting and merging log files, as well as detecting when log files are missing. See Table 21.
20TABLE 21For UNICODE<?xml version=“1.0” encoding=“ISO-10646”?>For ASCII<?xml version=“1.0” encoding=“ISO-8859-1”?>Then the rest:<log id=log_id><entry-name date=“ time-date-stamp”><field-name> value </field-name>. . .</entry-name>. . .


[0184] The strings entry-name and field-name are replaced with the actual entry and field names. The time-date-stamp is the time at which the entry is added to the log file. This is encoded as YYYYMMDDhhmmss, where YYYY is the year, MM is the month, DD is the day of the month, hh is the hour, mm is the minutes, and ss is the seconds.


[0185] A sample LogMessage object is shown in Table 22.
21TABLE 22<event date=“YYYYMMDDhhmmss”><type>message-type</type><message>message-body</message></event>message_type is one of trace, warning, error, or fatal.message_body is the text string provided for the message.


[0186] A sample LogMalwareDetect object is shown in Table 23.
22TABLE 23LogMalwareDetect<detect date=“YYYYMMDDhhmmss“><path>file-path</path><name>malware-name</name><variant>malware-variant</variant></detect>file-path is a string identifying where the infecteditem was found.malware-name is the name of the detected infectionmalware-variant is the verified variant name of the infectionLogMalwareAction<action date=“YYYYMMDDhhmmss”><path>file-path</path><action>scanner-action</action></action>scanner-action is one of “clean”, “delete”,“quarantine”, “ingore”.


[0187] A LogServiceEvent is shown in Table 24.
23TABLE 24<service date=“YYYYMMDDhhmmss”><name>service-name</name><action>service-action</action></service>service-name is the name of the service:“on-demand”, “on-access”, “application”, “agent”,“installer”.service-action the word “start” or “stop”.


[0188] Service Agent


[0189]
FIG. 14 illustrates a service agent (SA) architecture 1400, in accordance with one embodiment. As shown, a service agent 1402 interfaces with an user interface 1403, an on-access scanner module 1404, and an on-demand scanner module 1406. Such on-access scanner module 1404 and on-demand scanner module 1406, in turn, interface a scan engine 1408.


[0190] In use, the service agent 1402 communicates with the back-end architecture 1410 which may be controlled and monitored via a web-interface 1412. The service agent 1402 is thus responsible for communicating with the back-end architecture 1410. It handles delivering device-specific information such as log data to a remote back-end architecture 1410. The second responsibility is in retrieving the anti-malware scanner component installation and package updates. The component manager initiates service agent updates. This may be due to scheduled updates or by user initiated updates.


[0191]
FIG. 15 illustrates a method 1500 for scanning a mobile wireless device for malware. Initially, in operation 1502, a service agent 1402 is initiated utilizing a mobile wireless device. In one embodiment, the service agent may be initiated by a user interface of the mobile wireless device. Further, the service agent may be initiated by the anti-malware scanner of the mobile wireless device. Still yet, the service agent may be initiated by a daemon of the mobile wireless device. As an option, the service agent may be initiated by a scheduler of the mobile wireless device or a trigger.


[0192] Next, in operation 1504, information describing the mobile wireless device is transmitted to a back-end server over a wireless network utilizing the service agent of the mobile wireless device. In one embodiment, the information describing the mobile wireless may include log data. Such log data may be specific to the mobile wireless device.


[0193] In operation 1506, an update is then received from the back-end server over the wireless network utilizing the service agent of the mobile wireless device. Optionally, the update may be wrapped. Further, the update may include a header and a plurality of parts. Such parts may include a part-header section and a part-data section.


[0194] Subsequently, in operation 1508, an anti-malware scanner installed on the mobile wireless device is updated so that the mobile wireless device may be scanned utilizing the updated anti-malware scanner. More information regarding the foregoing architecture 1400 and associated method 1500 will now be set forth.


[0195] Agent Activation Scenarios


[0196]
FIG. 16 illustrates a sample service agent activation method 1600, in accordance with one embodiment. Depending on the operating system running on the wireless device, the service agent 1602 can be launched by the user-interface 1604, on-demand and on-access scanners 1606, a background process (daemon) and/or system scheduler 1608, itself 1609, and external signal/trigger 1610 originated from the service provider. More information regarding such triggers will now be set forth.


[0197] Activation Through User-Interface (Manual Trigger)


[0198] The agent can be directly launched from the wireless user-interface by the user. When the user selects an update-now button (or menu entry), the user-interface activates the agent.


[0199] Activation by the Agent (Self Trigger)


[0200] Under multi-process operating environment, the service agent stays resident and awaits (or sleeps) for update-interval time specified in the anti-malware scanner configuration before contacting the update server.


[0201] Scanner Activation (Scanner Trigger)


[0202] The agent is launched for new updates when the on-demand and/or on-access scanner notices that the update-interval-time has elapsed since the agent was activated last.


[0203] Scheduled Activation (Scheduled Trigger)


[0204] Operating system provided scheduler like cron™ in Unix/Linux™ is utilized to schedule the agent activation. Also, if the operating system allows daemon (or background process), a simple daemon is used to activate the service agent.


[0205] Carrier/Service Provider Activation (External Trigger)


[0206] This is an ideal method for deploying urgent virus signature updates while providing load balance. The wireless device/phone may support launching an application via a signal from its service provider. When an update signal from an external source is received by the device, it launches a pre-configured application, in this case the service agent, for immediate update.


[0207] Configuration


[0208] Like other the anti-malware scanner components on the device, the agent configuration information is kept in a central location. Table 25 lists the service agent communication configuration and status variables read/updated.
24TABLE 25VariableExampleDescriptionserverhttp://update1.mcafeeasap.coLists one or more update server URL's.m/cgi-bin/update.fcg,http://update2.mcafeeasap.com/cgi-bin/update.fcgmethod   1Specifies server selection method.0: direct-method - always attempt to connectto the first server given, connect to nextserver if the first one fails.1: round-robin - attempt to connect to serverlisted after previous connected server.last_connect167.68.79.100IP address port number of the last updateserver successfully connected.last_check20020110051530Last time the agent made a successful serverconnection.Format: YYYYMMDDhhmmssconnect_timeout5000Server connection timeout in milliseconds.read_timeout3000Socket read timeout value in milliseconds.write_timeout3000Socket write timeout value in milliseconds.connect_retry   5Maximum connection open retry count.read_retry   3Maximum socket read retry count.write_retry   3Maximum socket read retry count.download_dirX$/vswsa/downloadWhere to store downloaded package.


[0209] Service Package


[0210] The term “package” refers to any data/information uploaded/downloaded to/from a remote update server. Each package is made up of a header and parts. Each part consists of part-header and part-data sections. Designed for simplicity, endian-ness independence, and extensibility, the anti-malware scanner package format is an HTTP-like transmission format that allows multiple inclusion of any types of data. The package format is composed by subsequent entries:


[0211] Table 26 illustrates an exemplary format.


[0212] where:


[0213] ENRTY-NAME is the object identification name, and LENGTH is the length of the subsequent DATA section in bytes. The part-data section is made up of a binary chuck of data whose length is LENGTH. The format described above simplifies package creation and information access thus keeping the device application footprint small.


[0214] The part-header section can contain other useful information, for example, content type, compression method, signatures, checksums, etc. Also, it's possible to contain information that does not carry any data by setting the ContentLength: to zero and by making the <FIELD> carry data. As given in the example of Table 27, the device identification number is uploaded to a server by setting the ContentName to $DEV-UID, including a field names X-DEVUID, and setting the ContentLength to zero. See Table 27 for a package containing device ID number.
25TABLE 27ContentName: $DEV-UIDX-DevUID: 091200831080281ContentLength: 0


[0215] The content name part can easily contain pathname information that make the format suitable for multi-level packaging transfers. Table 28 shows an example package uploaded to a server. It contains three separate information: 1) device identification number, 2) device log information, and 3) product and component version information (catalogue).


[0216] Upload Package


[0217] Three types of part contents are uploaded to a server for back-end processing are: 1) device identification number, 2) device system/log information in XML format, and 3) component version information. The device identification number is used by the back-end to validate a device connection. Uploaded system and log information is processed and stored in a back-end database for reporting. Product/component version information, catalogue, is used by the back-end server in selecting an installation package to download.
26TABLE 28ContentRequiredNameFieldDescription$DEV-UIDX-DevUIDContains 16-byte device identi-fication number given in the X-DevUID field. Content lengthis always zero.$DEV-LOGnoneContains system activity and virusdetection log information to bestored in the back-end database.$DEV-noneVirus signature database version,CATALOGUEscan engine version numbers, andother component and productversion information is included inthe catalogue. The back-end updateserver uses the versioninformation uploaded indetermining whether to downloada new installation package.


[0218] The upload package is created from data provided by individual components that are registered with the service agent to upload/report its information to the back-end server. The service agent simply requests the registered components for upload data. Table 29 illustrates sample upload parts.
27TABLE 29ContentName: $DEV-UIDX-DevUID: 091200831080281ContentLength: 0ContentName: $DEV-LOGContentType: text/xmlContentLength: 1252<?xml version=“1.0” encoding=“ISO-8859-1”?><log><event time=“20020110110323”><severity>0</severity><message>Device was updated successfully</message></event><scan time=“20020110121545”><name>Nasty</name><type>trojan</type><action>2</action><infected>Address.prc</infected></detect>...</log>ContentName: $DEV-CATALOGUEContentType: text/xmlContentLength: 815<?xml version=“1.0” encoding=“ISO-8859-1”?><catalogue><product><id>7002</id><version>1.0</version><name> Wireless</name></product><component><name>engine</name><version>4.10.08</version></component><component><name>PD</name><version>4288</version></component>...<catalogue>


[0219] Client Authentication/Verification


[0220] The server uses the device identification number specified by the X-Device-UID field to verify and retrieve client-specific information. This verification is done as soon as any part of the HTTP POST data containing the device identification is received.


[0221] Event Log


[0222] Also given in the client upload package is a wireless component/application log entries. Like the catalogue information, the log entries are formatted in XML form. There are two types of log entries: detection log and application event log. The detection log entry contains detected malware name, its type, infected filename, and the action taken by the scanner. Application (or component) event log entry lists severity of the event and a short message describing the event. Both the detection and the event log entries have a timestamp specified in UTC. Table 30 illustrates a pair of XML formats.
28TABLE 30Format 1 Event Log Entry Format<event time=“YYYYMMDDhhmmss”><severity>severity-value</severity><message>event-description</message></event>Format 2 Detection Log Entry Format<detect time=“YYYYMMDDhhmmss”><name>malware-name</name><type>malware-type</name><infected>infected-file</infected><action>scanner-action</action></detect>


[0223] The log entry time stamp given in UTC has the following format in Table 31.
29TABLE 31YYYY::year (e.g. 2002)MM::month (01-12)DD::day of the month (01-31)hh::hour of the day in 24 hour format (00-23)mm::minute (00-59)ss::second (00-59)


[0224] Table 32 illustrates a sample log.
30TABLE 32ContentName: $DEV-LOGContentType: text/xmlContentLength: 659<?xml version=“1.0” encoding=“ISO-8859-1”?><log><event date=“20020108110323”><Severity>0</severity><message>PD updated</message></event><detect date=“20020108110645”><name>Nasty</name><type>virus</type><infected>paint.exe</infected><action>cleaned</cleaned></detect><detect date=“20020108110815”><name>Nimda</name><type>trojan</type><infected>hello.exe</infected><action>deleted</cleaned></detect><event date=“20020108111010”><Severity>2</severity><message>failed to scan kernel32.exe</message></event><log>


[0225] Component Catalogue


[0226] The device catalogue (version information) uploads lists on the anti-malware scanner components. This catalogue information along with the device identification number is used in constructing a download package for the specific-device/client. Each catalogue entry given in the client upload package follows the format in Table 33.
31TABLE 33<catalogue><product><id>product-id</id><version>version-number</version>[<name>product-name</name>]</product><component><id>component-id</id><version>version-number</version>[<name>component-name</name>]</component>...</catalogue>


[0227] Upload Information Gathering


[0228] Except for the device identification information, the service agent does not directly generate or format the data in the upload package - the service agent uploads data obtained from its clients. The service agent uses a set of callback functions supplied by its caller (or client) to request upload information. The service agent API SaSetParameter (and SaSetParameters) is used to by service agent client(s) to specify how to obtain upload data from each component.


[0229] Below steps describe the upload process


[0230] A. Initialization


[0231] 1. each client is notified by the SA to construct a package part to upload.


[0232] 2. the SA prepares package header that contains total package size information


[0233] 3. device-identification part is constructed


[0234] B. Login


[0235] 1. connect to a remote server


[0236] 2. send package header and device-identification part $DEV-ID


[0237] C. Transmit


[0238] 1. For each registered client, request a block of data from the client and then transmit.


[0239] D. Cleanup


[0240] E. Notify clients upload status


[0241] Package Download


[0242] After uploading a package, the service agent awaits for the server to download an installation package. The package header specifies the total package size, and the SA uses it to determine if the package contains installation part(s). The package size specified is greater zero, the SA downloads and saves the entire package data onto a download directory and calls the component installer. Each install part in an install package is identified by the content name that specifies the data format. The installer uses the format identifier in selecting an appropriate unpacker/decompressor for extracting and installing files contained in the part. Table 34 illustrates a sample installation package.
32TABLE 34ContentName: $INST-SISContentType: binaryContentLength: 200105[200,105 byes of SIS data]


[0243] Client-Server Communication


[0244]
FIG. 17 provides a method 1700 for client and server package handling. As shown in FIG. 17, during a client process 1701, a package is prepared by a mobile wireless device to be uploaded. See operation 1702. This client package is then posted for access by the server in operation 1704. This prompts the initiation of a server process 1705.


[0245] During the server process 1705, the client package is received in operation 1706, after which the client is verified in operation 1708. If an error is detected in decision 1712, an error message is posted in operation 1710. If not, however, the database is updated based on the client package in operation 1714. Next, a server package is generated in operation 1716, after which the server package is posted for access by the client in operation 1718.


[0246] The client process 1701 then proceeds by receiving the server package in operation 1720. If an error is identified in decision 1722, the process is terminated. If, however, no error is detected, the contents that are listed in operation 1724 are installed in operation 1726. Further, the catalogue is updated in operation 1728.


[0247] The client-server communication is thus initiated by the service agent by posting an upload package to a remote server. When this HTTP(S) POST is made to the server, the client connection is verified and the entire client package is received. After receiving the client package, the server updates database with the uploaded information, and then returns a package generated based on the information uploaded. The client installs components in the server package and updates its installed component catalogue.


[0248] Client-Server Protocol


[0249] The device update process may take place by preparing the package format (MPF) that may be basically composed by an UID entry, an XML file containing device catalogue information like dat/engine/applications versions and log entries and eventually quarantine files.


[0250] Once the package is prepared, the service agent (SA) may lookup its configuration searching for the URL to which to post the request. The URL may have the form shown in Table 35
33TABLE 35http://CARRIERDOMAIN/cgi-bin/update.fcgorhttps://CARRIERDOMAIN/cgi-bin/update.fcg


[0251] for HTTP over SSL connections. The package may be sent to the remote back-end agent (RBA) with a standard HTTP POST request like given that in Table 36.
34TABLE 36POST <CARRIERDOMAIN>/cgi-bin/update.fcg HTTP/1.0Host: <CARRIERDOMAIN>Content-Type: binary/MPFX-Device-UID: <DEVICE-UID>Content-Length: <SIZEOF-PACKAGE>[<SIZEOF-PACKAGE> bytes of binary data]


[0252] After that, the RBA may be invoked and it may unpack the package looking for the catalogue information coming from the device (i.e. details of what happens inside the RBA are described in another document). Based on the device current catalogue, the RBA may prepare a custom package whose format may be device dependent to better utilize intrinsic device capabilities and hence reduce the code footprint of the SA application. The RBA may send the prepared package as data inside the HTTP POST response given in Table 37. Then, the connection to the RBA may be closed and the SA may be free to process the package.
35TABLE 37POST <CARRIERDOMAIN>/cgi-bin/update.fcg HTTP/1.0Host: <CARRIERDOMAIN>Content-Type: binary/MPFX-Device-UID: <DEVICE-UID>Content-Length: <SIZEOF-PACKAGE>[<SIZEOF-PACKAGE> bytes of binary data]HTTP/1.0 200 OKHost: <CARRIERDOMAIN>Content-Type: binary/MPFContent-Length: <PACKAGE-SIZE>[<PACKAGE-SIZE> bytes of binary data]


[0253] Secure Communication and Authentication


[0254] The service agent uses system-provided secure channel (e.g. SSL) for server communication and authentication APIs for downloaded package verification. Data uploaded from a device to a server is done through secure channel to protect private information. The download package containing virus detection files and component upgrades need to be cryptographically signed and authenticated. Without proper authentication, the device may be vulnerable to a third party attack.


[0255] Table 38 illustrates an exemplary service agent API.


[0256] Installer


[0257] The anti-malware scanner installer is tasked with extracting and installing components. This includes the update or install packages the service agent receives from a back-end server. The configuration manager coordinates between the service agent and the installer to retrieve updates, and shuts down the on-access scanner so as not to cause a conflict when installing components.


[0258] Installation Package


[0259] The installation package contains one or more wireless installation components encapsulated in parts. Each part contains binary image of the component, version information, and special pre/post scripts used to install the component. The installation package format and its part format is identical to the service package uploaded to a server by the service agent.


[0260] One exemplary format is shown in Table 39.
36TABLE 39The installation package is made up of multiple parts:<PART0>...<PARTn>Each installation part is made up of part-header and part-data:<PART-HEADER><PART-DATA>Installation part-header is made up of part-data and component description:ContentName: <content-identifier>ContentType: <content-type>ContentLength: <content-length>ComponentID: <component-ID>ComponentName: <component-name>ComponentVersion: <component-version>


[0261] The content-identifier uniquely identifies the content information, content-type describes the content format/type of the part-data, and content-length provides the length (in bytes) the part-data included. Component-id is the wireless component identification number used in referencing a particular component, component-name specifies the component name, and component-version provides the version information. The example of Table 40 is an installation package containing PD and engine updates. The first part contains the virus signature file scan.pd, and the second part contains scan engine update with pre and post installation scripts to execute when installing the engine.


[0262] Content Name


[0263] The installer uses the content names in identify the install algorithm. Table 40 lists the content names accepted by the installer.
37TABLE 40Content NameDescription$ENGINEscan engine$PDvirus signature database$PDnvirus signature database containing a limitedset of detections; where 0 ≦ n$PDUvirus signature database update$APPWireless application$CONFIGWireless application configuration$APP-1contains an application to be executed andremoved (e.g. special virus cleanup app)$PRE-SCRIPTscript/application to be executed before acomponent is installed$INST-SCRIPTscript/application for installing the component;default install algorithm is by passed when thisscript/app is included$POST-SCRIPTscript/application to be executed afterinstallation


[0264] Content Type


[0265] The content type provides the stored part-data (component install image) format type, either binary or text, and the component classification names. Table 41 lists the component classification names used in an install package.
38TABLE 41Content TypeDescriptionpd-filevirus-signature datacontainerpart-data containing one or more partsscriptsystem-specific script filelibrun-time library (e.g. DLL)appapplication binary


[0266] Component Identification


[0267] The component identification specifies the wireless component number. It is used to reference a specific component in the wireless component catalogue on the device. See Table42.
39TABLE 42Component IDDescription1000full virus signature database1001, . . . , 1099virus signature database subset2000scan engine3000main application5000, . . . , 5999special applicationsContentName: $PDContentType: binary/pd-fileContentLength: 156Component ID: 2000ComponentName: PDComponentVersion: 2.0.1[156 bytes long scan.pd image]ContentName: $ENGINEContentType: binary/containerContentLength: 650ContentPriority: 0ComponentID: 1000ComponentName: scan engineComponentVersion: 4.3.21ContentName: $PRE-SCRIPTContentType: text/scriptContentLength: 35/etc/rc.d/init.d/vmax stopContentName: $BINARYContentType: binary/libContentLength: 256[256 bytes long scanengine image]ContentName: $POST-SCRIPTContentType: text/scriptContentLength: 34/etc/rc.d/init.d/vmax start


[0268] Installation Process


[0269]
FIG. 18 illustrates the various steps 1800 of the package installation process, in accordance with one embodiment. Once an installation/update package has been downloaded, the service agent notifies the installer to extract and install/update new components. See operation 1802.


[0270] 1. obtain package information


[0271] a. enumerate through enclosed contents/parts (1804)


[0272] b. order components by priority


[0273] 2. notify components


[0274] 3. for each component:


[0275] a. extract components to a temporary storage (1806)


[0276] b. execute pre-install script if included (1808)


[0277] c. copy/move extracted component


[0278] d. update catalogue


[0279] e. execute post-install script


[0280] 4. notify components


[0281] 5. cleanup (1812)


[0282] The installation notification is sent out to components running on the device before and after an installation. See operation 1810. The notification information includes the component identification number of the component being updated.


[0283] Installer API


[0284] An illustrative installer API is shown in Table 43A.
40TABLE 43AInsPackageInstallDescriptionThe InsPackageInstall call installs the anti-malware scannerinstallation package.Prototypeint InsPacakgeInstall(void);ParametersnoneReturn Values0 on success. −1 indicates error.


[0285] Platform Abstraction Layer (218 of FIG. 2)


[0286] The wireless platform abstraction layer (PAL) is a middle-ware API designed to provide components with a platform-independent system interfaces. The abstraction layer is divided into following seven categories.


[0287]
FIG. 19 illustrates the components 1900 of the platform abstraction layer 1902 and the manner in which they interface with the mobile wireless device 1904 and operating system 1906 thereof. See Table 43B for a list of such components.
41TABLE 43B1.Storage I/O APIs for accessing files (or stored objects) anddirectories, (1908)2.Dynamic memory allocation APIs, (1910)3.Process/task control calls (1912)4.Network I/O calls (1914)5.System event handler APIs (1916)6.System identification and resource information routines (1918)7.Miscellaneous APIs (1920)


[0288] More information will now be set forth regarding the various components of the platform abstract layer.


[0289] Storage I/O (1908 of FIG. 19)


[0290] Storage I/O API is used by wireless to access and modify data objects (or files) stored on a non-volatile storage device (e.g. flash memory, hard disk) and managed by a file system or file system like storage and retrieval system. The API is divided into three categories: 1) I/O routines for reading/writing data to/from single object or file, 2) calls used to copy, move and delete a stored object, 3) and routines that provide object enumeration from a storage. See Table 44.
42TABLE 44NameArgumentsReturnsDescriptionFsFileOpenconst FILEPATH*HFILEOpens the specified file using the specified.pFilePath,FILEPATH is a system-specific datafmode_t modes,structure used to define a specific-file path.FsFileCloseHFILE hFileIn.Closes specified file handle.FsFileReadHFILE hFile,size_tReturns the number of bytes read intovoid* buffer,‘buffer’ after attempting to readsize_t cbLength‘cbLength’ from file handle‘hFile’. (size_t) − 1 isreturned on error.FsFileWriteHFILE hFile,size_tReturns the number of bytes written fromvoid* buffer,‘buffer’ after attempting to writesize_t cbLength‘cbLength’ bytes to file handle‘hFile’. (size_t) − 1 is returned on error.FsFileSeekHFILE hFile,off_tReturns current file handle offset positionoff_t offset,after moving ‘offset’ bytes from thefpos_t whencelocation directive ‘whence’.(off_t) − 1 is returned on error.FsFileSetSizeHANDLE hFile,off_tSets the files size to ‘cbNewLength’off_tbytes long. −1 is returned on error.cbNewLengthFsFileDeleteconst FILEPATH*intDeletes the specified file.pFilePath−1 is returned on error.FsFileRenameconst FILEPATH*intRenames a file, moving it to differentpOldPath,directory if required.const FILEPATH*If a file with same path exists, the callpNewPathreturns an error. −1 is returned on error.FsFileCopyconst FILEPATH*intCopies a file to a different location. IfpSrcPath,‘bOverwrite’ is not set (= FILE)const FILEPATH*and a destination file exists, an errorpDestPath,is returned.BOOL bOverwriteFsFileCopyToDirconst FILEPATH*intCopies a file to the specified directorypSrcPath,location. If ‘bOverwrite’ is not setconst DirPATH*(= FILE) and a destinationpDestDir,file exists, an error is returned.BOOL bOverwriteFsFileStatconst FILEPATH*intReturns information (including file size,pFilePath,permission) on specified file.FILESTATE*pFileStatFsSetModeconst FILEPATH*intSets the file access permission to the modepszPath,specified.faccess_taccessModeFsDirRootvoidHDIRReturns the root directory handle.FsDirOpenconst DIRPATH*HDIRReturns a directory handle for the specifiedpDirPathdirectory.FsDirCloseHDIR hDirintReleases resource taken up by a directoryhandle.FsDirFirstHDIR hDirconstReturns the first directory entry.DIRENTRY*FsDirNextconst DIRENTRY*constReturns the directory entry listed after thepDirEntryDIRENTRY*entry pointed by the ‘pDirEntry’ pointer.FsGetFilePathvoid* bufferFILEPATHConverts system-specific file path into the*FILEPATH structure and returns itsmemory pointer. The returned pointerneeds to be released using theFsFreeFilePath.FsFreeFilePathFILEPATH*intFrees system resource associated with thepFilePathstructure pointed by ‘pFilePath’ pointer.FsGetDirPathvoid* bufferDIRPATH *Converts system-specific directory pathinto the DIRPATH structure and returns itsmemory pointer. The returned pointerneeds to be released using theFsFreeDirPath.FsFreeDirPathDIRPATH*intFrees system resource associated with thepDirPathstructure pointed by ‘pDirPath’ pointer.


[0291] Network Socket I/O (1914 of FIG. 19)


[0292] See Table 45 for an exemplary network socket I/O API.
43TABLE 45NameArgumentsReturnsDescriptionSocketOpenint domain,HSOCKETCreates a network socket and returns itsint type,handle.int protocolSocketConnectHSOCKET hSocket,intInitializes connection on amsec_t timeout,socket. −1 returned if error.SockAddrsockAddr,NETPORT_T portSocketBindHSOCKET hSocket,intSets the socket to bind to port ‘port’.NETPORT_T portClient IP address is set toINADDR_ANY. −1 returned if error.SocketAcceptHSOCKET hSocket,intAccepts a connection on a socket andSOCKADDR* pAddrreturns connected client IP information in‘pAddr’. −1 returned if error.SocketReceiveHSOCKET hSocket,size_tReads from a connected socket.msec_t timeout,void* buffer,size_t sizeSocketSendHSOCKET hSocket,size_tWrites to a connected socket.msec_t timeout,void* buffer,size_t sizeSocketCloseHSOCKET hSocketintCloses connection and releases systemresource.SSLOpenHSOCKET hSocketHSSLTransforms a normal (non-secure) socketto a SSL socket, and the SSL API callsshould be used instead.If the call fails, the ‘hSocket’ property isretained and NULL is returned.SSLConnectHSSL hSocket,intInitializes connection on a SSLmsec_t timeout,socket. −1 returned if error.SockAddrsockAddr,NETPORT_T portSSLAcceptHSSL hSocket,intAccepts a SSL connection on a SSL socket andSOCKADDR* pAddrreturns connected client IP information in‘pAddr’. −1 returned if error.SSLReceiveHSSL hSocket,size_tReads from a connected SSL socket.msec_t timeout,void* buffer,size_t sizeSSLSendHSSL hSocket,size_tWrites to a connected SSL socket.msec_t timeout,void* buffer,size_t sizeSSLCloseHSSL hSocketintCloses SSL connection and releasessystem resource.


[0293] Process Control API (1912 of FIG. 19)


[0294] See Table 46 for an exemplary process control API.
44TABLE 46NameArgumentsReturnsDescriptionProGetListpid_t** ppPidintReturns the numberof current systemprocesses and a listof process id's.ProFreeListpid_t* pPidintFrees process listedobtained usingProGetList.ProKillpid_t pidintTerminates specifiedprocess.ProOpenpid_t pidHPROCESSReturns a processhandle correspondingto the process id.ProCloseHPROCESSintFrees resourcehProcessassociated with theprocess handle.ProGetNameHPROCESSintReturns process name.hProcess,void* pName,size_t cbNameProGetFilePathHPROCESSintReturns storage pathhProcess,for the process image.FILEPATH**ppFilePathProGetCodeMemHPROCESSsize_tRetrieves ‘cbRead’hProcess,bytes of processsize_t offset,instruction code/datavoid* buffer,from process codesize_t cbReadoffset ‘offset’.Returns the number ofbytes read into‘buffer’.Return value(size_t)-1 indicateserror.


[0295] Dynamic Memory (1910 of FIG. 19)


[0296] See Table 47 for an exemplary dynamic memory API.
45TABLE 47NameArgumentsReturnsDescriptionMemMallocsize_t sizevoid*Returns a pointer to at least ‘size’bytes long dynamic memory block.MemFreevoid* ptrvoidFrees dynamic memory allocatedusing MemMalloc


[0297] Event Handler API (1916 of FIG. 19)


[0298] See Table 48 for an exemplary event handler API.
46TABLE 48NameArgumentsReturnsDescriptionEvntSetHandlerint event,intSets a callback/handler for event ‘event’.FNEVENT_HANDLER*pFuncEvntGetHandlerint eventFNEVENT_HANDLER*Returns event handler for event ‘event’


[0299] System Information (1918 of FIG. 19)


[0300] See Table 49 for an exemplary system information API.
47TABLE 49NameArgumentsReturnsDescriptionSysGetIdunsigned charintObtains 16-byte deviceid [16]identification code.


[0301] See Table 50 for an exemplary error/status API.
48TABLE 50NameArgumentsReturnsDescriptionErrSetLastVSWSTATUS errintSets the last errorto ‘err’ErrGetLastvoidVSWSTATUSReturns the last errorset using theErrSetLast function.


[0302] Misc. API (1920 of FIG. 19)


[0303] See Table 51 for an exemplary misc. API.
49TABLE 51NameArgumentsReturnsDescriptionSleepmsec_t msecintsuspends current executionand sleeps for ‘msec’millisecondsMemSetvoid* dest,void*Sets the first ‘n’ bytes ofint pattern,memory pointed by ‘ptr’size_t nto ‘pattern’.Pointer to ‘ptr’ is returned.MemCopyvoid* dest,void*Copies ‘n’ bytes fromvoid* src,memory area ‘src’ tosize_t nmemory area ‘dest’ andthen returns pointer to‘dest’.ExecBuffervoid* buffer,intTreats the ‘buffer’ assize_t lengthexecutable binary imageand requests the system toexecute. The return code ofthe executable is returned.ExecFileconst FILEPATH*intRequest the system topExePathexecute the executable fileidentified by ‘pExePath’.The return code returned bythe executable is passed onto the caller.


[0304] Abstract File System Specification


[0305] The abstract file system provides an interface for supporting features in the platform abstraction layer (PAL). When porting the anti-malware scanner to new platforms, this interface may need to be implemented for every class of scannable data object on the device. The most common may be a file system. This may also include databases or custom persistent data storage on the device.


[0306] Implementing the Interface


[0307] The scanner components use the HDIR and HFILE handles to interact with files and directories. These handles are discussed in greater detail in the PAL. The abstract file system is one way of implementing these handles.


[0308] Three different interfaces need to be supported, as shown in Table 52.
50TABLE 52Abstract Directory: ADIRAbstract Directory Entry: ADIRENTAbstract File: AFILE


[0309] The ADIR is used to support HDIR. The ADIRENT supports both FILEPATH and DIRPATH. The AFILE supports HFILE.


[0310] For example, an HDIR is type cast into an ADIR pointer.


[0311] Thus, FsFileRead() can be defined as follows in Table 53.
51TABLE 53#define FsFileRead(hFile, pBuffer, length) \((ADIR *)hFile )−>pRead(hFile, pBuffer, length)


[0312] This saves on the overhead of having to implement a FsFileRead() function that does essentially the same thing as the macro.


[0313] ADIR, ADIRENT, and AFILE are implemented as data structures with callback functions. The callback functions provide basic capabilities to enumerate and manipulate files. The calling application must implement these interfaces.


[0314] Data Types


[0315] See Table 54 for various exemplary data types.


[0316] ADIRENT Interface


[0317] See Table 56 for an exemplary ADIRENT API.


[0318] AFILE Interface


[0319] See Table 57A for an exemplary AFILE API.


[0320] Configuration Settings


[0321] A configurations settings object manages all configuration settings. This object is use to set and retrieve information in permanent storage. The inner logic of this object manages the way information is stored and accessed. The component manager instantiates this object and passes a configuration settings handle to all other subsystems so they can access their options. Note is that there are no structures involved and each configuration setting is referenced by a symbolic name. As long as the symbolic name is known it can be accessed. Each subsystem uses a prefix to clearly identify its configuration settings.


[0322] The following are advantages to this configuration management system, as indicated in Table 57B.
52TABLE 57BThe logic of how to access information is contained within oneobject. If the storage method would need to be changed for somereason, it is only one objects implementation that changes andnone of the other subsystems get affected.Information is stored in a way that does not allow for useraccess.If the persistent storage object is not found, defaultpreconfigured values are returned. This way system security isnot jeopardized.


[0323] Table 57C shows a summary of all configuration settings object interfaces are:
53TABLE 57CScnOptsCreate ( )ScnOptsDestroy ( )ScnOptsGetInt ( )ScnOptsSetlnt ( )ScnOptsGetString ( )ScnOptsSetString ( )


[0324] Following in Table 57D is a detailed description of each API.


[0325] Configuration Settings Storage Definition


[0326] Configuration settings are stored in a text file in XML format. A sample configuration settings file is described in Table 58.
54TABLE 58< Wireless Settings><ScanAllFiles=0><ScanExtensions=SIS,APP,EXE><LogMaxFileSize=5120></ Wireless Settings>


[0327] ScanAllFiles is the symbolic name for the scan settings that tells whether all files should be scanned or just the files with the specified file extension. Because the value is made up entirely of numbers it should be accessed as a variable type integer.


[0328] ScanExtensions is the symbolic name for the scan settings that tells one what file types should be checked for malware in case ScanAllFiles is set to zero. Because the value is made up of alphanumeric values it should be accessed as a string.


[0329] Return Codes


[0330] The anti-malware scanner core technology architecture returns a common return code. This return code architecture is designed so clear identification can be made between error return codes and simple casual notification return codes. When interfacing with the component manager several other subsystems are involved in protecting the computer systems. From the return code itself it is possible to determine what subsystem is reporting a certain return code and the reason that subsystem decided to report it. This makes problem identification very trivial and notification messages are detailed.


[0331] The anti-malware scanner return code is a 32-bit value where each bit position has a meaning. The high order bit, 0×80000000 is set for error return codes only. If this bit is not set then the return code in question corresponds to a notification return code. Each the anti-malware scanner core component has its unique bit position within the return code. Bits positions reserved for subsystem have a range from 0×00100000 to 0×7FF00000 and this allows for detailed debugging and reporting because it is possible to track what subsystems an event traversed through before it was reported. The scanner subsystems use the following bit positions within a return code shown in Table 59.
55TABLE 59VSWSTATUS_SS_CMGR0x00100000 Component managerVSWSTATUS_SS_OA0x00200000 On-access scannerVSWSTATUS_SS_OD0x00400000 On-demand scannerVSWSTATUS_SS_ALOG0x00800000 Activity log.VSWSTATUS_SS_AGT0x01000000 Service agent.


[0332] This methodology allows for 0×FFFFF possible error codes when combined with the high order bit, and 0×FFFFF notifications when not combined with the high order bit per subsystem.


[0333] All return codes that the anti-malware scanner returns can be found in the McStatus.h include file. This include file also contains several helper macros that facilitates return code dissecting. Among these macros are ISSTATUSOK and ISSTATUSERROR that are used for quick determination whether a function call succeeded or not.


[0334] More information relating to an illustrative abstract library will be set forth in APPENDIX A.


[0335] Back-End Architecture


[0336] The back-end architecture provides the following functionality in Table 60.
56TABLE 60Provisioning—Wireless service configuration.Reporting—usage and statistical informationfrom uploaded device information.Communication—device-to-server datacommunication via HTTP/HTTPS.Database Transaction—device information logging,status update, package selection.Component Update—device-specific component updatepackage preparation and distribution.Server-side scanning (optional)—SMTP, SMS, phone-to-phone information content scanning


[0337] Architecture


[0338] The design goal of the anti-malware scanner back-end infrastructure is to provide a high level of reliability and scalability by distributing the workload to multiple servers. The back-end infrastructure consists of the following components set forth in Table 61
57TABLE 61HTTP server CGI program (kcgi) for client request handlingDatabase transaction server application (pdbserver) fordatabase access.Database for client information storage.Web-based provisioning and reporting system.


[0339] With reference again to FIG. 1, client/server communication is initiated by a HTTP POST request from a wireless device to a HTTP server running a CGI named kcgi, an executable invoked by a HTTP daemon to handle client-server communication. Once a HTTP server receives a device request, it connects to a transaction server and sends and receives client-specific data. The transaction server, PDB Server, makes database queries to store and retrieve information to/from a database system. The anti-malware client configuration information, usage information and component update packages are stored in the database. The service configuration and reporting may be accomplished via Web interfaces.


[0340] Kcgi—HTTP/Web Server CGI


[0341] The core CGI engine is implemented through a HTTP/Web server module named kcgi. It has been designed to efficiently handle multiple HTTP requests from wireless devices. The CGI is invoked by a Web server daemon (e.g. Apache) when a wireless device connects and uploads data through an HTTP POST request. See Table 62.
58TABLE 62POST /cgi-bin/kcgi.fcg HTTP/1.0Host: <BACK-END-HOST>...


[0342] When the CGI receives client data in the payload section of the POST request, it selects a transaction server after a round-robin lookup of a transaction server listing stored in the database and then routes the data to the selected server. Description of the transaction server (pdbserver) and the communication protocol is given in the next section. As a result of the protocol handshaking between kcgi and the pdbserver, a package is either generated or read from a local cache and is sent to the wireless device as PART (data section) of the HTTP response. In case the transaction server returns an error (e.g. authentication failure), kcgi returns an HTTP error response to the HTTP POST request.


[0343] PDB Server—Transaction Server Application


[0344] The personal device database transaction server, pdbserver, is a server application designed to be situated in-between a HTTP/Web server running kcgi and a database server(s) containing device and vendor-specific status and information. The pdbserver is a single-threaded, single-process application designed to handle multiple connections.


[0345] Command Line Arguments


[0346] The pdbserver supports six command line arguments—IP number, process user id, log directory path, upload package directory path, server listener port number, and maximum client connection.


[0347] Table 63 illustrates an example.
59TABLE 63./pdbserver --ip 161.69.79.100 --user pdbd --pkg/pdbd/packages--port 6179 --max-clients 256


[0348] The example command line instructs pdbserver to register with a database as a server with IP “161.69.79.100”, execute as a user “pdb” process, find packages in the “/pdbd/packages” directory, listens to connections on port 6179 and allow up-to 256 simultaneous client connections at a give time.


[0349] By default pdbserver saves posted log files under the “./”+<ip>+“:”+<port> directory. For the above example, pdbserver saves posted log files into the “./161.69.79.100:6179” directory. See Table 64 for exemplarypdbserver command-line arguments.
60TABLE 64ArgumentReq'dDefaultExampleDescription--ipnone161.69.79.100This is the IP address of thepdbserver saved to thedatabase. The pdbserverbinds to all interfaces of thesystem it is running on.--port61796188Server port number.--usernonepdbdpdbserver process user-id--log<IP>:<PORT>./161.69.79.100:617Where to save posted log9data--pkgnone/pdbd/packagesWhere to locate packages tobe downloaded to clients.--max-64256Maximum number clients.clients


[0350] Architecture


[0351] The pdbserver is a single-process, single-threaded server application designed to serve multiple client connections simultaneously. Communication with clients is done using custom protocol over TCP/IP. The application code consists of three parts: initialization, service loop and cleanup.


[0352] Initialization


[0353] The initialization code consists of three parts: database connection/login, registration, and network/socket initialization.


[0354] Database Login


[0355] The current pdbserver implementation uses an Oracle user id “mdb”, password “tigard”, and connection string “lara” to log onto a remote PDB server. The Oracle connection string “lara” is used to reference a remote Oracle database server and must be defined in Oracle client network configuration file tnsnames.ora. Table 65 illustrates an example tnsnames.ora for an Oracle server running on the computer at pdb00.dev.mcafeelabs.com listening to port 1521. See Table 65 for an exemplary sample tnsnames.ora configuration.
61TABLE 65LARA.DEV.MCAFEELABS.COM =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP) (HOST = pdb00.dev.mcafeelabs.com) (PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = pdb00.dev.mcafeelabs.com)))


[0356] Registration


[0357] Once a database connection is established, the pdbserver registers itself with the database. The back-end database keeps a list of pdbserver information for load- balancing purpose. The stored information can be obtained by a kcgi instance using the query-servers command.


[0358] Socket Initialization


[0359] The server's listener socket is initialized with no-delay mode, and the listener port is set to a user specified port number. The reason for setting the server socket in no-delay mode is to service clients without having to wait for read/write completion.


[0360] Service Loop


[0361] The pdbserver's main loop consists of accepting a connection to the listener socket, polling each client connection for I/O status updates, servicing each client's request, and removing clients who have timed out. The client network I/O status (read-ready, write-ready, error condition) is obtained using the poll API function. After each client's I/O status is updated, the server handles I/O requests for those clients whose I/O status is set for read/write and executes clients' commands when they are ready to execute.


[0362] Protocol


[0363] The kcgi/pdbserver communication protocol consists of a command and response sets. Each command/response is made up of a minimum of 8 bytes—the first 4 bytes for command/response code and the next 4 bytes for command/response data length. The command/response code and data length information are encoded in network-byte order. Command/response data is given if the length specified is not zero. See Table 66 for an exemplary command/response format.
62TABLE 66<command/response:4 bytes> <data-length:4 bytes>[data:data-length bytes]


[0364]
FIG. 20 illustrates a transaction server command process flow 2000, in accordance with one embodiment. As shown, a command is received in operation 2002, after which it is identified as a post data command 2004, a query server command 2006, or a quit command 2008. If the command received is a post data command 2004, device information is updated in operation 2010, an update package is retrieved in operation 2012, a log is saved in operation 2014, and the response is sent in operation 2020. Further, if the command received is a query server command 2006, a server list is retrieved in operation 2016, and the response is sent in operation 2020. Further, the quit command 2008 prompts a bye operation. See operation 2018. More information regarding such commands will now be set forth.


[0365] Commands


[0366] The pdbserver accepts three commands from kcgi:post-data, query-servers and quit. Each command consists of a 4-byte command code followed by a 4-byte command argument length and data. See Table 67 for an exemplary PDB Server Command List.
63TABLE 67CommandValueDescriptionpost-data0x0001Uploads device log file.query-servers0x0002retrieves the file version number of thelatest device-specific virussignature file stored in database.quit0x0004ends client connection to the pdbserver.


[0367] Post-Data


[0368] One of the main functionalities of the pdbserver is to verify and update individual device's status on the back-end database. The post-data command is used by kcgi to upload (or post) data sent by a wireless device using HTTP POST. Contained in the uploaded client data is a wireless component catalogue containing version information and event log. The catalogue information is used in selecting an update package to download to the device, and the log data is stored in the database for reporting. At the very beginning of the HTTP POST data is a device identification number used to authenticate the device. Both the catalogue and the log information received are in XML format. Refer to the service agent section of the anti-malware scanner Design Specification document for the catalogue and event log format.


[0369] Query-Servers


[0370] This command is used by kcgi in selecting a pdbserver, and returns a list of active PDB server IP's, port assignment, and number of clients connected to each server.


[0371] Return Code


[0372] For each command issued by a client, the pdbserver responds with a 4-byte response code followed by a 4-byte data length. Table 68A lists the current pdbserver response codes.
64TABLE 68AResponseValueDescriptionsuccess0x0000command executed successfully.cmd-failed0x8001failed to execute commandunknown-cmd0x8002unknown command issuedinvalid-arg0x8003invalid command argument giventimeout0x8004client failed to issue command on timenot-impl0x8005issued command not implementedinvalid-data0x8006same as invalid-arg; client data containsinvalid argument datano-record0x8007failed to locate requested (or required) datafrom databasedb-failure0x8008database transaction failuredb-unavail0x8009failed to connect to databaseinsuf-res0xCFFEinsufficient internal resource to executerequested commandinternal-err0xCFFFunknown internal error


[0373] Configuration and Reporting


[0374] The anti-malware scanner run-time configuration is setup through a web interface and maintained in the database. New configuration settings in XML format are downloaded to each device as a part of the HTTP POST return data. Each device entry in the unit information table has a group id used to reference the configuration for a given wireless device. Currently identified configuration settings are those set forth in Table 68B.
65TABLE 68BService-interval time - how often wireless devices contactthe back-end to upload/download data from the back-endScan action - virus scanner action (clean/repair, delete,ignore)


[0375] Usage and statistical reports are generated using a Web interface from database records gathered from device logs uploaded by the service agent on the device. Two types of reports are available, as indicated by Table 68C.
66TABLE 68CVirus detection reports - statistical information on thevirus names, types, actions taken.System activity reports - compilation of system errors andwarnings used to diagnose and troubleshoot.


[0376] Database Schema


[0377]
FIG. 21 illustrates the personal device database table relationships 2100, in accordance with one embodiment. The personal device database (PDB) is a relational database made up of six tables: unit_info (2102), device (2104), eng_pkg (2106), dat_pkg (2108), detection_log (2110), event_log (2112) and pdbserver (2114). The information contained in the relational database tables are used by a pdbserver to retrieve individual devices' engine and PD information, detection and event log records, and to list available pdbserver's for kcgi.


[0378] Device Information Table (2104 of FIG. 21)


[0379] Device-specific latest engine and DAT version information is kept in the device table. See Table 69 for an exemplary device information table.
67TABLE 69devicecolumntypekeyexampledescriptionidvarchar(16)MOT10Adeviceidentificationnumberengvervarchar(10)EM10A.5.2.1latest AV engineversion numberfor the device‘id’datvervarchar(10)DM10A.5.2.1latest AVsignaturedatabase versionfor the device‘id’mfgvarchar(32)Motoroladevicemanufacturenamerevvarchar(16)Adevice revisionnumbercmntvarchar(128)Motoroladevice comment/Model 10 Aremark textfor Verizon


[0380] Engine Package Table (2106 of FIG. 21)


[0381] Engine package filename for a specific device type and version is stored in the eng_pkg table. See Table 70 for exemplary device-specific engine package information.
68TABLE 70eng_pkgcolumntypekeyexampledescriptiondevicevarchar(16)M0T10Adeviceidentificationnumberversionvarchar(10)EM10A.5.2.0latest AVengineversion numberfor the devicepkgvarchar(64)eng.m10a.050200.pkgAV enginepackage name


[0382] DAT Package Table (2108 of FIG. 21)


[0383] The DAT package table (da_pkg) contains device and version specific DAT package name information. See Table 71 for exemplary device-specific DAT package information.
69TABLE 71dat_pkgcolumntypekeyexampledescriptiondevicevarchar(16)M0T10Adeviceidentificationnumberversionvarchar(10)EM10A.5.2.0latest AV signaturedatabase versionnumber for thedevicepkgvarchar(64)dat.m10a.5.2.0.pkgsignature packagename


[0384] Unit Information Table (2102 of FIG. 21)


[0385] Every personal device has an entry in the unit_info table. Stored in this table are: 16-character fixed-length unit identification number, device identification number that specifies the device type, unit-group identification code that provides group association of a particular unit and virus scan data files and engine version numbers on the device. See Table 72 for an exemplary unit information table.
70TABLE 72unit_infocolumntypekeyexampledescriptionunitidchar(16)C000A100008001234personaldevice unitidentificationnumberdeviceidvarchar(16)M0T10Adeviceidentificationnumbergroupchar(8)VZ200unit groupidentificationnumberstatusint1unit activationstatusengvervarchar(10)EM10A.5.2.1AV engineversion onthe unitdatvervarchar(10)DM10A.5.2.1AV signatureversionon the unitcontactchar(14)20011224161525last log uploadtimestamp (UTC);YYYY + MM +DD + hh +mm + ss


[0386] Detection Log (2110 of FIG. 21)


[0387] Virus/malware detection log entries posted by a device are kept in the detection log. Each log entry has unit identification number, timestamp, what was detected, and action taken by the scanner. See Table 73 for an exemplary malware detection log table.
71TABLE 73detection_logcolumntypekeyexampledescriptionunitidchar(16)C000A100008001234personaldevice unitidentificationnumberwhenchar(14)20011224161030reporteddetectiontimestamp (UTC)detectedvarchar(32)abc@mmmalware nametypevarchar(16)wormmalware typeinfectedvarchar(128)system.dllobject (e.g.file) infectedactionint1AV scanneraction


[0388] Event Log (2112 of FIG. 21)


[0389] System log information upload by devices are kept in the event log. Each log entry consists of unit id, log entry time, severity of the event, and event description. See Table 74A for an exemplary event log table.
72TABLE 74Aevent_logcolumntypekeyexampledescriptionunitidchar(16)C000A100008001234personaldevice unitidentificationnumberwhenchar(14)20011224161025reporteddetectiontimestamp(UTC)severityint1severity-levelof the reportedeventmessagevarchar(160)DAT updatedeventsuccessfullydescription


[0390] PDB Server Table (2114 of FIG. 21)


[0391] PDB server table lists active pdbserver instances and the number of clients each server is servicing. As a part of initialization process, each pdbserver registers its IP and port to the table, and maintains a client counter in the table. See Table 74B.
73TABLE 74Bpdbservercolumntypekeydescriptionipvarchar(15)PDB Server IP numberportintPDB server port numberclientsintnumber of clients beingserved by IP:port


[0392] PDB Logger


[0393] The PDB Logger (pdblogger) is a separate application designed to process posted device log data as an off-line process. The system event and detection log information stored in a log directory is processed and recorded onto the event and detection tables by this application.


[0394]
FIG. 22 shows an exemplary client information flow 2200, in accordance with one embodiment.


[0395] APPENDIX A


[0396] Abstract Library


[0397] The design goal of the wireless abstraction library is to shield the application from platform-specific implementation details while providing consistent interfaces to the following subsystems in Table 75.
74TABLE 75dynamic memory allocationprocess enumeration and controlthreading and thread synchronizationstorage I/Onetwork socket I/Ostring conversionsystem event handling


[0398] Initialization


[0399] An application using the API Library is required to make a call to the AlInitLibrary function before calling any other API functions. Also the user application is required to call the AlCleanupLibrary before terminating to release any system resources internal to the library. See Table 76.
75TABLE 76Initialization APINameArgumentsReturnsDescriptionAlInitLibraryvoidintinitialize libraryAlCleanupLibraryvoidintrelease system resource used


[0400] Error Functions


[0401] The abstraction library provides two functions to set and retrieve the last-error code for the calling thread. See Table 77.
76TABLE 78Error APINameArgumentsReturnsDescriptionAlErrGetLastvoidAlErrorCoderetrieves last-error codeAlErrSetLastAlErrorCodevoidsets the last-error code


[0402] System Information API


[0403] See Table 79.
77TABLE 79Child Process APINameArgumentsReturnsDescriptionAlGetDeviceIDtext_t* pId,intretrieves the systemint iSizeidentification string


[0404] Process API


[0405] The abstraction library provides a set of functions for a child process execution, process list enumeration and process termination.


[0406] See Table 80.
78TABLE 80Process APINameArgumentsReturnsDescriptionAlExectext_t const*intloads and executespProg,a new processtext_t const*pCmdLineAlProGetListAlPID* pPIDs,intretrieves systemint iMaxPIDsprocess listAlProFreeListAlPID* pPIDs,intreleases memoryint iPIDsused to storeprocess listAlProOpenAlPID pidALconverts processPROCESSid to processHANDLEhandleAlProCloseAL_PROCESSintrelease processHANDLEhandle returnedhProcessby the AlProOpenfunctionAlProKillAL_PROCESSintforce terminatesHANDLEa given processhProcess


[0407] Dynamic Memory API


[0408] The abstraction library provides two sets of dynamic memory allocation methods for multi-threaded applications. Under operating systems like Unix/Linux and Windows NT (Win32), a block of memory allocated from one thread using the malloco function can be de-allocated in another thread, but under systems like Symbian 6.x, memory de-allocation must be performed by the thread that created it. The AlMemSAlloc and AlMemSFree functions are provided to allocate/deallocate dynamic memory from the process thread, and the AlMemAlloc and the AlMemFree functions are provided for thread-specific memory allocation/de-allocation. Under Unix/Linux and Win32, both AlMemSAlloc and AlMemAlloc are mapped to the POSIX malloc. See Table 81.
79TABLE 81Dynamic Memory APINameArgumentsReturnsDescriptionAlMemSAllocunsigned intvoid*allocate memory fromuSizethe parent thread'sheapAlMemSFreevoid* ptrvoidfree memory allocatedusing the AlMemSAllocfunctionAlMemAllocunsigned intvoid*allocate memory fromuSizethe calling thread'sheapAlMemFreevoid* ptrvoidfree memory allocatedusing the AlMemAllocfunction


[0409] Thread API


[0410] The library provides thread creation and termination functions. The AlCreateThread creates a new thread, the AlWaitThread provides thread termination waiting function, and the AlCloseThread is used to release system resource associated with a thread. See Table 82.
80TABLE 83Thread APINameArgumentsReturnsDescriptionAlCreateThreadintALcreate a new(*pThreadProc)THREADthread(void*),HANDLEvoid *pData,int iStackSize = −1,int iMinHeap = −1,int iMaxHeap = −1AlWaitThreadAL_THREADintwait for threadHANDLEto terminatehThread,int iMsTimeoutAlCloseThreadAL_THREADvoidclose and releaseHANDLEthread resourcehThreadAlGetTlsvoidvoid*returns thepointer thread-local storageAlSetTlsvoidvoid*sets the pointerthread-localstorageAlSleepintintsuspends thecalling thread


[0411] Synchronization API


[0412] The abstraction library provides three types of thread synchronization objects: mutex, semaphore and critical section. Both unnamed and named mutex and semaphore objects are supported. See Table 84.
81TABLE 84Synchronization APINameArgumentsReturnsDescriptionAlCreateMutextext_tALcreate aconst *pNameMUTEXnew mutexHANDLEAlOpenMutextext_tALget handleconst *pNameMUTEXto anHANDLEexistingmutexAlGetMutexAL_MUTEXintlock aHANDLEgiven mutexhMutexAlReleaseMutexAL_MUTEXintunlock aHANDLEgiven mutexhMutexAlCloseMutexAL_MUTEXvoidclose andHANDLEreleasehMutexmutexresourceAlCreateSemaphoretext_tALcreateconst *pName,SEMAPHOREa newint iCountHANDLEsemaphoreAlOpenSemaphoretext_tALopen anconst *pNameSEMAPHOREexistingHANDLEsemaphoreAlGetSemaphoreALintwaitSEMAPHOREon theHANDLEspecifiedhSemaphoresemaphoreAlReleaseSemaphoreALintincrease theSEMAPHOREcount of theHANDLEspecifiedhSemaphore,semaphore byint iCounta givenamountAlCloseSemaphoreALvoidclose andSEMAPHOREreleaseHANDLEsemaphorehSemaphore,int iCountAlCreateCritsecvoidALcreate aCRITSECcriticalHANDLEsectionAlGetCritsecALintwait forCRITSECownershipHANDLEof ahCritsecspecifiedcriticalsectionAlReleaseCritsecALintrelease theCRITSECownership ofHANDLEa criticalhCritsecsectionAlCloseCritsecALvoidclose andCRITSECreleaseHANDLEthe specifiedhCritseccriticalsection andits resource


[0413] Storage I/O


[0414] The Storage I/O API is used by the anti-malware scanner to access and modify data objects (or files) stored on a non-volatile storage device (e.g. flash memory, hard disk) and managed by a file system or file system like storage and retrieval system. The API is divided into three categories: 1) I/O routines for reading/writing data to/from single object or file, 2) calls used to copy, move and delete a stored object, 3) and routines that provide directory object enumeration. See Table 85.
82TABLE 85Storage I/O APINameArgumentsReturnsDescriptionsAlFsFileOpentext_t constAL_FILEopen a file for*pFName,HANDLEreading/writing andunsigned intreturns file handleuModeAlFsFileCloseAL_FILEintrelease and closeHANDLEfile handlehFileAlFsFileReadAL_FILintread file dataHANDLEhFile,unsignedchar* buffer,int nSizeAlFsFileWriteAL_FILintwrite dataHANDLEto filehFile,unsigned charconst* buffer,int iSizeAlFsFileSeekAL_FILlongreposition read/HANDLEwrite file offsethFile, longoffset, intiWhenceAlFsFileTellAL_FILlongobtain read/writeHANDLEfile offsethFileAlFsFileSetSizeAL_FILlongchange file sizeHANDLEhFile, longlNewSizeAlFsFileDeletetext_t const*intdelete filepFNameAlFsFileRenametext_t const*intrename a filepOFName, text_tor directoryconst*pNFName);AlFsFileCopytext_t const*intcopy a filepSFName, text_tconst* pSFNameAlFsFileStattext_t const*intobtain a filepFName, structor directoryAlFileStat*informationpFStatAlSetFileModetext_t const*intset a file orpFName,directory attributeunsigned longulModeAlFsBuildPathtext_t const*text_t*construct a pathpDName, text_tfrom directory andconst* pFNamefile pathsAlFsGetRootstext_tintobtain a lists**pRoots, intof roots.iMaxRootsAlFsDirOpentext_t constAL_DIRopen a directory*pDNameHANDLEAlFsDirCloseAL_DIRintclose directoryHANDLEhandlehDirAlFsDirNextAL_DIRintobtain aHANDLEdirectory entryhDir, structAlDirEntry* pDEAlFsIsDirAlFAtt attribinttest fordirectoryAlFsGetTemptext_t* consttext_t*returns a fullpDirectorypath for atemporary file


[0415] Network Sockets API


[0416] Both standard and secure (SSL) socket API's for developing client/server applications are provided in the abstraction library. See Table 86.
83TABLE 86Socket APINameArgumentsReturnsDescriptionAlSockCreateint iDomain,AL_SOCKETcreates and returns aint iType,HANDLEhandle to a socketint iProtocolobjectAlSockCloseAL_SOCKETintcloses a socket handleHANDLEhSockAlSockBindAL_SOCKETintbinds a network addressHANDLEto a sockethSock,AlSockAddr *pAddrAlSockAcceptAL_SOCKETintaccepts a connection toHANDLEa sockethSock,int iMsTimeoutAlSockConnectAL_SOCKETintestablishes a connectionHANDLEto a peerhSock,AlSockAddr *pAddr,int iMsTimeoutAlSockRecvAL_SOCKETintreceives data from aHANDLEsocket connectionhSock,unsignedchar *Buffer,int iSize,int iMsTimeoutAlSockSendAL_SOCKETintsends data on aHANDLEconnected sockethSock,unsigned charconst *Buffer,int iSize,int iMsTimeoutAlSockAddrBuildtext_tintconverts a hostnameconst *pHName,and port into aint iPort,socket addressAlSockAddr *pAddr


[0417] See Table 87 for a secure socket API.
84TABLE 87Secure Socket APINameArgumentsReturnsDescriptionAlSSockOpenAL_SOCKETintconverts non-HANDLEsecure sockethSockinto a securesocket objectfor SSLcommunicationAlSSockCloseAL_SSOCKETintcloses SSLHANDLEsockethSSockAlSSockBindAL_SSOCKETintSSL version ofHANDLEAlSockBindhSSock,AlSockAddr *pAddrAlSSockAcceptAL_SSOCKETintSSL version ofHANDLEAlSockAccepthSSock,int iMsTimeoutAlSSockConnectAL_SSOCKETintSSL version ofHANDLEAlSockConnecthSSock,AlSockAddr *pAddr,int iMsTimeoutAlSSockRecvAL_SSOCKETintSSL version ofHANDLEAlSockRecevhSSock,unsignedchar *Buffer,int iSize,int iMsTimeoutAlSSockSendAL_SSOCKETintSSL version ofHANDLEAlSockSendhSSock,unsigned charconst *Buffer,int iSize,int iMsTimeout


[0418] String Functions


[0419] The string functions in the Platform Abstraction Library provide a platforn-specific string type to/from an UTF8 string conversions and string type-specific allocation functions. See Table 88.
85TABLE 88String APINameArgumentsReturnsDescriptionAlStrCpyFromTStrchar* pDest,char*copy and converttext_t const* pSrcplatform-specific stringtype to an UTF8 stringAlTStrCpyFromStrtext_t* pDest,text_t*copy and convert achar const* pSrcUTF8 string to aplatform-specific stringAlTStrAllocunsigned int uSizechar*create a buffer for asingle-byte zero-terminated stringAlStrDupchar const* pStrchar*duplicate given single-byte zero-terminatedstringAlStrTranstext_t const* pTStrchar*convert a platform-specific string to anUTF8 stringAlStrFreechar* pStrvoidrelease memoryallocated by theAlStrAlloc, AlStrDupand AlStrTransfunctionsAlStrIStrchar const* pString,char*locate ‘pPattern’ inchar const* pPattern‘pString’ and return apointer the beginning ofthe found stringAlTStrAllocunsigned int uSizetext_t*allocate and return apointer to a buffer largeenough to hold ‘uSize’long text_t stringAlTStrDuptext_t const* pStringtext_t*duplicate a platform-specific string andreturn a pointer to theduplicated stringAlTStrTranschar const* pStringtext_t*convert an UTF8 stringto a platform-specificstringAlTStrFreetext_t* pStringvoidrelease memoryallocated to hold atext_t string by theAlTStrAlloc, AlStrDupand the AlTStrTransfunctionsAlTStrLentext_t* pStringintreturn length of aplatform-specific string


[0420] System Event Functions


[0421] The system event functions provides an application with a method to install an event handler for a given system event. See Table 89.
86TABLE 89System Event APINameArgumentsReturnsDescriptionAlEventGetHandlerint event,intobtain exist-AL_EVENT_CBFUNC*ingpCbFunchandlerforspecifiedeventAlEventSetHandlerint event,intset a call-AL_EVENT_CBFUNCbackcbfunchandler forspecifiedevent


[0422] API Reference


[0423] See Table 90 for an exemplary API reference.


[0424] While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of a preferred embodiment should not be limited by any of the above described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.


Claims
  • 1. A method for scanning a mobile wireless device for malware, comprising: receiving a scan command from a user utilizing a mobile wireless device; instantiating a component manager of the mobile wireless device in response to the scan command; executing an anti-malware scanner utilizing the component manager; and scanning the mobile wireless device utilizing the anti-malware scanner.
  • 2. The method as recited in claim 1, wherein the instantiation of the component manager further includes allocating memory of the mobile wireless device to the component manager.
  • 3. The method as recited in claim 2, wherein the instantiation of the component manager further includes loading anti-malware scanner configuration settings in the allocated memory.
  • 4. The method as recited in claim 3, wherein the anti-malware scanner is executed based on the configuration settings.
  • 5. The method as recited in claim 4, wherein the anti-malware scanner scans the mobile wireless device based on the configuration settings.
  • 6. The method as recited in claim 5, wherein the anti-malware scanner cleans the mobile wireless device based on the configuration settings.
  • 7. The method as recited in claim 1, wherein the component manager logs the scanning of the mobile wireless device.
  • 8. The method as recited in claim 1, wherein the scanning includes on-access scanning and on-demand scanning.
  • 9. The method as recited in claim 8, wherein the on-access scanning is disabled during on-demand scanning to preserve resources on the mobile wireless device.
  • 10. The method as recited in claim 1, wherein the component manager generates a call back function to control the anti-malware scanner.
  • 11. The method as recited in claim 1, wherein the component manager controls a plurality of functional modules.
  • 12. The method as recited in claim 1, wherein the component manager is platform independent.
  • 13. The method as recited in claim 12, wherein the component manager is capable of interfacing with any one of a plurality of mobile wireless device platforms.
  • 14. The method as recited in claim 1, wherein the mobile wireless device is updated based on an external trigger.
  • 15. A computer program product for scanning a mobile wireless device for malware, comprising: computer code for receiving a scan command from a user utilizing a mobile wireless device; computer code for instantiating a component manager of the mobile wireless device in response to the scan command; computer code for executing an anti-malware scanner utilizing the component manager; and computer code for scanning the mobile wireless device utilizing the anti- malware scanner.
  • 16. The computer program product as recited in claim 15, wherein the instantiation of the component manager further includes allocating memory of the mobile wireless device to the component manager.
  • 17. The computer program product as recited in claim 16, wherein the instantiation of the component manager further includes loading anti-malware scanner configuration settings in the allocated memory.
  • 18. The computer program product as recited in claim 17, wherein the anti-malware scanner is executed based on the configuration settings.
  • 19. The computer program product as recited in claim 18, wherein the anti-malware scanner scans the mobile wireless device based on the configuration settings.
  • 20. The computer program product as recited in claim 19, wherein the anti-malware scanner cleans the mobile wireless device based on the configuration settings.
  • 21. The computer program product as recited in claim 15, wherein the component manager logs the scanning of the mobile wireless device.
  • 22. The computer program product as recited in claim 15, wherein the scanning includes on-access scanning and on-demand scanning.
  • 23. The computer program product as recited in claim 22, wherein the on-access scanning is disabled during on-demand scanning to preserve resources on the mobile wireless device.
  • 24. The computer program product as recited in claim 15, wherein the component manager generates a call back function to control the anti-malware scanner.
  • 25. The computer program product as recited in claim 15, wherein the component manager controls a plurality of functional modules.
  • 26. The computer program product as recited in claim 15, wherein the component manager is platform independent.
  • 27. The computer program product as recited in claim 26, wherein the component manager is capable of interfacing with any one of a plurality of mobile wireless device platforms.
  • 28. The computer program product as recited in claim 15, wherein the mobile wireless device is updated based on an external trigger.
  • 29. A system for scanning a mobile wireless device for malware, comprising: means for receiving a scan command from a user utilizing a mobile wireless device; means for instantiating a component manager of the mobile wireless device in response to the scan command; means for executing an anti-malware scanner utilizing the component manager; and means for scanning the mobile wireless device utilizing the anti-malware scanner.
  • 30. A system for scanning a mobile wireless device for malware, comprising: logic for receiving a scan command from a user utilizing a mobile wireless device; logic for instantiating a component manager of the mobile wireless device in response to the scan command; logic for executing an anti-malware scanner utilizing the component manager; and logic for scanning the mobile wireless device utilizing the anti-malware scanner.
  • 31. A method for scanning a mobile wireless device for malware, comprising: receiving a scan command from a user utilizing a mobile wireless device; instantiating a component manager of the mobile wireless device in response to the scan command, wherein the component manager controls a plurality of functional modules of the mobile wireless device and is capable of interfacing with any one of a plurality of mobile wireless device platforms, the instantiating including: allocating memory of the mobile wireless device to the component manager, and loading anti-malware scanner configuration settings in the allocated memory; executing an anti-malware scanner utilizing the component manager based on the anti-malware scanner configuration settings; and scanning the mobile wireless device utilizing the anti-malware scanner based on the anti-malware scanner configuration settings.
RELATED APPLICATION(S)

[0001] The present application is a continuation of an application entitled “SYSTEM, METHOD AND COMPUTER PROGRAM PRODUCT FOR EQUIPPING WIRELESS DEVICES WITH MALWARE SCANNING CAPABILITIES” naming the same inventors and filed Apr. 10, 2002 under attorney docket number NA1P167/02.081.01; which, in turn, is a continuation-in-part of an application filed Nov. 30, 2001 under Ser. No. 10/006,413, which, in turn, is a continuation-in-part of an application filed Aug. 01, 2001 under Ser. No. 09/920,065, which are each incorporated herein by reference in their entirety.

Continuations (1)
Number Date Country
Parent 10121087 Apr 2002 US
Child 10122100 Apr 2002 US
Continuation in Parts (2)
Number Date Country
Parent 10006413 Nov 2001 US
Child 10121087 Apr 2002 US
Parent 09920065 Aug 2001 US
Child 10006413 Nov 2001 US