-
Notifications
You must be signed in to change notification settings - Fork 615
TYCHON Initial Agent Upload #6701
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
Closed
Closed
Changes from 16 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
c99b314
TYCHON Inital Agent Upload
joeperuzzi 12651b6
Update packages/tychon/changelog.yml
joeperuzzi 9bc9902
Update packages/tychon/_dev/build/build.yml
joeperuzzi ed2c9c1
Update packages/tychon/changelog.yml
joeperuzzi 4a0fa02
Update packages/tychon/manifest.yml
joeperuzzi bb3ea07
Please delete this file. It is not needed since the file in the root …
joeperuzzi 4e3ff95
Removed file based on PR Request
joeperuzzi 933b66b
Update packages/tychon/data_stream/tychon_cve/agent/stream/stream.yml…
joeperuzzi 3f2a742
adding TYCHON package to codeowners file
joeperuzzi be4c100
Update stream.yml.hbs
tychon1 8c23a3b
Update stream.yml.hbs
tychon1 f109f93
Update default.yml
tychon1 1ec1865
Update default.yml
tychon1 32d77c6
Update stream.yml.hbs
tychon1 e0bad7a
Update fields.yml
tychon1 6035366
Update README.md
tychon1 c6660a2
Update README.md and Fields.
tychon1 b8f8608
Update missing descriptions
tychon1 782a7fc
Put License back
tychon1 ee83a6c
Added pipeline tests
tychon1 8e83866
Updated pipeline tests
tychon1 feb2b9a
Merge pull request #1 from joeperuzzi/bruceUpdates
joeperuzzi 45ca0bd
Merge branch 'main' into tychon_agentless
joeperuzzi 0890a32
Moving LIcnese.txt to the root directory
joeperuzzi 3113785
Update Changes from PR 6701
tychon1 4bbed69
Several code recommendation changes based upon PR comments
joeperuzzi f67356b
Removal of host.ip~, replaced with tychon.ip~.
skidmoco f6c27ea
added removal of host.ip~ fields to pipeline for each category area
skidmoco 86439db
Added requested final file carriage return
skidmoco f5734d8
Remove iteration variable as recommended
skidmoco aa3e668
Merge pull request #2 from joeperuzzi/justins
skidmoco 1723f65
Added ARF
tychon1 c4404a8
Updating description of vulnerability ds
joeperuzzi 35874d1
Merge pull request #3 from joeperuzzi/justins
joeperuzzi 9a76695
Converted pipeline method to gsub
tychon1 f72e9ad
Updated script to yaml pipe syntax
tychon1 2b70820
Changes to be committed:
joeperuzzi 681f1f5
Changes to be committed:
joeperuzzi bd27659
Merge branch 'bruceUpdates' into BruceLatest&Greatest
joeperuzzi 7dc7b0f
Changes to be committed:
joeperuzzi cf48b30
Delete test-arf.json-config.yml
tychon1 a4803e3
Create test-arf.json-config.yml
tychon1 a9a38fc
Update default.yml
tychon1 b20ed4b
Update default.yml
tychon1 73b7b79
Update test-epp.json-expected.json
tychon1 63a0620
Update default.yml
tychon1 c1ba00f
Update test-stig.json-expected.json
tychon1 6256e4c
updated fields
tychon1 ad8c478
Removed ARF
tychon1 7e25d28
Merge pull request #6 from joeperuzzi/BruceChangesNoSync
joeperuzzi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| dependencies: | ||
| ecs: | ||
| reference: git@8.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # newer versions go on top | ||
| - version: "0.0.1" | ||
| changes: | ||
| - description: Fixed incorrect types in field.yml and cleaned up formatting | ||
| type: enhancement | ||
| link: https://github.com/elastic/integrations/pull/6701 |
23 changes: 23 additions & 0 deletions
23
packages/tychon/data_stream/tychon_cve/agent/stream/stream.yml.hbs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| paths: | ||
| {{#each paths as |path|}} | ||
| - {{path}} | ||
| {{/each}} | ||
| tags: | ||
| {{#if preserve_original_event}} | ||
| - preserve_original_event | ||
| {{/if}} | ||
| {{#each tags as |tag|}} | ||
| - {{tag}} | ||
| {{/each}} | ||
| {{#contains "forwarded" tags}} | ||
| publisher_pipeline.disable_host: true | ||
| {{/contains}} | ||
| processors: | ||
| - add_locale: ~ | ||
| {{#if processors}} | ||
| {{processors}} | ||
| {{/if}} | ||
| json: | ||
| keys_under_root: true | ||
| expand_keys: true | ||
|
|
51 changes: 51 additions & 0 deletions
51
packages/tychon/data_stream/tychon_cve/elasticsearch/ingest_pipeline/default.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| --- | ||
| description: Pipeline for parsing TYCHON Vulnerability Scan Results | ||
| processors: | ||
| - set: | ||
| if: "ctx.containsKey('tychon') && ctx.tychon.containsKey('id')" | ||
| field: 'host.id' | ||
| value: '{{tychon.id}}' | ||
| - remove: | ||
| if: "ctx.containsKey('tychon') && ctx.tychon.containsKey('id')" | ||
| field: 'tychon' | ||
| - set: | ||
| field: '_id' | ||
| value: '{{id}}' | ||
|
joeperuzzi marked this conversation as resolved.
Outdated
|
||
| - set: | ||
| field: '@timestamp' | ||
| value: '{{_ingest.timestamp}}' | ||
| - set: | ||
| field: ecs.version | ||
| value: '8.8.0' | ||
| - set: | ||
| field: event.kind | ||
| value: state | ||
| - set: | ||
| field: event.module | ||
| value: tychon | ||
| - set: | ||
| field: event.category | ||
| value: vulnerability | ||
| - set: | ||
| field: vulnerability.scanner.vendor | ||
| value: tychon | ||
| - set: | ||
| field: vulnerability.category | ||
| value: oval | ||
| - set: | ||
| field: vulnerability.classification | ||
| value: cvss | ||
| - set: | ||
| field: vulnerability.enumeration | ||
| value: CVE | ||
| - set: | ||
| field: event.outcome | ||
| value: '{{vulnerability.result}}' | ||
| - set: | ||
| field: event.ingested | ||
| value: '{{_ingest.timestamp}}' | ||
| on_failure: | ||
| - set: | ||
| field: error.message | ||
| value: '{{ _ingest.on_failure_message }}' | ||
|
|
||
169 changes: 169 additions & 0 deletions
169
packages/tychon/data_stream/tychon_cve/fields/agent.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,169 @@ | ||
| - name: cloud | ||
| title: Cloud | ||
| group: 2 | ||
| description: Fields related to the cloud or infrastructure the events are coming from. | ||
| footnote: 'Examples: If Metricbeat is running on an EC2 host and fetches data from its host, the cloud info contains the data about this machine. If Metricbeat runs on a remote machine outside the cloud and fetches data from a service running in the cloud, the field contains cloud data from the machine the service is running on.' | ||
| type: group | ||
| fields: | ||
| - name: account.id | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: 'The cloud account or organization id used to identify different entities in a multi-tenant environment. | ||
|
|
||
| Examples: AWS account id, Google Cloud ORG Id, or other unique identifier.' | ||
| example: 666777888999 | ||
| - name: availability_zone | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Availability zone in which this host is running. | ||
| example: us-east-1c | ||
| - name: instance.id | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Instance ID of the host machine. | ||
| example: i-1234567890abcdef0 | ||
| - name: instance.name | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Instance name of the host machine. | ||
| - name: machine.type | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Machine type of the host machine. | ||
| example: t2.medium | ||
| - name: provider | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | ||
| example: aws | ||
| - name: region | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Region in which this host is running. | ||
| example: us-east-1 | ||
| - name: project.id | ||
| type: keyword | ||
| description: Name of the project in Google Cloud. | ||
| - name: image.id | ||
| type: keyword | ||
| description: Image ID for the cloud instance. | ||
| - name: container | ||
| title: Container | ||
| group: 2 | ||
| description: 'Container fields are used for meta information about the specific container that is the source of information. | ||
|
|
||
| These fields help correlate data based containers from any runtime.' | ||
| type: group | ||
| fields: | ||
| - name: id | ||
| level: core | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Unique container id. | ||
| - name: image.name | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Name of the image the container was built on. | ||
| - name: name | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Container name. | ||
| - name: host | ||
| title: Host | ||
| group: 2 | ||
| description: 'A host is defined as a general computing instance. | ||
|
|
||
| ECS host.* fields should be populated with details about the host on which the event happened, or from which the measurement was taken. Host types include hardware, virtual machines, Docker containers, and Kubernetes nodes.' | ||
| type: group | ||
| fields: | ||
| - name: id | ||
| type: keyword | ||
| - name: biossn | ||
| type: keyword | ||
| - name: domain | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: 'Name of the domain of which the host is a member. | ||
|
|
||
| For example, on Windows this could be the host''s Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host''s LDAP provider.' | ||
| example: CONTOSO | ||
| default_field: false | ||
| - name: hostname | ||
| level: core | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: 'Hostname of the host. | ||
|
|
||
| It normally contains what the `hostname` command returns on the host machine.' | ||
| - name: ip | ||
| level: core | ||
| type: ip | ||
| description: Host ip addresses. | ||
| - name: ipv4 | ||
| type: keyword | ||
| - name: ipv6 | ||
| type: keyword | ||
| - name: mac | ||
| level: core | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Host mac addresses. | ||
| - name: type | ||
| type: keyword | ||
| - name: uptime | ||
| type: long | ||
| - name: workgroup | ||
| type: keyword | ||
| - name: oem | ||
| type: group | ||
| fields: | ||
| - name: manufacturer | ||
| type: keyword | ||
| - name: model | ||
| type: keyword | ||
| - name: os | ||
| type: group | ||
| fields: | ||
| - name: build | ||
| type: keyword | ||
| - name: description | ||
| type: keyword | ||
| - name: family | ||
| type: keyword | ||
| - name: name | ||
| type: keyword | ||
| - name: organization | ||
| type: keyword | ||
| - name: version | ||
| type: keyword | ||
| - name: hardware | ||
| type: group | ||
| fields: | ||
| - name: bios | ||
| type: group | ||
| fields: | ||
| - name: name | ||
| type: keyword | ||
| - name: version | ||
| type: keyword | ||
| - name: cpu | ||
| type: group | ||
| fields: | ||
| - name: caption | ||
| type: keyword | ||
| - name: manufacturer | ||
| type: keyword | ||
| - name: owner | ||
| type: keyword | ||
| - name: serial_number | ||
| type: keyword |
18 changes: 18 additions & 0 deletions
18
packages/tychon/data_stream/tychon_cve/fields/base-fields.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| - name: input.type | ||
| type: keyword | ||
| - name: log.offset | ||
| type: long | ||
| - name: data_stream.type | ||
| type: constant_keyword | ||
| description: Data stream type. | ||
| - name: data_stream.dataset | ||
| type: constant_keyword | ||
| description: Data stream dataset. | ||
| - name: data_stream.namespace | ||
| type: constant_keyword | ||
| description: Data stream namespace. | ||
| - name: event.module | ||
| type: keyword | ||
| description: Event module | ||
| - name: '@timestamp' | ||
| type: date |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.