Skip to content

Commit

Permalink
work in progress for mandiant threat intel integration, cisagov#358
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Nov 6, 2024
1 parent c73b9ce commit 866e30f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions shared/bin/zeek_intel_from_threat_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def main():
'Outputs a Zeek intelligence framework file from various formats used to represent threat information:',
' - "Indicator" objects in STIX™ v2.0/v2.1 JSON files',
' - MISP attributes or core format JSON files',
' - Indicators from Mantiant Threat Intelligence',
'',
'See:',
' - Malcolm documentation: https://idaholab.github.io/Malcolm/docs/zeek-intel.html#ZeekIntel',
Expand All @@ -47,6 +48,7 @@ def main():
' - MISP default feeds: https://www.misp-project.org/feeds/',
' - Managing MISP feeds: https://misp.gitbooks.io/misp-book/content/managing-feeds/',
' - Expand MISP usage: https://github.com/idaholab/Malcolm/issues/336',
' - Mandiant Threat Intelligence Indicators API: https://docs.mandiant.com/home/mati-threat-intelligence-api-v4#tag/Indicators'
'',
'Note: The Zeek intelligence framework only supports simple indicators matched against a single value.',
'The STIX™ standard can express more complex indicators that cannot be expressed with Zeek intelligence items.',
Expand Down
3 changes: 1 addition & 2 deletions shared/bin/zeek_threat_feed_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,10 @@ def ProcessThreatInputWorker(threatInputWorkerArgs):
api_base_url=inarg.get('api_base_url', mandiant_threatintel.API_BASE_URL),
client_name=inarg.get('client_name', mandiant_threatintel.CLIENT_APP_NAME),
):
print(since)
for indicator in mati_client.Indicators.get_list(
minimum_mscore=inarg.get('minimum_mscore', 60),
exclude_osint=inarg.get('exclude_osint', False),
start_epoch=since if since else datetime.now() - relativedelta(years=10),
start_epoch=since if since else datetime.now() - relativedelta(months=1),
):
try:
if zeekPrinter.ProcessMandiant(indicator):
Expand Down

0 comments on commit 866e30f

Please sign in to comment.