osquery icon indicating copy to clipboard operation
osquery copied to clipboard

TLS Logger Plugin and TLS Certs on MacOS 11.x High Sierra

Open VenturaAtDD opened this issue 8 years ago • 0 comments

The TLS Logger plugin will not verify TLS certificates when it is running on MacOS 10.13 High Sierra. I'm running it on 10.12 and 10.13 with identical configuration files (see below).

Without the "tls_server_certs" option set, it should use the OS's native features for verifying the certificate. However, verification fails on MacOS 10.13.

"# osqueryd --verbose I0315 15:45:53.869323 2368070464 init.cpp:380] osquery initialized [version=3.1.0] I0315 15:45:53.897930 2368070464 system.cpp:344] Found stale process for osqueryd (29591) I0315 15:45:53.898416 2368070464 system.cpp:377] Writing osqueryd pid (29977) to /var/osquery/osqueryd.pidfile I0315 15:45:53.898741 2368070464 extensions.cpp:300] Could not autoload extensions: Failed reading: /var/osquery/extensions.load I0315 15:45:53.900568 200249344 watcher.cpp:549] osqueryd watcher (29977) executing worker (29978) I0315 15:45:53.925719 2368070464 init.cpp:377] osquery worker initialized [watcher=29977] I0315 15:45:53.927203 2368070464 rocksdb.cpp:132] Opening RocksDB handle: /var/osquery/osquery.db I0315 15:45:53.944209 255926272 interface.cpp:338] Extension manager service starting: /var/osquery/osquery.em I0315 15:45:53.952942 2368070464 options.cpp:83] Verbose logging enabled by config option I0315 15:45:53.953279 2368070464 tls_enroll.cpp:63] TLSEnrollPlugin requesting a node enroll key from: https://jecxc4cmum.execute-api.us-east-1.amazonaws.com/enroll I0315 15:45:54.105613 2368070464 tls.cpp:198] TLS/HTTPS POST request to URI: https://jecxc4cmum.execute-api.us-east-1.amazonaws.com/enroll W0315 15:45:54.228720 2368070464 tls_enroll.cpp:70] Failed enrollment request to https://jecxc4cmum.execute-api.us-east-1.amazonaws.com/enroll (Request error: certificate verify failed) retrying... I0315 15:45:55.237993 2368070464 tls.cpp:198] TLS/HTTPS POST request to URI: https://jecxc4cmum.execute-api.us-east-1.amazonaws.com/enroll W0315 15:45:55.290606 2368070464 tls_enroll.cpp:70] Failed enrollment request to https://jecxc4cmum.execute-api.us-east-1.amazonaws.com/enroll (Request error: certificate verify failed) retrying... I0315 15:45:59.299835 2368070464 tls.cpp:198] TLS/HTTPS POST request to URI: https://jecxc4cmum.execute-api.us-east-1.amazonaws.com/enroll E0315 15:45:59.472371 2368070464 init.cpp:557] Cannot activate tls logger plugin: No node key, TLS logging disabled. " Here is the configuration used on both hosts: { "options": { "host_identifier": "hostname", "schedule_splay_percent": 10, "logger_plugin": "tls", "aws_region": "us-east-1", "tls_hostname": "jecxc4cmum.execute-api.us-east-1.amazonaws.com", "logger_tls_endpoint": "/Logger, "enroll_secret_path": "/var/osquery/enroll_secret.txt", "enroll_tls_endpoint": "/enroll", "disable_enrollment": "false", "logger_path": "/var/log/osquery", "disable_logging": "false", "database_path": "/var/osquery/osquery.db", "verbose": "true", "worker_threads": "2", "enable_monitor": "true", "disable_events": "false", "disable_audit": "false" }, "schedule": { "commandhistory": { "query": "SELECT * FROM process_events;", "interval": 10, "removed": false } } }

VenturaAtDD avatar Mar 15 '18 21:03 VenturaAtDD