Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: osquery/osquery
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.6.0
Choose a base ref
...
head repository: osquery/osquery
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.7.0
Choose a head ref
  • 19 commits
  • 45 files changed
  • 11 contributors

Commits on Oct 12, 2022

  1. Configuration menu
    Copy the full SHA
    e0153cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0273079 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2022

  1. processes: Stabilize the start_time column value on macOS and Linux (#…

    …7788)
    
    - Linux: instead of using the uptime and having to extrapolate
      the boot time and then calculate the start time,
      which causes multiple clock reads and therefore an inherent
      imprecision in the final result, we read directly the boot time
      from procfs once and keep it in memory for the whole
      process duration.
    
    - macOS: instead of extrapolating the process age and then use that
      to calculate the start time, which is again done through two different
      clock reads, read the already correct start time from another API.
      This also fixes a bug with system sleep, since the start time
      retrieved by the previous APIs was a relative value that didn't
      include system sleep.
    Smjert authored Oct 25, 2022
    Configuration menu
    Copy the full SHA
    030e7af View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2022

  1. Configuration menu
    Copy the full SHA
    feb076d View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2022

  1. Configuration menu
    Copy the full SHA
    9b728ab View commit details
    Browse the repository at this point in the history
  2. docker_containers: Don't report finished_at for a container which is …

    …still running (#7783)
    
    Fixes #8007
    Artemis Tosini authored Nov 2, 2022
    Configuration menu
    Copy the full SHA
    0b4ec10 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2022

  1. Configuration menu
    Copy the full SHA
    4da23ce View commit details
    Browse the repository at this point in the history
  2. Fix the empty host column from logged_in_users table (#7685)

    Fixes the empty "host" column in the "logged_in_users" table on Windows, by falling back to the WTSClientName from the WTSQuerySessionInformationW API.
    sm0k authored Nov 9, 2022
    Configuration menu
    Copy the full SHA
    f8bd96e View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. ci: Fix python version when installing modules and testing on macos (#…

    …7813)
    
    Use the same version of python when installing the modules via pip
    and when configuring osquery, otherwise the tests
    will not find the modules.
    Smjert authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    d8330d9 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. Fix permissions on opening pipes for reading in pipes table (#7810)

    Open pipe handles non-exclusively, specifically on Windows. Fixes issue 7809.
    Anadi Sharma authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    106bf5f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ab780a View commit details
    Browse the repository at this point in the history
  3. Fix handling of some errors during an AWS HTTP request (#7811)

    - Fixes the retry mechanism of some AWS HTTP requests
      in some cases, like STS.
      The osquery MakeRequest implementation for the AWS SDK
      was incorrectly setting a 200 response code when the osquery http client
      would throw an exception, due to some internal error or simply
      due to reaching the timeout for sending the request.
      Not only this hides some of the logging that could happen
      when this is reported as an error, but it also prevents
      the AWS SDK logic to retry again.
    
    - Improve again the STS credentials retrieval failure message,
      since in some cases the error message was empty.
      Now print the error message when present, the STS error type,
      and the HTTP response code, when present.
    
    - Improve support on shutting down quickly when the AWS logger plugin
      is retrying sending logs.
    Smjert authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    65216e1 View commit details
    Browse the repository at this point in the history
  4. Fix deadlock when logging happens during a database reset (#7798)

    A deadlock could happen if a log relay thread
    was trying to serialize logs into the database
    when a database reset was being attempted.
    
    Since the log relay thread is started by the same thread
    that executes the database reset, the scheduler thread,
    ensure that the log relay thread has finished its work
    before doing a database reset on the next scheduler loop.
    
    Also ensure that when the scheduler is finishing its work,
    to permit osquery to exit, we wait on the log relaying thread
    if it's still running to prevent race conditions
    and possible crashes on shutdown.
    
    Finally remove the relayStatusLog call from the watcher process,
    it's a no-op since there's no logger plugin active.
    Smjert authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    e5276eb View commit details
    Browse the repository at this point in the history
  5. ci: Update how we set github workflow step outputs (#7791)

    The set-output command is being deprecated,
    use the special $GITHUB_OUTPUT environment file instead.
    Smjert authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    a5bc1a3 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2022

  1. Do not access the AWS SDK request content type if missing (#7834)

    The AWS SDK request GetContentType function must not be called
    if we aren't sure (with HasContentType for instance)
    that the content type is in the headers,
    because it doesn't return an empty type and instead
    returns something referencing uninitialized memory.
    Smjert authored Dec 1, 2022
    Configuration menu
    Copy the full SHA
    a17655e View commit details
    Browse the repository at this point in the history
  2. Shimcache: Only check CurrentControlSet (#7832)

    Only check CurrentControlSet, since the others are clones/backups.
    defensivedepth authored Dec 1, 2022
    Configuration menu
    Copy the full SHA
    bb716df View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2022

  1. Update es_process_events table to include codesigning_flags column (

    #7726)
    
    * Add column to es_process_events indicating if binary is ad-hoc signed
    
    * Switch to a general codesigning_flags column and include additional flags
    bgirardeau-figma authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    61e02f3 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2022

  1. ci: Add a job and helper scripts to periodically scan for CVEs (#7787)

    - Add the third_party_libraries_cves_scanner.py and github_api.py
      helper scripts to scan for third party libraries CVEs,
      using the NIST NVD APIs and database,
      and a local third party libraries manifest which provides the metadata
      necessary for the scan.
    
      When new CVEs are found, and if the script is run
      with the --create_issues flag, new issues will be opened in the repository,
      if not already opened, to keep track of them.
    
    - Add a validate_manifest_libraries_versions.py and manifest.py helper
      scripts to verify that the manifest of libraries is always
      with the correct format and that is up to date.
    
    - Add a CI job running periodically once a day will use these scripts
      to validate the manifest, scan for CVEs and open issues.
    
    - Validate the manifest during PRs too.
    Smjert authored Dec 3, 2022
    Configuration menu
    Copy the full SHA
    8ced8ea View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2022

  1. Configuration menu
    Copy the full SHA
    feb718d View commit details
    Browse the repository at this point in the history
Loading