jackjack
05/21/2021, 6:35 PM~ sudo /usr/local/bin/osqueryctl start 14:33:35
/Library/LaunchDaemons/com.facebook.osqueryd.plist: service already loaded
Load failed: 37: Operation already in progress
~ sudo /usr/local/bin/osqueryctl stop
~ sudo /usr/local/bin/osqueryctl start 14:33:45
~ sudo /usr/local/bin/osqueryctl status 14:33:49
com.facebook.osqueryd is not running
allister
05/24/2021, 1:37 PMLuis Gomez
05/26/2021, 7:15 AMosquery_schedule
have a last_executed = 0
? I have enabled the osx-attack pack but no queries seem to be running, I left the default Intervals and I'm using filesystem logging. If this is not the right place to ask this let me know where thanks! :)Juan Alvarez
06/04/2021, 4:46 PMarod
06/16/2021, 7:37 PM/usr/local/bin/osqueryctl restart
when I start the machine. I am running Big Sur. Aside from croning this, is there already a way to start the osquery agents on boot?Daisukixci
07/07/2021, 12:05 PMallister
07/09/2021, 9:57 AM{
"auto_table_construction": {
"munki_app_usage_local": {
"query": "select event, bundle_id, app_version, app_path, last_time, number_times from munki_app_usage_local;",
"path": "/Library/Managed Installs/application_usage.sqlite",
"columns": [
"event",
"bundle_id",
"app_version",
"app_path",
"last_time",
"number_times"
]
}
}
}
and it's got stuff in it
sqlite> select count(*) from application_usage;
290
but osqueryi isn't seeing it
osquery> SELECT count(*) FROM munki_app_usage_local;
I0709 18:58:29.412958 86793728 virtual_sqlite_table.cpp:111] ATC table: Could not prepare database at path: "/Library/Managed Installs/application_usage.sqlite"
W0709 18:58:29.413038 86793728 auto_constructed_tables.cpp:47] ATC Table: Error Code: 1 Could not generate data: Could not prepare database for path /Library/Managed Installs/application_usage.sqlite
count(*) = 0
clong
07/09/2021, 5:10 PMfritz
07/13/2021, 4:30 PMuuid
's generated by the system will start with a known set of characters, eg. FFFFEEE
For example on my test device:
osquery> SELECT SUBSTR(uuid,1,16), COUNT(SUBSTR(uuid,1,16)) FROM users GROUP BY SUBSTR(uuid,1,16);
+-------------------+--------------------------+
| SUBSTR(uuid,1,16) | COUNT(SUBSTR(uuid,1,16)) |
+-------------------+--------------------------+
| 425D5A4B-8EF2-4E | 1 |
| 595A9274-B7F3-43 | 1 |
| 76057753-404D-41 | 1 |
| E96D1341-6627-4E | 1 |
| FFFFEEEE-DDDD-CC | 112 |
+-------------------+--------------------------+
Neil
07/15/2021, 11:51 PMMacOS
creating a pkg fine also. I notice the packaging mechanism has changed since 3.3.0. One thing that I can’t find how to do with 4.9.0 packaging on MacOS
is to ensure a restart of osqueryd
at the end of the install. With the 3.3.0 code base, there was a flag passed to the now-superseded packaging script.
Any tips on how the same type of postinstall unload/load of the daemon can be achieved?ehrhardt
07/20/2021, 4:08 PMFailed to read the following manifest.json file
for files that do not exist. Is this a known issue or something easily resolved?Steve Poe
07/22/2021, 10:15 PMUtsav Shah
07/27/2021, 1:56 PMSteve Poe
08/06/2021, 6:06 PMpackage_install_history
updated? I installed two apps yesterday (Evernote and Spotify via brew) and I'd expect them to show up in the package history? I am using osquery 4.9 on macOS 10.15.7. Current uptime: 3 days.natewalck
09/15/2021, 6:35 PMnatewalck
09/15/2021, 6:35 PMwes
09/15/2021, 7:47 PMLeon Schulze
09/16/2021, 1:44 PMjackjack
09/16/2021, 2:15 PMMystery Incorporated
09/17/2021, 7:09 AMSeth Hanford
10/04/2021, 6:10 PMclong
10/09/2021, 10:31 PMDavid Lancaster
11/09/2021, 10:30 PMfritz
11/12/2021, 7:04 PMallister
11/16/2021, 8:22 AMzwass
wifi_survey
had stopped working on macos (due to Apple changing the permissions around this?). Trying it just now I found that it works and wifi_networks
does not. Is that expected? And is there some entitlement or profile that can allow wifi_networks
to work?CptOfEvilMinions
01/24/2022, 8:20 PMmagic
table:
osquery> select * from magic WHERE path like '/usr/local/bin/%';
W0124 14:19:17.487205 337212928 magic.cpp:53] Unable to load magic list of database: /usr/share/file/magic.mgc:/usr/share/misc/magic.mgc because: File 5.32 supports only version 14 magic files. `/usr/share/file/magic.mgc' is version 16
osquery>
osquery> .version
osquery 5.0.1
using SQLite 3.35.5
osquery>
osquery> select * from os_version;
name = macOS
version = 12.1
platform = darwin
arch = x86_64
osquery>
Ojas
01/27/2022, 6:24 AMgroob
/Library/SystemExtensions/db.plist
has all the relevant bits. I'm thinking i can turn that into a table on macadmins/osquery-extensionsgroob