{"id":23885788,"url":"https://github.com/spasam/mock-osquery-tls","last_synced_at":"2026-06-13T01:32:55.826Z","repository":{"id":146900304,"uuid":"338506250","full_name":"spasam/mock-osquery-tls","owner":"spasam","description":"Mock Osquery TLS server","archived":false,"fork":false,"pushed_at":"2022-02-08T00:56:01.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T03:28:46.774Z","etag":null,"topics":["mock","osquery","tls"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spasam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-13T05:42:36.000Z","updated_at":"2022-04-15T08:07:41.000Z","dependencies_parsed_at":"2023-04-12T14:31:04.679Z","dependency_job_id":null,"html_url":"https://github.com/spasam/mock-osquery-tls","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spasam/mock-osquery-tls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spasam%2Fmock-osquery-tls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spasam%2Fmock-osquery-tls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spasam%2Fmock-osquery-tls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spasam%2Fmock-osquery-tls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spasam","download_url":"https://codeload.github.com/spasam/mock-osquery-tls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spasam%2Fmock-osquery-tls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34269363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mock","osquery","tls"],"created_at":"2025-01-04T05:54:02.632Z","updated_at":"2026-06-13T01:32:55.816Z","avatar_url":"https://github.com/spasam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mock Osquery TLS server\n\nThis is a mock TLS server for testing Osquery TLS plugins. It supports enroll, config, log and distributed read/write. Requests/responses are logged to console.\n\n## TLS Server Usage\n\nTo get started, just run `index.js`. By default, it will start listening onport 8443:\n\n```sh\nnpm install\nnode index.js\n```\n\nListen port can be changed by passing `--port` argument\n\nOsquery configuration can be saved in a file and the path to the file can be passed using `--conf` argument\n\nDistributed queries can also be provided to Osquery. One or more `--dr` argument can be used to provide distributed queries. Distributed read response is sent back 12 seconds after the request is received, unless there is a query to be sent.\n\n`--skip` argument can be used to indicate how many iterations of distributed read requests should be ignored before sending the next query. By default `skip` is set to `5` which means a query (if specified) will be sent every 5th request.\n\nFor example:\n```sh\nnode index.js --port 8080 --conf /tmp/osquery.conf \\\n     --dr \"SELECT * FROM time\" \\\n     --dr \"SELECT * FROM system_info\" \\\n     --skip 10\n```\n\n* HTTPS server Will listen on port 8080\n* Send /tmp/osquery.conf contents in response to config request\n* Sends a distributed query every 10 distributed read requests\n* 10th distributed read request will be \"SELECT * FROM time\"\n* 20th distributed read request will be \"SELECT * FROM system_info\"\n* 30th distributed read request will be \"SELECT * FROM time\"\n* ...\n\nSelf-signed private key, certificate will be created in `certs` directory.\n\n### Osquery Usage\n\nFirst mock TLS server should be started. Osquery should be started with the following flags. Port number in TLS hostname should be changed to match the TLS server port.\n\n```sh\n--tls_hostname=localhost:8443\n--tls_server_certs=\u003cpath-to\u003e/mock-osquery-tls/certs/cert.pem\n--config_plugin=tls\n--logger_plugin=tls\n--distributed_plugin=tls\n--enroll_tls_endpoint=/enroll\n--config_tls_endpoint=/config\n--logger_tls_endpoint=/log\n--distributed_tls_read_endpoint=/read\n--distributed_tls_write_endpoint=/write\n--disable_distributed=false\n```\n\nIf you prefer no delay between distributed read requests, following flag can be used: `--distributed_interval=0`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspasam%2Fmock-osquery-tls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspasam%2Fmock-osquery-tls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspasam%2Fmock-osquery-tls/lists"}