התקנת Carbon Black Event Forwarder
מבוא
במסמך הזה נסביר איך להגדיר את Carbon Black (CB) Event Forwarder כדי שישלח נתוני טלמטריה של נקודות קצה ל-Google Security Operations.
מדריך למתחילים
באופן כללי, נפעל לפי המדריך למתחילים של CB Event Forwarder הרשמי (ראו כאן) עם כמה פריטים, באופן הבא:
- מתקינים את CB Event Forwarder ישירות בשרת CB Response או במכונה וירטואלית אחרת.
- מוודאים שהאירועים שרוצים לשלוח ל-Google SecOps מוגדרים בשרת CB Response.
- מגדירים כמה שדות בהגדרות של CB Event Forwarder כדי לאפשר שליחת אירועים ל-Google SecOps.
הגדרת CB Response
מגדירים את CB Response לייצוא האירועים הרצויים. למידע נוסף, עיינו בקטע Configure CB Response במסמכי התיעוד הרשמיים של CB Event Forwarder.
לדוגמה, אם רוצים להפעיל ייצוא של אירועי חיבור לרשת דרך מעביר אירועים של CB שפועל גם בשרת CB Response, צריך לבצע את הפעולות הבאות:
# If this property is not empty, it will enable publishing of incoming events from
# sensors onto RabbitMQ PUBSUB enterprise bus (see RabbitMQ (cb-rabbitmq service)
# settings in this file). The value of this property consists of one or more of the
# following comma-separated event types that should be published:
# * procstart (or process)
# * procend
# * childproc
# * moduleload
# * module
# * filemod
# * regmod
# * netconn
# If you wish to subscribe for ALL of the above events, '*' value can be specified.
# Each event type will be published to its own topic: ingress.event.<event type>
DatastoreBroadcastEventTypes=netconn
הגדרת העברת אירועים ב-CB
מגדירים את CB Event Forwarder לייצוא נתונים באמצעות HTTP(S) אל Chronicle Ingestion API. למידע נוסף, עיינו בקטע Configure the cb-event-forwarder במסמכי התיעוד הרשמיים של CB Event Forwarder.
כדי להגדיר את CB Event Forwarder, צריך כמה דגלים. אנחנו נספק לכם הגדרה עם הדגלים האלה.
- מגבים את ההגדרות הרשמיות של CB Event Forwarder:
// Go to the configuration folder.
$ cd /etc/cb/integrations/event-forwarder
$ cp cb-event-forwarder.conf cb-event-forwarder.conf.official
- מעדכנים את השדות הבאים ב-cb-event-forwarder.conf:
// Update output_type from file to http.
output_type=http
// Configure the Ingestion API endpoint.
httpout=https://malachiteingestion-pa.googleapis.com/v1/unstructuredlogentries?key=<api-key>
// Only export the following Raw Sensor (endpoint) Events.
events_raw_sensor=ingress.event.childproc,ingress.event.emetmitigation,ingress.event.netconn,ingress.event.process,ingress.event.processblock,ingress.event.remotethread,ingress.event.tamper,ingress.event.filemod,ingress.event.regmod
// Update the following fields in the [http] section. Note that some fields with exactly the same field name appear in many sections. Make sure that you are updating the fields in the [http] section.
// Do not send an empty update.
upload_empty_files=false
// Update the bundle size to 1MB.
bundle_size_max=1048576
// Update HTTP post template.
http_post_template={"log_type": "CB_EDR", "entries":[{{range $index, $element := .Events}}{{if $index}},{{end}}{{printf "{\"log_text\":%q}" .EventText}}{{end}}]}
חשוב להחליף את
הפעלה ועצירה של CB Event Forwarder
אפשר לעיין בקטע Starting and Stopping the Service במסמכי התיעוד הרשמיים של CB Event Forwarder.
מדריכים
איך לנפות באגים אם העברת האירועים של CB לא מתחילה
שגיאות בהפעלה יתועדו ביומן בנתיב /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.startup.log.
איך בודקים אם CB Event Forwarder שולח נתונים ל-Google SecOps
אם CB Event Forwarder שולח נתונים ל-Google SecOps, אמור להופיע ביומן: אפשר למצוא את היומן בכתובת /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.log
time="2018-11-15T16:08:41-08:00" level=info msg="Enforcing minimum TLS version 1.2"
time="2018-11-15T16:08:41-08:00" level=info msg="Raw Event Filtering Configuration:"
time="2018-11-15T16:08:41-08:00" level=info msg="ingress.event.netconn: true"
time="2018-11-15T16:08:41-08:00" level=info msg="cb-event-forwarder version NOT FOR RELEASE starting"
time="2018-11-15T16:08:41-08:00" level=info msg="Interface address XXX.XXX.XXX.XXX"
time="2018-11-15T16:08:41-08:00" level=info msg="Interface address XXXX::XXX:XXXX:XXXX:XXX"
time="2018-11-15T16:08:41-08:00" level=info msg="Configured to capture events: [watchlist.# feed.# alert.# ingress.event.netconn binaryinfo.# binarystore.#]"
time="2018-11-15T16:08:41-08:00" level=info msg="Rolling file /var/cb/data/event-forwarder/event-forwarder to /var/cb/data/event-forwarder/event-forwarder.2018-11-15T16:08:41.481.restart"
time="2018-11-15T16:08:41-08:00" level=info msg="Initialized output: HTTP POST https://malachiteingestion-pa.googleapis.com/v1/unstructuredlogentries\n"
...
time="2018-11-15T16:08:43-08:00" level=info msg="Successfully uploaded file /var/cb/data/event-forwarder/event-forwarder.2018-11-09T14:25:21.446 to HTTP POST https://malachiteingestion-pa.googleapis.com/v1/unstructuredlogentries."
פרטים ליצירת קשר
שאלות טכניות, כולל עזרה לגבי ההוראות במסמך הזה: forwarder@chronicle.security
שאלות כלליות: product@chronicle.security
שאלות בנושא מכירות: sales@chronicle.security
הבעיה עדיין לא נפתרה? קבלת תשובות מחברי הקהילה וממומחי Google SecOps.