איסוף יומנים של AWS Config

גרסת המנתח: 5.0

נתמך ב:

במאמר הזה מוסבר איך להטמיע יומני AWS Config ב-Google Security Operations באמצעות Amazon S3.

‫AWS Config הוא שירות שמאפשר להעריך, לבדוק ולבחון את ההגדרות של המשאבים ב-AWS. ‫AWS Config עוקב באופן רציף אחרי הגדרות המשאבים ב-AWS ומתעד אותן, ומאפשר לכם להפוך את הערכת ההגדרות המתועדות לאוטומטית בהשוואה להגדרות שנבחרו. קובצי היסטוריית ההגדרות נשלחים כל שש שעות, ואפשר לשלוח תמונות מצב של ההגדרות לפי דרישה לקטגוריה של Amazon S3.

מידע נוסף זמין במאמר איסוף יומני AWS Config.

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

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

  • מכונה של Google SecOps
  • גישה מורשית ל-AWS (S3, ‏ IAM, ‏ Config)

הגדרת AWS Config להעברת יומנים ל-Amazon S3

כדי להגדיר את AWS Config כך שיתעד את הגדרות המשאבים ויעביר אותן לקטגוריית S3:

  1. נכנסים ל-AWS Management Console.
  2. עוברים אל AWS Config > Settings.
  3. אם זו הפעם הראשונה שמגדירים את AWS Config, לוחצים על Get started. אם לא, לוחצים על עריכה.
  4. בקטע Recording strategy, קובעים את ההגדרות הבאות:
    • כל סוגי המשאבים עם שינויים ניתנים להתאמה אישית: כל סוגי המשאבים הנתמכים הנוכחיים והעתידיים מתועדים. אתם יכולים להגדיר את תדירות ברירת המחדל של ההקלטה:
      • הקלטה רציפה: הקלטה רציפה של שינויים בהגדרות בכל פעם שמתרחש שינוי
      • תיעוד יומי: מתעד פריט הגדרה אחד שמייצג את המצב העדכני ביותר ב-24 השעות האחרונות
    • סוגי משאבים ספציפיים: בוחרים סוגי משאבים ספציפיים לתיעוד ומגדירים את התדירות שלהם
  5. בקטע משילות מידע (data governance), קובעים את ההגדרות הבאות:
    • תקופת שמירת הנתונים: מגדירים את תקופת השמירה (ברירת המחדל היא 7 שנים, המינימום הוא 30 ימים)
    • ‫IAM role for AWS Config: בוחרים באפשרות Service-linked role (מומלץ) או בוחרים תפקיד IAM קיים.
  6. בקטע Delivery method, מגדירים את הפרטים הבאים:
    • קטגוריית S3: בוחרים באפשרות יצירת קטגוריה כדי ליצור קטגוריה חדשה, או באפשרות בחירת קטגוריה מהחשבון כדי להשתמש בקטגוריה קיימת.
    • S3 bucket name: נותנים שם לקטגוריה (לדוגמה, aws-config-logs)
    • Amazon SNS topic (אופציונלי): אם רוצים לקבל התראות, בוחרים באפשרות Stream configuration changes and notifications to an Amazon SNS topic.
  7. לוחצים על הבא.
  8. בקטע Rules, מגדירים כללים מנוהלים (אופציונלי). לוחצים על Next.
  9. בודקים את ההגדרות ולוחצים על אישור.

מידע נוסף זמין במאמר הגדרת AWS Config באמצעות המסוף.

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

  1. אם נוצר קטגוריה חדשה ב-AWS Config, שימו לב לשם ולאזור של הקטגוריה ב-S3 > Buckets.
  2. אם בחרתם קטגוריה קיימת במהלך ההגדרה של AWS Config, שימו לב לשם ולאזור של הקטגוריה.
  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. מחפשים את המדיניות AmazonS3ReadOnlyAccess.
  18. בוחרים את המדיניות.
  19. לוחצים על הבא.
  20. לוחצים על הוספת הרשאות.

הגדרת פידים

יש שתי נקודות כניסה שונות להגדרת פידים בפלטפורמת Google SecOps:

  • הגדרות > ניהול נתונים > פידים > הוספת פיד חדש (בפלטפורמה של SIEM בלבד, הגדרות > פידים > הוספת פיד חדש)
  • מרכז התוכן > חבילות תוכן > מתחילים

הגדרת פיד ב-Google SecOps כדי להטמיע יומני AWS Config

  1. לוחצים על החבילה Amazon Cloud Platform.
  2. מאתרים את סוג היומן AWS Config.
  3. בוחרים באפשרות Amazon S3 V2 בתור סוג המקור.
  4. מציינים ערכים בשדות הבאים:

    • ‫S3 URI: מזינים את ה-URI של S3 ליומני AWS Config:

      s3://aws-config-logs/AWSLogs/
      
    • אפשרות מחיקת מקור: בוחרים את אפשרות המחיקה לפי ההעדפה שלכם.

    • גיל הקובץ המקסימלי: כולל קבצים ששונו במספר הימים האחרונים (ברירת המחדל היא 180 ימים)

    • מזהה מפתח הגישה: מפתח גישה של משתמש עם גישה לקטגוריית S3

    • מפתח גישה סודי: מפתח סודי של משתמש עם גישה לקטגוריית S3

    אפשרויות מתקדמות

    • שם הפיד: ערך שמולא מראש ומזהה את הפיד.
    • מרחב השמות של הנכס: מרחב השמות שמשויך לפיד.
    • תוויות הטמעה: תוויות שנוספו לכל האירועים מהפיד הזה.
  5. לוחצים על יצירת פיד.

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

טבלת מיפוי UDM

