Giter Club home page Giter Club logo

Comments (3)

mackhendricks avatar mackhendricks commented on July 28, 2024

The Notification endpoint has been added to master trunk, but it doesn't send an email ( /api/notification/email). Please download our master, find the issue and fix it.

In regards to SMS, the /api/notification/sms I don't see any parameters being parsed. We should be parsing SMS phone number and Message, which should contain a link to login to review the threat.

The above endpoints are great for having a generic way to send notifications. But, when sending this from Metron we should just be POSTing the Company, Site, Score to the /api/notification API and you should figure out who should be notified based on the users notification settings.

from threatdetectionservice.

mackhendricks avatar mackhendricks commented on July 28, 2024

Here's more detail on how we should be handling alerts coming from metron using the /api/metron/alerts URL.

We just need the threat id, company id, site id and score so that we can figure out who needs to be notified. So, above class needs to be changed so that it looks up the user that should be notified and notify that user. So, I would like to see a test where we send

/api/metron/alerts this payload

{

“threat_id": "ASnFODKFNDSK-23DSJO”,
“company_id” : “Flyball-Labs”,
“site_id” : “Site 1”,
“score” : 15

}

Then we should fire off a notification to users that are attached to the company id and/or site. The notification should either be an Email or SMS based on their notification preferences.

from threatdetectionservice.

mackhendricks avatar mackhendricks commented on July 28, 2024

Per our conversation, we agreed to change the payload to being the complete threat intel message. So, the /api/metron/alerts payload will just contain

{

"message":

}

from threatdetectionservice.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.