Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel2
maxLevel2
typeflat

...

Here you will find the steps to filter this type of event:

Action

Steps

1

Activate Security Command Center service

Info

When SCC is activated, the events will go directly through the Logging service to the default sink. The following steps are optional but recommended to filter SCC events on another Pub/Sub.

In order to receive this type of event, it is necessary to have the Security Command Center service activated.

Refer to the Security Command Center Quickstart video from the Google guide.

2

Setting up a new topic

Refer to the Configuration of the Loggingsection to know how to do it.

3

Setting up a Pub/Sub

Refer to the Configuration of the Loggingsection to know how to do it.

4

Setting up a sink

Refer to the Configuration of the Loggingsection to know how to do it.

...

Note

You have to use the scc_findigs service to pull this data source.

Action

Steps

1

Configure Identity and Access Management (IAM) roles.

Refer to the official Google guide in which additional configurations are described.

2

Activate the Security Command Center API.

3

Setting up a Pub/Sub topic.

4

Creating a Notification configuration.

...

Authentication method

Project ID

Base64 credentials

File credentials

Available on

1

Service account with Base64.

Status
colourGreen
titleRequired

Status
colourGreen
titleRequired

  • Collector Server

  • On-Premise

2

Service account with the file credentials.

Status
colourGreen
titleRequired

Status
colourGreen
titleRequired

  • On-Premise

...

Rw ui tabs macro
Rw tab
titleOn-premise collector

This data collector can be run in any machine that has the Docker service available because it should be executed as a docker container. The following sections explain how to prepare all the required setup for having the data collector running.

Structure

The following directory structure should be created for being used when running the collector:

Code Block
<any_directory>
└── devo-collectors/
    └── <product_name>/
        ├── certs/
        │   ├── chain.crt
        │   ├── <your_domain>.key
        │   └── <your_domain>.crt
        ├── state/
        └── config/ 
            └── config.yaml 
Note

Replace <product_name> with the proper value.

Devo credentials

In Devo, go to Administration → Credentials → X.509 Certificates, download the Certificate, Private key and Chain CA and save them in <product_name>/certs/. Learn more about security credentials in Devo here.

Image RemovedImage Added
Note

Replace <product_name> with the proper value.

Editing the config.yaml file

Code Block
globals:
  debug: false
  id: <collector_id>
  name: <collector_name>
  persistence:
    type: filesystem
    config:
      directory_name: state
outputs:
  devo_1:
    type: devo_platform
    config:
      address: <devo_address>
      port: 443
      type: SSL
      chain: <chain_filename>
      cert: <cert_filename>
      key: <key_filename>
inputs:
  gcp:
    id: <short_unique_id>
    enabled: <input_status>
    requests_per_second: <requests_per_second>
    credentials:
      source_id: <source_id_value>
      project_id: <project_id_value>
      filename: <filename_value>
      file_content_base64: <file_content_base64_value>
    services:
      logging:
        subscription_name: <subscription_id>
        tag: <custom_tag>
        auto_categorization_method: <auto_categorization_method>
        request_period_in_seconds: <request_period_in_seconds>
        enable_pubsub_undelivered_messages_logging: <enable_pubsub_undelivered_messages_logging>
        pubsub_undelivered_messages_request_interval_in_seconds: <pubsub_undelivered_messages_request_interval_in_seconds>
      scc-findings:
        subscription_name: <subscription_id>
        tag: <custom_tag>
        request_period_in_seconds: <request_period_in_seconds>
Info

All defined service entities will be executed by the collector. If you do not want to run any of them, just remove the entity from the services object.

Replace the placeholders with your required values following the description table below:

Parameter

Data Type

Type

Value Range / Format

Details

short_unique_id

int

Mandatory

Minimum length: 1
Maximum length: 5

Use this param to give an unique id to this input service.

Note

This parameter is used to build the persistence address, do not use the same value for multiple collectors. It could cause a collision.

input_status

bool

Mandatory

false / true

Use this param to enable or disable the given input logic when running the collector. If the value is true, the input will be run. If the value is false, it will be ignored.

requests_per_second

int

Optional

Minimum value: 1

Customize the maximum number of API requests per second. If not used, the default setting will be used: 100000 requests/sec.

Info

This parameter should be removed if it is not used.

source_id_value

int

Mandatory

Minimum length: 1
Maximum length: 5

Use this param to assign a custom name for identifying the environment of the infrastructure.

Info

This source_id will be added to all events ingested by this collector in the field @devo_source_id and helps you to filter based on this entity.

project_id_value

str

Mandatory

Minimum length: 1

The name of the GCP project. The Configuration of the Logging service section guide shows how to get this value.

Info

This project_id will be added to all events ingested by this collector in the field @devo_project_id and helps you to filter based on this entity.

filename_value

str

Optional

Minimum length: 1

The file name with the account credentials. The Configuration of the Logging service section guide shows how to get this value.

Info

This parameter is optional, but you must select one between filename_value and file_content_base64_value.

Info

This parameter should be removed if it is not used.

file_content_base64_value

str

Optional

Minimum length: 1

The Service Account credentials in base64. The Configuration of the Logging service section guide shows how to get this value.

Info

This parameter is optional, but you must select one between filename_value and file_content_base64_value.

Info

This parameter should be removed if it is not used.

subscription_id

str

Mandatory

Minimum length: 1

The ID of the Pub/sub subscription. The Configuration of the Logging service section guide shows how to get this value.

custom_tag

str

Optional

A Devo tag. See for more information see Devo tags

Info

Recommended custom_tag for the scc-findings service:
cloud.gcp.scc.findings

There are three possible scenarios:

  • Send all events to custom tag: Add the desired value to the custom_tag

  • Send the events to the default tag in the Logging service: Do not use the custom_tag

  • Send SCC findings events to their corresponding tag: add the cloud.gcp.scc.findings value to the custom tag in scc-findings service.

Info

If a custom_tag is not defined, all events that are not in JSON format will be ingested to the tag cloud.gcp.unknown.none

Info

This parameter should be removed if it is not used.

auto_categorization_method

str

Optional

It can have one of these two values:

  • logname_field

  • resource_type_field

The default value of this parameter islogname_field. It is used only to set the auto-categorization method to resource_type_field.

Info

Visit the Devo categorization and destination section for details.

Info

This parameter should be removed if it is not used.

request_period_in_seconds

int

Optional

Minimum length: 1

Period in seconds used between each data pulling, this value will overwrite the default value (60 seconds)

Info

This parameter should be removed if it is not used.

enable_pubsub_undelivered_messages_logging

bool

Optional

false / true

Use this param to enable/disable the undelivered messages logging feature, that will show how many undelivered messages remains in the GCP pubsub queue every N data pulls.
Default value: false

Note

Bear in mind that this feature uses the monitoring API, that might have a cost if we exceed a certain number of requests.
More information here.

Info

This parameter should be removed if it is not used.

pubsub_undelivered_messages_request_interval_in_seconds

int

Optional

Minimum value: 1

This param, defines (when enabled) every how many seconds will be trigered the undelivered messages log line.
Default value: 300

Note

Bear in mind that this feature uses the monitoring API, that might have a cost if we exceed a certain number of requests.
More information here.

Info

This parameter should be removed if it is not used.

Download the Docker image

The collector should be deployed as a Docker container. Download the Docker image of the collector as a .tgz file by clicking the link in the following table:

Collector Docker image

SHA-256 hash

collector-gcp_collector-docker-image-1.67.0.tgz

ae0ac881ef2acc666947f13639eee259aab10709c4f8a27a4c1c0b59aae5e5fbfebf2e2aecdd8dc5ebf2561611fbb3bcdbbd8a995a1e922da2932b1625b7b5ea

Use the following command to add the Docker image to the system:

Code Block
gunzip -c <image_file>-<version>.tgz | docker load
Note

Once the Docker image is imported, it will show the real name of the Docker image (including version info). Replace <image_file> and <version> with a proper value.

The Docker image can be deployed on the following services:

Docker

Execute the following command on the root directory <any_directory>/devo-collectors/<product_name>/

Code Block
docker run 
--name collector-<product_name> 
--volume $PWD/certs:/devo-collector/certs 
--volume $PWD/config:/devo-collector/config 
--volume $PWD/state:/devo-collector/state 
--env CONFIG_FILE=config.yaml 
--rm 
--interactive 
--tty 
<image_name>:<version>
Note

Replace <product_name>, <image_name> and <version> with the proper values.

Docker Compose

The following Docker Compose file can be used to execute the Docker container. It must be created in the <any_directory>/devo-collectors/<product_name>/ directory.

Code Block
version: '3'
services:
  collector-<product_name>:
    image: <image_name>:${IMAGE_VERSION:-latest}
    container_name: collector-<product_name>
    volumes:
      - ./certs:/devo-collector/certs
      - ./config:/devo-collector/config
      - ./credentials:/devo-collector/credentials
      - ./state:/devo-collector/state
    environment:
      - CONFIG_FILE=${CONFIG_FILE:-config.yaml}

To run the container using docker-compose, execute the following command from the <any_directory>/devo-collectors/<product_name>/ directory:

Code Block
IMAGE_VERSION=<version> docker-compose up -d
Note

Replace <product_name>, <image_name> and <version> with the proper values.

Rw tab
titleCloud collector

We use a piece of software called Collector Server to host and manage all our available collectors.

To enable the collector for a customer:

  1. In the Collector Server GUI, access the domain in which you want this instance to be created

  2. Click Add Collector and find the one you wish to add.

  3. In the Version field, select the latest value.

  4. In the Collector Name field, set the value you prefer (this name must be unique inside the same Collector Server domain).

  5. In the sending method select Direct Send. Direct Send configuration is optional for collectors that create Table events, but mandatory for those that create Lookups.

  6. In the Parameters section, establish the Collector Parameters as follows below:

Editing the JSON configuration

Code Block
{
  "global_overrides": {
    "debug": false
  },
  "inputs": {
    "gcp": {
      "id": "<short_unique_id>",
      "enabled": <input_status>,
      "requests_per_second": <requests_per_second>,
      "credentials": {
        "source_id": "<source_id_value>",
        "project_id": "<project_id_value>",
        "filename": "<filename_value>",
        "file_content_base64": "<file_content_base64>"
      },
      "services": {
        "logging": {
          "subscription_name": "<subscription_id>",
          "tag": "<custom_tag>",
          "auto_categorization_method": "<auto_categorization_method>",
          "request_period_in_seconds": <request_period_in_seconds>,
          "enable_pubsub_undelivered_messages_logging": <enable_pubsub_undelivered_messages_logging>,
          "pubsub_undelivered_messages_request_interval_in_seconds": <pubsub_undelivered_messages_request_interval_in_seconds>
        },
        "scc-findings": {
          "subscription_name": "<subscription_id>",
          "tag": "<custom_tag>",
          "request_period_in_seconds": <request_period_in_seconds>
        }
      }
    }
  }
}
Info

All defined service entities will be executed by the collector. If you do not want to run any of them, just remove the entity from the services object.

Please replace the placeholders with real world values following the description table below:

Type Range

Parameter

Data

type

Type

Value

range / Format

Details

short_unique_id

int

Mandatory

Minimum length: 1
Maximum length: 5

Use this param to give an unique id to this input service.

Note

This parameter is used to build the persistence address, do not use the same value for multiple collectors. It could cause a collision.

input_status

bool

Mandatory

false / true

Use this param to enable or disable the given input logic when running the collector. If the value is true, the input will be run. If the value is false, it will be ignored.

requests_per_second

int

Optional

Minimum value: 1

Customize the maximum number of API requests per second. If not used, the default setting will be used: 100000 requests/sec.

This parameter should be removed if it is not used.

source_id_value

int

Mandatory

Minimum length: 1
Maximum length: 5

Use this param to assign a custom name for identifying the environment of the infrastructure.

Info

This source_id will be added to all events ingested by this collector in the field @devo_source_id and helps you to filter based on this entity.

project_id_value

str

Mandatory

Minimum length: 1

The name of the GCP project. The Configuration of the Logging service section guide shows how to get this value.

Info

This project_id will be added to all events ingested by this collector in the field @devo_project_id and helps you to filter based on this entity.

filename_value

str

Optional

Minimum length: 1

The file name with the account credentials. The Configuration of the Logging service section guide shows how to get this value.

Info

This parameter is optional, but you must select one between filename_value and file_content_base64_value.

