נתונים מועשרים בהקשר בכללים

נתמכים ב:

כדי לסייע לאנליסטים של אבטחה במהלך חקירה, Google Security Operations מקבל נתונים לפי הקשר ממקורות שונים, מנתח את הנתונים שהתקבלו ומספק הקשר נוסף לגבי פריטי מידע בסביבת הלקוח. במאמר הזה מוסבר איך מנתחי נתונים משתמשים בנתונים שמועשרים בהקשר בכללים של Detection Engine.

מידע נוסף על העשרת נתונים זמין במאמר איך Google SecOps מעשירה נתונים של אירועים וישויות.

שימוש בשדות מועשרים של שכיחות בכללים

הדוגמאות הבאות ממחישות איך להשתמש בשדות המועשרים שקשורים לשכיחות ב-Detection Engine. לעיון, ראו את רשימת השדות המועשרים שקשורים לשכיחות.

זיהוי גישה לדומיינים עם שכיחות נמוכה

כלל הזיהוי הזה יוצר אירוע זיהוי, ולא התראת זיהוי, כשנמצאת התאמה. הוא נועד בעיקר לשמש כאינדיקטור משני כשבודקים נכס. לדוגמה, יש התראות אחרות ברמת חומרה גבוהה יותר שהפעילו אירוע.

$enrichment.graph.metadata.entity_type = "FILE"
$enrichment.graph.metadata.product_name = "VirusTotal Relationships"
$enrichment.graph.metadata.vendor_name = "VirusTotal"

בקטע הוספת מסנן של סוג אירוע מוסבר איך להוסיף מסנן כדי לשפר את הביצועים של הכלל.

מידע על כל סוג של העשרה זמין במאמר איך Google SecOps מעשירה את נתוני האירועים והישויות.

שימוש בשדות מועשרים של שכיחות בכללים

הדוגמאות הבאות ממחישות איך להשתמש בשדות המועשרים שקשורים לשכיחות ב-Detection Engine. לעיון, ראו את רשימת השדות המועשרים שקשורים לשכיחות.

זיהוי גישה לדומיינים עם ציון שכיחות נמוך

אפשר להשתמש בכלל הזה כדי לזהות גישה לדומיינים עם ציון שכיחות נמוך. כדי שהשיטה תהיה יעילה, צריך להיות בסיס של ציוני שכיחות של פריטי מידע שנוצרו בתהליך הפיתוח (Artifact). בדוגמה הבאה נעשה שימוש ברשימות עזר כדי לכוונן את התוצאה, ומוגדר ערך סף לשכיחות.

rule network_prevalence_low_prevalence_domain_access {
  meta:
    author = "Google Security Operations"
    description = "Detects access to a low prevalence domain. Requires baseline of prevalence be in place for effective deployment."
    severity = "LOW"

  events:
        $e.metadata.event_type = "NETWORK_HTTP"
        $e.principal.ip = $ip

        // filter out URLs with RFC 1918 IP addresses, internal assets
        not re.regex($e.target.hostname, `(127(?:\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$)|(10(?:\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$)|(192\.168(?:\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2}$)|(172\.(?:1[6-9]|2\d|3[0-1])(?:\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2})`)

        // used an explicit exclusion reference list
        not $e.target.hostname in %exclusion_network_prevalence_low_prevalence_domain_access

        // only match valid FQDN, filter out background non-routable noise
        re.regex($e.target.hostname, `(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]`)

        $domainName = $e.target.hostname

        //join event ($e) to entity graph ($d)
        $e.target.hostname = $d.graph.entity.domain.name

        $d.graph.metadata.entity_type = "DOMAIN_NAME"

        // tune prevalence as fits your results
        $d.graph.entity.domain.prevalence.rolling_max > 0
        $d.graph.entity.domain.prevalence.rolling_max <= 10

  match:
        $ip over 1h

  outcome:
    $risk_score = max(
        // increment risk score based upon rolling_max prevalence
        if ( $d.graph.entity.domain.prevalence.rolling_max >= 10, 10) +
        if ( $d.graph.entity.domain.prevalence.rolling_max >= 2 and $d.graph.entity.domain.prevalence.rolling_max <= 9 , 20) +
        if ( $d.graph.entity.domain.prevalence.rolling_max = 1, 30)
    )

    $domain_list = array_distinct($domainName)
    $domain_count = count_distinct($domainName)

  condition:
    $e and #d > 10
}

