Plataforma de documentação operacional e gerencial da SETIC
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior Próxima revisão | Revisão anterior | ||
playground:testambient7 [2021/10/02 13:23] Letícia Gondim |
playground:testambient7 [2023/05/09 15:44] (atual) |
||
---|---|---|---|
Linha 14: | Linha 14: | ||
.jumbotron{ | .jumbotron{ | ||
- | background-image: | + | background-image: |
background-size: | background-size: | ||
color: white; | color: white; | ||
Linha 20: | Linha 20: | ||
} | } | ||
+ | body{margin-top: | ||
+ | background:# | ||
+ | } | ||
+ | .service-container { | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
- | </ | + | .service-container .icon { |
+ | margin-top: 5%; | ||
+ | font-size: 38px; | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-container .number-icon .icon-2 { | ||
+ | height: 70px; | ||
+ | width: 70px; | ||
+ | line-height: | ||
+ | border-radius: | ||
+ | border-color: | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-container .number-icon .icon-2 i { | ||
+ | font-size: 30px; | ||
+ | } | ||
+ | .service-container .number-icon .number { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | right: 70px; | ||
+ | left: 0; | ||
+ | height: 35px; | ||
+ | width: 35px; | ||
+ | margin: 0 auto; | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-container .number-icon .number span { | ||
+ | line-height: | ||
+ | } | ||
- | <div class=" | + | .service-container .content .number { |
- | <div class=" | + | font-size: 40px; |
- | <h1 class=" | + | |
- | < | + | } |
- | <p class=" | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | .service-container .content .title { |
- | <div class=" | + | -webkit-transition: all 0.5s ease; |
- | <div class=" | + | |
- | <h2 class=" | + | } |
- | <div class=" | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | + | ||
- | < | + | |
- | <table style=" | + | |
- | <table style=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | <td>8 GB</ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | <td>1 VHD 500GB</ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | .service-container.hover-bg { |
- | </ | + | -webkit-transition: all 0.5s ease; |
- | </ | + | |
- | <div class=" | + | } |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | < | + | |
- | Adicionando Agente no Gerenciador Wazuh | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | <p>1 - No servidor Wazuh digite:</p> | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | <p> A seguinte tela aparecerá</ | + | |
- | <img src=" | + | |
- | <p>2 – Selecione A para adicionar um agente. Será solicitado o nome do agente (use o nome do host do agente ou outro nome arbitrário), | + | |
- | <br> | + | |
- | < | + | .service-container.hover-bg |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | font-size: 60px; |
- | < | + | |
- | </ | + | -webkit-transition: all 0.8s ease; |
- | </ | + | |
- | <p>2 – Tecle “E”, e depois digite a ID do agente desejado.< | + | } |
- | 3 – Copie a Key para que seja usada no agente desejado. | + | |
- | </p> | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Tecle “R”, e depois digite a ID do agente desejado. Feito isso, confirme teclando “Y”.</ | + | |
- | </ | + | .service-container.hover-bg:hover { |
- | </ | + | |
- | </ | + | } |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Instalar agente windows | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | 1 – Acesse o seguinte endereço para baixar o agente:< | + | |
- | </ | + | |
- | <p>2 – Selecione o arquivo correspondente a versão para Windows e efetue o download.</ | + | |
- | <p>3 – Após o download, efetue a instalação do agente, concordando com os termos de uso, e ao final da instalação selecione a checkbox “< | + | .service-container.hover-bg:hover .content |
- | </ | + | color: #ffffff !important; |
- | <p>4 – Com a tela do agente aberta, no campo “< | + | } |
- | </ | + | |
- | <p>5 – Para iniciar o monitoramento, | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Instalar agente linux | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | <p>A seguir, segue uma descrição de como instalar o agente wazuh em uma distribuição CentOS. Para demais distribuições, | + | |
- | <p>1 - O primeiro passo para instalar o agente Wazuh é adicionar o repositório Wazuh ao computador CentOS desejado. Para isso configure o repositório executando os seguintes comandos no terminal:</p> | + | |
- | < | + | .service-container.hover-bg:hover .content |
- | < | + | |
- | < | + | } |
- | [wazuh_repo]< | + | |
- | gpgcheck=1< | + | |
- | gpgkey=https:// | + | |
- | enabled=1< | + | |
- | name=Wazuh repository< | + | |
- | baseurl=https://packages.wazuh.com/ | + | |
- | protect=1< | + | |
- | EOF</ | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Ainda no terminal, execute o seguinte comando para a instalação:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # yum install wazuh-agent | + | |
- | </ | + | |
- | </tr> | + | |
- | | + | |
- | <p>3- Após a instalação, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>A seguinte tela aparecerá:</ | + | |
- | <img src=" | + | |
- | <p>4 – Pressione a tecla “I” e dê Enter. Após isso, cole ou digite a Key extraída no servidor wazuh para o agente desejado. Confirme a adição teclando “Y”. Feito isso, digite “Q” e tecle Enter para sair da configuração.</ | + | |
- | <p>5 – Edite o arquivo de configuração “< | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # vim / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>Na sessão < | + | |
- | <p>6 – Reinicie o agente com o seguinte comando:</ | + | .service-container.hover-bg:hover .smooth-icon { |
- | < | + | font-size: 100px; |
- | < | + | |
- | < | + | |
- | # / | + | right: 10px; |
- | </ | + | } |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Atribuindo agentes a grupos | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | <p>1 – No servidor Wazuh digite o seguinte comando no terminal:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Configurando alertas por e-mail | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | <p>1 – Instale os pacotes necessários, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # yum update && yum install postfix mailx cyrus-sasl cyrus-sasl-plain | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Após a instalação, | + | |
- | <p>3 – Adicione ao final do arquivo “main.cf” as seguintes linhas:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | relayhost = [smtp2.detic.ro.gov.br]: | + | |
- | smtp_sasl_auth_enable = yes\\<# echo [smtp2.detic.ro.gov.br]: | + | |
- | # postmap / | + | |
- | # chmod 400 / | + | |
- | smtp_sasl_password_maps = hash:/ | + | |
- | smtp_sasl_security_options = noanonymous\\< | + | |
- | smtp_tls_CAfile = / | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>4 – Configure o e-mail e a senha utilizada para o envio dos e-mails usando os seguintes comandos:</p> | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # echo [smtp2.detic.ro.gov.br]:587 SEU_EMAIL@detic.ro.gov.br: | + | |
- | # postmap / | + | |
- | # chmod 400 / | + | |
- | # postmap / | + | |
- | # chmod 400 / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>5 – Para proteger a senha do banco de dados, utilize os seguintes comandos:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # chown root:root / | + | |
- | # chmod 0600 / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>6 – Reinicie o Postfix:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # systemctl reload postfix | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>7 – Para configurar o Wazuh para enviar os alertas de e-mail, as configurações de e-mail devem ser configuradas na seção < global > do arquivo “ossec.conf”. Para isso, utilizando o editor de sua preferência, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < jsonout_output> | + | |
- | < alerts_log> | + | |
- | < logall> | + | |
- | < logall_json> | + | |
- | < email_notification> | + | |
- | < smtp_server> | + | |
- | < email_from> | + | |
- | < email_to> | + | |
- | < email_maxperhour> | + | |
- | < / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>8 – Após a configuração acima, precisamos definir o nível mínimo de alerta que irá acionar um e-mail. Por padrão, o nível é definido como 7. Se desejar mudar, basta alterar o número referente ao nível dentro do campo: < email_alert_level >. No exemplo abaixo, definiremos o nível mínimo como 10:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < ossec_config>< | + | |
- | < alerts>< | + | |
- | < email_alert_level> | + | |
- | < / | + | |
- | | + | |
- | < / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>9 – Ao final da edição do arquivo “ossec.conf”, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # systemctl restart wazuh-manager | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | .service-container: |
- | <div class=" | + | |
- | < | + | -webkit-box-shadow: 0 10px 25px rgba(47, 60, 78, 0.15) !important; |
- | <div class=" | + | box-shadow: 0 10px 25px rgba(47, 60, 78, 0.15) !important; |
- | | + | } |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | <p>O OpenScap Scanner funciona somente em máquinas Linux, e precisa ser instalado e configurado após a instalação do agente wazuh. Segue abaixo os passos para a instalação:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # yum install openscap-scanner | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Após a instalação do openscap-scanner, com o editor de sua preferência, abra o arquivo: / | + | |
- | <p>3 – Salve o arquivo e reinicie o ossec-control com o seguinte comando:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | .service-container:hover .icon { |
- | </ | + | color: #f89d36; |
- | <div class=" | + | -webkit-animation: mover 1s infinite alternate; |
- | <div class=" | + | |
- | <div class=" | + | } |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h5 class=" | + | |
- | <p class=" | + | |
- | < | + | |
- | <a href=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h5 class=" | + | |
- | <p class=" | + | |
- | < | + | |
- | <a href=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h5 class=" | + | |
- | <p class=" | + | |
- | < | + | |
- | <a href=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h5 class=" | + | |
- | + | ||
- | < | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
+ | .service-container: | ||
+ | background-color: | ||
+ | border-radius: | ||
+ | } | ||
+ | .service-container: | ||
+ | color: #ffffff !important; | ||
+ | } | ||
+ | .service-container: | ||
+ | color: #ffffff; | ||
+ | background: #f89d36 !important; | ||
+ | border-color: | ||
+ | } | ||
+ | .service-container: | ||
+ | color: #f89d36; | ||
+ | } | ||
+ | .service-container a:hover, | ||
+ | .service-container a .title: | ||
+ | color: #f89d36 !important; | ||
+ | } | ||
+ | @-webkit-keyframes mover { | ||
+ | 0% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(0); | ||
+ | } | ||
+ | 100% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(-15px); | ||
+ | } | ||
+ | } | ||
+ | @keyframes mover { | ||
+ | 0% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(0); | ||
+ | } | ||
+ | 100% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(-15px); | ||
+ | } | ||
+ | } | ||
+ | .service-wrapper { | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-wrapper .icon { | ||
+ | width: 60px; | ||
+ | height: 60px; | ||
+ | line-height: | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-wrapper .content .title { | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | font-weight: | ||
+ | } | ||
+ | .service-wrapper .big-icon { | ||
+ | position: absolute; | ||
+ | right: 0; | ||
+ | bottom: 0; | ||
+ | opacity: 0.05; | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-wrapper: | ||
+ | -webkit-box-shadow: | ||
+ | box-shadow: 0 10px 25px rgba(47, 60, 78, 0.15) !important; | ||
+ | background: #ffffff; | ||
+ | -webkit-transform: | ||
+ | transform: translateY(-8px); | ||
+ | border-color: | ||
+ | } | ||
+ | .service-wrapper: | ||
+ | background: #0062ff !important; | ||
+ | color: #ffffff !important; | ||
+ | } | ||
+ | .service-wrapper: | ||
+ | z-index: -1; | ||
+ | opacity: 0.1; | ||
+ | font-size: 160px; | ||
+ | } | ||
+ | .text-custom { | ||
+ | color: #0062ff !important; | ||
+ | } | ||
+ | .uim-svg { | ||
+ | display: inline-block; | ||
+ | height: 1em; | ||
+ | vertical-align: | ||
+ | font-size: inherit; | ||
+ | fill: var(--uim-color, | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <h1 class=" | ||
+ | <hr> | ||
+ | <p class=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
</ | </ |