Skip to content

added threatfox integration for payload request IOCs#552

Merged
mlodic merged 2 commits intodevelopfrom
threatfox
Jul 18, 2025
Merged

added threatfox integration for payload request IOCs#552
mlodic merged 2 commits intodevelopfrom
threatfox

Conversation

@mlodic
Copy link
Copy Markdown
Member

@mlodic mlodic commented Jul 18, 2025

solving this: #517

@mlodic mlodic requested a review from regulartim July 18, 2025 13:51
@mlodic mlodic merged commit 399d5e7 into develop Jul 18, 2025
5 checks passed
@mlodic mlodic linked an issue Jul 18, 2025 that may be closed by this pull request
Comment on lines +76 to +82
if not settings.THREATFOX_API_KEY:
self.log.warning("Threatfox API Key not available")
return

# we submit only payload request IOCs for now cause they are more reliable
if not ioc_record.payload_request:
return
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to first check if not ioc_record.payload_request and then not settings.THREATFOX_API_KEY. This would drastically reduce the amount of log messages, right?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or, alternatively, call _threatfox_submission from _extract_possible_payload_in_messages in cowrie.py to make sure it is only called for payload requests?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do the change you first suggested. I wanted to put this here so that it will be extendable for the future in case we are able to integrate other honeypots effectively like we did for cowrie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish Payload Delivery Urls to URLhaus

2 participants