Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue with ATC tables in osquery 5.12.1? #18490

Closed
zwass opened this issue Apr 23, 2024 · 12 comments
Closed

Possible issue with ATC tables in osquery 5.12.1? #18490

zwass opened this issue Apr 23, 2024 · 12 comments
Assignees
Labels
bug Something isn't working as documented #g-endpoint-ops Endpoint ops product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. :reproduce Involves documenting reproduction steps in the issue

Comments

@zwass
Copy link
Member

zwass commented Apr 23, 2024

Osquery 5.12.1


💥  Actual behavior

(Reported from @directionless at Kolide)
Apparently Kolide has found that their ATC tables are no longer registering with osquery 5.12.1. They do some special things with config plugins, so the issue may be isolated to their setup.

🧑‍💻  Steps to reproduce

Not sure exactly, but let's try to reproduce this using the standard way that we configure ATC tables (through agent options). If that works fine, let's close out this issue and let Kolide continue investigating their special case. If we do reproduce the issue let's work with osquery to get things fixed.

🕯️ More info (optional)

N/A

@zwass zwass added bug Something isn't working as documented :reproduce Involves documenting reproduction steps in the issue :incoming New issue in triage process. labels Apr 23, 2024
@sharon-fdm sharon-fdm added #g-endpoint-ops Endpoint ops product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. and removed :incoming New issue in triage process. labels Apr 23, 2024
@xpkoala
Copy link
Contributor

xpkoala commented Apr 24, 2024

@zwass I followed the instructions located here and appear to have been successful. I'll close this out, but please feel free to re-open with further instructions if I've missed something.

image

@xpkoala xpkoala closed this as completed Apr 24, 2024
@fleet-release
Copy link
Contributor

ATC tables fixed,
Osquery's light unmasked,
Fleet's path, clear as glass.

@zwass
Copy link
Member Author

zwass commented May 1, 2024

@xpkoala did you test this with fleetd or plain osquery?

Per discussion in osquery slack (https://osquery.slack.com/archives/C6PNW4528/p1714580512141179?thread_ts=1713984325.377259&cid=C6PNW4528) this may only be triggered if there's a table extension also registered (which would be the case with fleetd but not plain osquery).

@directionless
Copy link
Contributor

FWIW osquery/osquery#8323

@zwass zwass reopened this May 2, 2024
@zwass
Copy link
Member Author

zwass commented May 2, 2024

@xpkoala can you please re-test with the information discussed in the osquery Slack to try to reproduce?

@xpkoala
Copy link
Contributor

xpkoala commented May 2, 2024

@zwass ahh, sorry for missing this yesterday, I'll jump on it in a moment. FWIW I did test with fleetd originally.

@lucasmrod
Copy link
Member

lucasmrod commented May 9, 2024

@zwass Given 5.12.2 draft release is out (which just reverts the related change - osquery/osquery@5.12.1...5.12.2), do we still need to reproduce?

@zwass
Copy link
Member Author

zwass commented May 9, 2024

I think it's worthwhile to test still as we would want to see whether 5.12.1 actually has issues in our deployments and if 5.12.2 fixes those.

@xpkoala

@xpkoala
Copy link
Contributor

xpkoala commented May 9, 2024

The following was tested with @lucasmrod and no complications were seen getting results from tables created with ATC:

  1. spin up local TUF server with binaries created that would load some of our test extensions (hello world, hello mars)
  2. modify the agent config (via fleet UI) to load the tcc_system_entries table (via ATC)
  3. enroll the host
  4. confirmed queries against tcc_system_entries table worked
  5. remove the modifications made in the agent config (to remove tcc_system_entries table)
  6. confirmed queries against tcc_system_entries were no longer working.
  7. repeat adding and removing the ATC entry and making sure I was getting the expected results on queries.

@lucasmrod
Copy link
Member

(Another way to try to reproduce: vanilla osquery + fleetd_tables extension.)

@xpkoala
Copy link
Contributor

xpkoala commented May 13, 2024

Closing the bug per this thread. https://fleetdm.slack.com/archives/C019WG4GH0A/p1715278510072879

@xpkoala xpkoala closed this as completed May 13, 2024
@fleet-release
Copy link
Contributor

ATC tables fixed,
Like a city in the clouds,
Fleet soars, unimpeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as documented #g-endpoint-ops Endpoint ops product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. :reproduce Involves documenting reproduction steps in the issue
Development

No branches or pull requests

6 participants