Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autopsy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Autopsy
Commits
47ce334b
Commit
47ce334b
authored
1 year ago
by
eugene.livis
Browse files
Options
Downloads
Patches
Plain Diff
Polishing
parent
0dfa1fb9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/src/org/sleuthkit/autopsy/datamodel/Artifacts.java
+1
-0
1 addition, 0 deletions
Core/src/org/sleuthkit/autopsy/datamodel/Artifacts.java
Core/src/org/sleuthkit/autopsy/datamodel/MalwareHits.java
+5
-5
5 additions, 5 deletions
Core/src/org/sleuthkit/autopsy/datamodel/MalwareHits.java
with
6 additions
and
5 deletions
Core/src/org/sleuthkit/autopsy/datamodel/Artifacts.java
+
1
−
0
View file @
47ce334b
...
@@ -73,6 +73,7 @@ public class Artifacts {
...
@@ -73,6 +73,7 @@ public class Artifacts {
private
static
final
Set
<
IngestManager
.
IngestJobEvent
>
INGEST_JOB_EVENTS_OF_INTEREST
private
static
final
Set
<
IngestManager
.
IngestJobEvent
>
INGEST_JOB_EVENTS_OF_INTEREST
=
EnumSet
.
of
(
IngestManager
.
IngestJobEvent
.
COMPLETED
,
IngestManager
.
IngestJobEvent
.
CANCELLED
);
=
EnumSet
.
of
(
IngestManager
.
IngestJobEvent
.
COMPLETED
,
IngestManager
.
IngestJobEvent
.
CANCELLED
);
// this is currently a custom TSK artifact type, created in MalwareScanIngestModule
private
static
BlackboardArtifact
.
Type
MALWARE_ARTIFACT_TYPE
=
null
;
private
static
BlackboardArtifact
.
Type
MALWARE_ARTIFACT_TYPE
=
null
;
private
static
final
String
MALWARE_HITS
=
"TSK_MALWARE"
;
private
static
final
String
MALWARE_HITS
=
"TSK_MALWARE"
;
...
...
This diff is collapsed.
Click to expand it.
Core/src/org/sleuthkit/autopsy/datamodel/MalwareHits.java
+
5
−
5
View file @
47ce334b
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
*/
*/
public
class
MalwareHits
implements
AutopsyVisitableItem
{
public
class
MalwareHits
implements
AutopsyVisitableItem
{
private
static
final
String
MALWARE_HITS
=
"TSK_MALWARE"
;
private
static
final
String
MALWARE_HITS
=
"TSK_MALWARE"
;
// this is currently a custom TSK artifact type, created in MalwareScanIngestModule
private
static
BlackboardArtifact
.
Type
MALWARE_ARTIFACT_TYPE
=
null
;
private
static
BlackboardArtifact
.
Type
MALWARE_ARTIFACT_TYPE
=
null
;
private
static
String
DISPLAY_NAME
;
private
static
String
DISPLAY_NAME
;
private
static
final
Logger
logger
=
Logger
.
getLogger
(
MalwareHits
.
class
.
getName
());
private
static
final
Logger
logger
=
Logger
.
getLogger
(
MalwareHits
.
class
.
getName
());
...
@@ -139,12 +139,12 @@ final void update() {
...
@@ -139,12 +139,12 @@ final void update() {
String
query
=
"SELECT blackboard_artifacts.artifact_obj_id "
//NON-NLS
String
query
=
"SELECT blackboard_artifacts.artifact_obj_id "
//NON-NLS
+
"FROM blackboard_artifacts,tsk_analysis_results WHERE "
//NON-NLS
+
"FROM blackboard_artifacts,tsk_analysis_results WHERE "
//NON-NLS
+
"blackboard_artifacts.artifact_type_id="
+
MALWARE_ARTIFACT_TYPE
.
getTypeID
()
+
"blackboard_artifacts.artifact_type_id="
+
MALWARE_ARTIFACT_TYPE
.
getTypeID
()
//NON-NLS
+
" AND tsk_analysis_results.artifact_obj_id=blackboard_artifacts.artifact_obj_id"
//NON-NLS
+
" AND tsk_analysis_results.artifact_obj_id=blackboard_artifacts.artifact_obj_id"
//NON-NLS
+
" AND (tsk_analysis_results.significance="
+
Score
.
Significance
.
NOTABLE
.
getId
()
+
" AND (tsk_analysis_results.significance="
+
Score
.
Significance
.
NOTABLE
.
getId
()
//NON-NLS
+
" OR tsk_analysis_results.significance="
+
Score
.
Significance
.
LIKELY_NO
N
E
.
getId
()
+
" )"
;
//
ELTODO LIKELY_NOTABLE
+
" OR tsk_analysis_results.significance="
+
Score
.
Significance
.
LIKELY_NO
TABL
E
.
getId
()
+
" )"
;
//
NON-NLS
if
(
filteringDSObjId
>
0
)
{
if
(
filteringDSObjId
>
0
)
{
query
+=
" AND blackboard_artifacts.data_source_obj_id = "
+
filteringDSObjId
;
query
+=
" AND blackboard_artifacts.data_source_obj_id = "
+
filteringDSObjId
;
//NON-NLS
}
}
try
(
CaseDbQuery
dbQuery
=
skCase
.
executeQuery
(
query
))
{
try
(
CaseDbQuery
dbQuery
=
skCase
.
executeQuery
(
query
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment