grahamgilbert
10/27/2020, 8:06 PM<
or >
in the query - works fine when using equals or not equal to (have not tested other operators yet)suppandi
12/05/2020, 1:48 AMSebastiaan
12/18/2020, 3:25 PMMike Myers
12/22/2020, 12:46 AMseph
alessandrogario
seph
zwass
alessandrogario
alessandrogario
alessandrogario
Seshu
01/26/2021, 3:46 AMmap<string, Object>
where Object
is a union
should work in thrift AFAIK. Overhead for serialization/de-serialization via domain sockets should be negligible compared to JSON.
We have been pushing events in near real-time for ~4 years. OSS PR https://github.com/osquery/osquery/pull/3482 and others didn't go anywhere. Our Osquery at most have a latency of 4 seconds on events. Here is a customer from 2020 @scale conference who measured events -> alerts in ~1.7 seconds The more I explore extensions, these limitations are biting me. Happy to contribute, if there is consensus.Mike Myers
01/27/2021, 9:14 PMpuffycid
02/12/2021, 1:54 AMtheopolis
annec
06/17/2021, 5:21 PMMike Myers
07/12/2021, 5:35 PMJason NG
07/23/2021, 3:43 AMPensamento Profundo
07/30/2021, 5:54 AMUnable to connect to \\.\pipe\osquery.em with uds_windows::UnixStream: Os { code: 10013, kind: PermissionDenied, message: "An attempt was made to access a socket in a way forbidden by its access permissions." }
But when I execute with Admin user or as the user guide explains to manually load an extension it cannot connect to the socket with this error:
Unable to connect to \\.\pipe\osquery.em with uds_windows::UnixStream: Os { code: 10061, kind: ConnectionRefused, message: "No connection could be made because the target machine actively refused it." }
I just checked the flags to include the path and name of the socket and enable the extension loading:
--extensions_socket=\\.\pipe\osquery.em
--disable_extensions=false
I compiled the extension, moved it to the installed folder of osquery (c:\Programs Files\osquery
) as myshinny.ext.exe
and executed like this without success:
.\osqueryi.exe --allow-unsafe --extension myshinny.ext.exe
Then I tried to create a Extension folder, move the extensions inside it and apply the icacls.exe
commands listed on the osquery's extension guide but again with no success.
I'm trying to update the (https://github.com/zacbrown/osquery-rs) to support windows through (https://github.com/haraldh/rust_uds_windows/)Frank Fenn
08/18/2021, 8:08 PMRyan Small
09/03/2021, 7:27 PMJean M
09/13/2021, 9:11 AMPS C:\Program Files\osquery> .\osqueryd\osqueryd.exe --flagfile osquery.flags --verbose
I0913 01:37:43.778841 4896 init.cpp:342] osquery initialized [version=4.7.0]
I0913 01:37:43.825711 4896 system.cpp:342] Found stale process for osqueryd (10920)
I0913 01:37:43.825711 4896 system.cpp:374] Writing osqueryd pid (5116) to \Program Files\osquery\osqueryd.pidfile
I0913 01:37:43.825711 4896 extensions.cpp:438] Found autoloadable extension: C:\Program Files\osquery\extensions\myosquery.ext
I0913 01:37:43.825711 4896 dispatcher.cpp:78] Adding new service: WatcherRunner (000001AB7BFC9F30) to thread: 13760 (000001AB7DB4FCC0) in process 5116
I0913 01:37:43.841331 13760 watcher.cpp:613] osqueryd watcher (5116) executing worker (10352)
E0913 01:37:43.856961 13760 watcher.cpp:653] Cannot create extension process: C:\Program Files\osquery\extensions\myosquery.ext
I0913 01:37:43.856961 4896 dispatcher.cpp:149] Thread: 4896 requesting a stop
...
I0913 01:37:46.891346 13672 watcher.cpp:667] osqueryd worker (10352) detected killed watcher (5116)
I0913 01:37:46.891346 12320 dispatcher.cpp:149] Thread: 12320 requesting a stop
I0913 01:37:46.891346 12320 dispatcher.cpp:156] Service: 0000021774EF2CB0 has been interrupted
...
Full log at: https://pastebin.com/Ygm7CGX1 (112233). I’ve used procmon
and I couldn’t find any attempt to launch the extension process. While doing that, I noticed a werfault.exe was being executed. Looking at Windows Events it seems osquery crashed:
Faulting application name: osqueryd.exe, version: 4.7.0.0, time stamp: 0x6050e93f
Faulting module name: osqueryd.exe, version: 4.7.0.0, time stamp: 0x6050e93f
Exception code: 0xc0000005
Fault offset: 0x00000000009da964
Faulting process id: 0x37c0
Faulting application start time: 0x01d7a87be147ff10
Faulting application path: C:\Program Files\osquery\osqueryd\osqueryd.exe
Faulting module path: C:\Program Files\osquery\osqueryd\osqueryd.exe
Report Id: e7704eb3-e66d-439b-aa1f-331f195cb88c
Faulting package full name:
Faulting package-relative application ID:
ihor
11/05/2021, 9:28 AMI1104 15:49:32.779342 11716 extensions.cpp:348] Extension UUID 18380 has gone away
). When we compile 5.0.1 by ourselves then there are no any issues.Jason NG
11/24/2021, 8:48 AMMatt Ackard
11/30/2021, 10:04 PMextensions_require
flag works too. Can't pass the query directly if the extensions require flag is not passed. Everything works fine in osqueryd as well. If I try adding profile_delay
it seems like the extension can't connect to the socket. Has anyone run into this issue? I'll add some osqueryi outputs in threadMike Myers
12/01/2021, 4:50 PMExtension registered table plugin
for several tables implies the extension was communicating over the Thrift channel ...and then suddenly An error occurred during extension manager startup
. Is this extension one of the public ones that others can grab and try to reproduce this problem?Dhruv Rathod
01/25/2022, 9:47 AMinstance = osquery.ExtensionClient('\\\\.\pipe\shell.em')
instance.open()
client = instance.extension_client()
print(client.query('select * from time'))
In this code, it's possible to query osquery via the thrift socket without creating any new extension. I want to ask if it is also possible to set the config and get the logs for the running osquery instance without creating a new extension, and just read/write via the extension_client?Dhruv Rathod
02/08/2022, 7:35 AMpython_config.ext
). I have placed this file in Extensions folder in the osquery root. I tried .\osqueryd.exe --flagfile .\osquery.flags --verbose
but I am getting an error saying E0208 12:58:29.730865 3680 watcher.cpp:702] Cannot create extension process: C:\Program Files\osquery\Extensions\python-config.ext
. I have set safe permissions according to this link: https://osquery.readthedocs.io/en/stable/deployment/extensions/#extensions-binary-permissions . Can anyone help me with this? cuz when I run this extension as python python-config.ext --socket=\\.\pipe\shell.em
, it works perfectly and the extension is loadedmikermcneil
03/17/2022, 1:56 AMCptOfEvilMinions
04/06/2022, 5:13 PMosquery.flags
in my extension?