Add PhishStats API Enrichers for Phishing Intelligence#108
Open
eschultze wants to merge 1 commit into
Open
Conversation
dextmorgn
requested changes
Jan 28, 2026
dextmorgn
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, this is very valuable.
A couple of comments for your enrichers, simply remove the neo4j connection condition as it's not supported in the latest version.
Could you rebase this branch with main and make sure there are no side effect ? I don't expect any, as the neo4j_connection is the only real thing that changed.
|
|
||
| def postprocess(self, results: List[OutputType], original_input: List[InputType]) -> List[OutputType]: | ||
| """Create graph nodes and relationships.""" | ||
| if not self.neo4j_conn: |
Collaborator
There was a problem hiding this comment.
In the latest version an Enricher doesn't have a direct neo4j_connection, it uses a proper graph service.
So you can skip condition in postprocess:
if not self.neo4j_conn:
return resultsAs it would raise 'DomainToPhishstatsEnricher' object has no attribute 'neo4j_conn' in the latest version.
|
|
||
| def postprocess(self, results: List[OutputType], original_input: List[InputType]) -> List[OutputType]: | ||
| """Create graph nodes and relationships.""" | ||
| if not self.neo4j_conn: |
|
|
||
| def postprocess(self, results: List[OutputType], original_input: List[InputType]) -> List[OutputType]: | ||
| """Create graph nodes and relationships.""" | ||
| if not self.neo4j_conn: |
|
|
||
| def postprocess(self, results: List[OutputType], original_input: List[InputType]) -> List[OutputType]: | ||
| """Create graph nodes and relationships.""" | ||
| if not self.neo4j_conn: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates the PhishStats API into Flowsint, adding four new enrichers and a specialized API client to provide real-time phishing intelligence.
Key Changes:
ip_to_phishstats/domain_to_phishstats/website_to_phishstats: Exact match lookups for high-precision intelligence.phrase_to_phishstats: A flexible search enricher that uses thePhrasetype andLIKEoperators to find matches in page titles and URLs.Website,Domain,Ip,ASN, andOrganization.PhishStatsClientwith automatic rate-limiting (20 req/min), timeouts (60s), and exponential backoff for retries.