Skip to content

Commit

Permalink
Upgrade AWS Security hub to v0.0.2
Browse files Browse the repository at this point in the history
- Upgraded Go support to v1.19
- Modified location of function files to new version 0.0.2.
- Fixed CVE-2022-29526
  - Upgraded the `golang.org/x/sys` dependency indirectly; it relates to this issue: sirupsen/logrus#1402
  • Loading branch information
ralongit committed Nov 21, 2023
1 parent 00b514f commit 936e1b5
Show file tree
Hide file tree
Showing 8 changed files with 231 additions and 20 deletions.
Binary file added .DS_Store
Binary file not shown.
34 changes: 17 additions & 17 deletions collector/README.md
Expand Up @@ -18,23 +18,23 @@ Select the button below to create a new stack dedicated to sending events from A

| AWS Region | Launch a stack |
| --- | --- |
| `us-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `us-east-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `us-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `us-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `eu-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `eu-north-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-north-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `eu-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `eu-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `eu-west-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-3.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `sa-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-sa-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `ca-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ca-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `ap-northeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `ap-northeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `ap-northeast-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-3.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `ap-south-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-south-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `ap-southeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `ap-southeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
| `us-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `us-east-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `us-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `us-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `eu-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `eu-north-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-north-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `eu-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `eu-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `eu-west-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-3.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `sa-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-sa-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `ca-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ca-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `ap-northeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `ap-northeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `ap-northeast-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-3.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `ap-south-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-south-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `ap-southeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
| `ap-southeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |

### Step 1 - Specify template

Expand Down
16 changes: 15 additions & 1 deletion collector/go.mod
@@ -1,10 +1,24 @@
module aws-security-hub/collector

go 1.15
go 1.19

require (
github.com/aws/aws-lambda-go v1.26.0
github.com/logzio/logzio-go v1.0.2
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.6.1
)

require (
github.com/StackExchange/wmi v1.2.0 // indirect
github.com/beeker1121/goque v2.1.0+incompatible // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/shirou/gopsutil/v3 v3.21.6 // indirect
github.com/syndtr/goleveldb v1.0.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
golang.org/x/sys v0.1.0 // indirect; indirect, relates to: https://github.com/sirupsen/logrus/pull/1402
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)

0 comments on commit 936e1b5

Please sign in to comment.