-
Notifications
You must be signed in to change notification settings - Fork 554
[zscaler_zia] Added Cloud NSS support to Zscaler ZIA package. #3111
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
Merged
andrewkroh
merged 5 commits into
elastic:main
from
vinit-chauhan:zscaler_zia_cloud_nss_support
Apr 28, 2022
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
dd0be8e
Added Cloud NSS support to zscaler_zia package.
vinit-chauhan df4250a
Updated changelog entry.
vinit-chauhan 6b4e6f8
Updated as per comments from Andrew.
vinit-chauhan 1a932d2
Merge branch 'main' into zscaler_zia_cloud_nss_support
vinit-chauhan 9fe5bf9
Remove community_id defaults
andrewkroh 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
46 changes: 41 additions & 5 deletions
46
packages/zscaler_zia/_dev/deploy/docker/docker-compose.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 |
|---|---|---|
| @@ -1,32 +1,68 @@ | ||
| version: '2.3' | ||
| services: | ||
| zscaler-zia-alerts-tcp: | ||
| image: docker.elastic.co/observability/stream:v0.6.2 | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| entrypoint: /bin/bash | ||
| command: -c "/stream log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9010 -p=tcp /sample_logs/alerts.log" | ||
| zscaler-zia-dns-tcp: | ||
| image: docker.elastic.co/observability/stream:v0.6.2 | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| entrypoint: /bin/bash | ||
| command: -c "/stream log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9011 -p=tcp /sample_logs/dns.log" | ||
| zscaler-zia-firewall-tcp: | ||
| image: docker.elastic.co/observability/stream:v0.6.2 | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| entrypoint: /bin/bash | ||
| command: -c "/stream log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9012 -p=tcp /sample_logs/firewall.log" | ||
| zscaler-zia-tunnel-tcp: | ||
| image: docker.elastic.co/observability/stream:v0.6.2 | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| entrypoint: /bin/bash | ||
| command: -c "/stream log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9013 -p=tcp /sample_logs/tunnel.log" | ||
| zscaler-zia-web-tcp: | ||
| image: docker.elastic.co/observability/stream:v0.6.2 | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| entrypoint: /bin/bash | ||
| command: -c "/stream log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9014 -p=tcp /sample_logs/web.log" | ||
| zscaler-zia-dns-http-endpoint: | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| environment: | ||
| - STREAM_PROTOCOL=webhook | ||
| - STREAM_ADDR=http://elastic-agent:9556/ | ||
| - STREAM_WEBHOOK_HEADER=Content-Type=application/ndjson | ||
| command: log --start-signal=SIGHUP --delay=5s /sample_logs/dns-http_endpoint.log | ||
| zscaler-zia-firewall-http-endpoint: | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| environment: | ||
| - STREAM_PROTOCOL=webhook | ||
| - STREAM_ADDR=http://elastic-agent:9557/ | ||
| - STREAM_WEBHOOK_HEADER=Content-Type=application/ndjson | ||
| command: log --start-signal=SIGHUP --delay=5s /sample_logs/firewall-http_endpoint.log | ||
| zscaler-zia-tunnel-http-endpoint: | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| environment: | ||
| - STREAM_PROTOCOL=webhook | ||
| - STREAM_ADDR=http://elastic-agent:9558/ | ||
| - STREAM_WEBHOOK_HEADER=Content-Type=application/ndjson | ||
| command: log --start-signal=SIGHUP --delay=5s /sample_logs/tunnel-http_endpoint.log | ||
| zscaler-zia-web-http-endpoint: | ||
| image: docker.elastic.co/observability/stream:v0.7.0 | ||
| volumes: | ||
| - ./sample_logs:/sample_logs:ro | ||
| environment: | ||
| - STREAM_PROTOCOL=webhook | ||
| - STREAM_ADDR=http://elastic-agent:9559/ | ||
| - STREAM_WEBHOOK_HEADER=Content-Type=application/ndjson | ||
| command: log --start-signal=SIGHUP --delay=5s /sample_logs/web-http_endpoint.log |
1 change: 1 addition & 0 deletions
1
packages/zscaler_zia/_dev/deploy/docker/sample_logs/dns-http_endpoint.log
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 @@ | ||
| {"sourcetype":"zscalernss-dns","input": {"type": "http_endpoint"}, "event":{"location":"Unknown","deviceowner":"NA","devicehostname":"NA","dns_req":"Unknown","resaction":"None","durationms":"34000","category":"Other","resrulelabel":"None","dns_reqtype":"NotFound","dns_resp":"NotFound","department":"Unknown","user":"Unknown","reqaction":"None","datetime":"Tue Dec 31 02:22:22 2021","srv_dip":"0.0.0.0","clt_sip":"0.0.0.0","reqrulelabel":"None","srv_dport":"0"}} |
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| { "sourcetype" : "zscalernss-dns", "event" :{"datetime":"Fri Dec 17 07:27:54 2021","user":"some_user@example.com","department":"Unknown","location":"TestLoc%20DB","reqaction":"REQ_ALLOW","resaction":"Some Response Action","reqrulelabel":"Access%20Blocked","resrulelabel":"None","dns_reqtype":"Some type","dns_req":"example.com","dns_resp":"Some response string","srv_dport":"8080","durationms":"123456","clt_sip":"81.2.69.193","srv_dip":"81.2.69.144","category":"Professional Services","deviceowner":"Owner77","devicehostname":"Machine9000"}} | ||
| { "sourcetype" : "zscalernss-dns", "event" :{"datetime":"Fri Dec 17 07:27:54 2021","user":"some_user@example.com","department":"Unknown","location":"TestLoc%20DB","reqaction":"REQ_ALLOW","resaction":"Some Response Action","reqrulelabel":"Access%20Blocked","resrulelabel":"None","dns_reqtype":"Some type","dns_req":"example.com","dns_resp":"Some response string","srv_dport":"8080","durationms":"123456","clt_sip":"89.160.20.112","srv_dip":"89.160.20.156","category":"Professional Services","deviceowner":"Owner77","devicehostname":"Machine9000"}} |
1 change: 1 addition & 0 deletions
1
packages/zscaler_zia/_dev/deploy/docker/sample_logs/firewall-http_endpoint.log
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 @@ | ||
| {"sourcetype":"zscalernss-fw", "event":{"durationms":"0","avgduration":"0","sdip":"0.0.0.0","aggregate":"No","department":"Unknown","nwapp":"NotAvailable","proto":"IP","datetime":"Tue Dec 31 02:22:22 2022","nwsvc":"None","dnat":"No","threatcat":"None","cdport":"120","duration":"0","ipcat":"Other","deviceowner":"NA","csip":"0.0.0.0","devicehostname":"NA","csport":"0","tunsport":"0","destcountry":"NA","rulelabel":"None","locationname":"Unknown","action":"OutOfRange","stateful":"Yes","outbytes":"0","inbytes":"0","ssport":"0","user":"Unknown","tuntype":"OutOfRange","numsessions":"1","ssip":"0.0.0.0","threatname":"None","ipsrulelabel":"None","tsip":"0.0.0.0","sdport":"0","cdip":"0.0.0.0"}} |
1 change: 1 addition & 0 deletions
1
packages/zscaler_zia/_dev/deploy/docker/sample_logs/tunnel-http_endpoint.log
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 @@ | ||
| {"sourcetype":"zscalernss-tunnel", "event":{"location":"Unknown","sourceport":"0","rxbytes":"0","tunneltype":"GRE","dpdrec":"0","destinationip":"0.0.0.0","recordid":"7083020000000007968","datetime":"Tue Dec 31 08:08:08 2021","sourceip":"0.0.0.0","txbytes":"0","Recordtype":"Tunnel Samples","user":"Unknown"}} |
1 change: 1 addition & 0 deletions
1
packages/zscaler_zia/_dev/deploy/docker/sample_logs/web-http_endpoint.log
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 @@ | ||
| { "sourcetype" : "zscalernss-web", "event" :{"time":"2021-12-31 08:08:08","login":"test@example.com","proto":"HTTP_PROXY","eurl":"www.example.com","action":"Blocked","appname":"General Browsing","appclass":"General Browsing","reqsize":"600","respsize":"65","stime":"0","ctime":"0","urlclass":"Business Use","urlsupercat":"Information Technology","urlcat":"Web Search","malwarecat":"None","threatname":"None","riskscore":"0","dlpeng":"None","dlpdict":"None","location":"Test DB","dept":"Unknown","cip":"1.128.3.4","sip":"1.128.3.4","reqmethod":"CONNECT","respcode":"200","ua":"Windows Microsoft Windows 10 Pro ZTunnel/1.0","ereferer":"None","ruletype":"FwFilter","rulelabel":"Zscaler Proxy Traffic","contenttype":"Other","unscannabletype":"None","deviceowner":"administrator1","devicehostname":"TestMachine35"}} |
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
6 changes: 3 additions & 3 deletions
6
packages/zscaler_zia/data_stream/alerts/_dev/test/pipeline/test-alerts.log
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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| <114>Dec 10 14:04:28 [175.16.199.1] ZscalerNSS: Zscaler cloud configuration connection to 175.16.199.1:443 lost and unavailable for the past 2325.00 minutes | ||
| <114>Dec 10 13:40:32 [81.2.69.193] ZscalerNSS: SIEM Feed connection "DNS Logs Feed" to 81.2.69.193:9012 lost and unavailable for the past 2440.00 minutes | ||
| <114>Dec 10 13:44:07 [81.2.69.193] Hey, that's a new type of alert. Isn't it? | ||
| <114>Dec 31 12:01:04 [175.16.199.1] ZscalerNSS: Zscaler cloud configuration connection to 175.16.199.1:443 lost and unavailable for the past 2325.00 minutes | ||
| <114>Dec 31 13:02:05 [81.2.69.193] ZscalerNSS: SIEM Feed connection "DNS Logs Feed" to 81.2.69.193:9012 lost and unavailable for the past 2440.00 minutes | ||
| <114>Dec 31 14:03:06 [81.2.69.193] Hey, that's a new type of alert. Isn't it? |
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
1 change: 0 additions & 1 deletion
1
packages/zscaler_zia/data_stream/alerts/agent/stream/tcp.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 |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| tcp: | ||
| host: "{{listen_address}}:{{listen_port}}" | ||
| tags: | ||
| {{#if preserve_original_event}} | ||
|
|
||
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 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 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
1 change: 1 addition & 0 deletions
1
packages/zscaler_zia/data_stream/dns/_dev/test/pipeline/test-dns-http_endpoint.log
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 @@ | ||
| {"sourcetype":"zscalernss-dns","input": {"type": "http_endpoint"}, "event":{"location":"Unknown","deviceowner":"NA","devicehostname":"NA","dns_req":"Unknown","resaction":"None","durationms":"34000","category":"Other","resrulelabel":"None","dns_reqtype":"NotFound","dns_resp":"NotFound","department":"Unknown","user":"Unknown","reqaction":"None","datetime":"Tue Dec 31 02:22:22 2021","srv_dip":"0.0.0.0","clt_sip":"0.0.0.0","reqrulelabel":"None","srv_dport":"0"}} |
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.