איסוף יומני WAF של VMware Avi Load Balancer

נתמכים ב:

במסמך הזה מוסבר איך להטמיע יומני WAF של VMware Avi מאזן עומסים ב-Google Security Operations באמצעות סוכן Bindplane.

‫VMware Avi Load Balancer (לשעבר Avi Networks) הוא בקר לשליחת אפליקציות שיוצר הודעות syslog לאירועי WAF, יומני חיבורים של לקוחות ופעילות של שירות וירטואלי. המנתח מחלץ שדות מיומנים בפורמט syslog וממפה אותם למודל הנתונים המאוחד (UDM).

לפני שמתחילים

חשוב לוודא שיש לכם את הדברים הבאים:

  • מכונה של Google SecOps
  • ‫Windows Server 2016 ואילך, או מארח Linux עם systemd
  • קישוריות רשת בין סוכן Bindplane לבין בקר AVI
  • אם אתם משתמשים בשרת proxy, ודאו שהיציאות של חומת האש פתוחות בהתאם לדרישות של סוכן Bindplane.
  • גישה עם הרשאות ל-VMware AVI מאזן עומסים (LB)

קבלת פרטי הכניסה ל-Google SecOps בשביל הסוכן של Bindplane

כדי לאמת את סוכן Bindplane ב-Google SecOps, בוחרים באחת מהשיטות הבאות:

  • פריסות חדשות: משתמשים ב-Chronicle API (אפשרות 1).
  • פריסות קודמות: ממשיכים להשתמש בקובץ האימות להטמעת נתונים (אפשרות 2) עד שה-Ingestion API יופסק ב-20 ביולי 2027.
  1. נכנסים למסוףGoogle Cloud ובוחרים את הפרויקט ב- Google Cloud שמקושר למכונה של Google SecOps.
  2. נכנסים לדף IAM & Admin > Service Accounts.
  3. לוחצים על Create service account.
  4. מזינים את פרטי ההגדרה הבאים:
    • Service account name: מזינים שם לחשבון (לדוגמה, bindplane-ingest).
    • Service account description: מזינים תיאור (לדוגמה, Bindplane agent log ingestion).
  5. לוחצים על Create and continue.
  6. בקטע Grant this service account access to project, לוחצים על Select a role ובוחרים באפשרות Chronicle Editor.
  7. לוחצים על המשך ואז על סיום.
  8. לוחצים על חשבון השירות שיצרתם ועוברים לכרטיסייה Keys.
  9. לוחצים על Add key > Create new key.
  10. בוחרים באפשרות JSON ולוחצים על Create. קובץ המפתח יורד למחשב.
  11. שומרים את קובץ המפתח בתור 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 כך שיתאים לנתיב שבו שומרים אותו.
  12. עוברים אל IAM & Admin > Settings ומעתיקים את הערך של Project number. תצטרכו אותו כדי להגדיר את הייצוא.

אפשרות 2: הורדת קובץ האימות להטמעת נתונים (מדור קודם)

  1. נכנסים למסוף Google SecOps.
  2. עוברים אל הגדרות > ניהול נתונים > סוכני איסוף. אם אתם משתמשים בפלטפורמת SIEM בלבד, עוברים אל הגדרות > סוכני איסוף.
  3. מורידים את קובץ האימות להטמעת נתונים.
  4. שומרים את הקובץ באופן מאובטח במערכת שבה יותקן סוכן Bindplane.

איך מקבלים מספר לקוח ב-Google SecOps

  1. נכנסים למסוף Google SecOps.
  2. עוברים אל הגדרות > ניהול > פרופיל. אם אתם משתמשים בפלטפורמה של SIEM בלבד, עוברים אל הגדרות > פרופיל.
  3. מעתיקים את מספר הלקוח מהקטע פרטי הארגון ושומרים אותו.

התקנת הסוכן של Bindplane

מתקינים את הסוכן של Bindplane במערכת ההפעלה Windows או Linux לפי ההוראות הבאות.

התקנת חלונות

  1. פותחים את שורת הפקודה או את PowerShell כאדמין.
  2. מריצים את הפקודה הבאה:

    msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
    
  3. מחכים שההתקנה תסתיים.

  4. כדי לוודא שההתקנה בוצעה, מריצים את הפקודה:

    sc query observiq-otel-collector
    

    השירות אמור להופיע כ-RUNNING.

התקנה ב-Linux

  1. פותחים טרמינל עם הרשאות root או sudo.
  2. מריצים את הפקודה הבאה:

    sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
    
  3. מחכים שההתקנה תסתיים.

  4. כדי לוודא שההתקנה בוצעה, מריצים את הפקודה:

    sudo systemctl status observiq-otel-collector
    

    השירות אמור להופיע כפעיל (פועל).

מקורות מידע נוספים להתקנה

לאפשרויות התקנה נוספות ולפתרון בעיות, קראו את מדריך ההתקנה של סוכן Bindplane.

הגדרת סוכן Bindplane להטמעת syslog ושליחה ל-Google SecOps

איתור קובץ התצורה

  • Linux:

    sudo nano /opt/observiq-otel-collector/config.yaml
    
  • Windows:

    notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
    

