News for hackers. Stuff that matters.
Re:Osquery: An sqlite3 virtual table exposing operating syst... by VWWHFSfQ on Sunday February 25, 2024 @10:41AM (#39501657)
You should explain what you're talking about if you're going to publicly trash somebody else's project

> allows your junior sysadmins to take down all your machines at once or cause mystery performance blips that someone else has to diagnose for a year

Sounds like you have extremely poor administrative management of your computer systems.

Re:Osquery: An sqlite3 virtual table exposing operating syst... by foobiekr on Sunday February 25, 2024 @11:17AM (#39501994)
Everyone who has experienced osquery in production when mandated from above and used by less qualified admins knew exactly what he was getting at and the simple truth of it.
Re:Osquery: An sqlite3 virtual table exposing operating syst... by w0de0 on Sunday February 25, 2024 @11:19AM (#39502017)
I’ve used it. At large enterprises with sophisticated deployments. I disagree.
Re:Osquery: An sqlite3 virtual table exposing operating syst... by dherder on Sunday February 25, 2024 @06:50PM (#39506200)
osquery has a huge span of use cases and has deep roots in system native apis, checkout a recent development in file access monitoring with osquery: https://material.security/blog/protecting-the-security-and-p....
Re:Osquery: An sqlite3 virtual table exposing operating syst... by mikermcneil on Sunday February 25, 2024 @06:22PM (#39506012)
Having paved roads helps: https://github.com/fleetdm/fleet
Re:Osquery: An sqlite3 virtual table exposing operating syst... by formerly_proven on Sunday February 25, 2024 @11:06AM (#39501892)
OS state introspection can get expensive quick and often has a performance impact beyond the process doing the sampling, because you're locking tons of kernel structures to read from them.

Case in point, a simple "select * from processes" takes a solid 3 seconds of kernel time on my laptop.

Now you might say, "well that's clearly a dumb idea because osquery certainly relies on vtab's colUsed field to avoid querying all sorts of expensive stuff when it doesn't have to so you really should only query what you need" and that's of course 100% true. But it's also a senior developer thought. Easy to see how an inexperienced person might make mistakes like this with any one of the dozens or hundreds of tables offered by osquery and cause performance issues.

In terms of security, well it is clearly a kitchen sink project (there's a prometheus client in there, for example: https://osquery.io/schema/5.11.0/#prometheus_metrics), so there's a huge breadth of interfaces it talks to and files controlled by all sorts of people it parses, and the default does seem to be privileged usage, which is the general ballpark where AV engines and their highly dubious track record live.

Re:Osquery: An sqlite3 virtual table exposing operating syst... by mikermcneil on Sunday February 25, 2024 @06:27PM (#39506041)
Some example queries: https://fleetdm.com/queries

The formula osquery uses to report performance: https://github.com/fleetdm/fleet/issues/16123

Re:Osquery: An sqlite3 virtual table exposing operating syst... by iJohnDoe on Sunday February 25, 2024 @11:14AM (#39501967)
Or they are a righteous developer who likes to trash people outside of development. It was a popular fad for a while, which worked both ways, such as, “Developers think they are experts in everything but couldn’t figure out how to plug in a computer.”
Re:Osquery: An sqlite3 virtual table exposing operating syst... by jeffbee on Sunday February 25, 2024 @11:00AM (#39501844)
I don't feel like I need to be nice to Facebook.

The raison d'etre of this thing is to allow interactive ad hoc exploration of large-scale systems. It is, in other words, a thoroughly bad idea.

Re:Osquery: An sqlite3 virtual table exposing operating syst... by convolvatron on Sunday February 25, 2024 @11:10AM (#39501929)
there may be problems with the implementation, or its usage, but I don't see why that's fundamentally a bad idea at all
Re:Osquery: An sqlite3 virtual table exposing operating syst... by mikermcneil on Sunday February 25, 2024 @06:44PM (#39506153)
(used in production directly or via major EDRs by much of silicon valley, governments, and the F1000)

Contributions: https://github.com/osquery/osquery

Re:Osquery: An sqlite3 virtual table exposing operating syst... by mikermcneil on Sunday February 25, 2024 @06:48PM (#39506191)