איסוף יומני DNS של Cisco Umbrella

גרסת המנתח: 17.0

נתמך ב:

במאמר הזה מוסבר איך להטמיע יומני DNS של Cisco Umbrella ב-Google Security Operations באמצעות Amazon S3. ‫Cisco Umbrella הוא שירות אבטחה מבוסס-ענן שמספק הגנה בשכבת ה-DNS, שער גישה מאובטח (SWG) ופונקציונליות של מתווך מבוסס-ענן לאבטחת גישה (CASB). יומני DNS של Umbrella מתעדים את פעילות שאילתות ה-DNS ברשת, כולל הדומיינים המבוקשים, קודי התגובה ופעולות של מדיניות האבטחה שננקטו בכל בקשה.

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

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

  • מופע של Google SecOps.
  • גישה מורשית למרכז הבקרה של Cisco Umbrella עם תפקיד אדמין מלא או אדמין לקריאה בלבד.
  • גישה עם הרשאות ל-AWS (S3, ‏ IAM).

הגדרת ייצוא של יומני Cisco Umbrella ל-Amazon S3

ב-Cisco Umbrella יש תמיכה מובנית בייצוא של יומני DNS לקטגוריית Amazon S3 שאתם מנהלים.

  1. נכנסים למרכז הבקרה של Cisco Umbrella בכתובת https://dashboard.umbrella.com.
  2. עוברים אל Admin > Log Management.
  3. לוחצים על שימוש בקטגוריית Amazon S3 שמנוהלת על ידי החברה.
  4. מזינים את פרטי ההגדרה הבאים:
    • ‫Bucket Name: מזינים את השם של קטגוריית S3 שתיצרו בקטע הבא (לדוגמה, umbrella-dns-logs).
    • ‫Region: בוחרים את האזור ב-AWS שבו תיווצר הקטגוריה.
  5. מעתיקים את מזהה החשבון ב-AWS ואת המזהה החיצוני שמוצגים ב-Umbrella. תצטרכו את הפרטים האלה כדי להגדיר את מדיניות האמון של IAM ב-AWS.
  6. לוחצים על Save.

הגדרת קטגוריית AWS S3 ו-IAM ל-Google SecOps

  1. יוצרים קטגוריה של Amazon S3 לפי המדריך למשתמש: יצירת קטגוריה
  2. שומרים את שם הקטגוריה ואת האזור שלה לעיון בעתיד (לדוגמה, umbrella-dns-logs).
  3. יוצרים משתמש לפי המדריך למשתמש: יצירת משתמש IAM.
  4. בוחרים את המשתמש שנוצר.
  5. לוחצים על הכרטיסייה פרטי כניסה מאובטחים.
  6. לוחצים על Create Access Key בקטע Access Keys.
  7. בקטע Use case, בוחרים באפשרות Third-party service.
  8. לוחצים על הבא.
  9. אופציונלי: מוסיפים תג תיאור.
  10. לוחצים על יצירת מפתח גישה.
  11. לוחצים על Download CSV file כדי לשמור את Access Key ואת Secret Access Key לשימוש עתידי.
  12. לוחצים על סיום.
  13. לוחצים על הכרטיסייה הרשאות.
  14. בקטע מדיניות הרשאות, לוחצים על הוספת הרשאות.
  15. לוחצים על הוספת הרשאות.
  16. בוחרים באפשרות Attach policies directly.
  17. מחפשים את המדיניות AmazonS3FullAccess.
  18. בוחרים את המדיניות.
  19. לוחצים על הבא.
  20. לוחצים על הוספת הרשאות.

הגדרת המדיניות והתפקיד ב-IAM לגישה ל-Cisco Umbrella S3

