seph
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# osquery office hours 2022-06-21 YouTube Link: https://youtu.be/Z4eUU8yhRNg ## Announcements and Highlights since the last meeting * 5.3.0 is stable. We should tweet about it * Sharvil presented at Mac Dev Ops. Video coming soon ## Any Questions / Issues / PRs people want to discuss? The intent of this section is to provide a clear time for community members to bring up _anything_. Broad questions? Bugs? Deployment questions? Blocked PRs? ## `scheduler` -- option to make it work on wall clock ### Background For scheduled queries, the interval time is, seconds since the osqueryd has been running before the scheduled query will be executed. This means that scheduled queries run every N of osquery uptime (+/- some drift), and there is no precalculated time when a query runs. The current implementation of this at a high level is that on startup, we grab the unix epoch and store it in memory. We advace the tics and `if (current_time % interval == 0)` then we execute the scheduled query. There are some drawbacks to this: if osquery restarts, the interval resets. This can lead longer than expected intervals or even queries that *never execute* at all, because osquery restarts before the interval. For workstations that are sleeping this can make it unpredictable how often the queries actually run. ### Proposal Wanted to get everyone's thoughts on this and having an option to make scheduled queries run on more of a wall clock approach instead of ticks (osquery uptime) One option is to store the `last_executed_time` (`osquery_schedule` table already saves this), and use that to schedule the next query execution at `(last_executed_time + interval)` Question -- does success of unsuccessful change this? The other approach could be: store the osquery startup unix epoch in RocksDB, use that to calculate intervals and drift. ### Discussion Anyone know why we do it this way. Should we just change the scheduler behavior? There's hesitency to change it without notice. So maybe a option, and then we can change the default in the future? seph thinks this is interesting, and good, as it will aligning with user expectations. To that end, something off `last_executed_time` feels straight forward. Some oddness around how splay and temporality works * The simple case will cause clumping around machine wake * This may be a bit weird for short interval queries, consider splaying on percentage? * Unclear how this effects evented stuff * We want to avoid multiple queries clumping ## `osquery.io` schema documentaion issues Misdocumented tables: * `secureboot` table is implemented in Linux and Windows and the table spec is marked `linwin`, but the website shows it's available for all platforms * Bunch of other tables (`lxd...`) are marked as `posix`, but only implemented on Linux -- okay to move the spec/implementation from `posix` to Linux only? * `example` table is included in the osquery.io schema docs, perhaps we should exclude this from the docs Documenting `constraint` and `user_context`: A lot of tables have costraints on columns, this is not exposed easily in the documentation. What would be the best way to do this? Have an `attribute` in the table spec file? Similar to above for user context. It would be nice to have this documented Deprecating tables that are not used or not testable as working * `carbon_black` * `atom_packages` There's broad agreement in improving the table schema. And updating the website javascript as we can. ## deb_packages regression on the 'name' column The recent refactor happened on the internal dpkg helper functions has introduced a regression, breaking the contents of the `name` column by appending the package architecture at the end. The following PR fixes the bug: [#7638 - deb_packages: Do not display arch info in the package name](https://github.com/osquery/osquery/pull/7638) ## A new osquery release Two of our libraries have security vulnerabilties. These don't impact us directly, but some users cannot deploy osquery without a green dashboard. There's some tension here between helping people get osquery deployed, and not feeling like osquery releases are being driven by some meaningless checkbox. This specific need is driven by some merged PRs (https://github.com/osquery/osquery/pull/7629 and https://github.com/osquery/osquery/pull/7628) that update dependencies, and silence dependency audit tools' alerts. This dovetails with a desire to have more releases. * What if they were monthly? * What if they were automated? * Counter point -- having codesigning manual is a nice catch in case we merged something sketchy. How do we cover this? General consensus is that we should cut a 5.4 on July 1, and try to be more frequent. ## Releasing the osquery security audit by Trail of Bits Trail of Bits completed a security audit of osquery core, and the sponsor would like to publish the report. We want to circulate the report amongst the maintainers first and get a private channel on osquery Slack about the disclosure. General consensus for: * Private slack channel * Trusting ToB on what needs to be fixed before release vs after * Having this report land in the osquery docs after ToB releases it. (If they can) * GitHub advistories as needed ## Look at old PRs _(If there's time, we've been trying to re-visit old PRs)_ [Reverse Sorted List of PRs](https://github.com/osquery/osquery/pulls?q=is%3Apr+is%3Aopen+sort%3Acreated-asc)

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully