Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature artifact extractor #1250

Merged
merged 57 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from 55 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
9ae1538
bumping version to 3.2.0
ryandeivert Mar 31, 2020
254c95b
migrating Athena function to use tf_lambda module (#1217)
ryandeivert Apr 1, 2020
69f1d35
fixing duplicate resource issues (#1218)
ryandeivert Apr 1, 2020
fc02df5
fixing tf targets for athena deploy (#1220)
ryandeivert Apr 2, 2020
dba4e0f
adding "--config-dir" flag to CLI to support specifying path for conf…
ryandeivert Apr 3, 2020
272f51c
updating publishers to accept configurable paths (#1223)
ryandeivert Apr 3, 2020
3256e81
updating tf_lambda module to remove extra resources (#1225)
ryandeivert Apr 3, 2020
f15c692
fixing rollback for all functions, removing 'all' flag for function d…
ryandeivert Apr 3, 2020
a83f3e9
fixing tf cycle and index issue (#1226)
ryandeivert Apr 3, 2020
c6af15d
[core] Artifact Extractor lambda code
Apr 8, 2020
4d5ec0b
[core] load firehose client for artifact extractor
Apr 8, 2020
c1b12ce
[core] Move FirehoseClient to shared folder
Apr 8, 2020
d495a48
[test] Here we go pylint
Apr 8, 2020
319bc61
[docs] Add high level Normalization doc
Apr 8, 2020
ed8d3b0
Ooops, leftover print
Apr 8, 2020
a50a93c
Address coment about docc
Apr 8, 2020
7647608
bumping version to 3.3.0
ryandeivert Apr 9, 2020
eb2b54a
Merge feature branch which has rebased onto release-3-3-0
Apr 10, 2020
2db99cb
Remove a FIXME comment
Apr 10, 2020
ec68fa3
Merge pull request #1230 from airbnb/cylin-ae-lambda
chunyong-lin Apr 10, 2020
759b81e
Add terraform resources
Apr 13, 2020
8702d7b
Fix some issues discovered during terraform build
Apr 14, 2020
5d1248e
[test] Add unit test cases and tune some code during testing
Apr 15, 2020
77e3e1f
[cli] update artifact extractor module resource for lambda deploy
Apr 15, 2020
c94be65
[doc] Update docstring
Apr 15, 2020
ebba5c5
pylint
Apr 15, 2020
4e87c83
Address comments
Apr 15, 2020
8e5643b
Address more comments
Apr 15, 2020
cfb31dd
Merge pull request #1237 from airbnb/cylin-ae-terraform
chunyong-lin Apr 15, 2020
d07b310
[bugs] Fixed couple bugs before normalization code change
Apr 16, 2020
a91c68e
[core] Refactor normalization code, unit test cases and add new ones
Apr 17, 2020
854bf84
[core] Re-implement normalization code \O/
Apr 22, 2020
b353d11
[docs] Update docs
Apr 22, 2020
6631ca5
[docs] More docs
Apr 22, 2020
4357d58
Rework normalization logic to use key path from conf/schemas/*.json t…
Apr 27, 2020
8cb8a85
[tests] update unit test cases
Apr 27, 2020
cf3c61b
[rule][conf] Update conf right_to_left_character rule to use new norm…
Apr 27, 2020
9c88c0e
[docs] Update docs and address comments
Apr 27, 2020
202b2bc
Fix a bug and update the unit test helper
Apr 27, 2020
d19d23e
Remove unnecessary comments
Apr 27, 2020
4e0e6d8
buggy, remove None values from normalization field
Apr 28, 2020
bb2d306
Merge pull request #1238 from airbnb/cylin-ae-normalization
chunyong-lin Apr 28, 2020
2d55b29
Merge remote-tracking branch 'origin/release-3-3-0' into feature-arti…
Apr 29, 2020
f14524e
Add record id to artifacts and record
Apr 29, 2020
8d5f59c
Merge pull request #1242 from airbnb/cylin-ae-record-id
chunyong-lin May 1, 2020
c8a01eb
[tf] Upgrade terraform aws provider to 2.48.0
May 5, 2020
0041af8
Add condition to normalizer
May 5, 2020
fca035e
[docs] Update docs
May 5, 2020
ed3cad5
Address comment
May 5, 2020
00699ee
Merge pull request #1245 from airbnb/cylin-ae-conditions
chunyong-lin May 7, 2020
fc23354
Add three custom metrics
May 8, 2020
08725d1
Merge pull request #1246 from airbnb/cylin-ae-custom-metrics
chunyong-lin May 11, 2020
aaa1f06
Merge branch 'release-3-3-0' into feature-artifact-extractor
Jun 9, 2020
7923eec
[cli] fix undeclared module issue related to artifact_extractor
Jun 10, 2020
28326c7
[doc] Update artifact extractor deploy instruction
Jun 11, 2020
5d75678
Merge branch 'release-3-3-0' into feature-artifact-extractor
Jun 11, 2020
0757628
Merge branch 'release-3-3-0' into feature-artifact-extractor
Jun 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions conf/lambda.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,29 @@
"subnet_ids": []
}
},
"artifact_extractor_config": {
"concurrency_limit": 10,
"enabled": false,
"firehose_buffer_size": 128,
"firehose_buffer_interval": 900,
"log_level": "info",
"memory": 128,
"metric_alarms": {
"errors": {
"enabled": true,
"evaluation_periods": 1,
"period_secs": 300,
"threshold": 0
},
"throttles": {
"enabled": true,
"evaluation_periods": 1,
"period_secs": 300,
"threshold": 0
}
},
"timeout": 300
},
"athena_partitioner_config": {
"concurrency_limit": 10,
"memory": 128,
Expand Down
24 changes: 23 additions & 1 deletion conf/schemas/carbonblack.json
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,29 @@
"uid",
"username",
"sha256"
]
],
"normalization": {
"command": [
{
"path": ["command_line"],
"function": "Command line"
}
],
"path": [
{
"path": ["path"],
"function": "Process path"
},
{
"path": ["parent_path"],
"function": "Process parent path"
},
{
"path": ["process_path"],
"function": "Process parent path"
}
]
}
}
},
"carbonblack:ingress.event.regmod": {
Expand Down
50 changes: 49 additions & 1 deletion conf/schemas/cloudwatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,55 @@
"time": "string",
"version": "string"
},
"parser": "json"
"parser": "json",
"configuration": {
"normalization": {
"event_name": ["detail", "eventName"],
"account": [
{
"path": [
"account"
],
"function": "Destination account ID"
},
{
"path": [
"detail",
"userIdentity",
"principalId"
],
"function": "Source account ID"
}
],
"ip_address": [
{
"path": [
"detail",
"sourceIPAddress"
],
"function": "Source IP addresses"
}
],
"user_agent": [
"detail",
"userAgent"
],
"user_identity": [
{
"path": ["detail", "userIdentity", "type"],
"function": "User identity type"
},
{
"path": ["detail", "userIdentity", "arn"],
"function": "User identity arn"
},
{
"path": ["detail", "userIdentity", "userName"],
"function": "User identity username"
}
]
}
}
},
"cloudwatch:flow_logs": {
"schema": {
Expand Down
16 changes: 15 additions & 1 deletion conf/schemas/osquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,21 @@
"log_type",
"logNumericsAsNumbers",
"numerics"
]
],
"normalization": {
"command": [
{
"path": ["columns", "command"],
"function": "Command line from shell history"
}
],
"file_path": [
{
"path": ["columns", "history_file"],
"function": "Shell history file path"
}
]
}
}
},
"osquery:snapshot": {
Expand Down
Binary file added docs/images/artifacts.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/cloudwatch_events.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/normalization-arch.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Table of Contents
rule-promotion
historical-search
scheduled-queries
normalization
conf-schemas-examples
troubleshooting
faq
Expand Down