mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +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 java.util.logging.Level;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.openide.util.NbBundle.Messages;
|
import org.openide.util.NbBundle.Messages;
|
||||||
|
import org.python.icu.text.MessageFormat;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
@ -142,9 +143,13 @@ public class FileExtMismatchIngestModule implements FileIngestModule {
|
|||||||
addToTotals(jobId, System.currentTimeMillis() - startTime);
|
addToTotals(jobId, System.currentTimeMillis() - startTime);
|
||||||
|
|
||||||
if (mismatchDetected) {
|
if (mismatchDetected) {
|
||||||
|
String justification = MessageFormat.format("File has an extension of {0} but mime type is {1}",
|
||||||
|
abstractFile.getNameExtension(), detector.getMIMEType(abstractFile));
|
||||||
|
|
||||||
// add artifact
|
// add artifact
|
||||||
BlackboardArtifact bart = abstractFile.newAnalysisResult(
|
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();
|
.getAnalysisResult();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user