Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
MalwareScanIngestModuleFactory.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2023 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package com.basistech.df.cybertriage.autopsy.malwarescan;
20
21import com.basistech.df.cybertriage.autopsy.ctoptions.CTOptionsPanel;
22import org.openide.util.NbBundle.Messages;
23import org.openide.util.lookup.ServiceProvider;
24import org.sleuthkit.autopsy.ingest.FileIngestModule;
25import org.sleuthkit.autopsy.ingest.IngestModuleFactoryAdapter;
26import org.sleuthkit.autopsy.ingest.IngestModuleGlobalSettingsPanel;
27import org.sleuthkit.autopsy.ingest.IngestModuleIngestJobSettings;
28import org.sleuthkit.autopsy.ingest.IngestModuleIngestJobSettingsPanel;
29import org.sleuthkit.autopsy.ingest.NoIngestModuleIngestJobSettings;
30
34@ServiceProvider(service = org.sleuthkit.autopsy.ingest.IngestModuleFactory.class)
35@Messages({
36 "MalwareScanIngestModuleFactory_displayName=Cyber Triage Malware Scanner",
37 "MalwareScanIngestModuleFactory_description=Identifies executable files with malware.",
38 "MalwareScanIngestModuleFactory_version=1.0.0"
39})
41
45 public static String getDisplayName() {
46 return Bundle.MalwareScanIngestModuleFactory_displayName();
47 }
48
49 @Override
53
54 @Override
55 public String getModuleDescription() {
56 return Bundle.MalwareScanIngestModuleFactory_description();
57 }
58
59 @Override
60 public String getModuleVersionNumber() {
61 return Bundle.MalwareScanIngestModuleFactory_version();
62 }
63
64 @Override
65 public boolean isFileIngestModuleFactory() {
66 return true;
67 }
68
69 @Override
71 return new MalwareScanIngestModule((MalwareScanIngestSettings) ingestOptions);
72 }
73
74 @Override
75 public boolean hasGlobalSettingsPanel() {
76 return true;
77 }
78
79 @Override
81 CTOptionsPanel optionsPanel = new CTOptionsPanel();
82 optionsPanel.loadSavedSettings();
83 return optionsPanel;
84 }
85
86 @Override
87 public boolean hasIngestJobSettingsPanel() {
88 return true;
89 }
90
91 @Override
93 if (settings instanceof MalwareScanIngestSettings) {
94 return new MalwareScanIngestSettingsPanel((MalwareScanIngestSettings) settings);
95 }
96 /*
97 * Compatibility check for older versions.
98 */
99 if (settings instanceof NoIngestModuleIngestJobSettings) {
100 return new MalwareScanIngestSettingsPanel(new MalwareScanIngestSettings());
101 }
102
103 throw new IllegalArgumentException("Expected settings argument to be an instance of IngestSettings");
104 }
105}
FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings ingestOptions)
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.