איסוף יומנים של Sophos Firewall (SFOS)
במאמר הזה מוסבר איך להטמיע יומנים של Sophos Firewall ב-Google Security Operations באמצעות Bindplane. Sophos Firewall (SFOS) הוא חומת אש מהדור הבא שמספקת אבטחת רשת, סינון אתרים, בקרת אפליקציות, IPS, VPN והגנה מתקדמת מפני איומים. מערכת SFOS פועלת על מכשירי חומרה מסדרת Sophos XGS, פריסות וירטואליות ופריסות בענן, ויוצרת יומנים מפורטים של כללי חומת אש, סינון אינטרנט, אירועי IPS, אימות, חיבורי VPN ופעילות המערכת.
מידע נוסף זמין במאמר איסוף יומנים של Sophos Firewall.
לפני שמתחילים
חשוב לוודא שיש לכם את הדברים הבאים:
- מופע של Google SecOps.
- מארח Windows 2016 ואילך או מארח Linux עם systemd.
- אם אתם מפעילים את הסוכן מאחורי שרת proxy, ודאו שהיציאות של חומת האש פתוחות בהתאם לדרישות של סוכן Bindplane.
- גישה מורשית למסוף Admin של Sophos Firewall באינטרנט עם תפקיד אדמין.
- חומת אש של Sophos עם SFOS בגרסה 18 ואילך.
קבלת פרטי הכניסה ל-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](https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi)" /quiet
התקנה ב-Linux
- פותחים טרמינל עם הרשאות root או sudo.
מריצים את הפקודה הבאה:
sudo sh -c "$(curl -fsSlL [https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh](https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh))" install_unix.sh
מקורות מידע נוספים להתקנה
אפשרויות התקנה נוספות מפורטות במדריך ההתקנה.
הגדרת סוכן Bindplane להטמעת Syslog ושליחה ל-Google SecOps
פותחים את קובץ התצורה:
- מאתרים את הקובץ
config.yaml. בדרך כלל, הוא נמצא בספרייה/opt/observiq-otel-collector/config.yamlב-Linux או בספריית ההתקנה ב-Windows. - פותחים את הקובץ באמצעות כלי לעריכת טקסט (לדוגמה,
nano,viאו פנקס הרשימות).
- מאתרים את הקובץ
עורכים את הקובץ
config.yamlבאופן הבא:receivers: udplog: listen_address: "0.0.0.0:514" exporters: chronicle/sophos_firewall: 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: '/path/to/ingestion-authentication-file.json' customer_id: '<CUSTOMER_ID>' endpoint: chronicle.googleapis.com log_type: SOPHOS_FIREWALL raw_log_field: body ingestion_labels: service: pipelines: logs/sophos_fw_to_chronicle: receivers: - udplog exporters: - chronicle/sophos_firewall
- מחליפים את היציאה ואת כתובת ה-IP לפי הצורך בתשתית שלכם.
- מחליפים את
<LOCATION>באזור של מכונת Google SecOps (לדוגמה,us,europeאוasia-southeast1). המייצא מוסיף את הערך הזה בתחילתchronicle.googleapis.com. - מחליפים את
<PROJECT_NUMBER>במספר הפרויקט שמופיע בדף IAM & Admin > Settings. - מחליפים את
<CUSTOMER_ID>במספר הלקוח בפועל. - מעדכנים את
/path/to/ingestion-authentication-file.jsonלנתיב שבו נשמר קובץ המפתח של חשבון השירות (אפשרות 1).
מייצא API להטמעה מדור קודם
אם אתם משתמשים בקובץ האימות להטמעת נתונים מאפשרות 2, החליפו את הבלוק
exportersבבלוק הבא. מגדירים אתcreds_file_pathלנתיב של קובץ האימות להטמעת נתונים. אם המכונה נמצאת מחוץ לארה"ב, מחליפים אתmalachiteingestion-pa.googleapis.comבנקודת הקצה האזורית (לדוגמה,europe-malachiteingestion-pa.googleapis.com).exporters: chronicle/sophos_firewall: compression: gzip creds_file_path: '/path/to/ingestion-authentication-file.json' customer_id: '<CUSTOMER_ID>' endpoint: malachiteingestion-pa.googleapis.com log_type: SOPHOS_FIREWALL raw_log_field: body ingestion_labels:
מפעילים מחדש את הסוכן של Bindplane כדי להחיל את השינויים.
כדי להפעיל מחדש את הסוכן של Bindplane ב-Linux, מריצים את הפקודה הבאה:
sudo systemctl restart observiq-otel-collectorכדי להפעיל מחדש את הסוכן של Bindplane ב-Windows, אפשר להשתמש במסוף Services או להזין את הפקודה הבאה:
net stop observiq-otel-collector && net start observiq-otel-collector
הגדרת העברת syslog ב-Sophos Firewall
הוספת שרת syslog
- נכנסים למסוף הניהול באינטרנט של Sophos Firewall.
- עוברים אל שירותי מערכת > הגדרות יומן.
- גוללים למטה לקטע שרתי Syslog.
לוחצים על הוספה כדי להוסיף שרת syslog חדש.
ממלאים את פרטי ההגדרה הבאים:
- שם: מזינים שם תיאורי (לדוגמה,
Bindplane-SecOps). - כתובת IP/דומיין: מזינים את כתובת ה-IP של המארח של סוכן Bindplane.
- יציאה: מזינים
514(או את היציאה שהגדרתם). - Facility: בוחרים באפשרות DAEMON.
- רמת חומרה: בוחרים באפשרות מידע (מומלץ לרישום מקיף ביומן).
- פורמט: בוחרים באפשרות פורמט רגיל של המכשיר.
- שם: מזינים שם תיאורי (לדוגמה,
לוחצים על Save.
בחירת סוגי היומנים להעברה
- בקטע שרתי Syslog, לוחצים על הרשומה של שרת ה-Syslog
Bindplane-SecOps. בקטע Log type, מפעילים את קטגוריות היומנים שרוצים להעביר:
- חומת אש: כניסות לכללי חומת האש, תעבורת נתונים שנחסמה וחיבורים שאושרו.
- IPS: התראות ואירועים של מערכת למניעת חדירות (IPS).
- אנטי-וירוס: אירועים של זיהוי תוכנות זדוניות.
- אנטי-ספאם: אירועים של זיהוי וסינון ספאם.
- סינון תוכן: אירועים של סינון אתרים וסיווג כתובות URL.
- אירועים: אירועי מערכת, אימות ופעילות ניהולית.
- הגנה על שרת אינטרנט: אירועי WAF.
- הגנה מתקדמת מפני איומים: אירועי זיהוי של Sandstorm ו-ATP.
- אלחוטי: אירועים של נקודת גישה אלחוטית (אם רלוונטי).
- Heartbeat: שינויים בסטטוס של Sophos Security Heartbeat (אם התכונה Synchronized Security מופעלת).
- תקינות המערכת: אירועים שקשורים לתקינות החומרה והתוכנה.
- אימות: אירועי אימות של משתמשים ואדמינים.
- אדמין: פעילות במסוף הניהול.
לוחצים על אישור.
אימות של העברת syslog
- עוברים אל Log viewer (מציג היומנים) במסוף האינטרנט של Sophos Firewall Admin.
- מוודאים שנוצרות רשומות ביומן.
בודקים את יומני הסוכן של Bindplane כדי לוודא שהודעות syslog מתקבלות:
sudo journalctl -u observiq-otel-collector -f
מידע נוסף זמין במאמרי העזרה של Sophos Firewall בנושא syslog.
טבלת מיפוי UDM
| שדה ביומן | מיפוי UDM | לוגיקה |
|---|---|---|
device_id |
intermediary.asset.asset_id |
מיפוי ישיר |
device_serial_id |
intermediary.asset.asset_id |
מיפוי ישיר |
device_model |
intermediary.hostname |
מיפוי ישיר |
device_name |
intermediary.hostname |
מיפוי ישיר |
log_msg |
metadata.description |
מיפוי ישיר |
date_time |
metadata.event_timestamp |
מנותח בתור yyyy-MM-dd HH:mm:ss Z |
timestamp |
metadata.event_timestamp |
מנותח בתור yyyy-MM-ddTHH:mm:ssZ |
log_component |
metadata.product_event_type |
מיפוי ישיר |
log_id |
metadata.product_log_id |
מיפוי ישיר |
client_physical_address |
network.dhcp.chaddr |
מיפוי ישיר |
ipaddress |
network.dhcp.ciaddr |
מיפוי ישיר |
client_host_name |
network.dhcp.client_hostname |
מיפוי ישיר |
user_agent |
network.http.parsed_user_agent |
שינוי שם/מיפוי |
referer |
network.http.referral_url |
מיפוי ישיר |
http_status |
network.http.response_code |
שינוי שם/מיפוי |
status_code |
network.http.response_code |
שינוי שם/מיפוי |
user_agent |
network.http.user_agent |
מיפוי ישיר |
ip_protocol_out |
network.ip_protocol |
מיפוי ישיר |
bytes_received |
network.received_bytes |
שינוי שם/מיפוי |
recv_bytes |
network.received_bytes |
שינוי שם/מיפוי |
packets_received |
network.received_packets |
שינוי שם/מיפוי |
recv_pkts |
network.received_packets |
שינוי שם/מיפוי |
bytes_sent |
network.sent_bytes |
שינוי שם/מיפוי |
sent_bytes |
network.sent_bytes |
שינוי שם/מיפוי |
packets_sent |
network.sent_packets |
שינוי שם/מיפוי |
sent_pkts |
network.sent_packets |
שינוי שם/מיפוי |
duration |
network.session_duration.seconds |
שינוי שם/מיפוי |
domain |
principal.administrative_domain |
שינוי שם/מיפוי |
app_name |
principal.application |
מיפוי ישיר |
application |
principal.application |
מיפוי ישיר |
ipaddress |
principal.ip |
ממוזג |
src_ip |
principal.ip |
ממוזג |
src_country |
principal.location.country_or_region |
מיפוי ישיר |
src_country_code |
principal.location.country_or_region |
מיפוי ישיר |
src_mac |
principal.mac |
ממוזג |
src_trans_ip |
principal.nat_ip |
ממוזג |
tran_src_ip |
principal.nat_ip |
ממוזג |
src_trans_port |
principal.nat_port |
שינוי שם/מיפוי |
tran_src_port |
principal.nat_port |
שינוי שם/מיפוי |
src_port |
principal.port |
שינוי שם/מיפוי |
user_name |
principal.user.email_addresses |
מופה: .*?@.* ← user_name |
user_name |
principal.user.userid |
מיפוי ישיר |
action |
security_result.action |
ממוזג |
status |
security_result.action_details |
מיפוי ישיר |
_about0 |
security_result.detection_fields |
ממוזג |
_about2 |
security_result.detection_fields |
ממוזג |
activityname_label |
security_result.detection_fields |
ממוזג |
appCategory_label |
security_result.detection_fields |
ממוזג |
appTech_label |
security_result.detection_fields |
ממוזג |
app_filter_policy_id_label |
security_result.detection_fields |
ממוזג |
app_is_cloud_label |
security_result.detection_fields |
ממוזג |
app_resolved_by_label |
security_result.detection_fields |
ממוזג |
category_type_label |
security_result.detection_fields |
ממוזג |
con_event_label |
security_result.detection_fields |
ממוזג |
con_id_label |
security_result.detection_fields |
ממוזג |
connevent_label |
security_result.detection_fields |
ממוזג |
connid_label |
security_result.detection_fields |
ממוזג |
dst_zone_type_label |
security_result.detection_fields |
ממוזג |
dstzonetype_label |
security_result.detection_fields |
ממוזג |
ether_type_label |
security_result.detection_fields |
ממוזג |
exceptions_label |
security_result.detection_fields |
ממוזג |
gw_id_request_label |
security_result.detection_fields |
ממוזג |
gw_name_request_label |
security_result.detection_fields |
ממוזג |
hb_health_label |
security_result.detection_fields |
ממוזג |
hb_status_label |
security_result.detection_fields |
ממוזג |
http_category_label |
security_result.detection_fields |
ממוזג |
http_category_type_label |
security_result.detection_fields |
ממוזג |
in_display_interface_label |
security_result.detection_fields |
ממוזג |
in_interface_label |
security_result.detection_fields |
ממוזג |
log_component_label |
security_result.detection_fields |
ממוזג |
log_occurrence_label |
security_result.detection_fields |
ממוזג |
log_subtype_label |
security_result.detection_fields |
ממוזג |
log_type_label |
security_result.detection_fields |
ממוזג |
log_version_label |
security_result.detection_fields |
ממוזג |
nat_rule_id_label |
security_result.detection_fields |
ממוזג |
nat_rule_name_label |
security_result.detection_fields |
ממוזג |
out_display_interface_label |
security_result.detection_fields |
ממוזג |
out_interface_label |
security_result.detection_fields |
ממוזג |
qualifier_label |
security_result.detection_fields |
ממוזג |
reason_label |
security_result.detection_fields |
ממוזג |
risk_label |
security_result.detection_fields |
ממוזג |
src_zone_type_label |
security_result.detection_fields |
ממוזג |
srczonetype_label |
security_result.detection_fields |
ממוזג |
used_quota_label |
security_result.detection_fields |
ממוזג |
web_policy_id_label |
security_result.detection_fields |
ממוזג |
fw_rule_id |
security_result.rule_id |
מיפוי ישיר |
fw_rule_name |
security_result.rule_name |
מיפוי ישיר |
fw_rule_section |
security_result.rule_set |
מיפוי ישיר |
fw_rule_type |
security_result.rule_type |
מיפוי ישיר |
priority |
security_result.severity |
מיפוי: "INFORMATION", "NOTIFICATION", "NOTICE" ← INFORMATIONAL, "ERROR","WARNING" ← `... |
reason |
security_result.summary |
מיפוי ישיר |
domain |
target.hostname |
מיפוי ישיר |
dst_ip |
target.ip |
ממוזג |
dst_country |
target.location.country_or_region |
מיפוי ישיר |
dst_country_code |
target.location.country_or_region |
מיפוי ישיר |
dst_mac |
target.mac |
ממוזג |
dst_trans_ip |
target.nat_ip |
ממוזג |
tran_dst_ip |
target.nat_ip |
ממוזג |
dst_trans_port |
target.nat_port |
שינוי שם/מיפוי |
tran_dst_port |
target.nat_port |
שינוי שם/מיפוי |
dst_port |
target.port |
שינוי שם/מיפוי |
url |
target.url |
מיפוי ישיר |
| לא רלוונטי | extensions.auth.type |
קבוע: VPN |
| לא רלוונטי | metadata.event_type |
קבוע: NETWORK_HTTP |
| לא רלוונטי | metadata.product_name |
קבוע: SOPHOS Firewall |
| לא רלוונטי | metadata.vendor_name |
קבוע: SOPHOS |
| לא רלוונטי | network.application_protocol |
קבוע: DHCP |
| לא רלוונטי | security_result.severity |
קבוע: INFORMATIONAL |
date_time |
event.idm.read_only_udm.metadata.event_timestamp |
מופה מיומן השינויים |
referer |
network.http.referer_url |
מופה מיומן השינויים |
device_serial_id |
principal.asset.asset_id |
מופה מיומן השינויים |
application_category, application_risk and application_technology |
security_result.detection_fields |
מופה מיומן השינויים |
user_name |
event.idm.read_only_udm.principal.user.userid |
מופה מיומן השינויים |
device_id |
event.idm.read_only_udm.principal.asset.asset_id |
מופה מיומן השינויים |
יומן שינויים
הצגת יומן השינויים של המנתח הזה
הבעיה עדיין לא נפתרה? קבלת תשובות מחברי הקהילה וממומחי Google SecOps.