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

AWS CloudTrail Analyzer #3216

Open
raihalea opened this issue Oct 23, 2024 · 4 comments · May be fixed by #3224
Open

AWS CloudTrail Analyzer #3216

raihalea opened this issue Oct 23, 2024 · 4 comments · May be fixed by #3224

Comments

@raihalea
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It would be helpful to enhance the AWS CloudTrail analyzer to allow automatic tagging of events.

Describe the solution you'd like
I propose creating an analyzer that can automatically tag events based on pre-defined actions and events.

@raihalea raihalea mentioned this issue Oct 23, 2024
4 tasks
@jkppr
Copy link
Collaborator

jkppr commented Oct 24, 2024

Hi @raihalea, thanks for the feature idea.

It sounds like you're interested in automatically tagging events based on their content. Timesketch already has a feature that might help with this.

Have you looked into the "Tagger" analyzer? It allows you to define rules that automatically tag events based on searches. You can find more information on how to configure it for your AWS CloudTrail logs here: https://timesketch.org/guides/analyzers/tagger/

If the Tagger analyzer meets your needs, consider submitting a pull request with your tagging logic. This way, everyone in the Timesketch community can benefit from your contribution.

If the Tagger analyzer isn't quite what you're looking for, you can always create your own analyzer. Here are some resources to help you get started:

@raihalea
Copy link
Contributor Author

Hello @jkppr,

Thank you for the suggestion! I initially considered creating a custom analyzer, but after starting the work, I realized that the Tagger analyzer is actually sufficient for my needs.

I have a couple of quick questions:

  • Should I add entries directly to /data/tags.yaml for Tagger? If there’s a tags.yaml file specifically for contributors, could you let me know?
  • Will adding CloudTrail-related tags to /data/tags.yaml impact users who aren’t interested in CloudTrail, such as by cluttering their view or slowing down searches?

Thanks for your guidance!

@jkppr
Copy link
Collaborator

jkppr commented Oct 28, 2024

Feel free to add the config directly to the /data/tags.yaml file. There is no separate contributors config for the tagger. You can ask for my review on the PR.

To ensure the added config does not clutter anyones logs, you should be as specific as possible in your query. E.g. by focusing it on a specific data_type only. If someone does not have events matching those queries the tagger will just move on.

@raihalea
Copy link
Contributor Author

Closed the previous PR (#3217). I’ll create a new one.

@raihalea raihalea linked a pull request Nov 8, 2024 that will close this issue
4 tasks
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 a pull request may close this issue.

2 participants