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

Developing Wazuh in ECS AWS mode #387

Open
beneditofreire opened this issue Oct 30, 2024 · 0 comments
Open

Developing Wazuh in ECS AWS mode #387

beneditofreire opened this issue Oct 30, 2024 · 0 comments

Comments

@beneditofreire
Copy link

Description

Our Cloud and Security team came together to contribute to Wazuh and we are developing the Wazuh application for AWS ECS Fargate. We did the first SETUP and are now in the testing phase, but we came across the process below:

For that, we need to:

  • [OKAY] Todos os APP e funções estão operando normalmente dentro do Wazuh.
  • [OKAY] the features are as expected and operating normally.
    - [NOKAY ] Problem with handling URL that contains MANAGER.NAME as default
    Is there any way to remove the default server from the URL, because we are talking about this, because the ECS TASKs when they are generated by default the DNS of this manager ends up being changed, because AWS works with this dynamic addressing, therefore the references are lost, but not data, so we understand that if there is a possibility of removing this default from the base URL, it would be possible to have data and thus we could evolve our tests in ECS and who knows contribute to the wazuh platform with a process to be applied in Fargate ECS.

This DNS address is automatically generated by AWS. When taks dies or is restarted;
DNS AWS: ip-10-92-18-96.ec2.internal

  • url when we try to navigate by default:
    https://wazuh-dashboard.DNS.COM/app/threat-hunting#/overview/?tab=general&tabView=panels&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-90d,to:now))&_a=(columns:!(_source),filters:!(('$state':(isImplicit:!t,store:appState),meta:(alias:!n,disabled:!f,index:'wazuh-alerts-*',key:manager.name,negate:!f,params:(**query:ip-10-92-18-96.ec2.internal**),removable:!f,type:phrase),query:(match:(manager.name:(**query:ip-10-92-18-96.ec2.internal**,type:phrase))))),index:'wazuh-alerts-*',interval:auto,query:(language:kuery,query:''),sort:!())

  • manipulated url:
    https://wazuh-dashboard.DNS.COM/app/threat-hunting#/overview/?tab=general&tabView=panels&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-90d,to:now))&_a=(columns:!(_source),**filters:!(('$state':(store:appState),exists:(field:manager.name**),meta:(alias:!n,disabled:!f,index:'wazuh-alerts-*',**key:manager.name,negate:!f,type:exists,value:exists**))),index:'wazuh-alerts-*',interval:auto,query:(language:kuery,query:'',timestamp:'1730143870989'),sort:!())

When I edit the URL and ADD MANAGER.NAME to it as IF EXIST, it is possible to catalog old data from other ECS that were automatically generated by AWS. The question is, can we leave this as default?

Issues

Attachment:
Wazuh_Manager_Name_IF_EXIST
Wazuh_Manager_Name_ANY_SERVER
Wazuh_Manager_Name_Default
Wazuh_Manager_Name_IF_EXIST_DASH_RESULT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant