Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 5c4e7be

Browse files
edutkoGitHub Enterprise
authored and
GitHub Enterprise
committed
Merge pull request #58 from tanium/tls-validation
Support for providing a trusted TLS cert or directory of trusted TLS certs
2 parents b39d225 + 729f000 commit 5c4e7be

File tree

148 files changed

+329
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+329
-4
lines changed

BUILD/lib/script_definitions.py

+1
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@
812812
handler_args['password'] = "{password}"
813813
handler_args['host'] = "{host}"
814814
handler_args['port'] = "{port}" # optional
815+
handler_args['trusted_certs'] = "${trusted_certs}"
815816
816817
# optional, level 0 is no output except warnings/errors
817818
# level 1 through 12 are more and more verbose
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIFJzCCBA+gAwIBAgIQDvhQJdncWkSyq5GsdhqOjzANBgkqhkiG9w0BAQsFADBN
3+
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E
4+
aWdpQ2VydCBTSEEyIFNlY3VyZSBTZXJ2ZXIgQ0EwHhcNMTgwMjAxMDAwMDAwWhcN
5+
MjAwMjA2MTIwMDAwWjB1MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEzARBgNV
6+
BAcTCkVtZXJ5dmlsbGUxFDASBgNVBAoTC1Rhbml1bSBJbmMuMREwDwYDVQQLEwhT
7+
ZWN1cml0eTEbMBkGA1UEAxMSY29udGVudC50YW5pdW0uY29tMIIBIjANBgkqhkiG
8+
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuUMi6ETMq+PK8+4PyPM9fU2XD58dur4bS+Jy
9+
pE6r664wgl6Xpl7MWfTw6PNohwzQQiNPWL8eeT+cfN9fYmdTAm9Nv3NSb8LvIOrq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DyB5ydYAIxI9U89IH6eiVAaYD5h
28+
ixKHWv4M9Yq0Uru4fj7uFitmiF2RzjarDGasDQY6g4vAJuDAkPEAdigV9zNkz9qY
29+
nUlGFP8W/QVbnP93rbBaf72wtyBgB4eRsrvJ
30+
-----END CERTIFICATE-----

EXAMPLES/POC/pytan-integrations/patch_tanium_portal/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'tanium_username': 'Tanium User',
55
'tanium_password': 'T@n!um',
66
'tanium_host': '172.16.31.128',
7+
'trusted_certs': 'certs',
78
'max_data_age': 60,
89
'pct_complete_threshold': 98.00,
910
'sync_scan_name': 'Run Patch Scan Synchronously',

EXAMPLES/POC/pytan-integrations/patch_tanium_portal/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def unsupported(self):
208208
username=config['tanium_username'],
209209
password=config['tanium_password'],
210210
host=config['tanium_host'],
211+
trusted_certs=config['trusted_certs'],
211212
)
212213

213214
# instantiate our Paths class, passing in form and handler
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIFJzCCBA+gAwIBAgIQDvhQJdncWkSyq5GsdhqOjzANBgkqhkiG9w0BAQsFADBN
3+
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E
4+
aWdpQ2VydCBTSEEyIFNlY3VyZSBTZXJ2ZXIgQ0EwHhcNMTgwMjAxMDAwMDAwWhcN
5+
MjAwMjA2MTIwMDAwWjB1MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEzARBgNV
6+
BAcTCkVtZXJ5dmlsbGUxFDASBgNVBAoTC1Rhbml1bSBJbmMuMREwDwYDVQQLEwhT
7+
ZWN1cml0eTEbMBkGA1UEAxMSY29udGVudC50YW5pdW0uY29tMIIBIjANBgkqhkiG
8+
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuUMi6ETMq+PK8+4Py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Xere3mtf5vTBePhoWEuSh+0OzP2KsAhD8RkcfYlUVx44BYTJz
27+
ioT8eJjYbLa8wOoRuE2TCO1ZAwUQykWigUMT7DyB5ydYAIxI9U89IH6eiVAaYD5h
28+
ixKHWv4M9Yq0Uru4fj7uFitmiF2RzjarDGasDQY6g4vAJuDAkPEAdigV9zNkz9qY
29+
nUlGFP8W/QVbnP93rbBaf72wtyBgB4eRsrvJ
30+
-----END CERTIFICATE-----

EXAMPLES/POC/pytan-integrations/swd_tanium_portal/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
'tanium_username': 'Tanium User',
55
'tanium_password': 'T@n!um',
66
'tanium_host': '172.16.31.128',
7+
'trusted_certs': 'certs',
78
'max_data_age': 60,
89
}

EXAMPLES/POC/pytan-integrations/swd_tanium_portal/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ def unsupported(self):
445445
username=config['tanium_username'],
446446
password=config['tanium_password'],
447447
host=config['tanium_host'],
448+
trusted_certs=config['trusted_certs'],
448449
)
449450

450451
# instantiate our Paths class, passing in form and handler

EXAMPLES/PYTAN_API/README.MD.md

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ various ways.
88
They can be run immediately after changing the username, password, host, and maybe port
99
variables defined in each.
1010

11+
In order for TLS certificate validation to work properly, you will also need to download
12+
the TLS certificate for each server you want to connect to. For example:
13+
14+
```
15+
openssl s_client -showcerts -connect tanium1.example.com:443 </dev/null 2>/dev/null \
16+
| openssl x509 > certs/tanium1.pem
17+
openssl s_client -showcerts -connect tanium2.example.com:443 </dev/null 2>/dev/null \
18+
| openssl x509 > certs/tanium2.pem
19+
```
20+
21+
Once all the certificates are in the `certs` directory, run `openssl certhash certs` to create
22+
the required symlinks.
23+
1124
If you copy them outside of the EXAMPLE/PYTAN_API directory to edit and run them, you will
1225
also need to update the pytan_loc variable to point to the directory where pytan lives.
1326

