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

Expanded logging options #57

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

rogofsky
Copy link

These changes were made to enable this honeypot to run in our environment:

  • Added option to log to an hpfeeds broker
  • Added option to limit the DB size (useful for lightweight deployments which log externally)
  • Added optional password collection

I notice that the request to collect passwords was rejected in #25. That makes sense for deployments on production websites, but this honeypot is also useful in deployments where there is no live site and it is deployed solely for data collection. In this case, there is no possibility for accidental password entry and collecting passwords is very useful for research. However, this PR sets this option to False by default.

@coveralls
Copy link

Coverage Status

Coverage decreased (-22.3%) to 68.639% when pulling 59404d1 on rogofsky:develop into 1308e5f on dmpayton:develop.

@shawnngtq
Copy link

@rogofsky @coveralls

I would love to see this optional password collection. Any chance this is going to happen? 😁

@dmpayton
Copy link
Owner

@rogofsky I'm not familiar with hpfeeds, but there are some pretty cool things about this PR.

We previously did collect passwords, but I removed it after myself and a few of my coworkers inadvertently tried logging in to the honeypot with our real passwords in a production environment. The muscle memory of "/admin/" can be hard to get rid of. ;)

But #69 has us talking about a setting to toggle the recording of IP addresses for GDPR/PII reasons. If there are valid cases for recording passwords, I could be convinced to allow the same for them.

This PR also has me thinking about configurable handlers for login attempts, e.g.:

  • database store
  • send email
  • hpfeeds
  • ...and whatever else anyone comes up with

Define which handlers you want to use in your settings, along with any handler-specific configuration. It'd be much easier to build and test additional integrations in this code base (or outside of it, if the python paths are used). I can definitely envision this in a django-admin-honeypot 2.0 release.

@shawnngtq There's definitely a chance.

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.

4 participants