Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.ingest.FileIngestModule.
Classes | |
class | IngestJobTotals |
Public Member Functions | |
ProcessResult | process (AbstractFile file) |
void | shutDown () |
void | startUp (org.sleuthkit.autopsy.ingest.IngestJobContext context) throws IngestModuleException |
Private Member Functions | |
void | postHashSetHitToBlackboard (AbstractFile abstractFile, String md5Hash, String hashSetName, String comment, boolean showInboxMessage) |
void | updateEnabledHashSets (List< HashDb > allHashSets, List< HashDb > enabledHashSets) |
Static Private Member Functions | |
static synchronized IngestJobTotals | getTotalsForIngestJobs (long ingestJobId) |
static synchronized void | postSummary (long jobId, List< HashDb > knownBadHashSets, List< HashDb > knownHashSets) |
Private Attributes | |
Blackboard | blackboard |
final HashDbManager | hashDbManager = HashDbManager.getInstance() |
long | jobId |
final List< HashDb > | knownBadHashSets = new ArrayList<>() |
final List< HashDb > | knownHashSets = new ArrayList<>() |
final IngestServices | services = IngestServices.getInstance() |
final HashLookupModuleSettings | settings |
final SleuthkitCase | skCase |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(HashDbIngestModule.class.getName()) |
static final int | MAX_COMMENT_SIZE = 500 |
static final IngestModuleReferenceCounter | refCounter = new IngestModuleReferenceCounter() |
static final HashMap< Long, IngestJobTotals > | totalsForIngestJobs = new HashMap<>() |
File ingest module to mark files based on hash values.
Definition at line 63 of file HashDbIngestModule.java.
|
staticprivate |
Definition at line 88 of file HashDbIngestModule.java.
|
private |
Post a hash set hit to the blackboard.
abstractFile | The file to be processed. |
md5Hash | The MD5 hash value of the file. |
hashSetName | The name of the hash set with which to associate the hit. |
comment | A comment to be attached to the artifact. |
showInboxMessage | Show a message in the inbox? |
Definition at line 343 of file HashDbIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestMessage.createDataMessage(), org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Notify.error(), and org.sleuthkit.autopsy.ingest.IngestServices.postMessage().
|
staticprivate |
Post a message summarizing the results of the ingest.
jobId | The ID of the job. |
knownBadHashSets | The list of hash sets for "known bad" files. |
knownHashSets | The list of hash sets for "known" files. |
Definition at line 416 of file HashDbIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestMessage.createMessage(), org.sleuthkit.autopsy.ingest.IngestServices.getInstance(), org.sleuthkit.autopsy.ingest.IngestMessage.MessageType.INFO, org.sleuthkit.autopsy.ingest.IngestServices.postMessage(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.IngestJobTotals.totalCalctime, org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.IngestJobTotals.totalKnownBadCount, and org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.IngestJobTotals.totalLookuptime.
ProcessResult org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.process | ( | AbstractFile | file | ) |
Processes a file. Called between calls to startUp() and shutDown(). Will be called for each file in a data source.
file | The file to analyze. |
Implements org.sleuthkit.autopsy.ingest.FileIngestModule.
Definition at line 169 of file HashDbIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestMessage.createErrorMessage(), org.sleuthkit.autopsy.ingest.IngestModule.ProcessResult.ERROR, org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), org.sleuthkit.autopsy.healthmonitor.HealthMonitor.getTimingMetric(), org.sleuthkit.autopsy.ingest.IngestModule.ProcessResult.OK, org.sleuthkit.autopsy.ingest.IngestServices.postMessage(), org.sleuthkit.autopsy.healthmonitor.HealthMonitor.submitNormalizedTimingMetric(), org.sleuthkit.autopsy.healthmonitor.HealthMonitor.submitTimingMetric(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.IngestJobTotals.totalCalctime, org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.IngestJobTotals.totalKnownBadCount, and org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.IngestJobTotals.totalLookuptime.
void org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.shutDown | ( | ) |
Invoked by Autopsy when an ingest job is completed (either because the data has been analyzed or because the job was canceled - check IngestJobContext.fileIngestIsCancelled()), before the ingest module instance is discarded. The module should respond by doing things like releasing private resources, submitting final results, and posting a final ingest message.
Implements org.sleuthkit.autopsy.ingest.FileIngestModule.
Definition at line 457 of file HashDbIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestModuleReferenceCounter.decrementAndGet().
void org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.startUp | ( | org.sleuthkit.autopsy.ingest.IngestJobContext | context | ) | throws IngestModuleException |
Invoked by Autopsy to allow an ingest module instance to set up any internal data structures and acquire any private resources it will need during an ingest job. If the module depends on loading any resources, it should do so in this method so that it can throw an exception in the case of an error and alert the user. Exceptions that are thrown from process() and shutDown() are logged, but do not stop processing of the data source.
context | Provides data and services specific to the ingest job and the ingest pipeline of which the module is a part. |
Implements org.sleuthkit.autopsy.ingest.IngestModule.
Definition at line 112 of file HashDbIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestMessage.createWarningMessage(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getKnownBadFileHashSets(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getKnownFileHashSets(), org.sleuthkit.autopsy.ingest.IngestModuleReferenceCounter.incrementAndGet(), and org.sleuthkit.autopsy.ingest.IngestServices.postMessage().
|
private |
Cycle through list of hashsets and return the subset that is enabled.
allHashSets | List of all hashsets from DB manager |
enabledHashSets | List of enabled ones to return. |
Definition at line 147 of file HashDbIngestModule.java.
|
private |
Definition at line 76 of file HashDbIngestModule.java.
|
private |
Definition at line 69 of file HashDbIngestModule.java.
|
private |
Definition at line 73 of file HashDbIngestModule.java.
|
private |
Definition at line 71 of file HashDbIngestModule.java.
|
private |
Definition at line 72 of file HashDbIngestModule.java.
|
staticprivate |
Definition at line 65 of file HashDbIngestModule.java.
|
staticprivate |
Definition at line 66 of file HashDbIngestModule.java.
|
staticprivate |
Definition at line 75 of file HashDbIngestModule.java.
|
private |
Definition at line 67 of file HashDbIngestModule.java.
|
private |
Definition at line 70 of file HashDbIngestModule.java.
|
private |
Definition at line 68 of file HashDbIngestModule.java.
|
staticprivate |
Definition at line 74 of file HashDbIngestModule.java.
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.