איסוף יומנים של BMC AMI Defender
גרסת המנתח: 1.0
במסמך הזה מוסבר איך להטמיע יומני BMC AMI Defender ב-Google Security Operations באמצעות סוכן Bindplane.
BMC AMI Datastream for z/OS היא תוכנת סוכן למחשב מרכזי שעוקבת אחרי הפעילות במערכת z/OS, אוספת ומעבדת רשומות של System Management Facility (SMF) ומעבירה אותן למערכות SIEM מבוזרות בזמן אמת. הסוכן מעצב מחדש רשומות SMF מ-RACF, ACF2, Top Secret, TCP/IP, CICS, IMS ואירועים אחרים של מערכות ואפליקציות z/OS כהודעות syslog שתואמות ל-RFC 3164, ומעביר אותן באמצעות פרוטוקולי UDP, TCP או TLS.
לפני שמתחילים
חשוב לוודא שיש לכם את הדברים הבאים:
- מכונה של Google SecOps
- Windows Server 2016 ואילך, או מארח Linux עם
systemdלסוכן Bindplane - קישוריות רשת בין המארח של סוכן Bindplane לבין z/OS LPAR שמריץ את BMC AMI Datastream
- אם אתם משתמשים בשרת proxy, ודאו שהיציאות של חומת האש פתוחות בהתאם לדרישות של סוכן Bindplane.
- BMC AMI Datastream ל-z/OS בגרסה 6.1 ואילך, מותקן ופועל ב-z/OS LPAR
- גישה לעריכת קובצי פרמטרים בקבוצת הנתונים amihlq.PARM ב-z/OS (בדרך כלל נדרשת גישת TSO/ISPF או הרשאה לשליחת משימות באצווה)
- הרשאה לשנות את ההגדרות האישיות של BMC AMI Datastream (בדרך כלל נדרשת גישת RACF READ לקבוצות הנתונים של הפרמטרים)
קבלת פרטי כניסה ל-Google SecOps בשביל סוכן Bindplane
כדי לאמת את סוכן Bindplane ב-Google SecOps, בוחרים באחת מהשיטות הבאות:
- פריסות חדשות: משתמשים ב-Chronicle API (אפשרות 1).
- פריסות קודמות: ממשיכים להשתמש בקובץ האימות להטמעת נתונים (אפשרות 2) עד שה-Ingestion API יופסק ב-20 ביולי 2027.
אפשרות 1: יצירת חשבון שירות ל-Chronicle API (מומלץ)
- נכנסים למסוףGoogle Cloud ובוחרים את הפרויקט ב- Google Cloud שמקושר למכונה של Google SecOps.
- נכנסים לדף IAM & Admin > Service Accounts.
- לוחצים על Create service account.
- מזינים את פרטי ההגדרה הבאים:
- Service account name: מזינים שם לחשבון (לדוגמה,
bindplane-ingest). - Service account description: מזינים תיאור (לדוגמה,
Bindplane agent log ingestion).
- Service account name: מזינים שם לחשבון (לדוגמה,
- לוחצים על Create and continue.
- בקטע Grant this service account access to project, לוחצים על Select a role ובוחרים באפשרות Chronicle Editor.
- לוחצים על המשך ואז על סיום.
- לוחצים על חשבון השירות שיצרתם ועוברים לכרטיסייה Keys.
- לוחצים על Add key > Create new key.
- בוחרים באפשרות JSON ולוחצים על Create. קובץ המפתח יורד למחשב.
- שומרים את קובץ המפתח בתור
ingestion-auth.jsonבספריית Bindplane collector (/opt/observiq-otel-collector/ingestion-auth.jsonב-Linux אוC:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.jsonב-Windows), או מעדכנים אתcreds_file_pathב-config.yamlכך שיתאים לנתיב שבו שמרתם אותו. - עוברים אל IAM & Admin > Settings ומעתיקים את הערך של Project number. תצטרכו אותו כדי להגדיר את הייצוא.
אפשרות 2: הורדה של קובץ האימות להטמעת נתונים (גרסה קודמת)
- נכנסים למסוף Google SecOps.
- עוברים אל הגדרות > ניהול נתונים > סוכני איסוף. אם אתם משתמשים בפלטפורמת SIEM בלבד, עוברים אל הגדרות > סוכני איסוף.
- מורידים את קובץ האימות להטמעת נתונים.
- שומרים את הקובץ בצורה מאובטחת במערכת שבה יותקן הסוכן של Bindplane.
איך מקבלים את מספר הלקוח ב-Google SecOps
- נכנסים למסוף Google SecOps.
- עוברים אל הגדרות > ניהול > פרופיל. אם אתם משתמשים בפלטפורמה של SIEM בלבד, עוברים אל הגדרות > פרופיל.
מעתיקים את מספר הלקוח מהקטע פרטי הארגון ושומרים אותו.
התקנת הסוכן של Bindplane
מתקינים את הסוכן של Bindplane במערכת ההפעלה Windows או Linux לפי ההוראות הבאות.
התקנת חלונות
- פותחים את שורת הפקודה או את PowerShell כאדמין.
מריצים את הפקודה הבאה:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quietמחכים שההתקנה תסתיים.
כדי לוודא שההתקנה בוצעה, מריצים את הפקודה:
sc query observiq-otel-collectorהשירות אמור להופיע כ-RUNNING.
התקנה ב-Linux
- פותחים טרמינל עם הרשאות root או sudo.
מריצים את הפקודה הבאה:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.shמחכים שההתקנה תסתיים.
כדי לוודא שההתקנה בוצעה, מריצים את הפקודה:
sudo systemctl status observiq-otel-collectorהשירות אמור להופיע כפעיל (פועל).
מקורות מידע נוספים בנושא התקנה
במדריך להתקנת הסוכן של Bindplane מפורטות אפשרויות התקנה נוספות ופתרונות לבעיות.
הגדרת סוכן Bindplane כדי להטמיע את syslog ולשלוח ל-Google SecOps
מאתרים את קובץ התצורה
Linux:
sudo nano /opt/observiq-otel-collector/config.yamlWindows:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
עריכת קובץ התצורה
מחליפים את כל התוכן של
config.yamlבהגדרות הבאות:receivers: tcplog: listen_address: "0.0.0.0:1514" exporters: chronicle/bmc_datastream: protocol: https # Region of your instance, for example us, europe, asia-southeast1 location: <LOCATION> # Project number of the Google Cloud project linked to the instance project: '<PROJECT_NUMBER>' compression: gzip creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json' customer_id: 'your-customer-id-here' endpoint: chronicle.googleapis.com log_type: BMC_AMI_DEFENDER raw_log_field: body service: pipelines: logs/datastream_to_chronicle: receivers: - tcplog exporters: - chronicle/bmc_datastreamמחליפים את ה-placeholders הבאים:
הגדרת המקלט:
listen_address: כתובת ה-IP והיציאה להאזנה:-
0.0.0.0:1514כדי להאזין בכל הממשקים ביציאה 1514 (מומלץ ל-Linux שאינו ברמה הבסיסית) -
0.0.0.0:514כדי להאזין בכל הממשקים ביציאת syslog רגילה (נדרש root ב-Linux) - כתובת IP ספציפית להאזנה בממשק אחד
-
הגדרת הייצוא:
creds_file_path: הנתיב המלא לקובץ המפתח של חשבון השירות בפורמט JSON (אפשרות 1):- Linux:
/opt/observiq-otel-collector/ingestion-auth.json - Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Linux:
customer_id:customer ID. פרטים נוספים זמינים במאמר קבלת מזהה לקוח ב-Google SecOps.
location: מחליפים את<LOCATION>באזור של המכונה של Google SecOps (לדוגמה,us,europeאוasia-southeast1). המייצא מוסיף את הערך הזה בתחילתchronicle.googleapis.com. לרשימה המלאה, ראו נקודות קצה אזוריות.
project: מחליפים את<PROJECT_NUMBER>במספר הפרויקט שמופיע בקטע IAM & Admin > Settings.
endpoint: משאירים את הערךchronicle.googleapis.com.log_type:BMC_AMI_DEFENDER
הגדרה לדוגמה של UDP syslog
אם אתם מעדיפים תעבורת UDP (זמן אחזור נמוך יותר, שליחה ללא אישור קבלה):
receivers: udplog: listen_address: "0.0.0.0:514" exporters: chronicle/bmc_datastream: protocol: https # Region of your instance, for example us, europe, asia-southeast1 location: <LOCATION> # Project number of the Google Cloud project linked to the instance project: '<PROJECT_NUMBER>' compression: gzip creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json' customer_id: 'a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6' endpoint: chronicle.googleapis.com log_type: BMC_AMI_DEFENDER raw_log_field: body service: pipelines: logs/datastream_to_chronicle: receivers: - udplog exporters: - chronicle/bmc_datastream
מייצא API להטמעה מדור קודם
אם אתם משתמשים בקובץ האימות להטמעת נתונים מאפשרות 2, החליפו את הבלוק
exportersבקוד הבא. מגדירים אתcreds_file_pathלנתיב של קובץ האימות להטמעת נתונים. אם המכונה נמצאת מחוץ לארה"ב, מחליפים אתmalachiteingestion-pa.googleapis.comבנקודת הקצה האזורית (לדוגמה,europe-malachiteingestion-pa.googleapis.com).exporters: chronicle/bmc_datastream: compression: gzip creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json' customer_id: 'your-customer-id-here' endpoint: malachiteingestion-pa.googleapis.com log_type: BMC_AMI_DEFENDER raw_log_field: body
שמירת קובץ התצורה
אחרי העריכה, שומרים את הקובץ:
- Linux: לוחצים על
Ctrl+O, אחר כך עלEnterואז עלCtrl+X - Windows: לוחצים על קובץ > שמירה
מפעילים מחדש את הסוכן של Bindplane כדי להחיל את השינויים.
כדי להפעיל מחדש את סוכן Bindplane ב-Linux:
מריצים את הפקודה הבאה:
sudo systemctl restart observiq-otel-collectorמוודאים שהשירות פועל:
sudo systemctl status observiq-otel-collectorבודקים אם יש שגיאות ביומנים:
sudo journalctl -u observiq-otel-collector -f
כדי להפעיל מחדש את הסוכן של Bindplane ב-Windows:
בוחרים אחת מהאפשרויות האלה:
שורת הפקודה או PowerShell כאדמין:
net stop observiq-otel-collector && net start observiq-otel-collectorמסוף השירותים:
- לוחצים על
Win+R, מקלידיםservices.mscולוחצים על Enter. - מאתרים את observIQ OpenTelemetry Collector.
- לוחצים לחיצה ימנית ובוחרים באפשרות הפעלה מחדש.
- לוחצים על
מוודאים שהשירות פועל:
sc query observiq-otel-collectorבודקים אם יש שגיאות ביומנים:
type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
הגדרת העברת syslog ב-BMC AMI Defender
עריכת קובץ הפרמטרים באמצעות TSO/ISPF
- נכנסים ל-TSO/ISPF ב-z/OS LPAR שבו מותקן BMC AMI Datastream.
- ב-ISPF Primary Option Menu, מזינים 2 כדי לבחור באפשרות EDIT.
ב-Edit - Entry Panel, מזינים את הפרטים הבאים:
- ספריית ISPF: מזינים את השם של קבוצת הנתונים של הפרמטרים בפורמט
'amihlq.PARM', כאשר amihlq הוא המזהה ברמה גבוהה שנבחר במהלך ההתקנה (לדוגמה,'PROD.CZAGENT.PARM'). - חבר: מזינים חבר ב-
$$$CONFG.
- ספריית ISPF: מזינים את השם של קבוצת הנתונים של הפרמטרים בפורמט
Press Enter to open the member for editing.
Configure the SIEM type
- In the
$$$CONFG, מאתרים את הקטע שמסומן בתווית מתגים להגדרת סוג ה-SIEM. מבטלים את ההערה של סוג SIEM אחד על ידי הסרת הנקודה-פסיק בתחילת השורה המתאימה:
- לפורמט syslog רגיל, מבטלים את ההערה:
SWITCH ON(RFC 3164) - ל-Common Event Format, מבטלים את ההערה:
SWITCH ON(CEF) - בפורמט JSON, מבטלים את ההערה:
SWITCH ON(JSON) - בפורמט IBM QRadar LEEF, מבטלים את ההערה:
SWITCH ON(LEEF) - בפורמט Splunk, מבטלים את ההערה:
SWITCH ON(Splunk)
- לפורמט syslog רגיל, מבטלים את ההערה:
מקישים על F3 כדי לשמור ולצאת מהרכיב.
הגדרת שרת ה-syslog
בחלונית העריכה של הרשומה, מזינים את הפרטים הבאים:
- ספריית ISPF: מזינים
'amihlq.PARM'(כמו קודם). - חבר: מזינים את הערך
$$$SERVR.
- ספריית ISPF: מזינים
Press Enter to open the member for editing.
Locate the section corresponding to your selected SIEM type. For example:
- For RFC 3164: Locate the section labeled
; RFC 3164 - For CEF: Locate the section labeled
; CEF - TRANS(TCP) Recommended - For JSON: Locate the section labeled
; JSON - TRANS(TCP) Recommended
- For RFC 3164: Locate the section labeled
Uncomment the SERVER statement by removing the leading semicolon.
Edit the SERVER statement with the following values:
- Replace
ip.addr.examplewith the IP address of the Bindplane agent host (for example,192.168.1.100). If using TCP (recommended), the statement should look like:
SERVER 192.168.1.100:1514 TRANS(TCP) MAXMSG(2000)If using UDP, the statement should look like:
SERVER 192.168.1.100:514 TRANS(UDP) MAXMSG(2000)
- Replace
If you selected CEF, JSON, or Splunk format and are using TCP transport, locate the OPTIONS statement section and uncomment the FRAMING parameter:
OPTIONS FRAMING(OCTETCOUNT)Press F3 to save and exit the member.
Refresh the BMC AMI Datastream configuration
- From the ISPF Primary Option Menu, enter 6 to select COMMAND.
On the TSO Command Processor screen, enter the following MVS console command:
F czagentname,PARMSReplace
czagentnamewith the name of the BMC AMI Datastream started task (typicallyCZAGENTor the instance name configured during installation).Press Enter to execute the command.
Verify the configuration was refreshed by checking the system log for message CZA0001I indicating the parameter file was successfully processed.
Verify syslog transmission
- From the ISPF Primary Option Menu, enter 6 to select COMMAND.
Enter the following command to display BMC AMI Datastream statistics:
F czagentname,STATSPress Enter to execute the command.
Check the system log for message CZA0350I showing the number of messages sent to the syslog server.
Verify the Bindplane agent is receiving messages by checking the Bindplane agent logs:
- Linux:
sudo journalctl -u observiq-otel-collector -f - Windows: Check
C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log
- Linux:
Alternative: Edit parameter file using batch job
If you do not have TSO/ISPF access, you can edit the parameter files using a batch job:
Create a batch job with the following JCL:
//EDITPARM JOB (ACCT),'EDIT DATASTREAM PARMS', // CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID //STEP1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //SYSUT1 DD * SWITCH ON(RFC 3164) /* //SYSUT2 DD DSN=amihlq.PARM($$$CONFG),DISP=SHR //STEP2 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //SYSUT1 DD * SERVER 192.168.1.100:1514 TRANS(TCP) MAXMSG(2000) /* //SYSUT2 DD DSN=amihlq.PARM($$$SERVR),DISP=SHRמחליפים את
amihlqבמזהה ברמה גבוהה של התקנת BMC AMI Datastream.מחליפים את
192.168.1.100:1514בכתובת ה-IP וביציאה של המארח של סוכן Bindplane.שולחים את המשימה ומוודאים שהיא הושלמה בהצלחה (קוד החזרה 0).
מפעילים את הפקודה MODIFY כדי לרענן את ההגדרות, כמו שמתואר בקטע הקודם.
טבלת מיפוי UDM
| שדה ביומן | מיפוי UDM | Logic (פונקציה לוגית) |
|---|---|---|
| aceeadsp | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceeaudt | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceeflg1 | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceelogu | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceeoper | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceepriv | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceeracf | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceeroa | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| aceespec | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| additional.fields | additional.fields | מידע נוסף על האירוע |
| auth | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_audit | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_bypass | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_exit | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_normal | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_oper | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_soft | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_special | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| auth_trusted | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| authinfo | security_result.description | תיאור של תוצאת האבטחה |
| אירוע | metadata.product_event_type | סוג אירוע ספציפי למוצר |
| event_type | metadata.event_type | סוג האירוע (למשל, USER_LOGIN, NETWORK_CONNECTION) |
| eventdesc | metadata.description | תיאור האירוע |
| קבוצה | additional.fields | מידע נוסף על האירוע |
| שם המארח | principal.hostname, principal.asset.hostname | שם המארח של החשבון הראשי, שם המארח של הנכס |
| jobid | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| jobnm | additional.fields | מידע נוסף על האירוע |
| jsauth | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| name | principal.user.user_display_name | השם המוצג של המשתמש |
| pgm | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| privstatd | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_always | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_audit | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_cmdviol | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_globalaudit | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_setropts | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_special | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_user | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| reas_verify | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| rtype | additional.fields | מידע נוסף על האירוע |
| saf | additional.fields | מידע נוסף על האירוע |
| safd | additional.fields | מידע נוסף על האירוע |
| security_result.detection_fields | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| severity | security_result.severity, security_result.severity_details | חומרת תוצאת האבטחה, מידע מפורט על החומרה |
| sid | additional.fields | מידע נוסף על האירוע |
| חותמת זמן | metadata.event_timestamp | חותמת הזמן של האירוע |
| tokflg1 | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| tokflg3 | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| tokpriv | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| toksus | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| tokudus | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| userid | principal.user.userid | מזהה משתמש |
| הפרה | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| user_warning | security_result.detection_fields | השדות ששימשו לקביעת תוצאת האבטחה |
| worktyped | additional.fields | מידע נוסף על האירוע |
| metadata.product_name | שם המוצר | |
| metadata.vendor_name | שם הספק או שם חברה |
יומן שינויים
הצגת יומן השינויים של המנתח הזה
הבעיה עדיין לא נפתרה? קבלת תשובות מחברי הקהילה וממומחי Google SecOps.