国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當前位置: 首頁 > news >正文

密云做網(wǎng)站的產(chǎn)品關(guān)鍵詞大全

密云做網(wǎng)站的,產(chǎn)品關(guān)鍵詞大全,wordpress連接失效,有沒有專門做牛仔的網(wǎng)站前言 沒有永遠的安全,如何在被攻擊的情況下,快速響應(yīng)和快速溯源分析攻擊動作是個重要的話題。想要分析攻擊者做了什么、怎么攻擊進來的、還攻擊了誰,那么日志是必不可少的一項,因此我們需要盡可能采集多的日志來進行分析攻擊者的…

前言

沒有永遠的安全,如何在被攻擊的情況下,快速響應(yīng)和快速溯源分析攻擊動作是個重要的話題。想要分析攻擊者做了什么、怎么攻擊進來的、還攻擊了誰,那么日志是必不可少的一項,因此我們需要盡可能采集多的日志來進行分析攻擊者的動作,甚至在攻擊者剛落腳的時候就阻斷攻擊者。

安裝Elastic+Kibana

Docker安裝

這邊根據(jù)官方文檔:https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html 使用Docker安裝了Elastic和Kibana

# 安裝es
docker network create elasticdocker pull docker.elastic.co/elasticsearch/elasticsearch:8.12.1docker run --name es01 --net elastic -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:8.12.1# 記錄es的密碼和注冊kibana所需要的token# 測試es是否正確運行
export ELASTIC_PASSWORD="es_your_password"docker cp es01:/usr/share/elasticsearch/config/certs/http_ca.crt .curl --cacert http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200# 安裝kibana
docker pull docker.elastic.co/kibana/kibana:8.12.1docker run --name kib01 --net elastic -p 5601:5601 docker.elastic.co/kibana/kibana:8.12.1會給出kibana的注冊地址,訪問填入上述記錄的token即可。

不知道是機器性能問題還是Docker安裝的問題,es容器經(jīng)常會掛掉。

RPM安裝

根據(jù)https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html、https://www.elastic.co/guide/en/kibana/current/rpm.html官方文檔,可以yum install安裝。因為公司訪問鏡像源被封,因此使用上述文檔中下載rpm安裝:

# 安裝es
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.12.1-x86_64.rpm
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.12.1-x86_64.rpm.sha512
shasum -a 512 -c elasticsearch-8.12.1-x86_64.rpm.sha512 
sudo rpm --install elasticsearch-8.12.1-x86_64.rpm安裝kibana
wget https://artifacts.elastic.co/downloads/kibana/kibana-8.12.1-x86_64.rpm
wget https://artifacts.elastic.co/downloads/kibana/kibana-8.12.1-x86_64.rpm.sha512
shasum -a 512 -c kibana-8.12.1-x86_64.rpm.sha512 
sudo rpm --install kibana-8.12.1-x86_64.rpm

依然在安裝es的rpm時,會吐出es/kibana的密碼:

The generated password for the elastic built-in superuser is : Fq*S7jxCjFfPu6nN8NG8

es服務(wù)可能啟動不了,但是安裝時會給出啟動命令:

 sudo systemctl daemon-reloadsudo systemctl enable elasticsearch.service

測試es啟動是否正常:

export ELASTIC_PASSWORD="Fq*S7jxCjFfPu6nN8NG8"
curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200

記得改下配置文件,使其監(jiān)聽在0.0.0.0上面:

# /etc/elasticsearch/elasticsearch.yml# Allow HTTP API connections from anywhere
# Connections are encrypted and require user authentication
http.host: 0.0.0.0# Allow other nodes to join the cluster from anywhere
# Connections are encrypted and mutually authenticated
transport.host: 0.0.0.0

kibana一樣,記得改下配置文件,使其監(jiān)聽在0.0.0.0上面:

# /etc/kibana/kibana.yml
server.host: "0.0.0.0"

安裝Fleet和Elastic Agent