EXAMPLES/PYTAN_API/_ask_manual_question_sensor_complex.py

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
handler_args['password'] = "Tanium2015!"
4949
handler_args['host'] = "10.0.1.240"
5050
handler_args['port'] = "443" # optional
51+
handler_args['trusted_certs'] = "certs"
5152

5253
# optional, level 0 is no output except warnings/errors
5354
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_complex_query1.py

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
handler_args['password'] = "Tanium2015!"
4949
handler_args['host'] = "10.0.1.240"
5050
handler_args['port'] = "443" # optional
51+
handler_args['trusted_certs'] = "certs"
5152

5253
# optional, level 0 is no output except warnings/errors
5354
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_complex_query2.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_multiple_sensors_identified_by_name.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
handler_args['password'] = "Tanium2015!"
4343
handler_args['host'] = "10.0.1.240"
4444
handler_args['port'] = "443" # optional
45+
handler_args['trusted_certs'] = "certs"
4546

4647
# optional, level 0 is no output except warnings/errors
4748
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_multiple_sensors_with_parameters_and_some_supplied_parameters.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
handler_args['password'] = "Tanium2015!"
4343
handler_args['host'] = "10.0.1.240"
4444
handler_args['port'] = "443" # optional
45+
handler_args['trusted_certs'] = "certs"
4546

4647
# optional, level 0 is no output except warnings/errors
4748
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_sensor_with_filter.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
handler_args['password'] = "Tanium2015!"
4545
handler_args['host'] = "10.0.1.240"
4646
handler_args['port'] = "443" # optional
47+
handler_args['trusted_certs'] = "certs"
4748

4849
# optional, level 0 is no output except warnings/errors
4950
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_sensor_with_filter_and_2_options.py

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
handler_args['password'] = "Tanium2015!"
4747
handler_args['host'] = "10.0.1.240"
4848
handler_args['port'] = "443" # optional
49+
handler_args['trusted_certs'] = "certs"
4950

5051
# optional, level 0 is no output except warnings/errors
5152
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_sensor_with_filter_and_3_options.py

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
handler_args['password'] = "Tanium2015!"
4747
handler_args['host'] = "10.0.1.240"
4848
handler_args['port'] = "443" # optional
49+
handler_args['trusted_certs'] = "certs"
4950

5051
# optional, level 0 is no output except warnings/errors
5152
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_sensor_with_parameters_and_filter.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
handler_args['password'] = "Tanium2015!"
4545
handler_args['host'] = "10.0.1.240"
4646
handler_args['port'] = "443" # optional
47+
handler_args['trusted_certs'] = "certs"
4748

4849
# optional, level 0 is no output except warnings/errors
4950
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_sensor_with_parameters_and_filter_and_options.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
handler_args['password'] = "Tanium2015!"
4545
handler_args['host'] = "10.0.1.240"
4646
handler_args['port'] = "443" # optional
47+
handler_args['trusted_certs'] = "certs"
4748

4849
# optional, level 0 is no output except warnings/errors
4950
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_sensor_with_parameters_and_some_supplied_parameters.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
handler_args['password'] = "Tanium2015!"
4343
handler_args['host'] = "10.0.1.240"
4444
handler_args['port'] = "443" # optional
45+
handler_args['trusted_certs'] = "certs"
4546

4647
# optional, level 0 is no output except warnings/errors
4748
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_sensor_without_parameters_and_supplied_parameters.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
handler_args['password'] = "Tanium2015!"
4343
handler_args['host'] = "10.0.1.240"
4444
handler_args['port'] = "443" # optional
45+
handler_args['trusted_certs'] = "certs"
4546

4647
# optional, level 0 is no output except warnings/errors
4748
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_simple_multiple_sensors.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
handler_args['password'] = "Tanium2015!"
4343
handler_args['host'] = "10.0.1.240"
4444
handler_args['port'] = "443" # optional
45+
handler_args['trusted_certs'] = "certs"
4546

4647
# optional, level 0 is no output except warnings/errors
4748
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_simple_single_sensor.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
handler_args['password'] = "Tanium2015!"
4343
handler_args['host'] = "10.0.1.240"
4444
handler_args['port'] = "443" # optional
45+
handler_args['trusted_certs'] = "certs"
4546

4647
# optional, level 0 is no output except warnings/errors
4748
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_simple_single_sensor_no_results.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
handler_args['password'] = "Tanium2015!"
4343
handler_args['host'] = "10.0.1.240"
4444
handler_args['port'] = "443" # optional
45+
handler_args['trusted_certs'] = "certs"
4546

4647
# optional, level 0 is no output except warnings/errors
4748
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_manual_question_simple_single_sensor_sse.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_parsed_question_pick_first.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_parsed_question_pick_first_no_results.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_parsed_question_pick_first_sse.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_saved_question_by_name.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_saved_question_by_name_in_list.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_saved_question_by_name_sse.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/ask_saved_question_refresh_data.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
handler_args['password'] = "Tanium2015!"
4141
handler_args['host'] = "10.0.1.240"
4242
handler_args['port'] = "443" # optional
43+
handler_args['trusted_certs'] = "certs"
4344

4445
# optional, level 0 is no output except warnings/errors
4546
# level 1 through 12 are more and more verbose

EXAMPLES/PYTAN_API/certs/36e23c81.0

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
server.pem

0 commit comments

Comments
 (0)