-
Notifications
You must be signed in to change notification settings - Fork 599
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
Changes from 1 commit
c99b314
12651b6
9bc9902
ed2c9c1
4a0fa02
bb3ea07
4e3ff95
933b66b
3f2a742
be4c100
8c23a3b
f109f93
1ec1865
32d77c6
e0bad7a
6035366
c6660a2
b8f8608
782a7fc
ee83a6c
8e83866
feb2b9a
45ca0bd
0890a32
3113785
4bbed69
f67356b
f6c27ea
86439db
f5734d8
aa3e668
1723f65
c4404a8
35874d1
9a76695
f72e9ad
2b70820
681f1f5
bd27659
7dc7b0f
cf48b30
a4803e3
a9a38fc
b20ed4b
73b7b79
63a0620
c1ba00f
6256e4c
ad8c478
7e25d28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| Elastic License 2.0 | ||
|
|
||
| URL: https://www.elastic.co/licensing/elastic-license | ||
|
|
||
| ## Acceptance | ||
|
|
||
| By using the software, you agree to all of the terms and conditions below. | ||
|
|
||
| ## Copyright License | ||
|
|
||
| The licensor grants you a non-exclusive, royalty-free, worldwide, | ||
| non-sublicensable, non-transferable license to use, copy, distribute, make | ||
| available, and prepare derivative works of the software, in each case subject to | ||
| the limitations and conditions below. | ||
|
|
||
| ## Limitations | ||
|
|
||
| You may not provide the software to third parties as a hosted or managed | ||
| service, where the service provides users with access to any substantial set of | ||
| the features or functionality of the software. | ||
|
|
||
| You may not move, change, disable, or circumvent the license key functionality | ||
| in the software, and you may not remove or obscure any functionality in the | ||
| software that is protected by the license key. | ||
|
|
||
| You may not alter, remove, or obscure any licensing, copyright, or other notices | ||
| of the licensor in the software. Any use of the licensor’s trademarks is subject | ||
| to applicable law. | ||
|
|
||
| ## Patents | ||
|
|
||
| The licensor grants you a license, under any patent claims the licensor can | ||
| license, or becomes able to license, to make, have made, use, sell, offer for | ||
| sale, import and have imported the software, in each case subject to the | ||
| limitations and conditions in this license. This license does not cover any | ||
| patent claims that you cause to be infringed by modifications or additions to | ||
| the software. If you or your company make any written claim that the software | ||
| infringes or contributes to infringement of any patent, your patent license for | ||
| the software granted under these terms ends immediately. If your company makes | ||
| such a claim, your patent license ends immediately for work on behalf of your | ||
| company. | ||
|
|
||
| ## Notices | ||
|
|
||
| You must ensure that anyone who gets a copy of any part of the software from you | ||
| also gets a copy of these terms. | ||
|
|
||
| If you modify the software, you must include in any modified copies of the | ||
| software prominent notices stating that you have modified the software. | ||
|
|
||
| ## No Other Rights | ||
|
|
||
| These terms do not imply any licenses other than those expressly granted in | ||
| these terms. | ||
|
|
||
| ## Termination | ||
|
|
||
| If you use the software in violation of these terms, such use is not licensed, | ||
| and your licenses will automatically terminate. If the licensor provides you | ||
| with a notice of your violation, and you cease all violation of this license no | ||
| later than 30 days after you receive that notice, your licenses will be | ||
| reinstated retroactively. However, if you violate these terms after such | ||
| reinstatement, any additional violation of these terms will cause your licenses | ||
| to terminate automatically and permanently. | ||
|
|
||
| ## No Liability | ||
|
|
||
| *As far as the law allows, the software comes as is, without any warranty or | ||
| condition, and the licensor will not be liable to you for any damages arising | ||
| out of these terms or the use or nature of the software, under any kind of | ||
| legal claim.* | ||
|
|
||
| ## Definitions | ||
|
|
||
| The **licensor** is the entity offering these terms, and the **software** is the | ||
| software the licensor makes available under these terms, including any portion | ||
| of it. | ||
|
|
||
| **you** refers to the individual or entity agreeing to these terms. | ||
|
|
||
| **your company** is any legal entity, sole proprietorship, or other kind of | ||
| organization that you work for, plus all organizations that have control over, | ||
| are under the control of, or are under common control with that | ||
| organization. **control** means ownership of substantially all the assets of an | ||
| entity, or the power to direct its management and policies by vote, contract, or | ||
| otherwise. Control can be direct or indirect. | ||
|
|
||
| **your licenses** are all the licenses granted to you for the software under | ||
| these terms. | ||
|
|
||
| **use** means anything you do with the software requiring one of your licenses. | ||
|
|
||
| **trademark** means trademarks, service marks, and similar rights. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| dependencies: | ||
| ecs: | ||
| reference: git@1.12 | ||
|
joeperuzzi marked this conversation as resolved.
Outdated
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||
| # newer versions go on top | ||||||
| - version: "0.0.10" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| changes: | ||||||
| - description: Fixed incorrect types in field.yml and cleaned up formatting | ||||||
| type: enhancement | ||||||
| link: https://github.com/elastic/integrations/pull/1 # FIXME Replace with the real PR link | ||||||
|
joeperuzzi marked this conversation as resolved.
Outdated
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||||
| paths: | ||||||||
| {{#each paths as |path i|}} | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| - {{path}} | ||||||||
| {{/each}} | ||||||||
| tags: | ||||||||
| {{#if preserve_original_event}} | ||||||||
| - preserve_original_event | ||||||||
| {{/if}} | ||||||||
| {{#each tags as |tag i|}} | ||||||||
|
joeperuzzi marked this conversation as resolved.
Outdated
|
||||||||
| - {{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 | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a final new line. |
||||||||
|
joeperuzzi marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,50 @@ | ||||||
| --- | ||||||
| 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.5.1' | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - 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 }}' | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a final new line. |
||||||
| 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 |
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete this file. It is not needed since the file in the root of the repo cover the code here.