Cribl 온보딩 가이드

AWS S3, Cribl, Panther를 사용하여 민감한 로그 데이터를 마스킹하는 방법

개요

이 가이드에 설명된 프로세스는 Cribl Cloud 또는 Cribl Self-Hosted를 사용하여 민감한 로그 데이터를 마스킹하는 방법을 설명하며, 특히 Amazon Web Services(AWS) S3 버킷과 Panther 내에서 작동합니다. 전반적으로 우리는 다음을 수행합니다:

  • Cribl에서 S3 버킷을 인증하며, 수동 방식과 Event Breakers의 예시를 포함합니다.

  • JSON 데이터 형식을 사용하여 AWS S3 소스와 대상 구성을 설정합니다.

  • Cribl 적용 전과 후의 마스크를 사용한 JSON 이벤트 예시를 제공합니다.

Cribl로 민감한 필드를 마스킹하는 방법

1단계: Cribl에서 AWS S3 소스 구성

  1. Cribl에 로그인합니다. 왼쪽에서 그룹으로 이동한 다음, 페이지 상단에서 라우팅 드롭다운을 클릭하고 Quick Connect. In Cribl, the groups icon on the left is highlighted. The Routing tab's dropdown menu is displayed, showing the options "Data Routes" and "QuickConnect."

  2. 을 클릭합니다 Add Source를 선택한 다음, 소스 목록에서 Amazon S3를 선택합니다. The image shows a screen with the header "QuickConnect." The option "Unconnected" is selected. Beneath that, there is a button labeled "Add Source."

  3. 다음 항목 아래에서 Configure > General Settings고유한 입력 ID, SQS 큐의 ARN을 입력하고, 필요에 따라 추가 필터를 입력합니다. The image shows Cribl's Configure > General Settings page. It includes fields for Input ID, Queue, Filename Filter, Region, and Tags.

  4. 을 클릭합니다 인증 을 왼쪽에서 클릭합니다. 다음 인증 방법 중 하나를 선택합니다:

    • 수동 - 액세스 키와 시크릿 키가 필요합니다(AWS에서 액세스 키와 시크릿 키를 생성해야 합니다)

    • 시크릿 - 시크릿 키 쌍이 필요합니다(AWS에서 이 키 쌍을 생성해야 합니다)

    • 자동 - Assume Role 섹션에 구성할 AWS 계정 ID와 ARN이 필요합니다. 이 역할은 S3 및/또는 SQS에 대한 액세스 권한이 있어야 합니다. The Configure section of Cribl is displayed. On the left sidebar, "Authentication" is highlighted. The Authentication Method is set to manual. There are fields for Access Key and Secret Key. 위의 예시 화면에서는 "Manual"이 선택되어 있습니다.

  5. 을 클릭합니다 Event Breakers 를 왼쪽에서 선택합니다. Cribl event breaker를 선택합니다.

    • 참고: 이 단계는 Cribl이 들어오는 JSON 데이터를 파싱할 수 있게 합니다.

2단계: Cribl에서 AWS S3 대상 구성

  1. QuickConnect 페이지로 돌아갑니다. 클릭한 후 Destination 추가 Amazon S3를 선택합니다. In QuickConnect under "Sources", Amazon S3 is chosen.

  2. General Settings 페이지에서 다음을 입력합니다:

    • S3 버킷 이름. AWS에서는 이 S3 버킷들이 같을 수 있습니다. 필요하다면 버킷 내 객체는 prefix 필터로 구분할 수 있습니다.

    • 버킷 리전

    • 접두사 출력되는 JSON 파일의

    • 파일 이름 접두사 표현식 The General Settings page for the S3 source is displayed. It contains fields for Output ID, S3 Bucket Name, Region, Staging Location, Key Prefix, Partitioning Expression, Data Format, File Name Prefix Expression, File Name Suffix Expression, Compress, Backpressure behavior, and Tags.\

  3. 을 클릭합니다 인증 을 왼쪽에서 클릭합니다. 다음 인증 방법 중 하나를 선택합니다:

    • 수동 - 액세스 키와 시크릿 키가 필요합니다(AWS에서 액세스 키와 시크릿 키를 생성해야 합니다)

    • 시크릿 - 시크릿 키 쌍이 필요합니다(AWS에서 이 키 쌍을 생성해야 합니다)

    • 자동 - Assume Role 섹션에 구성할 AWS 계정 ID와 ARN이 필요합니다. 이 역할은 S3 및/또는 SQS에 대한 액세스 권한이 있어야 합니다. The Configure section of Cribl is displayed. On the left sidebar, "Authentication" is highlighted. The Authentication Method is set to manual. There are fields for Access Key and Secret Key. 위의 예시 화면에서는 "Manual"이 선택되어 있습니다.

3단계: Cribl에서 파이프라인 구성

  1. 소스와 대상을 연결하는 점선 클릭: The sources page in Cribl is displayed. At the bottom of the screen, there is a popup dialog labeled "Connection Configuration." "Pipeline" is selected.

    • Connection Configuration 대시보드로 이동합니다.

  2. Connection Configuration 대시보드의 오른쪽 상단에서 + Pipeline. 을 클릭합니다. 나타나는 드롭다운 메뉴에서 Create Pipeline. In the Connection Configuration dashboard, in the upper right, the "Pipeline" dropdown menu is expanded.

  3. 가 나타나는 "Create New Pipeline" 팝업 대화상자에서 이름 redactedID 필드에 입력합니다. 필요에 따라 Async Function Timeout과 Description을 입력한 다음 저장. The "Create New Pipeline" form is open. There are fields are ID, Async Function Timeout (ms), and Description.

  4. Processing / Pipelines 페이지에서 파란색 기어 아이콘을 클릭합니다. The "Processing / Pipelines" tab at the top is seleted. There is a red arrow pointing to a gear icon in the upper right.

  5. 오른쪽 상단에서 Edit as JSON. The "Processing / Pipelines" tab is selected at the top. In the upper right, there is an "Edit as JSON" link.

  6. 아래의 JSON 블록을 붙여넣습니다. 아래 JSON 블록에는 두 개의 필터가 있습니다:

    • Mask: 다음 항목의 모든 내용을 바꿉니다 name 필드를 REDACTED

    • Eval: 다음 필드를 제거합니다 _raw cribl_breaker crible_pipe _time\

  7. JSON을 저장합니다.

JSON이 저장되면 UI에 아래 스크린샷과 유사하게 마스킹 규칙이 반영됩니다:

The Processing / Pipelines page is open. Under "Masking Rules", the Match Regex value is /(.*) and the Replace Expression value is `REDACTED`.

완성된 Data Route는 아래 스크린샷과 유사하게 표시됩니다:

The image shows the QuickConnect screen. On the left under Sources, "S3, cribl-source-s3" is listed. There is a dotted line connecting it to "S3 cribl-destination" under the Destinations header.

JSON 예시: Cribl 전후

다음 예시는 이전 단계에서 언급한 mask 필터를 사용한 JSON 이벤트를 보여줍니다. 마스크 필터를 사용한 후 name 필드 Bella 는 다음으로 대체됩니다 REDACTED.

Cribl 이전 마스크:

Cribl 이후 마스크:

구성 후 마스크 필터가 예상대로 작동하는지 반드시 확인하시기 바랍니다. 마스크 필터가 올바르게 작동하는 것이 확인되면, 마스킹된 로그를 Panther로 수집하세요 S3 Data Transport를 사용하여.

마지막 업데이트

도움이 되었나요?