כדי לכתוב יומנים לקטגוריית S3, ב-Cisco Umbrella נדרש תפקיד IAM חוצה-חשבונות.

  1. במסוף AWS, עוברים אל IAM > Policies > Create policy > הכרטיסייה JSON.
  2. מעתיקים ומדביקים את המדיניות הבאה (מחליפים את umbrella-dns-logs אם הזנתם שם קטגוריה אחר):

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowUmbrellaPutObjects",
          "Effect": "Allow",
          "Action": [
            "s3:PutObject",
            "s3:GetBucketLocation"
          ],
          "Resource": [
            "arn:aws:s3:::umbrella-dns-logs",
            "arn:aws:s3:::umbrella-dns-logs/*"
          ]
        }
      ]
    }
    
  3. לוחצים על Next > Create policy. נותנים לו את השם UmbrellaS3WritePolicy.

  4. עוברים אל IAM > Roles > Create role > Custom trust policy.

  5. מדביקים את מדיניות האמון הבאה, ומחליפים את UMBRELLA_AWS_ACCOUNT_ID ואת UMBRELLA_EXTERNAL_ID בערכים שהועתקו ממרכז הבקרה של Umbrella:

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Principal": {
            "AWS": "arn:aws:iam::UMBRELLA_AWS_ACCOUNT_ID:root"
          },
          "Action": "sts:AssumeRole",
          "Condition": {
            "StringEquals": {
              "sts:ExternalId": "UMBRELLA_EXTERNAL_ID"
            }
          }
        }
      ]
    }
    
  6. לוחצים על הבא.

  7. מצרפים את המדיניות UmbrellaS3WritePolicy.

  8. נותנים לתפקיד את השם UmbrellaS3Role ולוחצים על יצירת תפקיד.

  9. מעתיקים את ה-Role ARN כדי להשתמש בו במרכז הבקרה של Umbrella.

אימות הייצוא של יומן Cisco Umbrella

  1. חוזרים למרכז הבקרה של Cisco Umbrella.
  2. עוברים אל Admin > Log Management.
  3. מזינים את ה-ARN של התפקיד מתפקיד ה-IAM שיצרתם.
  4. לוחצים על Verify כדי לאשר ש-Umbrella יכול לכתוב לקטגוריית S3.
  5. אחרי שהאימות יושלם, Umbrella תתחיל לייצא את יומני ה-DNS לקטגוריית S3.

הגדרת פיד ב-Google SecOps כדי להטמיע יומני DNS של Cisco Umbrella

  1. עוברים אל הגדרות > ניהול נתונים > פידים. אם אתם משתמשים בפלטפורמה של SIEM בלבד, עוברים אל הגדרות > פידים.
  2. לוחצים על + הוספת פיד חדש.
  3. בשדה שם הפיד, מזינים שם לפיד (לדוגמה, Cisco Umbrella DNS logs).
  4. בוחרים באפשרות Amazon S3 V2 בתור סוג המקור.
  5. בוחרים באפשרות Cisco Umbrella DNS בתור סוג היומן.
  6. לוחצים על הבא.
  7. מציינים ערכים לפרמטרים הבאים של הקלט:

    • S3 URI: s3://umbrella-dns-logs/dnslogs/
    • אפשרויות למחיקת המקור: בוחרים את אפשרות המחיקה הרצויה.
    • גיל הקובץ המקסימלי: כולל קבצים ששונו במספר הימים האחרונים. ברירת המחדל היא 180 ימים.
    • מזהה מפתח הגישה: מפתח גישה של משתמש עם גישה לקטגוריית S3.
    • מפתח גישה סודי: מפתח סודי של משתמש עם גישה לקטגוריית S3.
    • מרחב השמות של הנכס: מרחב השמות של הנכס.
    • תוויות הטמעה: התווית שנוספה לאירועים מהפיד הזה.
  8. לוחצים על הבא.

  9. בודקים את הגדרות הפיד החדש במסך סיום ולוחצים על שליחה.

טבלת מיפוי UDM

