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

Enable Custom alert_context in Alert #142

Open
shaeqahmed opened this issue May 4, 2023 · 0 comments
Open

Enable Custom alert_context in Alert #142

shaeqahmed opened this issue May 4, 2023 · 0 comments

Comments

@shaeqahmed
Copy link
Contributor

shaeqahmed commented May 4, 2023

Users would like to be able to include custom context inside of their alerts. For example, the alert body should contain data from the event other than the default ECS fields that recurrently include inside of the alert body from the source event. To enable this, we currently have inside of our python detection framework. The ability to define a alert_context function that can be used to populate the alert with additional metadata via key value pairs.

We should enable including this in the alert, as currently the feature needs to be enabled/tested.

User request from discord

Does anyone try to do some custom context for the Context details for initial rule matches? I didn't find doc about it and I was wondering if it is possible to add additional context from the event to the alerts. currently, the aws default context comes with

cloud.account.id: 0000000001
cloud.region: us-east-1
event.action: ListPolicies  ListRoleTags  ListAttachedRolePolicies
event.outcome: success
event.provider: iam.amazonaws.com
event.type: info
matano.table: aws_cloudtrail
source.address: 1.1.1.1
source.ip: 1.1.1.1
user.id: asdasd1asdjsdasdiasduhasid:john.doe@company.com
user.name: thecia-company

and I want to add some additional fields from the event like aws.cloudtrail.flattened.request_parameters.policyArn: youarehackedpolycyarn

@shaeqahmed shaeqahmed changed the title Enable Custom alert_context Enable Custom alert_context in Alert May 4, 2023
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

No branches or pull requests

1 participant