עריכת קובץ התצורה

  • מחליפים את כל התוכן של config.yaml בהגדרות הבאות:

    receivers:
      udplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/vmware_avinetworks_iwaf:
        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: '<customer_id>'
        endpoint: chronicle.googleapis.com
        log_type: VMWARE_AVINETWORKS_IWAF
        raw_log_field: body
    
    service:
      pipelines:
        logs/vmware_avinetworks_iwaf_to_chronicle:
          receivers:
            - udplog
          exporters:
            - chronicle/vmware_avinetworks_iwaf
    

פרמטרים להגדרה

מחליפים את ה-placeholders הבאים:

  • הגדרת המקלט:

    • ‫listen_address: כתובת ה-IP והיציאה להאזנה:
      • ‫0.0.0.0 כדי להאזין בכל הממשקים (מומלץ)
      • יציאה 514 היא יציאת syslog הרגילה (נדרש שורש ב-Linux; יש להשתמש ב-1514 ללא שורש)
  • הגדרת הייצוא:

    • ‫creds_file_path: הנתיב המלא לקובץ המפתח של חשבון השירות בפורמט JSON (אפשרות 1):
      • Linux: /opt/observiq-otel-collector/ingestion-auth.json
      • Windows: C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • ‫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.

מייצא API להטמעה מדור קודם

  • אם אתם משתמשים בקובץ האימות להטמעת נתונים מאפשרות 2, החליפו את הבלוק exporters בבלוק הבא. מגדירים את creds_file_path לנתיב של קובץ האימות להטמעת נתונים. אם המכונה נמצאת מחוץ לארה"ב, מחליפים את malachiteingestion-pa.googleapis.com בנקודת הקצה האזורית (לדוגמה, europe-malachiteingestion-pa.googleapis.com).

    exporters:
      chronicle/vmware_avinetworks_iwaf:
        compression: gzip
        creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
        customer_id: '<customer_id>'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: VMWARE_AVINETWORKS_IWAF
        raw_log_field: body
    

שמירת קובץ התצורה

  • אחרי שמסיימים לערוך, שומרים את הקובץ:
    • Linux: מקישים על Ctrl+O, ואז על Enter, ואז על Ctrl+X
    • Windows: לוחצים על קובץ > שמירה

מפעילים מחדש את הסוכן של Bindplane כדי להחיל את השינויים.

  • כדי להפעיל מחדש את הסוכן של Bindplane ב-Linux, מריצים את הפקודה הבאה:

    sudo systemctl restart observiq-otel-collector
    
    1. מוודאים שהשירות פועל:

      sudo systemctl status observiq-otel-collector
      
    2. בודקים אם יש שגיאות ביומנים:

      sudo journalctl -u observiq-otel-collector -f
      
  • כדי להפעיל מחדש את הסוכן של Bindplane ב-Windows, בוחרים באחת מהאפשרויות הבאות:

    • שורת הפקודה או PowerShell כאדמין:

      net stop observiq-otel-collector && net start observiq-otel-collector
      
    • מסוף השירותים:

      1. לוחצים על Win+R, מקלידים services.msc ולוחצים על Enter.
      2. מאתרים את observIQ OpenTelemetry Collector.
      3. לוחצים לחיצה ימנית ובוחרים באפשרות הפעלה מחדש.
      4. מוודאים שהשירות פועל:

        sc query observiq-otel-collector
        
      5. בודקים אם יש שגיאות ביומנים:

        type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
        

הגדרת רישום ביומן חיצוני ל-VMware AVI WAF

  1. נכנסים לממשק המשתמש באינטרנט של AVI Controller.
  2. עוברים אל Templates > Profiles > Analytics.
  3. יוצרים פרופיל ניתוח נתונים חדש או בוחרים פרופיל קיים כדי לערוך אותו.
  4. במסך Edit Analytics Profile, בוחרים בכרטיסייה Client Log.
  5. גוללים לקטע רישום ביומן חיצוני ובוחרים בתיבת הסימון העברת יומנים בסטרימינג לשרת חיצוני.
  6. מזינים את פרטי ההגדרה הבאים:
    • פרוטוקול סטרימינג של יומנים: בוחרים באפשרות UDP.
    • יציאת ברירת המחדל: מזינים 514.
    • ‫Types of Logs to Stream: בוחרים באפשרות All Logs.
    • לוחצים על הכפתור הוספה בקטע שרתים.
    • IP Address: מזינים את כתובת ה-IP של סוכן Bindplane.
    • יציאה: מזינים את מספר היציאה של סוכן Bindplane (לדוגמה, 514).
  7. לוחצים על Save.
  8. מחילים את ההגדרות על השירותים הווירטואליים שרוצים להעביר את נתוני היומנים שלהם בסטרימינג.

טבלת מיפוי UDM