在Kibana上,Management->Fleet->Add Fleet Server,先安裝Fleet Server,URL填寫https協(xié)議,端口可以填默認的8220。
裝好Fleet Server后再裝Elastic Agent,Fleet Server也是一個Agent,因此不能在同一臺機器上同時裝Fleet Server和Elastic Agent。

為了使其Elastic Agent附帶Security能力,可以添加各式各樣的integrations集成,如到Security->Manage->Get started->Add security integrations安裝安全集成:
image.png
image.png

測試告警

注意,如果有如下錯誤需解決,否則會無法查閱規(guī)則:
image.png
image.png
幫助網(wǎng)安學習,全套資料S信免費領(lǐng)取:
① 網(wǎng)安學習成長路徑思維導圖
② 60+網(wǎng)安經(jīng)典常用工具包
③ 100+SRC分析報告
④ 150+網(wǎng)安攻防實戰(zhàn)技術(shù)電子書
⑤ 最權(quán)威CISSP 認證考試指南+題庫
⑥ 超1800頁CTF實戰(zhàn)技巧手冊
⑦ 最新網(wǎng)安大廠面試題合集(含答案)
⑧ APP客戶端安全檢測指南(安卓+IOS)

有些規(guī)則沒開,記得開下,比如我把reverse shell規(guī)則打開后:
Security->Dashboards->Detection & Response可以看到一些概覽:
image.png

記錄Windows事件管理器日志

安裝

Windows事件管理器日志不是單純的文本,因此需要借助一些工具來幫助我們完成采集的目的。這里使用winlogbeat(https://www.elastic.co/cn/beats/winlogbeat)完成。
官方提供了很詳細的安裝文檔(https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-installation-configuration.html),核心就是配置想要記錄的日志類型和對外傳輸?shù)姆桨?#xff0c;這里我使用的方案為:

  1. 記錄的日志類型,我沒改,默認就是Security、Application,甚至還有Sysmon
  2. 對外傳輸,我使用了傳輸?shù)絜lastic

配置好winlogbeat.yml后可以進行測試配置文件對不對:

.\winlogbeat.exe test config -c .\winlogbeat.yml -e

下面為我的配置文件信息:

###################### Winlogbeat Configuration Example ######################### This file is an example configuration file highlighting only the most common
# options. The winlogbeat.reference.yml file from the same directory contains
# all the supported options with more comments. You can use it as a reference.
#
# You can find the full configuration reference here:
# https://www.elastic.co/guide/en/beats/winlogbeat/index.html# ======================== Winlogbeat specific options =========================# event_logs specifies a list of event logs to monitor as well as any
# accompanying options. The YAML data type of event_logs is a list of
# dictionaries.
#
# The supported keys are name, id, xml_query, tags, fields, fields_under_root,
# forwarded, ignore_older, level, event_id, provider, and include_xml.
# The xml_query key requires an id and must not be used with the name,
# ignore_older, level, event_id, or provider keys. Please visit the
# documentation for the complete details of each option.
# https://go.es.io/WinlogbeatConfigwinlogbeat.event_logs:- name: Applicationignore_older: 72h- name: System- name: Security- name: Microsoft-Windows-Sysmon/Operational- name: Windows PowerShellevent_id: 400, 403, 600, 800- name: Microsoft-Windows-PowerShell/Operationalevent_id: 4103, 4104, 4105, 4106- name: ForwardedEventstags: [forwarded]# ====================== Elasticsearch template settings =======================setup.template.settings:index.number_of_shards: 1#index.codec: best_compression#_source.enabled: false# ================================== General ===================================# The name of the shipper that publishes the network data. It can be used to group
# all the transactions sent by a single shipper in the web interface.
#name:# The tags of the shipper are included in their field with each
# transaction published.
#tags: ["service-X", "web-tier"]# Optional fields that you can specify to add additional information to the
# output.
#fields:
#  env: staging# ================================= Dashboards =================================
# These settings control loading the sample dashboards to the Kibana index. Loading
# the dashboards is disabled by default and can be enabled either by setting the
# options here or by using the `setup` command.
#setup.dashboards.enabled: false# The URL from where to download the dashboard archive. By default, this URL
# has a value that is computed based on the Beat name and version. For released
# versions, this URL points to the dashboard archive on the artifacts.elastic.co
# website.
#setup.dashboards.url:# =================================== Kibana ===================================# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:# Kibana Host# Scheme and port can be left out and will be set to the default (http and 5601)# In case you specify and additional path, the scheme is required: http://localhost:5601/path# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601#host: "localhost:5601"# Kibana Space ID# ID of the Kibana Space into which the dashboards should be loaded. By default,# the Default Space will be used.#space.id:# =============================== Elastic Cloud ================================# These settings simplify using Winlogbeat with the Elastic Cloud (https://cloud.elastic.co/).# The cloud.id setting overwrites the `output.elasticsearch.hosts` and
# `setup.kibana.host` options.
# You can find the `cloud.id` in the Elastic Cloud web UI.
#cloud.id:# The cloud.auth setting overwrites the `output.elasticsearch.username` and
# `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
#cloud.auth:# ================================== Outputs ===================================# Configure what output to use when sending the data collected by the beat.# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:# Array of hosts to connect to.hosts: ["your_ip:9200"]# Protocol - either `http` (default) or `https`.#protocol: "https"# Authentication credentials - either API key or username/password.#api_key: "id:api_key"username: "elastic"password: "passwords"# Pipeline to route events to security, sysmon, or powershell pipelines.pipeline: "winlogbeat-%{[agent.version]}-routing"# ------------------------------ Logstash Output -------------------------------
#output.logstash:# The Logstash hosts#hosts: ["localhost:5044"]# Optional SSL. By default is off.# List of root certificates for HTTPS server verifications#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]# Certificate for SSL client authentication#ssl.certificate: "/etc/pki/client/cert.pem"# Client Certificate Key#ssl.key: "/etc/pki/client/cert.key"# ================================= Processors =================================
processors:- add_host_metadata:when.not.contains.tags: forwarded- add_cloud_metadata: ~# ================================== Logging ===================================# Sets log level. The default log level is info.
# Available log levels are: error, warning, info, debug
#logging.level: debug# At debug level, you can selectively enable logging only for some components.
# To enable all selectors, use ["*"]. Examples of other selectors are "beat",
# "publisher", "service".
#logging.selectors: ["*"]# ============================= X-Pack Monitoring ==============================
# Winlogbeat can export internal metrics to a central Elasticsearch monitoring
# cluster.  This requires xpack monitoring to be enabled in Elasticsearch.  The
# reporting is disabled by default.# Set to true to enable the monitoring reporter.
#monitoring.enabled: false# Sets the UUID of the Elasticsearch cluster under which monitoring data for this
# Winlogbeat instance will appear in the Stack Monitoring UI. If output.elasticsearch
# is enabled, the UUID is derived from the Elasticsearch cluster referenced by output.elasticsearch.
#monitoring.cluster_uuid:# Uncomment to send the metrics to Elasticsearch. Most settings from the
# Elasticsearch outputs are accepted here as well.
# Note that the settings should point to your Elasticsearch *monitoring* cluster.
# Any setting that is not set is automatically inherited from the Elasticsearch
# output configuration, so if you have the Elasticsearch output configured such
# that it is pointing to your Elasticsearch monitoring cluster, you can simply
# uncomment the following line.
#monitoring.elasticsearch:# ============================== Instrumentation ===============================# Instrumentation support for the winlogbeat.
#instrumentation:# Set to true to enable instrumentation of winlogbeat.#enabled: false# Environment in which winlogbeat is running on (eg: staging, production, etc.)#environment: ""# APM Server hosts to report instrumentation results to.#hosts:#  - http://localhost:8200# API Key for the APM Server(s).# If api_key is set then secret_token will be ignored.#api_key:# Secret token for the APM Server(s).#secret_token:# ================================= Migration ==================================# This allows to enable 6.7 migration aliases
#migration.6_to_7.enabled: true

數(shù)據(jù)檢索