This parameter should be removed if it is not used.

file_content_base64_value

str

Optional

Minimum length: 1

The Service Account credentials in base64. The Configuration of the Logging service section guide shows how to get this value.

Info

This parameter is optional, but you must select one between filename_value and file_content_base64_value.

This parameter should be removed if it is not used.

subscription_id

str

Mandatory

Minimum length: 1

The ID of the Pub/sub subscription. The Configuration of the Logging service section guide shows how to get this value.

custom_tag

str

Optional

A Devo tag. See for more information see Devo tags

Recommended custom_tag for the scc-findings service:
cloud.gcp.scc.findings

There are three possible scenarios:

  • Send all events to custom tag: Add the desired value to the custom_tag

  • Send the events to the default tag in the Logging service: Do not use the custom_tag

  • Send SCC findings events to their corresponding tag: add the cloud.gcp.scc.findings value to the custom tag in scc-findings service.

If a custom_tag is not defined, all events that are not in JSON format will be ingested to the tag cloud.gcp.unknown.none

This parameter should be removed if it is not used.

auto_categorization_method

str

Optional

It can have one of these two values:

  • logname_field

  • resource_type_field

The default value of this parameter islogname_field. It is used only to set the auto-categorization method to resource_type_field.

Info

Visit the Devo categorization and destination section for details.

This parameter should be removed if it is not used.

request_period_in_seconds

int

Optional

Minimum length: 1

Period in seconds used between each data pulling, this value will overwrite the default value (60 seconds)

This parameter should be removed if it is not used.

enable_pubsub_undelivered_messages_logging

bool

Optional

false / true

Use this param to enable/disable the undelivered messages logging feature, that will show how many undelivered messages remains in the GCP pubsub queue every N data pulls.
Default value: false

Note

Bear in mind that this feature uses the monitoring API, that might have a cost if we exceed a certain number of requests.
More information here.

This parameter should be removed if it is not used.

pubsub_undelivered_messages_request_interval_in_seconds

int

Optional

Minimum value: 1

This param, defines (when enabled) every how many seconds will be trigered the undelivered messages log line.
Default value: 300

Note

Bear in mind that this feature uses the monitoring API, that might have a cost if we exceed a certain number of requests.
More information here.

This parameter should be removed if it is not used.

...

Release

Released on

Release type

Details

Recommendations

v1.7.0

Status
colourYellow
titleIMPROVEMENTS

Improvements

  • Added small changes to make the configuration compatible with older versions than 1.2.1

  • wheel upgraded from 0.42.0 to 0.43.0

  • google-cloud-logging upgraded from 3.6.0 to 3.10.0

  • google-cloud-pubsub upgraded from 2.18.4 to 2.21.4

  • google-cloud-monitoring upgraded from 2.15.1 to 2.21.0

  • pandas upgraded from 1.3.5 to 1.5.3

Recommended version

v1.6.0

Status
colourYellow
titleIMPROVEMENTS

Improvements

  • Upgraded DCSDK from 1.9.2 to 1.11.1

  • Upgrade the Docker base image to 1.2.0

Recommended versionUpgrade

v1.5.0

Status
colourYellow
titleIMPROVEMENTS
Status
colourGreen
titleNEW FEATURES

Improvements

  • Upgraded DCSDK from 1.9.0 to 1.9.2

    • Store lookup instances into DevoSender to avoid creation of new instances for the same lookup

    • Ensure service_config is a dict into templates

    • Upgrade internal dependencies

New Features

Upgrade

v1.4.0

Status
colourYellow
titleIMPROVEMENTS

Improvements:

  • Updated DCSDK from 1.7.2 to 1.9.0

    • Changed log level to some messages from info to debug

    • Changed some wrong log messages

    • Upgraded some internal dependencies

    • Changed queue passed to setup instance constructor

    • Ability to validate collector setup and exit without pulling any data

    • Ability to store in the persistence the messages that couldn't be sent after the collector stopped

    • Ability to send messages from the persistence when the collector starts and before the puller begins working

    • Ensure special characters are properly sent to the platform

Upgrade

v1.3.0

Status
colourYellow
titleIMPROVEMENTS
Status
colourRed
titleBUG FIXING