שדה ביומן מיפוי UDM לוגיקה
server_name about.hostname מיפוי ישיר
_field additional.fields ממוזג
additional_field_label additional.fields ממוזג
cacheable_label additional.fields ממוזג
compression_label additional.fields ממוזג
host_label additional.fields ממוזג
http_version_label additional.fields ממוזג
is_internal_label additional.fields ממוזג
key additional.fields מופו: `"all_request_headers_pragma", "all_request_headers_accept", "all_request_headers_co...
match_element_label additional.fields ממוזג
match_value_label additional.fields ממוזג
persistent_session_id_label additional.fields ממוזג
request_headers_label additional.fields ממוזג
request_id_label additional.fields ממוזג
response_content_type_label additional.fields ממוזג
response_headers_label additional.fields ממוזג
response_time_first_byte_label additional.fields ממוזג
response_time_last_byte_label additional.fields ממוזג
rule_log_msg_label additional.fields ממוזג
rule_log_phase_label additional.fields ממוזג
rule_log_rule_group_label additional.fields ממוזג
rule_log_rule_id_label additional.fields ממוזג
rule_log_rule_name_label additional.fields ממוזג
server_connection_reused_label additional.fields ממוזג
server_response_code_label additional.fields ממוזג
server_response_length_label additional.fields ממוזג
server_response_time_first_byte_label additional.fields ממוזג
server_response_time_last_byte_label additional.fields ממוזג
server_rtt_label additional.fields ממוזג
server_side_redirect_uri_label additional.fields ממוזג
server_ssl_session_id_label additional.fields ממוזג
servers_tried_label additional.fields ממוזג
ssl_cipher_label additional.fields ממוזג
ssl_session_id_label additional.fields ממוזג
ssl_version_label additional.fields ממוזג
tag_label additional.fields ממוזג
value_label additional.fields ממוזג
waf_log.latency_request_header_phase_label additional.fields ממוזג
waf_log_latency_request_body_phase_label additional.fields ממוזג
waf_log_latency_response_body_phase_label additional.fields ממוזג
waf_log_latency_response_header_phase_label additional.fields ממוזג
waf_log_rules_configured_label additional.fields ממוזג
waf_log_rules_executed_label additional.fields ממוזג
service_engine intermediary.hostname מיפוי ישיר
intermediary_ip intermediary.ip ממוזג
server_src_port intermediary.port מיפוי ישיר
report_timestamp metadata.event_timestamp מנותח בתור ISO8601
timestamp metadata.event_timestamp מנותח בתור ISO8601
has_principal metadata.event_type מיפוי: true ← NETWORK_HTTP, true ← NETWORK_CONNECTION, true ← STATUS_UPDATE
log_id metadata.product_log_id מיפוי ישיר
log_id_syslog metadata.product_log_id מיפוי ישיר
http_method network.http.method מיפוי ישיר
method network.http.method מיפוי ישיר
http_user_agent network.http.parsed_user_agent מיפוי ישיר
http_referer network.http.referral_url מיפוי ישיר
referer network.http.referral_url מיפוי ישיר
http_status network.http.response_code מיפוי ישיר
response_code network.http.response_code מיפוי ישיר
http_user_agent network.http.user_agent מיפוי ישיר
user_agent network.http.user_agent מיפוי ישיר
http_bytes_received network.received_bytes מיפוי ישיר
response_length network.received_bytes מיפוי ישיר
http_bytes_sent network.sent_bytes מיפוי ישיר
request_length network.sent_bytes מיפוי ישיר
client_rtt network.session_duration.seconds מיפוי ישיר
duration network.session_duration.seconds מיפוי ישיר
server_conn_src_ip observer.ip ממוזג
client_ip principal.asset.ip ממוזג
source_ip principal.asset.ip מופה: client_ip ← source_ip
src_ip principal.asset.ip ממוזג
client_ip principal.ip ממוזג
source_ip principal.ip מופה: client_ip ← source_ip
src_ip principal.ip ממוזג
client_src_port principal.port מיפוי ישיר
user principal.user.userid מיפוי ישיר
request_state security_result.description מיפוי ישיר
_field security_result.detection_fields ממוזג
waf_status_label security_result.detection_fields ממוזג
dest_ip target.asset.ip ממוזג
server_ip target.asset.ip ממוזג
vs_ip target.asset.ip ממוזג
vs_name_syslog target.hostname מיפוי ישיר
dest_ip target.ip ממוזג
server_ip target.ip ממוזג
vs_ip target.ip ממוזג
client_dest_port target.port שינוי שם/מיפוי
port target.port מיפוי ישיר
server_dest_port target.port שינוי שם/מיפוי
pool_label target.resource.attribute.labels ממוזג
pool_name_label target.resource.attribute.labels ממוזג
virtualservice_label target.resource.attribute.labels ממוזג
redirected_uri target.url מיפוי ישיר
uri_query target.url מיפוי ישיר
url target.url מיפוי ישיר
לא רלוונטי metadata.event_type קבוע: NETWORK_HTTP
לא רלוונטי metadata.product_name קבוע: AVI Load Balancer
לא רלוונטי metadata.vendor_name קבוע: Vmware
לא רלוונטי network.direction קבוע: INBOUND
לא רלוונטי network.http.parsed_user_agent קבוע: parseduseragent

הבעיה עדיין לא נפתרה? קבלת תשובות מחברי הקהילה וממומחי Google SecOps.