這時候,可能elastic上面搜不到數(shù)據(jù),是因為winlogbeat使用了他自己的索引,默認為winlogbeat-version,筆者測試時,發(fā)現(xiàn)kibana上遲遲出現(xiàn)不了該索引,還以為數(shù)據(jù)傳輸沒成功呢,因此通過如下手段進行排查,先獲取es上面的索引信息:

http://your_ip:9200/_cat/indices?v

發(fā)現(xiàn)有類似winlogbeat的索引信息:

yellow open   .ds-winlogbeat-8.12.0-2024.02.03-000001   UpWhWCpdR-2WgMVe_kiH9A   1   1     192705            0    131.1mb        131.1mb

后面嘗試在kibana上創(chuàng)建一個新的索引即可,v7.17.12版本的kibana創(chuàng)建索引的過程如下:
discover->選項->View Discover settings

找到“索引模式”創(chuàng)建一個新的索引即可:

image.png
這時候就可以檢索事件管理器日志了:
image.png

http://aloenet.com.cn/news/40818.html

相關(guān)文章:

  • 建站行業(yè)的利潤百度指數(shù)里的資訊指數(shù)是什么
  • 不銹鋼公司網(wǎng)站源碼 網(wǎng)站建設(shè) 產(chǎn)品3級分類asp源碼域名查詢注冊商
  • 360度全景街景地圖陽江seo
  • 北京營銷型網(wǎng)站建設(shè)培訓百度怎么優(yōu)化網(wǎng)站關(guān)鍵詞
  • 科學城做網(wǎng)站公司網(wǎng)絡(luò)營銷的四種模式
  • 桂平網(wǎng)站制作seo查詢seo優(yōu)化
  • 網(wǎng)站不備案可以做微信小程序么幫人推廣的平臺
  • 獨立商城網(wǎng)站建設(shè)網(wǎng)絡(luò)營銷八大目標是什么
  • 手機屏幕網(wǎng)站佛山外貿(mào)seo
  • 新校區(qū)建設(shè)專題網(wǎng)站免費瀏覽網(wǎng)站推廣
  • 做網(wǎng)站最重要的是什么seo方法圖片
  • 網(wǎng)站建設(shè)制作設(shè)計seo優(yōu)化珠海百度人工電話
  • 網(wǎng)站建設(shè) 上海網(wǎng)站百度seo排名規(guī)則
  • 鮮花網(wǎng)站建設(shè)圖片百度知道客服電話人工服務(wù)
  • 蕪湖哪里有做網(wǎng)站的網(wǎng)絡(luò)營銷的重要性與意義
  • 新疆做網(wǎng)站首選seo站長工具推廣平臺
  • 第五次普查數(shù)據(jù)自網(wǎng)站怎么做搭建網(wǎng)站需要哪些步驟
  • 網(wǎng)站建設(shè)流程分為哪幾個階段知識付費網(wǎng)站搭建
  • 萊蕪網(wǎng)站seo重慶seo網(wǎng)站收錄優(yōu)化
  • 在那個網(wǎng)站做任務(wù)賺怎么制作網(wǎng)站教程
  • 網(wǎng)站在線客服源碼南寧網(wǎng)絡(luò)推廣服務(wù)商
  • 做asp動態(tài)網(wǎng)站制作流程十大免費引流平臺
  • 網(wǎng)站模板信息不存在網(wǎng)站推廣和優(yōu)化系統(tǒng)
  • 網(wǎng)站素材 下載最近的新聞?wù)?/a>
  • 萊蕪網(wǎng)站制作杭州產(chǎn)品推廣服務(wù)公司
  • 怎樣做網(wǎng)站外鏈最近新聞大事
  • 上海由多少家網(wǎng)站建設(shè)公司佛山seo
  • 微信小程序怎么關(guān)閉位置愛站seo工具
  • 網(wǎng)站開發(fā)是什么專業(yè)優(yōu)化20條措施
  • 網(wǎng)站在線開放端口seo網(wǎng)站優(yōu)化做什么