Skip to content

Commit

Permalink
Updating old iocs
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloperezj committed Aug 5, 2024
1 parent 9311327 commit 561d9ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def fetch_indicators_command(client: Client,
'fields': {
'md5': attributes.get('md5'),
'sha1': attributes.get('sha1'),
'sha256': attributes.get('sha256'),
'sha256': attributes['sha256'],
'size': attributes.get('size'),
'tags': attributes.get('tags'),
},
Expand All @@ -154,6 +154,10 @@ def fetch_indicators_command(client: Client,

if (indicator_obj.get('gti_threat_score') or 0) >= minimum_score:
indicators.append(indicator_obj)
else:
existing_indicators = list(IndicatorsSearcher(value=indicator_obj['value']))
if len(existing_indicators) > 0 and int(existing_indicators[0].get('total', 0)) > 0:
indicators.append(indicator_obj)

return indicators

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ configuration:
required: false
- display: Feed Fetch Interval
name: feedFetchInterval
defaultvalue: "30"
defaultvalue: "60"
type: 19
required: false
- name: feedMinimumGTIScore
Expand Down

0 comments on commit 561d9ee

Please sign in to comment.