שדה ביומן מיפוי UDM Logic (פונקציה לוגית)
AccountId_label additional.fields ממוזג
AllSupported_label additional.fields ממוזג
AuthenticationType_label additional.fields ממוזג
DeploymentDurationInMinutes_label additional.fields ממוזג
DomainName_label additional.fields ממוזג
EnableTerminationProtection_label additional.fields ממוזג
Enable_label additional.fields ממוזג
EventBusName_label additional.fields ממוזג
EventPattern_detail_eventSource_label additional.fields ממוזג
EventPattern_detail_managementEvent_label additional.fields ממוזג
EventPattern_detail_type_label additional.fields ממוזג
EventPattern_source_label additional.fields ממוזג
FinalBakeTimeInMinutes_label additional.fields ממוזג
FindingPublishingFrequency_label additional.fields ממוזג
GrowthFactor_label additional.fields ממוזג
GrowthType_label additional.fields ממוזג
Id_label additional.fields ממוזג
IncludeGlobalResourceTypes_label additional.fields ממוזג
Kubernetes_AuditLogs_Enable_label additional.fields ממוזג
Name_label additional.fields ממוזג
Reason_label additional.fields ממוזג
RecordingStrategy_UseOnly_label additional.fields ממוזג
ReplicateTo_label additional.fields ממוזג
ResolverRuleAssociationId_label additional.fields ממוזג
ResolverRuleId_label additional.fields ממוזג
S3Logs_Enable_label additional.fields ממוזג
ServiceType_label additional.fields ממוזג
StandardsArn_label additional.fields ממוזג
StandardsControlArn_label additional.fields ממוזג
State_label additional.fields ממוזג
TlsConfig_SecurityPolicy_label additional.fields ממוזג
VPCId_label additional.fields ממוזג
WorkGroupConfiguration_EnforceWorkGroupConfiguration_label additional.fields ממוזג
WorkGroupConfiguration_EngineVersion_EffectiveEngineVersion_label additional.fields ממוזג
WorkGroupConfiguration_EngineVersion_SelectedEngineVersion_label additional.fields ממוזג
WorkGroupConfiguration_PublishCloudWatchMetricsEnabled_label additional.fields ממוזג
WorkGroupConfiguration_RequesterPaysEnabled_label additional.fields ממוזג
accountState_resourceState_codeRepository_status_label additional.fields ממוזג
accountState_resourceState_ec2_status_label additional.fields ממוזג
accountState_resourceState_ecr_status_label additional.fields ממוזג
accountState_resourceState_lambdaCode_status_label additional.fields ממוזג
accountState_resourceState_lambda_status_label additional.fields ממוזג
accountState_state_status_label additional.fields ממוזג
asso_cidr_label additional.fields ממוזג
asso_id_label additional.fields ממוזג
asso_state_label additional.fields ממוזג
associationState_state_label additional.fields ממוזג
canaryInterval_label additional.fields ממוזג
canaryPercentage_label additional.fields ממוזג
cidrBlock_label additional.fields ממוזג
computePlatform_label additional.fields ממוזג
config_description_label additional.fields ממוזג
configurationItemVersion_label additional.fields ממוזג
configurationStateId_label additional.fields ממוזג
createdTime_label additional.fields ממוזג
defaultCooldown_label additional.fields ממוזג
deletionPolicy_label additional.fields ממוזג
deploymentConfigId_label additional.fields ממוזג
description_label additional.fields ממוזג
desiredCapacity_label additional.fields ממוזג
destinationCidrBlock_label additional.fields ממוזג
digest_s3_bucket_label additional.fields ממוזג
digest_s3_object_label additional.fields ממוזג
digest_signature_algorithm_label additional.fields ממוזג
disableRollback_label additional.fields ממוזג
egress_label additional.fields ממוזג
feature_label additional.fields ממוזג
field_ additional.fields ממוזג
field_value additional.fields ממוזג
fromPort_label additional.fields ממוזג
gatewayId_label additional.fields ממוזג
groupId_label additional.fields ממוזג
instanceStatus_label additional.fields ממוזג
ipProtocol_label additional.fields ממוזג
ipProtocol_label_egress additional.fields ממוזג
isDefault_label additional.fields ממוזג
lastUpdatedTime_label additional.fields ממוזג
lastUpdatedTimestamp_label additional.fields ממוזג
logicalResourceId_label additional.fields ממוזג
main_label additional.fields ממוזג
managementEvent_label additional.fields ממוזג
maxSize_label additional.fields ממוזג
max_results_label additional.fields ממוזג
message additional.fields ערכים ממופים (5 בסך הכל, למשל Records ← managementEvent_label, Records ← `readOnly_labe...
mfaAuthenticated_label additional.fields ממוזג
minSize_label additional.fields ממוזג
minimumHealthyHosts_type_label additional.fields ממוזג
minimumHealthyHosts_value_label additional.fields ממוזג
networkAclId_label additional.fields ממוזג
newInstancesProtectedFromScaleIn_label additional.fields ממוזג
origin_label additional.fields ממוזג
output_desc_label additional.fields ממוזג
output_label additional.fields ממוזג
parameter_label additional.fields ממוזג
physicalResourceId_label additional.fields ממוזג
protocol_label additional.fields ממוזג
readOnly_label additional.fields ממוזג
relationship_resource_ids additional.fields ממוזג
relationship_resource_names additional.fields ממוזג
relationship_resource_types additional.fields ממוזג
resourceStatus_label additional.fields ממוזג
resourceType_label_ additional.fields ממוזג
routeTableAssociationId_label additional.fields ממוזג
routeTableId_label additional.fields ממוזג
ruleAction_label additional.fields ממוזג
ruleNumber_label additional.fields ממוזג
serviceLinkedRoleARN_label additional.fields ממוזג
session_issuer_type_label additional.fields ממוזג
stackDriftStatus_label additional.fields ממוזג
stackId_label additional.fields ממוזג
stackName_label additional.fields ממוזג
stackResourceDriftStatus_label additional.fields ממוזג
stackStatus_label additional.fields ממוזג
state_label additional.fields ממוזג
toPort_label additional.fields ממוזג
trafficRoutingConfig_type_label additional.fields ממוזג
unsupportedResources_resourceId_label additional.fields ממוזג
unsupportedResources_resourceType_label additional.fields ממוזג
updateReplacePolicy_label additional.fields ממוזג
userId_label additional.fields ממוזג
vpczoneIdentifier_label additional.fields ממוזג
has_principal_user extensions.auth.type מופה: true ← MACHINE
message extensions.auth.type מופה: Records ← MACHINE
message intermediary מופה: Records ← intermediary
record.userIdentity.sessionContext.sessionIssuer.accountId intermediary.cloud.project.id מיפוי ישיר
record.userIdentity.sessionContext.sessionIssuer.arn intermediary.resource.name מיפוי ישיר
record.userIdentity.sessionContext.sessionIssuer.principalId intermediary.resource.product_object_id מיפוי ישיר
messageType metadata.description מיפוי ישיר
record.eventCategory metadata.description מיפוי ישיר
configItem.resourceCreationTime metadata.event_timestamp נותח בתור ISO8601
configurationItem.configurationItemCaptureTime metadata.event_timestamp נותח בתור ISO8601
configuration_Item_CaptureTime metadata.event_timestamp נותח בתור RFC3339
digestEndTime metadata.event_timestamp נותח בתור yyyy-MM-dd'T'HH:mm:ssZ
digestStartTime metadata.event_timestamp נותח בתור yyyy-MM-dd'T'HH:mm:ssZ
record.eventTime metadata.event_timestamp נותח בתור yyyy-MM-dd'T'HH:mm:ss'Z'
record.requestParameters.endTime metadata.event_timestamp נותח בתור RFC3339
record.requestParameters.startTime metadata.event_timestamp נותח בתור RFC3339
record.userIdentity.sessionContext.attributes.creationDate metadata.event_timestamp נותח בתור RFC3339
resource_Creation_Time metadata.event_timestamp נותח בתור RFC3339
event_type metadata.event_type מיפוי ישיר
has_principal metadata.event_type מופה: true ← STATUS_UPDATE
has_principal_user metadata.event_type מופה: true ← USER_LOGIN, true ← USER_UNCATEGORIZED
message metadata.event_type מופו: Records ← USER_LOGIN, Records ← USER_UNCATEGORIZED, Records ← `STATUS_UPDA...
config_snapshot_id_value metadata.id מיפוי ישיר
message metadata.id מופה: Records ← bytes
record.eventID metadata.id מיפוי ישיר
record.eventName metadata.product_event_type מיפוי ישיר
record.requestID metadata.product_log_id מיפוי ישיר
message metadata.product_name מופה: Records ← AWS Config
configurationItem.configurationItemVersion metadata.product_version מיפוי ישיר
file_version_value metadata.product_version מיפוי ישיר
record.eventVersion metadata.product_version מיפוי ישיר
message metadata.vendor_name מופה: Records ← AMAZON
message network.http.parsed_user_agent מופה: Records ← parseduseragent
record.userAgent network.http.parsed_user_agent מיפוי ישיר
record.userAgent network.http.user_agent מיפוי ישיר
record.tlsDetails.cipherSuite network.tls.cipher מיפוי ישיר
record.tlsDetails.tlsVersion network.tls.version מיפוי ישיר
record.sourceIPAddress principal.asset.hostname מיפוי ישיר
ip_val principal.asset.ip ממוזג
ip_val_1 principal.asset.ip ממוזג
message principal.asset.ip מופה: Records ← source_ip
source_ip principal.asset.ip ממוזג
record.userIdentity.type principal.cloud.project.type מיפוי ישיר
record.sourceIPAddress principal.hostname מיפוי ישיר
ip_val principal.ip ממוזג
ip_val_1 principal.ip ממוזג
message principal.ip מופה: Records ← source_ip
source_ip principal.ip ממוזג
availabilityZone_1 principal.location.country_or_region מיפוי ישיר
index principal.location.country_or_region מיפוי ישיר
record.awsRegion principal.location.country_or_region מיפוי ישיר
availabilityZone_1_label principal.resource.attribute.labels ממוזג
name_label principal.resource.attribute.labels ממוזג
resourceId_label principal.resource.attribute.labels ממוזג
resourceType_label principal.resource.attribute.labels ממוזג
record.userIdentity.arn principal.resource.name מיפוי ישיר
resource.ARN principal.resource.name מיפוי ישיר
resource.type principal.resource.type מיפוי ישיר
email principal.user.email_addresses ממוזג
record.userIdentity.principalId principal.user.product_object_id מיפוי ישיר
configItem.tags.Contact principal.user.user_display_name מיפוי ישיר
record.userIdentity.sessionContext.sessionIssuer.userName principal.user.user_display_name מיפוי ישיר
user_name principal.user.user_display_name שינוי שם/מיפוי
awsAccountId principal.user.userid מיפוי ישיר
configItem.awsAccountId principal.user.userid מיפוי ישיר
configurationItem.awsAccountId principal.user.userid מיפוי ישיר
record.userIdentity.accessKeyId principal.user.userid מיפוי ישיר
resource.accountId principal.user.userid מיפוי ישיר
message security_result מופה: Records ← security_result
security_result_outer security_result ממוזג
security_result_rule_list security_result ממוזג
keySpec_label security_result.about.labels ממוזג
message security_result.about.labels מופה: Records ← keySpec_label
record.requestParameters.keyId security_result.about.resource.id מיפוי ישיר
record.eventSource security_result.about.resource.name מיפוי ישיר
attribute_key_value_label security_result.detection_fields ממוזג
aws_cloudtrail_arn_label security_result.detection_fields ממוזג
aws_s3_arn_label security_result.detection_fields ממוזג
clientProvidedHostHeader_label security_result.detection_fields ממוזג
digest_public_key_fingerprint_label security_result.detection_fields ממוזג
eventType_label security_result.detection_fields ממוזג
hashAlgorithm_label security_result.detection_fields ממוזג
hashValue_label security_result.detection_fields ממוזג
invokedBy_label security_result.detection_fields ממוזג
message security_result.detection_fields ערכים ממופים (6 בסך הכול, למשל Records ← eventType_label, Records ← `attribute_key_value...
s3Bucket_label security_result.detection_fields ממוזג
s3Object_label security_result.detection_fields ממוזג
message target.asset.attribute.cloud.environment מופה: Records ← AMAZON_WEB_SERVICES
relationship.resourceId target.asset.attribute.cloud.vpc.id מיפוי ישיר
attribute_label target.asset.attribute.labels ממוזג
configItem.awsRegion target.asset.location.country_or_region מיפוי ישיר
configurationItem.awsRegion target.asset.location.country_or_region מיפוי ישיר
message target.asset.platform_software.platform מופה: Windows ← WINDOWS, (Linux/LINUX) ← LINUX
configItem.configuration.privateIpAddress target.ip ממוזג
configItem.configuration.publicIpAddress target.ip ממוזג
configItem.availabilityZone target.location.name מיפוי ישיר
ARN_label target.resource.attribute.labels ממוזג
KeyspaceName_label target.resource.attribute.labels ממוזג
autoScalingGroupARN_label target.resource.attribute.labels ממוזג
autoScalingGroupName_label target.resource.attribute.labels ממוזג
awsAccountId_label target.resource.attribute.labels ממוזג
configurationStateId_label target.resource.attribute.labels ממוזג
configurationStateMd5Hash_label target.resource.attribute.labels ממוזג
granularity_label target.resource.attribute.labels ממוזג
healthCheckGracePeriod_label target.resource.attribute.labels ממוזג
healthCheckType_label target.resource.attribute.labels ממוזג
launchTemplateId_label target.resource.attribute.labels ממוזג
launchTemplateName_label target.resource.attribute.labels ממוזג
metric_label target.resource.attribute.labels ממוזג
terminationPolicies_label target.resource.attribute.labels ממוזג
version_label target.resource.attribute.labels ממוזג
configItem.ARN target.resource.id מיפוי ישיר
configItem.resourceId target.resource.id מיפוי ישיר
configurationItem.resourceId target.resource.id מיפוי ישיר
configItem.resourceName target.resource.name מיפוי ישיר
record.recipientAccountId target.resource.product_object_id מיפוי ישיר
configItem.resourceType target.resource.resource_subtype מיפוי ישיר
configurationItem.resourceType target.resource.resource_subtype מיפוי ישיר
message target.resource.resource_type מופה: Records ← VIRTUAL_MACHINE
record.userIdentity.accountId target.user.userid מיפוי ישיר
לא רלוונטי extensions.auth.type קבוע: MACHINE
לא רלוונטי metadata.event_type קבוע: USER_LOGIN
לא רלוונטי metadata.id קבוע: bytes
לא רלוונטי metadata.product_name קבוע: AWS Config
לא רלוונטי metadata.vendor_name קבוע: AMAZON
לא רלוונטי network.http.parsed_user_agent קבוע: parseduseragent
לא רלוונטי target.asset.attribute.cloud.environment קבוע: AMAZON_WEB_SERVICES
לא רלוונטי target.asset.attribute.cloud.vpc.resource_type קבוע: VPC_NETWORK
לא רלוונטי target.asset.platform_software.platform קבוע: WINDOWS
לא רלוונטי target.resource.resource_type קבוע: VIRTUAL_MACHINE

יומן שינויים

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

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