זיהוי דומיינים עם שכיחות נמוכה עם התאמה ל-IOC

כלל הזיהוי הזה יוצר התראת זיהוי ומספק התאמה ברמת דיוק גבוהה בהשוואה לדומיין עם שכיחות נמוכה שהוא גם IOC ידוע.

rule network_prevalence_uncommon_domain_ioc_match {

  meta:
    author = "Google Security Operations"
    description = "Lookup Network DNS queries against Entity Graph for low prevalence domains with a matching IOC entry."
    severity = "MEDIUM"

  events:
    $e.metadata.event_type = "NETWORK_DNS"
    $e.network.dns.questions.name = $hostname

    //only match FQDNs, such as: exclude chrome dns access tests and other internal hosts
    $e.network.dns.questions.name = /(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/

    //prevalence entity graph lookup
    $p.graph.metadata.entity_type = "DOMAIN_NAME"
    $p.graph.entity.domain.prevalence.rolling_max > 0
    $p.graph.entity.domain.prevalence.rolling_max <= 3
    $p.graph.entity.domain.name = $hostname

    //ioc entity graph lookup
    $i.graph.metadata.vendor_name = "ET_PRO_IOC"
    $i.graph.metadata.entity_type = "DOMAIN_NAME"
    $i.graph.entity.hostname = $hostname

  match:
    $hostname over 10m

  outcome:
    $risk_score = max(
        //increment risk score based upon rolling_max prevalence
        if ( $p.graph.entity.domain.prevalence.rolling_max = 3, 50) +
        if ( $p.graph.entity.domain.prevalence.rolling_max = 2, 70) +
        if ( $p.graph.entity.domain.prevalence.rolling_max = 1, 90)
    )

  condition:
    $e and $p and $i
}

שימוש בזמן שבו ישות נראתה לראשונה בכלל

אפשר לכתוב כללים שכוללים את השדות first_seen_time או last_seen_time מרשומות של ישויות.

השדות first_seen_time ו-last_seen_time מאוכלסים בישויות שמתארות דומיין, כתובת IP וקובץ (גיבוב). בישויות שמתארות משתמש או נכס, רק השדה first_seen_time מאוכלס. הערכים האלה לא מחושבים לישויות שמתארות סוגים אחרים, כמו קבוצה או משאב.

רשימה של שדות UDM שמאוכלסים מופיעה במאמר חישוב זמן ההופעה הראשונה וזמן ההופעה האחרונה של ישויות.

הנה דוגמה לשימוש ב-first_seen_time בכלל:

rule first_seen_data_exfil {
    meta:
        author = "Google Security Operations"
        description = "Example usage first_seen data"
        severity = "LOW"

    events:
        $first_access.metadata.event_type = "NETWORK_HTTP"
        $ip = $first_access.principal.ip

        // Join first_access event with entity graph to use first/last seen data.
        $ip = $first_last_seen.graph.entity.ip
        $first_last_seen.graph.metadata.entity_type = "IP_ADDRESS"

        // Check that the first_access UDM event is the first_seen occurrence in the enterprise.
        $first_last_seen.graph.entity.artifact.first_seen_time.seconds = $first_access.metadata.event_timestamp.seconds
        $first_last_seen.graph.entity.artifact.first_seen_time.nanos   = $first_access.metadata.event_timestamp.nanos

        // Check for another access event that appears shortly after the first_seen event,
        // where lots of data is being sent.
        $next_access_data_exfil.metadata.event_type = "NETWORK_CONNECTION"
        // Next access event goes to the same IP as the first.
        $next_access_data_exfil.principal.ip = $ip

        // Next access occurs within 60 seconds after first access.
        $next_access_data_exfil.metadata.event_timestamp.seconds > $first_access.metadata.event_timestamp.seconds
        60 > $next_access_data_exfil.metadata.event_timestamp.seconds  - $first_access.metadata.event_timestamp.seconds

        // Lots of data is being sent over the next access event.
        $next_access_data_exfil.network.sent_bytes > 10 * 1024 * 1024 * 1024 // 10GB

        // Extract hostname of next access event, for match section.
        $hostname = $next_access_data_exfil.principal.hostname

    match:
        $hostname over 1h

    condition:
        $first_access and $next_access_data_exfil and $first_last_seen
}

שימוש בשדות מועשרים במיקום גיאוגרפי בכללים

אפשר להשתמש בשדות UDM שמאחסנים נתונים מועשרים במיקום גיאוגרפי בכללים של מנוע הזיהוי. רשימה של שדות UDM שמאוכלסים מופיעה במאמר העשרת אירועים באמצעות נתוני מיקום גיאוגרפי.

בדוגמה הבאה מוסבר איך לזהות אם ישות משתמש מבצעת אימות ממספר מדינות שונות.

rule geoip_user_login_multiple_states_within_1d {

  meta:
    author = "Google Security Operations"
    description = "Detect multiple authentication attempts from multiple distinct locations using geolocation-enriched UDM fields."
    severity = "INFORMATIONAL"

  events:
    $geoip.metadata.event_type = "USER_LOGIN"
    (
      $geoip.metadata.vendor_name = "Google Workspace" or
      $geoip.metadata.vendor_name = "Google Cloud Platform"
    )
    /* optionally, detect distinct locations at a country */
    (
      $geoip.principal.ip_geo_artifact.location.country_or_region != "" and
      $geoip.principal.ip_geo_artifact.location.country_or_region = $country
    )
    (
      $geoip.principal.ip_geo_artifact.location.state != "" and
      $geoip.principal.ip_geo_artifact.location.state = $state
    )

    $geoip.target.user.email_addresses = $user

  match:
    $user over 1d

  condition:
    $geoip and #state > 1
}

שימוש בשדות מועשרים של גלישה בטוחה בכללים

מערכת Google SecOps מטמיעה נתונים מרשימות איומים שקשורות לגיבובים של קבצים. המידע המועשר הזה מאוחסן כישויות ב-Google SecOps.

רשימה של שדות UDM שמאוכלסים מופיעה במאמר העשרת ישויות במידע מרשימות האיומים של הגלישה הבטוחה.

אתם יכולים ליצור כללים במנוע הזיהוי כדי לזהות התאמות לישויות שהוטמעו מגלישה בטוחה. הדוגמה הבאה היא כלל של Detection Engine ששולח שאילתות למידע המועשר הזה כדי ליצור ניתוח נתונים מותאם להקשר.

rule safe_browsing_file_execution {
    meta:
        author = "Google Security Operations"
        description = "Example usage of Safe Browsing data, to detect execution of a file that's been deemed malicious"
        severity = "LOW"

    events:
        // find a process launch event, match on hostname
        $execution.metadata.event_type = "PROCESS_LAUNCH"
        $execution.principal.hostname = $hostname

        // join execution event with Safe Browsing graph
        $sb.graph.entity.file.sha256 = $execution.target.process.file.sha256

        // look for files deemed malicious
        $sb.graph.metadata.entity_type = "FILE"
        $sb.graph.metadata.threat.severity = "CRITICAL"
        $sb.graph.metadata.product_name = "Google Safe Browsing"
        $sb.graph.metadata.source_type = "GLOBAL_CONTEXT"

    match:
        $hostname over 1h

    condition:
        $execution and $sb
}

שימוש בשדות מועשרים של WHOIS בכלל

אתם יכולים לכתוב כללים שמחפשים שדות מועשרים של WHOIS בישויות שמייצגות דומיין. בשדה entity.metadata.entity_type של הישויות האלה מוגדר הערך DOMAIN_NAME. רשימה של שדות UDM שמאוכלסים מופיעה במאמר העשרת ישויות באמצעות נתוני WHOIS.

הכלל הבא הוא דוגמה לאופן שבו אפשר לעשות זאת. הכלל הזה כולל את שדות הסינון הבאים בקטע events כדי לעזור לשפר את הביצועים של הכלל.

$whois.graph.metadata.entity_type = "DOMAIN_NAME"
$whois.graph.metadata.product_name = "WHOISXMLAPI Simple Whois"
$whois.graph.metadata.vendor_name = "WHOIS"
rule whois_expired_domain_executable_download {
 meta:
   author = "Google Security Operations"
   description = "Example usage of WHOIS data, detecting an executable file download from a domain that's recently expired"
   severity = "LOW"

 events:
        $access.metadata.event_type = "NETWORK_HTTP"
        $hostname = $access.principal.hostname

        // join access event to entity graph to use WHOIS data
        $whois.graph.entity.domain.name = $access.target.hostname

        // use WHOIS data to look for expired domains
        $whois.graph.metadata.entity_type = "DOMAIN_NAME"
        $whois.graph.metadata.product_name = "WHOISXMLAPI Simple Whois"
        $whois.graph.metadata.vendor_name = "WHOIS"
        $whois.graph.entity.domain.expiration_time.seconds < $access.metadata.event_timestamp.seconds

        // join access event with executable file creation event by principal hostname
        $creation.principal.hostname = $access.principal.hostname
        $creation.metadata.event_type = "FILE_CREATION"
        $creation.target.file.full_path = /exe/ nocase

        // file creation comes after expired domain access
        $creation.metadata.event_timestamp.seconds >
           $access.metadata.event_timestamp.seconds

   match:
       $hostname over 1h

 condition:
        $access and $whois and $creation
}

שליחת שאילתות Google Cloud לנתונים של מודיעין איומי סייבר

מערכת Google SecOps מטמיעה נתונים ממקורות נתונים של Google Cloud מודיעין איומי סייבר (GCTI) שמספקים לכם מידע לפי הקשר, שבו אתם יכולים להשתמש כשאתם חוקרים פעילות בסביבה שלכם. אפשר לשלוח שאילתות למקורות הנתונים הבאים:

  • צומתי יציאה של GCTI Tor
  • קובצי בינאריים לא זדוניים של GCTI
  • כלי גישה מרחוק של GCTI

במאמר הטמעה ואחסון של נתוני Google Cloud מודיעין איומי סייבר מופיע תיאור של פידים של איומים ושל כל השדות שמאוכלסים.

במסמך הזה, ה-placeholder‏ <variable_name> מייצג את שם המשתנה הייחודי שמשמש בכלל לזיהוי רשומת UDM.

שאילתה על כתובות IP של צומת יציאה של Tor

הכלל לדוגמה הבא מחזיר זיהוי כשאירוע NETWORK_CONNECTION מכיל כתובת IP שמאוחסנת בשדה target.ip, שנמצאת גם במקור הנתונים Tor Exit Nodes של GCTI. חשוב לכלול בכלל את השדות <variable_name>.graph.metadata.threat.threat_feed_name,‏ <variable_name>.graph.metadata.vendor_name ו-<variable_name>.graph.metadata.product_name.

זהו מקור נתונים מתוזמן. האירועים יתאימו לתמונת המצב של מקור הנתונים באותה נקודת זמן.

rule gcti_tor_exit_nodes {
  meta:
    author = "Google Cloud Threat Intelligence"
    description = "Alert on known Tor exit nodes."
    severity = "High"

  events:
    // Event
    $e.metadata.event_type = "NETWORK_CONNECTION"
    $e.target.ip = $tor_ip

    // Tor IP search in GCTI Feed
    $tor.graph.entity.artifact.ip = $tor_ip
    $tor.graph.metadata.entity_type = "IP_ADDRESS"
    $tor.graph.metadata.threat.threat_feed_name = "Tor Exit Nodes"
    $tor.graph.metadata.source_type = "GLOBAL_CONTEXT"
    $tor.graph.metadata.vendor_name = "Google Cloud Threat Intelligence"
    $tor.graph.metadata.product_name = "GCTI Feed"

  match:
    $tor_ip over 1h

  outcome:
    $tor_ips = array_distinct($tor_ip)
    $tor_geoip_country = array_distinct($e.target.ip_geo_artifact.location.country_or_region)
    $tor_geoip_state = array_distinct($e.target.ip_geo_artifact.location.state)

  condition:
    $e and $tor
}

דוגמאות מתקדמות יותר, כולל החלת סף תדירות על התחברויות שנכשלו מרשתות Tor, מפורטות במאמר התחברויות מרובות שנכשלו מרשת Tor.

שאילתה לקבצים תקינים של מערכת ההפעלה

הכלל לדוגמה הבא משלב את מקורות הנתונים Benign Binaries ו-Tor Exit Nodes כדי להחזיר התראה כשקובץ בינארי תקין יוצר קשר עם צומת יציאה של Tor. הכלל מחשב ציון סיכון באמצעות נתוני המיקום הגיאוגרפי ש-Google SecOps העשירה באמצעות כתובת ה-IP של היעד. חשוב לכלול בכלל את <variable_name>.graph.metadata.vendor_name, <variable_name>.graph.metadata.product_name ו-<variable_name>.graph.metadata.threat.threat_feed_name של מקורות הנתונים Benign Binaries ו-Tor Exit Nodes.

זהו מקור נתונים נצחי. האירועים תמיד יתאימו לתמונת המצב האחרונה של מקור הנתונים, בלי קשר לזמן.

rule gcti_benign_binaries_contacts_tor_exit_node {
 meta:
   author = "Google Cloud Threat Intelligence"
   description = "Alert on Benign Binary contacting a Tor IP address."
   severity = "High"

 events:
   // Event
   $e.metadata.event_type = "NETWORK_CONNECTION"
   $e.principal.process.file.sha256 = $benign_hash
   $e.target.ip = $ip
   $e.principal.hostname = $hostname

   // Benign File search in GCTI Feed
   $benign.graph.entity.file.sha256 = $benign_hash
   $benign.graph.metadata.entity_type = "FILE"
   $benign.graph.metadata.threat.threat_feed_name = "Benign Binaries"
   $benign.graph.metadata.source_type = "GLOBAL_CONTEXT"
   $benign.graph.metadata.vendor_name = "Google Cloud Threat Intelligence"
   $benign.graph.metadata.product_name = "GCTI Feed"

   // Tor IP search in GCTI Feed
   $tor.graph.entity.artifact.ip = $ip
   $tor.graph.metadata.entity_type = "IP_ADDRESS"
   $tor.graph.metadata.threat.threat_feed_name = "Tor Exit Nodes"
   $tor.graph.metadata.source_type = "GLOBAL_CONTEXT"
   $tor.graph.metadata.vendor_name = "Google Cloud Threat Intelligence"
   $tor.graph.metadata.product_name = "GCTI Feed"

 match:
   $hostname over 1h

 outcome:
   $risk_score = max(
       if($tor.graph.metadata.threat.confidence = "HIGH_CONFIDENCE", 70) +
       // Unauthorized target geographies
       if($e.target.ip_geo_artifact.location.country_or_region = "Cuba", 20) +
       if($e.target.ip_geo_artifact.location.country_or_region = "Iran", 20) +
       if($e.target.ip_geo_artifact.location.country_or_region = "North Korea", 20) +
       if($e.target.ip_geo_artifact.location.country_or_region = "Russia", 20) +
       if($e.target.ip_geo_artifact.location.country_or_region = "Syria", 20)
   )
   $benign_hashes = array_distinct($benign_hash)
   $benign_files = array_distinct($e.principal.process.file.full_path)
   $tor_ips = array_distinct($ip)
   $tor_geoip_country = array_distinct($e.target.ip_geo_artifact.location.country_or_region)
   $tor_geoip_state = array_distinct($e.target.ip_geo_artifact.location.state)

 condition:
   $e and $benign and $tor
}

שאילתות על נתונים לגבי כלים לגישה מרחוק

הכלל לדוגמה הבא מחזיר זיהוי כשסוג אירוע של PROCESS_LAUNCH מכיל גיבוב (hash) שנמצא גם במקור הנתונים של כלי הגישה מרחוק של Google Cloud מודיעין איומי סייבר.

זהו מקור נתונים נצחי. האירועים תמיד יתאימו לתמונת המצב האחרונה של מקור הנתונים, בלי קשר לזמן.

rule gcti_remote_access_tools {
 meta:
   author = "Google Cloud Threat Intelligence"
   description = "Alert on Remote Access Tools."
   severity = "High"

 events:
    // find a process launch event
    $e.metadata.event_type = "PROCESS_LAUNCH"
    $e.target.process.file.sha256 != ""
    $rat_hash = $e.target.process.file.sha256

    // join graph and event hashes
    $gcti.graph.entity.file.sha256 = $rat_hash

    // look for files identified as likely remote access tools
    $gcti.graph.metadata.entity_type = "FILE"
    $gcti.graph.metadata.vendor_name = "Google Cloud Threat Intelligence"
    $gcti.graph.metadata.product_name = "GCTI Feed"
    $gcti.graph.metadata.threat.threat_feed_name = "Remote Access Tools"

  match:
    $rat_hash over 5m

 outcome:
   $remote_hash = array_distinct($e.target.process.file.sha256)

  condition:
    $e and $gcti

}

שימוש בשדות מטא-נתונים מועשרים של VirusTotal בכללים

הכלל הבא מזהה יצירת קובץ או הפעלת תהליך של סוג קובץ ספציפי, ומציין שחלק מה-hashes שברשימת המעקב נמצאים במערכת. ציון הסיכון נקבע כשהקבצים מתויגים כ-exploit באמצעות העשרת המטא-נתונים של הקבצים ב-VirusTotal.

רשימה של כל שדות ה-UDM שמאוכלסים מופיעה במאמר העשרת אירועים באמצעות מטא-נתונים של קובצי VirusTotal.

rule vt_filemetadata_hash_match_ioc {
 meta:
   author = "Google Cloud Threat Intelligence"
   description = "Detect file/process events that indicate watchlisted hashes are on a system"
   severity = "High"

 events:
   // Process launch or file creation events
   $process.metadata.event_type = "PROCESS_LAUNCH" or $process.metadata.event_type ="FILE_CREATION"
   $process.principal.hostname = $hostname
   $process.target.file.sha256 != ""
   $process.target.file.sha256 = $sha256
   $process.target.file.file_type = "FILE_TYPE_DOCX"

   // IOC matching
   $ioc.graph.metadata.product_name = "MISP"
   $ioc.graph.metadata.entity_type = "FILE"
   $ioc.graph.metadata.source_type = "ENTITY_CONTEXT"
   $ioc.graph.entity.file.sha256 = $sha256

 match:
   $hostname over 15m

 outcome:
   $risk_score = max(
       // Tag enrichment from VirusTotal file metadata
       if($process.target.file.tags = "exploit", 90)
   )
   $file_sha256 = array($process.target.file.sha256)
   $host = array($process.principal.hostname)

 condition:
   $process and $ioc
}

שימוש בנתוני הקשרים של VirusTotal בכללים

מערכת Google SecOps מקבלת נתונים מחיבורים שקשורים ל-VirusTotal. הנתונים האלה מספקים מידע על הקשר בין ערכי ה-Hash של הקבצים לבין הקבצים, הדומיינים, כתובות ה-IP וכתובות ה-URL. המידע המועשר הזה מאוחסן כישויות ב-Google SecOps.

אתם יכולים ליצור כללים במנוע הזיהוי כדי לזהות התאמות לישויות שהוטמעו מ-VirusTotal. הכלל הבא שולח התראה על הורדה של גיבוב קובץ ידוע מכתובת IP ידועה עם קשרי VirusTotal. ציון הסיכון מבוסס על סוג הקובץ והתגים מהמטא-נתונים של הקובץ ב-VirusTotal.

הנתונים האלה זמינים רק ברישיונות מסוימים של VirusTotal ו-Google SecOps. כדי לבדוק את ההרשאות שלכם, פנו למנהל החשבון. רשימה של כל שדות ה-UDM שמאוכלסים מופיעה במאמר העשרת ישויות באמצעות נתוני קשרים של VirusTotal.

rule virustotal_file_downloaded_from_url {
  meta:
    author = "Google Cloud Threat Intelligence"
    description = "Alerts on downloading a known file hash from a known IP with VirusTotal relationships. The risk score is based on file type and tags from VirusTotal file metadata."
    severity = "High"

  events:
    // Filter network HTTP events
    $e1.metadata.event_type = "NETWORK_HTTP"
    $e1.principal.user.userid = $userid
    $e1.target.url = $url

    // Filter file creation events
    $e2.metadata.event_type = "FILE_CREATION"
    $e2.target.user.userid = $userid
    $e2.target.file.sha256 = $file_hash

    // The file creation event timestamp should be equal or greater than the network http event timestamp
    $e1.metadata.event_timestamp.seconds <= $e2.metadata.event_timestamp.seconds

    // Join event file hash with VirusTotal relationships entity graph
    $vt.graph.metadata.entity_type = "FILE"
    $vt.graph.metadata.source_type = "GLOBAL_CONTEXT"
    $vt.graph.metadata.vendor_name = "VirusTotal"
    $vt.graph.metadata.product_name = "VirusTotal Relationships"
    $vt.graph.entity.file.sha256 = $file_hash

    // Join network HTTP target URL with VirusTotal relationships entity graph
    $vt.graph.relations.entity_type = "URL"
    $vt.graph.relations.relationship = "DOWNLOADED_FROM"
    $vt.graph.relations.entity.url = $url

  match:
    $userid over 1m

  outcome:
      $risk_score = max(
        // Tag enrichment from VirusTotal file metadata
        if($e2.target.file.tags = "via-tor" or $e2.target.file.tags = "malware" or $e2.target.file.tags = "crypto", 50) +
        // File types enrichment from VirusTotal file metadata
        if($e2.target.file.file_type = "FILE_TYPE_HTML", 5) +
        if($e2.target.file.file_type = "FILE_TYPE_ELF", 10) +
        if($e2.target.file.file_type = "FILE_TYPE_PE_DLL",15) +
        if($e2.target.file.file_type = "FILE_TYPE_PE_EXE", 20)
    )

  condition:
    $e1 and $e2 and $vt and $risk_score >= 50
}

מודל עקביות הדרגתי

כללים שתלויים בהעשרה מסתמכים על נתונים נוספים שצריך לעבד לפני שאפשר להעריך את הכלל באופן מלא. עם הזמן, תהליך ההעשרה מסתיים והכלל נבדק מחדש עם הנתונים העדכניים והמדויקים. תהליך מודל עקביות הדרגתי זה צפוי, ומשמעותו היא שלמרות שייתכנו חוסר עקביות ראשונית, המערכת מבטיחה שכל האירועים יועשרו בסופו של דבר באופן מלא והכללים יוערכו בצורה מדויקת. איך Google SecOps מעשירה נתונים של אירועים וישויות

המאמרים הבאים

כדי להבין איך משתמשים בנתונים המועשרים בתכונות אחרות של Google SecOps, קראו את המאמרים הבאים:

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