Skip to content

BuffaLogs is an Open Source Django Project whose main purpose is to detect login anomalies

License

Notifications You must be signed in to change notification settings

0x0elliot/BuffaLogs

 
 

Repository files navigation

BuffaLogs

BuffaLogs is an Open Source Django Project whose main purpose is to detect impossible travel logins.

In detail, it sends several types of alerts:

  1. Impossible Travel

    It occurs when a user logs into the system from a significant distance within a range of time that cannot be covered by conventional means of transport.

  2. Login from new device

    This alert is sent if the user utilizes a new appliance.

  3. Login from a new country

    This alert is dispatched if the system is logged by a user from a country where they have never authenticated before.

For futher details: Wiki - About

BuffaLogs is participating in GSoC 2023 thanks to Honeynet project and IntelOwl!

Honeynet IntelOwl
Honeynet.org logo Intel Owl

Google Summer Of Code

Since its birth, this project has been participating in the GSoC under the Honeynet Project!

Stay tuned for the upcoming GSoC! Join the Honeynet Slack chat for more info.

GSoC Application process

0. Get familiar with GSoC

First of all, and if you have not done that yet, read the contributor guide which will allow you to understand all this process and how the program works overall. Refer to its left side menu to quick access sections that may interest you the most, although we recommend you to read everything.

1. Discuss the project idea with the mentor(s)

This is a required step and you can use the current issues as a start to propose your idea.

We are not limited to what is listed right now, if you want to propose a new idea, please discuss it with the mentors in Honeynet slack channel #2023-buffalogs. We're always open to new ideas and won't hesitate on choosing them if you demonstrate to be a good candidate!

2. Understand that

  • You're committing to a project and we ask you to publicly publish your weekly progress on it in Github.
  • We will ask you to give feedback on our mentorship and management continuously. Communication is key to the success of the project.
  • You wholeheartedly agree with the code of conduct.
  • You must tell us if there's any proposed idea that you don't think would fit the timeline or could be boring (yes, we're asking for feedback).

3. Fill out the application form

We recommend you to follow Google's guide to Writing a Proposal.

Once you have a draft proposal please share it with us via gsoc slack channel #2023-buffalogs.

You can also ask for a review anytime to the community or mentor candidates before the contributor application deadline. It's much easier if you get feedback early than to wait for the last moment.

Official communication channels

Installation & Running

BuffaLogs employs the following tools which have to be installed on the machine:

Then, you clone this repository on your local computer with:

git clone [email protected]:certego/BuffaLogs.git

Then load the elasticsearch templates running the load_templates.sh script from buffalogs_module/config/elasticsearch:

./load_templates.sh

Now, you are ready to start up the application by running:

sudo docker-compose up -d

Results are available at localhost:80

buffalogs_dashboard_screenshot

For futher examples: Wiki - Example

Logs Structure

BuffaLogs is able to analyse logs coming from any source, provided that it complies with the Elastic Common Schema and with the given structure:

```
{
    "user": {
        "name": <user_name>
    },
    "event": {
        "outcome": <"success" OR "failure">
    },
    "geoip": {
        "latitude": <latitude>,
        "longitude": <longitude>,
        "country_name": <country_name>
    },
    "user_agent": {
        "original": <user_agent>
    }
}
```

For a basic analysis to detect only impossible travel logins, the user_agent field is useless.

BuffaLogs Architecture

Buffalogs_Architecture

For futher details: Wiki - Architecture

Uninstall

To uninstall and remove all files, delete all containers with:

sudo docker-compose down -v

Then you can safely delete this repository.

Contribution

BuffaLogs is an Open Source project and was developed in order to allow enrichments from people with any level of experience, but please read carefully the Contribution guidelines before making any changes to the project.

About

BuffaLogs is an Open Source Django Project whose main purpose is to detect login anomalies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.2%
  • JavaScript 18.7%
  • HTML 9.5%
  • CSS 4.4%
  • Other 1.2%