Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Improve email template for takedown requests #902

Open
Rafiot opened this issue Mar 28, 2024 · 0 comments
Open

[Feature] Improve email template for takedown requests #902

Rafiot opened this issue Mar 28, 2024 · 0 comments

Comments

@Rafiot
Copy link
Member

Rafiot commented Mar 28, 2024

Is your feature request related to a problem? Please describe.

Currently, the template just contains a list of redirected URLs

if cache := self.capture_cache(capture_uuid):
if hasattr(cache, 'url'):
if email_config['defang_urls']:
initial_url = defang(cache.url, colon=True, all_dots=True)
else:
initial_url = cache.url
else:
initial_url = 'Unable to get URL from cache, this is probably a bug.'
if hasattr(cache, 'error') and cache.error:
initial_url += f' - {cache.error}'
if hasattr(cache, 'redirects') and cache.redirects:
redirects = "Redirects:\n"
if email_config['defang_urls']:
redirects += defang('\n'.join(cache.redirects), colon=True, all_dots=True)
else:
redirects += '\n'.join(cache.redirects)
else:
redirects = "No redirects."

It would be nice to have more contextual information.

Describe the solution you'd like

We already gather a lot of information from 3rd party services (phishtank, urlhaus, virustotal, ...), and can ease de-duplication with a lookup against MISP -> #901

Describe alternatives you've considered

No response

Additional context

No response

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

No branches or pull requests

1 participant