Improvements:

  • Improved base64 generation.

  • Updated DCSDK from 1.6.3 to 1.7.2.

    • Added a lock to enhance sender object

    • Added new class attrs to the __setstate__ and __getstate__ queue methods

    • Fix sending attribute value to the __setstate__ and __getstate__ queue methods

    • Added log traces when queues are full and have to wait

    • Added log traces of queues time waiting every minute in debug mode

    • Added method to calculate queue size in bytes

    • Block incoming events in queues when there are no space left

    • Send telemetry events to Devo platform

    • Upgraded internal Python dependency Redis to v4.5.4

    • Upgraded internal Python dependency DevoSDK to v5.1.3

    • Fixed obfuscation not working when messages are sent from templates

    • Obfuscation service can be now configured from user config and module definiton

    • Obfuscation service can now obfuscate items inside arrays.

Bug fixing:

  • Fixed a known issue on the DevoSender with the DCSDK update.

Upgrade

v1.2.2

Febr 27, 2023

-

-

-

v1.2.1

Nov 29, 2022

Status
colourYellow
titleIMPROVEMENTS
Status
titleBUG FIXING

Improvements:

  • Devo Collector SDK upgraded from version 1.4.2 to version 1.4.4b.

    • Added some extra checks for supporting MacOS as development environment

    • The "template" supports the controlled stop functionality

    • Some log traces now are shown less frequently

    • The default value for the logging frequency for "main" processes hsa been changed (to 120 seconds)

    • Added log traces for knowing the execution environment status (debug mode)

    • Fixes in the current puller template version

    • The Docker container exits with the proper error code

Bug Fixing:

  • Configurable logging traces for undelivered messages in GCP moved to thread model to avoid a special case in which is never triggered.
    pubsub_undelivered_messages_request_interval changed to pubsub_undelivered_messages_request_interval_in_seconds. New default value, every 600 seconds.

Recommended version

v1.1.4

Status
colourGreen
titleIMPROVEMENT

Improvements:

  • New tag cloud.gcp.unknown.none for all services.

  • When the collector processes a message that is not in JSON format, it sends it to the cloud.gcp.unknown.none table (only if the custom tag is not used).

  • The behaviour of custom tags has been changed: If a custom tag is used the message will always go to the custom tag even if it is not in JSON format.

Upgrade

v1.1.3

Status
colourGreen
titleIMPROVEMENT

Improvements:

  • Validated base64 variables from config.yaml. A new function was created to check if the base64 token in the configuration file has a valid format.

  • Increase the Queue consuming throughput

Upgrade

v1.1.2

Status
colourGreen
titleIMPROVEMENT

Status
colourYellow
titleVULNS

Improvements:

  • The underlay Devo Collector SDK has been upgraded to v1.1.4 to improve efficiency, increase the resilience and mitigate vulnerabilities.

  • The hard-reset procedure when losing connection with Devo has been improved.

Vulnerabilities mitigated:

  • CVE-2022-1664

  • CVE-2021-33574

  • CVE-2022-23218

  • CVE-2022-23219

  • CVE-2019-8457

  • CVE-2022-1586

  • CVE-2022-1292

  • CVE-2022-2068

  • CVE-2022-1304

  • CVE-2022-1271

  • CVE-2021-3999

  • CVE-2021-33560

  • CVE-2022-29460

  • CVE-2022-29458

  • CVE-2022-0778

  • CVE-2022-2097

  • CVE-2020-16156

  • CVE-2018-25032

Upgrade

v1.1.1

Status
colourGreen
titleIMPROVEMENT

Improvements:

  • The underlay Devo Collector SDK has been upgraded to v1.1.3 to improve efficiency and performance.

  • When the collector loses the connection with Devo it executes a hard-restart protocol to force the reconnection with a fresh configuration.

Upgrade

v1.1.0

Status
colourGreen
titleIMPROVEMENT

Improvements:

  • The following properties have been renamed to be more user-readable:

    • credentials_file to filename

    • credentials_file_content_base64 to file_content_base64

  • Added new optional categorization mode which categorizes the events based on their fields to create the Devo Tag.

  • The underlay Devo Collector SDK has been upgraded to v1.1.0 to improve efficiency.

Upgrade