Autopsy  4.21.0
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  */
19 package com.basistech.df.cybertriage.autopsy.malwarescan;
20 
22 import org.openide.util.NbBundle.Messages;
23 import org.openide.util.lookup.ServiceProvider;
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
50  public String getModuleDisplayName() {
52  }
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-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.