Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.ingest.DataSourceIngestModule.
Public Member Functions | |
ProcessResult | process (Content dataSource, DataSourceIngestModuleProgress statusHelper) |
default void | shutDown () |
void | startUp (IngestJobContext context) throws IngestModuleException |
Private Member Functions | |
void | addILeappReportToReports (Path aLeappOutputDir, Case currentCase) |
ProcessBuilder | buildaLeappCommand (Path moduleOutputPath, String sourceFilePath, String aLeappFileSystemType) |
ProcessBuilder | buildaLeappListCommand (Path moduleOutputPath) |
void | extractFilesFromDataSource (Content dataSource, List< String > aLeappPathsToProcess, Path moduleOutputPath) |
void | extractFileToOutput (Content dataSource, AbstractFile aLeappFile, File fileParentPath, Path parentPath) |
List< String > | loadIleappPathFile (Path moduleOutputPath) throws FileNotFoundException, IOException |
void | processALeappFile (Content dataSource, Case currentCase, DataSourceIngestModuleProgress statusHelper, int filesProcessedCount, AbstractFile aLeappFile) |
void | processALeappFs (Content dataSource, Case currentCase, DataSourceIngestModuleProgress statusHelper, String directoryToProcess) |
void | writeaLeappFile (Content dataSource, AbstractFile aLeappFile, String parentPath) |
void | writeErrorMsgToIngestInbox () |
Static Private Member Functions | |
static ProcessBuilder | buildProcessWithRunAsInvoker (String...commandLine) |
static File | locateExecutable (String executableName) throws FileNotFoundException |
Private Attributes | |
File | aLeappExecutable |
LeappFileProcessor | aLeappFileProcessor |
IngestJobContext | context |
Static Private Attributes | |
static final String | ALEAPP = "aLeapp" |
static final String | ALEAPP_EXECUTABLE = "aleapp.exe" |
static final String | ALEAPP_FS = "fs_" |
static final String | ALEAPP_PATHS_FILE = "aLeapp_paths.txt" |
static final Logger | logger = Logger.getLogger(ALeappAnalyzerIngestModule.class.getName()) |
static final String | MODULE_NAME = ALeappAnalyzerModuleFactory.getModuleName() |
static final String | XMLFILE = "aleap-artifact-attribute-reference.xml" |
Data source ingest module that runs aLeapp against logical iOS files.
Definition at line 64 of file ALeappAnalyzerIngestModule.java.
|
private |
Find the index.html file in the aLeapp output directory so it can be added to reports
Definition at line 338 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.casemodule.Case.addReport(), and org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.MODULE_NAME.
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFile(), and org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFs().
|
private |
Build the aLeapp command to run
moduleOutputPath | output path for the aLeapp program. |
sourceFilePath | where the source files to process reside. |
aLeappFileSystemType | the filesystem type to process |
Definition at line 289 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.buildProcessWithRunAsInvoker().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFile(), and org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFs().
|
private |
Definition at line 303 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.buildProcessWithRunAsInvoker().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process().
|
staticprivate |
|
private |
Definition at line 386 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestJobContext.dataSourceIngestIsCancelled(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.extractFileToOutput(), and org.sleuthkit.autopsy.casemodule.services.FileManager.findFiles().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process().
|
private |
Definition at line 422 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.writeaLeappFile().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.extractFilesFromDataSource().
|
private |
Definition at line 366 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.ALEAPP_PATHS_FILE.
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process().
|
staticprivate |
Definition at line 324 of file ALeappAnalyzerIngestModule.java.
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.startUp().
ProcessResult org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process | ( | Content | dataSource, |
DataSourceIngestModuleProgress | progressBar | ||
) |
Processes a data source. Called once between calls to startUp() and shutDown().
IMPORTANT: In addition to returning ProcessResult.OK or ProcessResult.ERROR, modules should log all errors using methods provided by the org.sleuthkit.autopsy.coreutils.Logger class. Log messages should include the name and object ID of the data being processed. If an exception has been caught by the module, the exception should be sent to the Logger along with the log message so that a stack trace will appear in the application log.
dataSource | The data source to process. |
progressBar | A progress bar to be used to report progress. |
Implements org.sleuthkit.autopsy.ingest.DataSourceIngestModule.
Definition at line 127 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.ALEAPP, org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.buildaLeappListCommand(), org.sleuthkit.autopsy.ingest.IngestMessage.createMessage(), org.sleuthkit.autopsy.ingest.IngestMessage.MessageType.DATA, org.sleuthkit.autopsy.ingest.IngestModule.ProcessResult.ERROR, org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.extractFilesFromDataSource(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCase(), org.sleuthkit.autopsy.ingest.IngestJobContext.getDataSource(), org.sleuthkit.autopsy.ingest.IngestServices.getInstance(), org.sleuthkit.autopsy.casemodule.Case.getTempDirectory(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.loadIleappPathFile(), org.sleuthkit.autopsy.ingest.IngestModule.ProcessResult.OK, org.sleuthkit.autopsy.ingest.IngestServices.postMessage(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFile(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFs(), org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress.progress(), org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress.switchToDeterminate(), org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress.switchToIndeterminate(), and org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.writeErrorMsgToIngestInbox().
|
private |
Process a file from a logical image using the aLeapp program
dataSource | datasource to process |
currentCase | current case that is being worked on |
statusHelper | show progress and update what is being processed |
filesProcessedCount | number of files that have been processed |
aLeappFile | the abstract file to process |
Definition at line 202 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.addILeappReportToReports(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.ALEAPP, org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.buildaLeappCommand(), org.sleuthkit.autopsy.ingest.IngestJobContext.dataSourceIngestIsCancelled(), org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), org.sleuthkit.autopsy.casemodule.Case.getModuleDirectory(), org.sleuthkit.autopsy.modules.leappanalyzers.LeappFileProcessor.processFiles(), and org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress.progress().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process().
|
private |
Process a image/directory using the aLeapp program
dataSource | datasource to process |
currentCase | current case being procesed |
statusHelper | show progress and update what is being processed |
directoryToProcess | directory to run aLeapp against |
Definition at line 246 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.addILeappReportToReports(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.ALEAPP, org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.buildaLeappCommand(), org.sleuthkit.autopsy.ingest.IngestJobContext.dataSourceIngestIsCancelled(), org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), org.sleuthkit.autopsy.casemodule.Case.getModuleDirectory(), org.sleuthkit.autopsy.modules.leappanalyzers.LeappFileProcessor.processFileSystem(), and org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress.progress().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process().
|
inherited |
Invoked by Autopsy when an ingest job is completed (either because the data has been analyzed or because the job was cancelled), 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.
IMPORTANT: If the module instances must share resources, the modules are responsible for synchronizing access to the shared resources and doing reference counting as required to release those resources correctly. Also, more than one ingest job may be in progress at any given time. This must also be taken into consideration when sharing resources between module instances. See IngestModuleReferenceCounter.
Implemented in org.sleuthkit.autopsy.thunderbirdparser.ThunderbirdMboxFileIngestModule, org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule, org.sleuthkit.autopsy.keywordsearch.KeywordSearchIngestModule, org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule, org.sleuthkit.autopsy.modules.filetypeid.FileTypeIdIngestModule, org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule, org.sleuthkit.autopsy.modules.embeddedfileextractor.EmbeddedFileExtractorIngestModule, org.sleuthkit.autopsy.recentactivity.RAImageIngestModule, and org.sleuthkit.autopsy.modules.yara.YaraIngestModule.
Definition at line 91 of file IngestModule.java.
void org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.startUp | ( | 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 startUp() are logged and stop processing of the data source.
IMPORTANT: If the module instances must share resources, the modules are responsible for synchronizing access to the shared resources and doing reference counting as required to release those resources correctly. Also, more than one ingest job may be in progress at any given time. This must also be taken into consideration when sharing resources between module instances. See IngestModuleReferenceCounter.
IMPORTANT: Start up IngestModuleException messages are displayed to the user, if a user is present. Therefore, an exception to the policy that exception messages are not localized is appropriate in this method. Also, the exception messages should be user-friendly.
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 91 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.context, org.sleuthkit.autopsy.coreutils.PlatformUtil.is64BitOS(), org.sleuthkit.autopsy.coreutils.PlatformUtil.isWindowsOS(), and org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.locateExecutable().
|
private |
Definition at line 451 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.extractFileToOutput().
|
private |
Writes a generic error message to the ingest inbox, directing the user to consult the application log fpor more details.
Definition at line 472 of file ALeappAnalyzerIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestMessage.createMessage(), org.sleuthkit.autopsy.ingest.IngestMessage.MessageType.ERROR, org.sleuthkit.autopsy.ingest.IngestServices.getInstance(), and org.sleuthkit.autopsy.ingest.IngestServices.postMessage().
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process().
|
staticprivate |
Definition at line 69 of file ALeappAnalyzerIngestModule.java.
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.process(), org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFile(), and org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.processALeappFs().
|
staticprivate |
Definition at line 71 of file ALeappAnalyzerIngestModule.java.
|
staticprivate |
Definition at line 70 of file ALeappAnalyzerIngestModule.java.
|
staticprivate |
Definition at line 72 of file ALeappAnalyzerIngestModule.java.
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.loadIleappPathFile().
|
private |
Definition at line 76 of file ALeappAnalyzerIngestModule.java.
|
private |
Definition at line 80 of file ALeappAnalyzerIngestModule.java.
|
private |
Definition at line 78 of file ALeappAnalyzerIngestModule.java.
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.startUp().
|
staticprivate |
Definition at line 66 of file ALeappAnalyzerIngestModule.java.
|
staticprivate |
Definition at line 67 of file ALeappAnalyzerIngestModule.java.
Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.ALeappAnalyzerIngestModule.addILeappReportToReports().
|
staticprivate |
Definition at line 74 of file ALeappAnalyzerIngestModule.java.
Copyright © 2012-2022 Basis Technology. Generated on: Fri Mar 24 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.