mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
updated justification
This commit is contained in:
parent
718738832e
commit
0ec59a3a7e
@ -24,6 +24,7 @@ import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import org.openide.util.NbBundle;
|
||||
import org.openide.util.NbBundle.Messages;
|
||||
import org.python.icu.text.MessageFormat;
|
||||
import org.sleuthkit.autopsy.casemodule.Case;
|
||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
@ -142,9 +143,13 @@ public class FileExtMismatchIngestModule implements FileIngestModule {
|
||||
addToTotals(jobId, System.currentTimeMillis() - startTime);
|
||||
|
||||
if (mismatchDetected) {
|
||||
String justification = MessageFormat.format("File has an extension of {0} but mime type is {1}",
|
||||
abstractFile.getNameExtension(), detector.getMIMEType(abstractFile));
|
||||
|
||||
// add artifact
|
||||
BlackboardArtifact bart = abstractFile.newAnalysisResult(
|
||||
BlackboardArtifact.Type.TSK_EXT_MISMATCH_DETECTED, LIKELY_NOTABLE_SCORE, null, null, null, Collections.emptyList())
|
||||
BlackboardArtifact.Type.TSK_EXT_MISMATCH_DETECTED, LIKELY_NOTABLE_SCORE,
|
||||
null, null, justification, Collections.emptyList())
|
||||
.getAnalysisResult();
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user