Fortra Digital Guardian-Logs (früher Digital Guardian EDR) erfassen
Parserversion: 3.0
In diesem Dokument wird beschrieben, wie Sie Fortra Digital Guardian-Logs (früher Digital Guardian EDR) mit Cloud Storage V2 und einer Cloud Run-Funktion in Google Security Operations aufnehmen.
Fortra Digital Guardian ist eine umfassende Plattform für den Schutz vor Datenverlust sowie für die Endpunkterkennung und -reaktion. Sie bietet Einblick in System-, Nutzer- und Datenereignisse auf Endpunkten, in Netzwerken und in Cloud-Anwendungen. Der Dienst Analytics & Reporting Cloud (ARC) bietet erweiterte Analyse-, Workflow- und Berichtsfunktionen für einen ganzheitlichen Datenschutz.
Die Cloud Run-Funktion authentifiziert sich mit OAuth 2.0 bei der ARC Export API, ruft Exportdaten ab, bestätigt das Lesezeichen, um zum nächsten Block zu gelangen, schreibt die Ergebnisse als NDJSON in einen Cloud Storage-Bucket und Google SecOps nimmt sie über einen Cloud Storage V2-Feed auf.
Hinweis
Folgende Voraussetzungen müssen erfüllt sein:
- Eine Google SecOps-Instanz.
- Ein Google Cloud -Projekt mit den folgenden aktivierten APIs:
- Cloud Storage
- Cloud Run-Funktionen
- Cloud Scheduler
- Pub/Sub
- Cloud Build
- Berechtigungen zum Erstellen und Verwalten von Cloud Storage-Buckets, Cloud Run-Funktionen, Pub/Sub-Themen und Cloud Scheduler-Jobs.
- Privilegierter Zugriff auf die Digital Guardian Management Console (DGMC).
- Zugriff auf die Mandanteneinstellungen von Digital Guardian Analytics & Reporting Cloud (ARC).
- Administratorberechtigungen zum Konfigurieren von Cloud-Diensten in DGMC.
- Ein in DGMC erstelltes Exportprofil mit einer gültigen GUID.
Cloud Storage-Bucket erstellen
- Rufen Sie die Google Cloud Console auf.
- Wählen Sie Ihr Projekt aus oder erstellen Sie ein neues.
- Rufen Sie im Navigationsmenü Cloud Storage > Buckets auf.
- Klicken Sie auf Bucket erstellen.
Geben Sie die folgenden Konfigurationsdetails an:
Einstellung Wert Bucket benennen Geben Sie einen global eindeutigen Namen ein (z. B. digitalguardian-edr-logs).Standorttyp Wählen Sie die Option, die am besten zu Ihren Anforderungen passt (Region, Dual-Region, Multi-Region). Standort Wählen Sie den Standort aus, der Ihrer Instanz am nächsten ist (z. B. us-central1).Speicherklasse Standard (empfohlen für häufig aufgerufene Logs) Zugriffssteuerung Einheitlich (empfohlen) Schutztools Optional: Objektversionsverwaltung oder Aufbewahrungsrichtlinie aktivieren Klicken Sie auf Erstellen.
Digital Guardian API-Anmeldedaten erfassen
API-Anmeldedaten abrufen
Client-ID und Clientschlüssel aus den ARC-Mandanteneinstellungen abrufen
- Melden Sie sich im Digital Guardian ARC-Portal an.
- Gehen Sie zu ARC-Mandanteneinstellungen.
- Kopieren und speichern Sie die folgenden Werte:
- Mandanten-ID: Dies ist Ihre Client-ID.
- Authentifizierungstoken: Dies ist Ihr Clientschlüssel.
Gateway-URLs von DGMC abrufen
- Melden Sie sich in der Digital Guardian Management Console (DGMC) an.
- Gehen Sie zu System > Konfiguration > Cloud-Dienste.
- Notieren Sie sich im Abschnitt API-Zugriff Folgendes:
- Basis-URL des Access Gateways: z.B.
https://accessgw-usw.msp.digitalguardian.com - Authorization Server URL: z.B.
https://authsrv.msp.digitalguardian.com/as/token.oauth2
- Basis-URL des Access Gateways: z.B.
Exportprofil erstellen und konfigurieren
- Rufen Sie im DGMC die Option Verwaltung > Berichte > Profile exportieren auf.
- Klicken Sie auf Exportprofil erstellen.
- Legen Sie als Exportformat die Option Vereinfachte JSON-Tabelle fest.
- Klicken Sie auf Speichern und kopieren Sie die GUID aus den Profildetails (Format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Cloud Run-Funktion erstellen
Funktionsquelldateien vorbereiten
requirements.txt
functions-framework==3.* google-cloud-storage==2.* urllib3==2.*main.py
"""Cloud Run function to ingest Digital Guardian EDR logs into GCS.""" import json import os import time import urllib.parse from datetime import datetime, timezone import functions_framework import urllib3 from google.cloud import storage GCS_BUCKET = os.environ["GCS_BUCKET"] GCS_PREFIX = os.environ.get("GCS_PREFIX", "digitalguardian_edr") STATE_KEY = os.environ.get("STATE_KEY", "digitalguardian_edr_state.json") AUTH_SERVER_URL = os.environ["AUTH_SERVER_URL"] ARC_SERVER_URL = os.environ["ARC_SERVER_URL"] CLIENT_ID = os.environ["CLIENT_ID"] CLIENT_SECRET = os.environ["CLIENT_SECRET"] EXPORT_PROFILE_GUID = os.environ["EXPORT_PROFILE_GUID"] MAX_RECORDS = int(os.environ.get("MAX_RECORDS", "10000")) http = urllib3.PoolManager() gcs = storage.Client() def _get_access_token() -> str: body = urllib.parse.urlencode({ "grant_type": "client_credentials", "client_id": CLIENT_ID, "client_secret": CLIENT_SECRET, "scope": "client", }) resp = http.request( "POST", AUTH_SERVER_URL, body=body, headers={"Content-Type": "application/x-www-form-urlencoded"}, ) if resp.status != 200: raise RuntimeError(f"OAuth token request failed: {resp.status}") return json.loads(resp.data.decode("utf-8"))["access_token"] def _arc_get(token: str, path: str, retries: int = 5) -> dict: url = f"{ARC_SERVER_URL}{path}" headers = {"Authorization": f"Bearer {token}", "Accept": "application/json"} backoff = 2 for attempt in range(retries): resp = http.request("GET", url, headers=headers) if resp.status == 200: return json.loads(resp.data.decode("utf-8")) if resp.status == 429: time.sleep(backoff * (2 ** attempt)) continue raise RuntimeError(f"ARC API error: {resp.status}") raise RuntimeError("ARC API rate limit exceeded.") def _arc_acknowledge(token: str) -> None: url = f"{ARC_SERVER_URL}/rest/1.0/export/{EXPORT_PROFILE_GUID}/acknowledge" headers = {"Authorization": f"Bearer {token}", "Accept": "application/json"} resp = http.request("POST", url, headers=headers) if resp.status not in (200, 204): raise RuntimeError(f"ARC acknowledge failed: {resp.status}") def _load_state() -> dict: bucket = gcs.bucket(GCS_BUCKET) blob = bucket.blob(f"{GCS_PREFIX}/{STATE_KEY}") return json.loads(blob.download_as_text()) if blob.exists() else {} def _save_state(state: dict) -> None: bucket = gcs.bucket(GCS_BUCKET) blob = bucket.blob(f"{GCS_PREFIX}/{STATE_KEY}") blob.upload_from_string(json.dumps(state), content_type="application/json") def _fetch_export(token: str) -> list: path = f"/rest/1.0/export/{EXPORT_PROFILE_GUID}" data = _arc_get(token, path) records = data if isinstance(data, list) else data.get("data", []) return records[:MAX_RECORDS] def _write_ndjson(records: list, run_ts: str) -> str: bucket = gcs.bucket(GCS_BUCKET) blob_path = f"{GCS_PREFIX}/year={run_ts[:4]}/month={run_ts[5:7]}/day={run_ts[8:10]}/{run_ts}_export.ndjson" blob = bucket.blob(blob_path) ndjson = "\n".join(json.dumps(r, separators=(",", ":")) for r in records) blob.upload_from_string(ndjson, content_type="application/x-ndjson") return blob_path @functions_framework.cloud_event def main(cloud_event): state = _load_state() now = datetime.now(timezone.utc) token = _get_access_token() records = _fetch_export(token) if not records: return "OK" run_ts = now.strftime("%Y-%m-%dT%H%M%SZ") blob_path = _write_ndjson(records, run_ts) _arc_acknowledge(token) state["last_run"] = now.isoformat() _save_state(state) return "OK"
Google SecOps-Dienstkonto abrufen und Feed konfigurieren
- Rufen Sie die Einstellungen > Datenverwaltung > Feeds auf. Wenn Sie eine reine SIEM-Plattform verwenden, rufen Sie die Einstellungen > Feeds auf.
- Klicken Sie auf Neuen Feed hinzufügen.
- Wählen Sie Google Cloud Storage V2 als Quelltyp aus.
- Wählen Sie Digital Guardian EDR als Logtyp aus.
- Klicken Sie auf Dienstkonto abrufen und kopieren Sie die E‑Mail-Adresse.
- Geben Sie die Storage-Bucket-URL an:
gs://digitalguardian-edr-logs/digitalguardian_edr/(achten Sie darauf, dass der abschließende Schrägstrich enthalten ist).
UDM-Zuordnungstabelle
| Logfeld | UDM-Zuordnung | Logik |
|---|---|---|
Application |
target.application |
Wert direkt kopiert. |
Bytes_Written |
network.sent_bytes |
In uinteger umgewandelt. |
Command_Line |
principal.process.command_line |
Nachgestellte Anführungszeichen wurden entfernt. |
Computer_Name |
principal.hostname |
Zuordnung des Quell-Hostnamens. |
Destination_File |
target.file.names |
Direkte Zuordnung. |
IP_Address |
principal.ip |
Haupt-IP-Adresse. |
Process_PID |
principal.process.pid |
Prozess-ID-Zuordnung. |
Rule |
security_result.rule_name |
Direkte Zuordnung. |
Severity |
security_result.severity |
Skaliert auf LOW, MEDIUM, HIGH, CRITICAL. |
URL_Path |
target.url |
Zuordnung von Webzielen. |
User_Name |
principal.user.userid |
Über grok extrahiert. |
security_action |
security_result.action |
Direkte Zuordnung. |
| – | metadata.product_name |
Legen Sie diesen Wert auf „Enterprise DLP Platform“ fest. |
| – | metadata.vendor_name |
Legen Sie diesen Wert auf „DigitalGuardian“ fest. |
Destination_File_Encryption |
event.idm.read_only_udm.target.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Alert_ID |
event.idm.read_only_udm.security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Computer_Type |
event.idm.read_only_udm.security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Operation |
event.idm.read_only_udm.security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Printer_Jobname |
event.idm.read_only_udm.target.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Was_Destination_Classified |
event.idm.read_only_udm.target.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Was_Source_Classified |
event.idm.read_only_udm.src.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Source_File_Encryption |
event.idm.read_only_udm.src.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Source_Device_ID |
event.idm.read_only_udm.src.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Destination_Device_ID |
event.idm.read_only_udm.target.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Detail_Event_ID |
event.idm.read_only_udm.metadata.product_log_id |
Aus Änderungsprotokoll zugeordnet |
Source_Device_Friendly_Name |
event.idm.read_only_udm.src.resource.name |
Aus Änderungsprotokoll zugeordnet |
Source_Device_Product_Name |
event.idm.read_only_udm.src.resource.resource_subtype |
Aus Änderungsprotokoll zugeordnet |
Source_Device_Serial_Number |
event.idm.read_only_udm.src.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
File_Size_MB |
event.idm.read_only_udm.target.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Detail_File_Size_MB |
event.idm.read_only_udm.target.resource.attribute.labels |
Aus Änderungsprotokoll zugeordnet |
Event_ID |
event.idm.read_only_udm.security_result.rule_id |
Aus Änderungsprotokoll zugeordnet |
Block_Code |
event.idm.read_only_udm.security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Policy |
event.idm.read_only_udm.security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Agent_Local_Date |
event.idm.read_only_udm.additional.fields |
Aus Änderungsprotokoll zugeordnet |
Agent_Local_Time |
event.idm.read_only_udm.additional.fields |
Aus Änderungsprotokoll zugeordnet |
Agent_UTC_Time |
event.idm.read_only_udm.additional.fields |
Aus Änderungsprotokoll zugeordnet |
Source_File |
src.file.names |
Aus Änderungsprotokoll zugeordnet |
Source_File_Extension |
src.file.mime_type |
Aus Änderungsprotokoll zugeordnet |
Destination_File_Extension |
target.file.mime_type |
Aus Änderungsprotokoll zugeordnet |
Source_Drive_Type |
security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Destination_Drive_Type |
security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Was_Removable |
security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Was_Source_Removable |
security_result.detection_fields |
Aus Änderungsprotokoll zugeordnet |
Product_Version |
metadata.product_version |
Aus Änderungsprotokoll zugeordnet |
Process_SHA256_Hash |
target.process.file.sha256 |
Aus Änderungsprotokoll zugeordnet |
MD5_Checksum |
target.process.file.md5 |
Aus Änderungsprotokoll zugeordnet |
File_Extension |
additional.fields |
Aus Änderungsprotokoll zugeordnet |
Protocol |
network.ip_protocol |
Aus Änderungsprotokoll zugeordnet |
Command_Line1 |
principal.process.command_line |
Aus Änderungsprotokoll zugeordnet |
Network_Direction |
network.direction |
Aus Änderungsprotokoll zugeordnet |
Local_Port |
principal.port |
Aus Änderungsprotokoll zugeordnet |
Remote_Port |
target.port |
Aus Änderungsprotokoll zugeordnet |
Dll_SHA1_Hash |
target.process.file.sha1 |
Aus Änderungsprotokoll zugeordnet |
Änderungsprotokoll
Änderungsprotokoll für diesen Parser ansehen
Benötigen Sie weitere Hilfe? Antworten von Community-Mitgliedern und Google SecOps-Experten erhalten