שדה ביומן מיפוי UDM Logic (פונקציה לוגית)
action security_result.action_details הערך נלקח מהשדה action אם הוא קיים ביומני JSON, או מהשדה column6 או column7 ביומני CSV, ומומר לאותיות רישיות (ALLOW או BLOCK).
amp.disposition security_result.detection_fields[].key הערך הוא ampDisposition.
amp.disposition security_result.detection_fields[].value הערך נלקח מהשדה amp.disposition.
amp.malware security_result.detection_fields[].key הערך הוא ampMalware.
amp.malware security_result.detection_fields[].value הערך נלקח מהשדה amp.malware.
amp.score security_result.detection_fields[].key הערך הוא ampScore.
amp.score security_result.detection_fields[].value הערך נלקח מהשדה amp.score.
blocked_categories security_result.category_details הערך נלקח מהשדה blocked_categories.
blockedfiletype security_result.detection_fields[].key הערך הוא egress type.
blockedfiletype security_result.detection_fields[].value הערך נלקח מהשדה blockedfiletype.
bundleid additional.fields[].key הערך הוא bundleid.
bundleid additional.fields[].value.string_value הערך נלקח מהשדה bundleid.
categories[] security_result.category_details הערך נלקח מהשדה categories[].label.
column1 metadata.event_timestamp.seconds הערך מנותח מהשדה column1 כחותמת זמן. ביומני שרת proxy, אם השדות date ו-time קיימים, הם משולבים ומנותחים כחותמת זמן.
column10 network.http.user_agent הערך נלקח מהשדה column10.
column10 additional.fields[].value.string_value הערך נלקח מהשדה column10.
column11 target.port הערך נלקח מהשדה column11.
column12 principal.resource.name הערך נלקח מהשדה column12.
column13 security_result.rule_id הערך נלקח מהשדה column13.
column14 security_result.action_details הערך נלקח מהשדה column14.
column2 principal.user.user_display_name הערך נלקח מהשדה column2.
column2 principal.user.userid הערך נלקח מהשדה column2.
column2 principal.location.name הערך נלקח מהשדה column2.
column3 principal.hostname הערך נלקח מהשדה column3.
column3 principal.user.product_object_id הערך נלקח מהשדה column3.
column3 principal.location.city הערך נלקח מהשדה column3.
column3 additional.fields[].value.string_value הערך נלקח מהשדה column3.
column4 principal.asset.ip הערך נלקח מהשדה column4.
column4 principal.ip הערך נלקח מהשדה column4.
column4 principal.port הערך נלקח מהשדה column4.
column5 principal.asset.ip הערך נלקח מהשדה column5.
column5 principal.ip הערך נלקח מהשדה column5.
column5 target.asset.ip הערך נלקח מהשדה column5.
column5 target.ip הערך נלקח מהשדה column5.
column6 security_result.action_details הערך נלקח מהשדה column6.
column6 target.port הערך נלקח מהשדה column6.
column7 network.received_bytes הערך נלקח מהשדה column7.
column7 additional.fields[].value.string_value הערך נלקח מהשדה column7.
column8 principal.asset.ip הערך נלקח מהשדה column8.
column8 principal.ip הערך נלקח מהשדה column8.
column8 target.url הערך נלקח מהשדה column8.
column9 principal.port הערך נלקח מהשדה column9.
column9 network.http.referral_url הערך נלקח מהשדה column9.
data_center_name principal.resource.name הערך נלקח מהשדה data_center_name.
datacenter.label security_result.detection_fields[].key הערך הוא datacenter label.
datacenter.label security_result.detection_fields[].value הערך נלקח מהשדה datacenter.label.
destinationip target.asset.ip הערך נלקח מהשדה destinationip.
destinationip target.ip הערך נלקח מהשדה destinationip.
direction network.direction הערך נלקח מהשדה direction ומומר לאותיות רישיות.
domain network.dns.questions[].name הערך נלקח מהשדה domain, והנקודה בסוף מוסרת אם היא קיימת.
dstPort target.port הערך נלקח מהשדה dstPort.
dstip target.asset.ip הערך נלקח מהשדה dstip.
dstip target.ip הערך נלקח מהשדה dstip.
egress.ip security_result.detection_fields[].key הערך הוא egress ip.
egress.ip security_result.detection_fields[].value הערך נלקח מהשדה egress.ip.
egress.type security_result.detection_fields[].key הערך הוא egress type.
egress.type security_result.detection_fields[].value הערך נלקח מהשדה egress.type.
externalip principal.asset.ip הערך נלקח מהשדה externalip.
externalip principal.ip הערך נלקח מהשדה externalip.
forwardingmethod additional.fields[].key הערך הוא forwardingmethod.
forwardingmethod additional.fields[].value.string_value הערך נלקח מהשדה forwardingmethod.
granular_identity principal.user.user_display_name הערך נלקח מהשדה granular_identity אם גם granular_identity וגם most_granular_identity קיימים. אחרת, הוא נגזר מהשדה _policy_identity ומנותח עוד יותר על סמך identityType.
granular_identity principal.user.email_addresses הערך נשלף מהשדה granular_identity באמצעות ביטוי רגולרי.
granular_identity principal.user.first_name הערך נשלף מהשדה granular_identity באמצעות ביטוי רגולרי.
granular_identity principal.user.last_name הערך נשלף מהשדה granular_identity באמצעות ביטוי רגולרי.
granular_identity principal.user.userid הערך נשלף מהשדה granular_identity באמצעות ביטוי רגולרי.
granular_identity principal.hostname הערך נלקח מהשדה granular_identity.
granular_identity principal.location.name הערך נלקח מהשדה granular_identity.
identity_types additional.fields[].value.string_value הערך נלקח מהשדה identity_types.
identities[] principal.user.product_object_id הערך נלקח מהשדה identities[].
identities principal.user.product_object_id הערך נלקח מהשדה identities.
internalip principal.asset.ip הערך נלקח מהשדה internalip.
internalip principal.ip הערך נלקח מהשדה internalip.
isolated.fileaction security_result.detection_fields[].key הערך הוא isolated fileaction.
isolated.fileaction security_result.detection_fields[].value הערך נלקח מהשדה isolated.fileaction.
isolated.state security_result.detection_fields[].key הערך הוא isolated state.
isolated.state security_result.detection_fields[].value הערך נלקח מהשדה isolated.state.
most_granular_identity principal.user.identityType הערך נלקח מהשדה most_granular_identity אם גם granular_identity וגם most_granular_identity קיימים. אחרת, הוא נלקח מהשדה _policy_identity_type.
nat_destination_ip principal.asset.ip הערך נלקח מהשדה nat_destination_ip.
nat_destination_ip principal.ip הערך נלקח מהשדה nat_destination_ip.
odns_categories security_result.category_details הערך נלקח מהשדה odns_categories.
policy.ruleid security_result.rule_id הערך נלקח מהשדה policy.ruleid.
policy.rulesetid security_result.detection_fields[].key הערך הוא rulesetid.
policy.rulesetid security_result.detection_fields[].value הערך נלקח מהשדה policy.rulesetid.
policy.timebasedrule security_result.detection_fields[].key הערך הוא timebasedrule.
policy.timebasedrule security_result.detection_fields[].value הערך נלקח מהשדה policy.timebasedrule.
port target.port הערך נלקח מהשדה port.
query_type_name network.dns.questions[].type החלק המספרי נשלף מהשדה query_type_name באמצעות ביטוי רגולרי ומומר למספר שלם.
query_type_name additional.fields[].value.string_value החלק של המחרוזת שבסוגריים נשלף מהשדה query_type_name באמצעות ביטוי רגולרי.
querytype network.dns.questions[].type הערך נלקח מהשדה querytype וממופה לערך מספרי על סמך סוג רשומת ה-DNS.
referer network.http.referral_url הערך נלקח מהשדה referer.
requestmethod network.http.method הערך נלקח מהשדה requestmethod.
requestsize network.sent_bytes הערך נלקח מהשדה requestsize ומומר למספר שלם ללא סימן.
response additional.fields[].value.string_value הערך נלקח מהשדה response.
responsecode network.http.response_code הערך נלקח מהשדה responsecode.
responsefilename target.file.names הערך נלקח מהשדה responsefilename.
responsesize network.received_bytes הערך נלקח מהשדה responsesize ומומר למספר שלם ללא סימן.
returncode network.dns.response_code הערך נלקח מהשדה returncode ומומר למספר שלם ללא סימן.
securityoverridden additional.fields[].key הערך הוא securityoverridden.
securityoverridden additional.fields[].value.string_value הערך נלקח מהשדה securityoverridden.
sha256 target.file.sha256 הערך נלקח מהשדה sha256.
source_ip principal.asset.ip הערך נלקח מהשדה source_ip אם הוא קיים ביומני JSON, או מהשדה column3 ביומני CSV.
source_ip principal.ip הערך נלקח מהשדה source_ip אם הוא קיים ביומני JSON, או מהשדה column3 ביומני CSV.
srcPort principal.port הערך נלקח מהשדה srcPort.
statuscode network.http.response_code הערך נלקח מהשדה statuscode.
tenantcontrols additional.fields[].key הערך הוא tenantcontrols.
tenantcontrols additional.fields[].value.string_value הערך נלקח מהשדה tenantcontrols.
timestamp metadata.event_timestamp.seconds הערך מנותח מהשדה timestamp כחותמת זמן.
tunnel_name additional.fields[].key הערך הוא tunnel_name.
tunnel_name additional.fields[].value.string_value הערך נלקח מהשדה tunnel_name.
tunnel_type metadata.product_event_type הערך נלקח מהשדה tunnel_type.
type additional.fields[].key הערך הוא type.
type additional.fields[].value.string_value הערך נלקח מהשדה type.
url target.url הערך נלקח מהשדה url.
useragent network.http.user_agent הערך נלקח מהשדה useragent.
verdict security_result.action_details הערך נלקח מהשדה verdict.
warnstatus security_result.detection_fields[].key הערך הוא warnstatus.
warnstatus security_result.detection_fields[].value הערך נלקח מהשדה warnstatus. הערך הוא DNS Lookup Type. החלק של המחרוזת שבתוך הסוגריים נשלף מהשדה query_type_name באמצעות ביטוי רגולרי, או שהוא מחרוזת ריקה אם השדה לא קיים. הערך הוא DNS request and response were made., והוא נקבע על סמך הנוכחות של שדות מסוימים: NETWORK_DNS אם question.name קיים, NETWORK_CONNECTION אם גם principal.ip וגם target.ip קיימים, STATUS_UPDATE אם רק principal.ip קיים, או GENERIC_EVENT אחרת. הערך הוא UMBRELLA_DNS. הערך הוא Umbrella DNS. הערך הוא Cisco. הערך מוגדר בהתחלה כ-DNS. אם requestmethod היא שיטת HTTP תקינה, היא משתנה ל-HTTP. החלק המספרי נשלף מהשדה query_type_name באמצעות ביטוי רגולרי ומומר למספר שלם, או שהוא נגזר מהשדה querytype וממופה לערך מספרי על סמך סוג רשומת ה-DNS. הערך נגזר מהשדה useragent או column10 באמצעות המסנן parseduseragent. הערך נלקח מהחלק האחרון של השדה column3 אחרי פיצול באמצעות פסיקים, או שהוא מחרוזת ריקה אם השדה לא קיים. הערך נלקח מהחלק הראשון של השדה column3 אחרי פיצול לפי פסיקים, או שהוא נלקח מהשדה column2 אם השדה column3 לא קיים. הערך נשלף מהשדה column2 או column3 באמצעות ביטוי רגולרי. הערך נשלף מהשדה column2 או column3 באמצעות ביטוי רגולרי. הערך נשלף מהשדה column2 או column3 באמצעות ביטוי רגולרי. הערך נשלף מהשדה column2 או column3 באמצעות ביטוי רגולרי. הערך נגזר מהשדה action,‏ column6,‏ column7 או verdict ומומר לאותיות רישיות (ALLOW או BLOCK). הערך מוגדר כ-NETWORK_MALICIOUS אם _categories מכיל את Malware, או כ-NETWORK_SUSPICIOUS אם _categories מכיל את Potentially Harmful.

יומן שינויים

הצגת יומן השינויים של המנתח הזה

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