SQL powered operating system instrumentation, monitoring, and analytics.
524 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | osquery/tables/networking/curl_certificate.cpp | 21 | #include <openssl/x509.h> |
| LOW | osquery/tables/networking/posix/interfaces.cpp | 21 | #include <linux/ethtool.h> |
| LOW | osquery/tables/yara/yara_events.cpp | 21 | #include <osquery/events/darwin/fsevents.h> |
| LOW | osquery/tables/yara/yara.cpp | 21 | |
| LOW | osquery/tables/yara/yara.cpp | 501 | } |
| LOW | osquery/tables/system/hash.cpp | 21 | |
| LOW | osquery/tables/system/ssh_keys.cpp | 21 | #include <osquery/worker/logging/glog/glog_logger.h> |
| LOW | osquery/tables/system/posix/ulimit_info.cpp | 41 | #endif |
| LOW | osquery/tables/system/posix/augeas.cpp | 201 | // Strategy for handling augeas |
| LOW | osquery/tables/system/tests/system_tables_tests.cpp | 21 | #include <osquery/core/tables.h> |
| LOW | osquery/tables/system/linux/processes.cpp | 21 | #include <boost/algorithm/string/trim.hpp> |
| LOW | osquery/tables/system/linux/secureboot.cpp | 21 | // Linux has 2 places efivars can be accessed: |
| LOW | osquery/tables/system/linux/md_tables.cpp | 201 | #endif |
| LOW | osquery/tables/system/linux/rpm_packages.cpp | 21 | #include <osquery/core/tables.h> |
| LOW | osquery/tables/system/linux/model_specific_register.cpp | 21 | #define MSR_FILENAME_BUFFER_SIZE 32 |
| LOW | osquery/tables/system/linux/secureboot_certificates.cpp | 21 | #include <cstdint> |
| LOW | osquery/tables/system/linux/apt_sources.cpp | 1 | /** |
| LOW | osquery/tables/system/darwin/sysctl_utils.cpp | 21 | namespace osquery { |
| LOW | osquery/tables/system/darwin/smbios_tables.cpp | 21 | #include <boost/algorithm/string.hpp> |
| LOW | osquery/tables/system/darwin/signature.mm | 21 | #include <osquery/logger/logger.h> |
| LOW | osquery/tables/system/darwin/homebrew_packages.cpp | 181 | std::string getMetadataFileForCask(const std::string& path) { |
| LOW | osquery/tables/system/darwin/certificates.mm | 121 | |
| LOW | osquery/tables/system/darwin/firewall.h | 21 | |
| LOW | osquery/tables/system/darwin/firewall.h | 41 | // - 'logging_option': Quote from https://support.apple.com/en-jo/121011: "The |
| LOW | osquery/tables/system/windows/processes.cpp | 21 | #include <iomanip> |
| LOW | osquery/tables/system/windows/objects.cpp | 21 | namespace osquery { |
| LOW | osquery/tables/system/windows/objects.cpp | 41 | // rest of osquery |
| LOW | osquery/tables/system/windows/objects.cpp | 61 | |
| LOW | osquery/tables/system/windows/objects.cpp | 141 | // services session id. this means we expect the object name to be a |
| LOW | osquery/tables/system/windows/windows_crashes.cpp | 21 | #include <DbgEng.h> |
| LOW | osquery/tables/system/windows/programs.cpp | 141 | |
| LOW | osquery/tables/system/windows/registry.cpp | 21 | #include <boost/algorithm/string.hpp> |
| LOW | osquery/tables/system/windows/windows_search.cpp | 21 | #include <sstream> |
| LOW | osquery/tables/system/windows/process_open_handles.cpp | 921 | if (!FLAGS_allow_handle_threads) { |
| LOW | osquery/tables/applications/jetbrains_plugins.cpp | 221 | // Sorts the files heuristically to load the plugin jar containing plugin.xml |
| LOW | osquery/tables/applications/jetbrains_plugins.cpp | 341 | // plugin_directory Example: |
| LOW | osquery/tables/applications/posix/docker.cpp | 21 | |
| LOW | osquery/tables/applications/darwin/browser_plugins.cpp | 41 | /// Safari App Extensions root directory |
| LOW | osquery/tables/events/linux/process_file_events.cpp | 641 | // The rename/renameat/renameat2 syscalls all receive either four |
| LOW | osquery/tables/events/windows/ntfs_journal_events.cpp | 41 | // when we encounter them? Does NTFS recycle FRNs? Does it matter in terms of |
| LOW | osquery/tables/utility/osquery.cpp | 1 | /** |
| LOW | osquery/experimental/experiments/CMakeLists.txt | 1 | # Copyright (c) 2014-present, The osquery authors |
| LOW | osquery/core/flags.h | 201 | #define SHELL_FLAG(t, n, v, d) OSQUERY_FLAG(t, n, v, d, 1, 0, 0, 0) |
| LOW | osquery/core/system.cpp | 21 | #include <uuid/uuid.h> |
| LOW | osquery/core/system.cpp | 41 | |
| LOW | osquery/core/init.cpp | 21 | #include <WbemIdl.h> |
| LOW | osquery/core/init.cpp | 41 | #include <osquery/events/events.h> |
| LOW | osquery/core/watcher.cpp | 21 | |
| LOW | osquery/core/windows/ntapi.h | 21 | #define STATUS_UNSUCCESSFUL 0xC0000001L |
| LOW | osquery/core/windows/ntapi.h | 41 | #define STATUS_INTEGER_OVERFLOW 0xC0000095L |
| LOW | osquery/core/windows/ntapi.h | 61 | #ifndef ObjectNameInformation |
| LOW | osquery/logger/logger.cpp | 21 | #include <boost/noncopyable.hpp> |
| LOW | osquery/config/config.cpp | 21 | #include <osquery/config/config.h> |
| LOW | osquery/config/tests/config_tests.cpp | 21 | |
| LOW | osquery/dispatcher/scheduler.cpp | 21 | #include <osquery/core/flags.h> |
| LOW | osquery/utils/attribute.h | 21 | #endif |
| LOW | osquery/utils/config/default_paths.h | 21 | #pragma once |
| LOW | osquery/utils/config/default_paths.h | 41 | #define OSQUERY_PIDFILE "/var/run/" |
| LOW | osquery/utils/info/platform_type.h | 41 | #endif |
| LOW | osquery/utils/macros/macros.h | 21 | #define STR_EX(x) x |
| 368 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ci/scripts/cve/validate_manifest_libraries_versions.py | 10 | |
| LOW | …s/ci/scripts/cve/third_party_libraries_cves_scanner.py | 21 | |
| LOW | tools/tests/winexpect.py | 18 | |
| LOW | tools/tests/winexpect.py | 25 | |
| LOW | tools/tests/winexpect.py | 28 | |
| LOW | tools/tests/test_http_server.py | 25 | |
| LOW | tools/tests/test_extensions.py | 10 | |
| LOW | tools/tests/test_extensions.py | 11 | |
| LOW | tools/tests/test_extensions.py | 12 | |
| LOW | tools/tests/test_extensions.py | 13 | |
| LOW | tools/tests/test_extensions.py | 14 | |
| LOW | tools/tests/test_extensions.py | 15 | |
| LOW | tools/tests/test_extensions.py | 17 | |
| LOW | tools/tests/test_osqueryd.py | 13 | |
| LOW | tools/tests/test_osqueryd.py | 14 | |
| LOW | tools/tests/test_osqueryd.py | 16 | |
| LOW | tools/tests/test_additional.py | 10 | |
| LOW | tools/tests/test_additional.py | 11 | |
| LOW | tools/tests/test_additional.py | 12 | |
| LOW | tools/tests/test_base.py | 104 | |
| LOW | tools/tests/test_osqueryi.py | 11 | |
| LOW | tools/tests/test_osqueryi.py | 12 | |
| LOW | tools/tests/test_osqueryi.py | 14 | |
| LOW | tools/tests/test_example_queries.py | 10 | |
| LOW | tools/tests/test_example_queries.py | 12 | |
| LOW | tools/tests/test_example_queries.py | 13 | |
| LOW | tools/tests/test_example_queries.py | 14 | |
| LOW | tools/codegen/genapi.py | 19 | |
| LOW | tools/codegen/genapi.py | 20 | |
| LOW | tools/codegen/genwebsitejson.py | 29 | |
| LOW | tools/codegen/genwebsitejson.py | 32 | |
| LOW | tools/deployment/getfiles.py | 12 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/cmake/downloader.py | 23 | except Exception as e: |
| MEDIUM | …s/ci/scripts/cve/third_party_libraries_cves_scanner.py | 37 | print("Error: " + message, file=sys.stderr) |
| LOW | …s/ci/scripts/cve/third_party_libraries_cves_scanner.py | 93 | except Exception as e: |
| MEDIUM | …s/ci/scripts/cve/third_party_libraries_cves_scanner.py | 95 | print(f"Error searching CVE for library {library_name}: {e}. Retrying") |
| LOW | …s/ci/scripts/cve/third_party_libraries_cves_scanner.py | 412 | except Exception as e: |
| MEDIUM | tools/ci/scripts/cve/osquery/manifest_api.py | 46 | print("Error: " + message, file=sys.stderr) |
| LOW | tools/tests/winexpect.py | 64 | except Exception as e: |
| LOW | tools/tests/utils.py | 56 | except Exception: |
| LOW | tools/tests/utils.py | 80 | except Exception as e: |
| LOW | tools/tests/utils.py | 119 | except Exception as e: |
| MEDIUM | tools/tests/utils.py | 222 | print("Error: %s" % err.decode("utf-8")) |
| LOW | tools/tests/test_base.py | 255 | except Exception as e: |
| LOW | tools/tests/test_base.py | 265 | except Exception as e: |
| LOW | tools/tests/test_base.py | 451 | except Exception as e: |
| LOW | tools/tests/test_base.py | 502 | except Exception as e: |
| LOW | tools/tests/test_base.py | 650 | except Exception as e: |
| LOW | tools/tests/test_base.py | 691 | except Exception as e: |
| MEDIUM | tools/tests/test_base.py | 245 | def run(self): |
| MEDIUM | tools/tests/test_base.py | 531 | def __del__(self): |
| MEDIUM | tools/tests/test_base.py | 686 | def _execute(self, query): |
| LOW | tools/codegen/genapi.py | 266 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/tests/test_release.py | 84 | def test_linked_system_libraries(self): |
| LOW | tools/tests/test_extensions.py | 28 | def test_daemon_without_extensions(self): |
| LOW | tools/tests/test_extensions.py | 239 | def test_extensions_directory_autoload(self): |
| LOW | tools/tests/test_extensions.py | 262 | def test_extensions_autoload_watchdog(self): |
| LOW | tools/tests/test_extensions.py | 306 | def test_external_config_update(self): |
| LOW | tools/tests/test_osqueryd.py | 23 | def test_daemon_without_watchdog(self): |
| LOW | tools/tests/test_osqueryd.py | 66 | def test_daemon_with_watchdog(self): |
| LOW | tools/tests/test_osqueryd.py | 118 | def daemon_sigint_test_helper(self, pidfile_path): |
| LOW | tools/tests/test_windows_service.py | 284 | def test_install_run_stop_uninstall_windows_service(self): |
| LOW | tools/tests/test_windows_service.py | 325 | def test_thrash_windows_service(self): |
| LOW | tools/tests/test_osqueryi.py | 39 | def test_config_check_success(self): |
| LOW | tools/tests/test_osqueryi.py | 75 | def test_config_check_failure_invalid_path(self): |
| LOW | tools/tests/test_osqueryi.py | 89 | def test_config_check_failure_valid_path(self): |
| LOW | tools/tests/test_osqueryi.py | 101 | def test_config_check_failure_missing_plugin(self): |
| LOW | tools/tests/test_osqueryi.py | 115 | def test_config_check_example(self): |
| LOW | tools/tests/test_example_queries.py | 23 | def test_cross_platform_queries(self): |
| LOW | tools/tests/test_example_queries.py | 26 | def test_platform_specific_queries(self): |
| LOW | tools/formatting/git-clang-format.py | 260 | def compute_diff_and_extract_lines(commit, files): |
| LOW | tools/formatting/git-clang-format.py | 351 | def run_clang_format_and_save_to_tree(changed_lines, binary='clang-format', |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/analysis/profile.py | 71 | |
| LOW | tools/analysis/profile.py | 103 | |
| LOW | …s/ci/scripts/cve/third_party_libraries_cves_scanner.py | 40 | |
| LOW | tools/ci/scripts/cve/osquery/manifest_api.py | 49 | |
| LOW | tools/tests/test_release.py | 84 | |
| LOW | tools/tests/test_http_server.py | 183 | |
| LOW | tools/tests/utils.py | 71 | |
| LOW | tools/tests/test_base.py | 352 | |
| LOW | tools/codegen/gentable.py | 455 | |
| LOW | tools/codegen/gentable.py | 219 | |
| LOW | tools/codegen/templite.py | 70 | |
| LOW | tools/codegen/amalgamate.py | 21 | |
| LOW | tools/formatting/git-clang-format.py | 57 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/tests/test_http_server.py | 23 | # Create a simple TLS/HTTP server. |
| MEDIUM | tools/tests/test_base.py | 399 | # Create a temporary config. |
| MEDIUM | tools/codegen/gentable.py | 224 | # Create a list of column options from the kwargs passed to the column. |
| MEDIUM | tools/formatting/git-clang-format.py | 7 | # This file is distributed under the University of Illinois Open Source |
| MEDIUM | tools/formatting/git-clang-format.py | 50 | # This file is created within the .git directory. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | osquery/tables/system/windows/drivers.cpp | 255 | // Then, leverage the Windows APIs to get whatever remains |
| MEDIUM | osquery/core/watcher.cpp | 78 | // % of (User + System) CPU time worker can utilize |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/tests/test_http_server.py | 374 | # Check if client accepts gzip encoding |
| LOW | tools/tests/utils.py | 94 | # Check if it is an internal pack definition |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/integration/tables/hash.cpp | 31 | path, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.") |
| LOW | tests/integration/tables/hash.cpp | 31 | path, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.") |