Skeleton for creating correlation attrs for account artifacts

This commit is contained in:
Richard Cordovano 2020-02-24 16:14:16 -05:00
parent c8bf39e715
commit b1050b9670

View File

@ -147,7 +147,7 @@ public class CorrelationAttributeUtil {
makeCorrAttrFromArtifactAttr(correlationAttrs, artToExamine, BlackboardAttribute.ATTRIBUTE_TYPE.TSK_EMAIL, CorrelationAttributeInstance.EMAIL_TYPE_ID);
} else if (artifactTypeID == ARTIFACT_TYPE.TSK_ACCOUNT.getTypeID()) {
// RJCTODO: Make a correlation attribute by switching on account type
makeAttributeFromAccountArtifact(correlationAttrs, artToExamine);
}
}
} catch (CentralRepoException ex) {
@ -163,6 +163,21 @@ public class CorrelationAttributeUtil {
return correlationAttrs;
}
/**
* Makes a correlation attribute instance for an account artifact.
*
* IMPORTANT: The correlation attribute instance is NOT added to the central
* repository by this method.
*
* @param acctArtifact An account artifact.
*/
private static CorrelationAttributeInstance makeAttributeFromAccountArtifact(List<CorrelationAttributeInstance> correlationAttrs, BlackboardArtifact acctArtifact) {
// TODO: Convert TSK_ACCOUNT_TYPE attribute to correlation attribute type
// TODO: Extract TSK_ID as value
// return makeCorrelationAttributeInstanceUsingTypeValue(acctArtifact, null, "");
return null;
}
/**
* Add a CorrelationAttributeInstance of the specified type to the provided
* list if the artifactForInstance has an Attribute of the given type with a