How again do you query values in specific textfile...
# general
t
How again do you query values in specific textfiles (e.g. the presence of 'PermitRootLogin no' in an sshd_config) ?
There was some kind of subprojet for that but I cannot recall the name
h
Augeaus can parse the config
osquery> SELECT CASE WHEN COUNT(*) = 1 THEN 'PASSING' ELSE 'FAILING' END AS state FROM augeas WHERE path = '/etc/ssh/sshd_config' AND label = 'PermitRootLogin' AND value != 'yes';
t
Ah that was it! Was reading your medium article a couple of mins after I asked
h
😁
t
Do you happen to use that with fleet btw?
Still not 100% certain about vanilla osquery vs. what fleet bundles into their agent
h
Zercurity is another fleet like manager for osquery
s
Launcher, Kolide’s agent, ships a variety of things to help with this. But It’s much more oriented around using our SaaS than rolling your own.