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

Thrift socket connection failures on Windows #57

Open
baxitaurus opened this issue May 20, 2020 · 1 comment
Open

Thrift socket connection failures on Windows #57

baxitaurus opened this issue May 20, 2020 · 1 comment

Comments

@baxitaurus
Copy link

Hi, i'm working on a Windows 10 Pro 1909 VM with OSQuery 4.3.0 and trailofbits extensions v1.2.

When I run osqueryi --extensions_require <trailofbits.ext.exe path> I get a lots of log messages:

Thrift: Wed May 20 12:50:54 2020 Client connected.
Wed May 20 12:50:54 2020 TPipe ::GetOverlappedResult errored GLE=errno = 109
Wed May 20 12:50:54 2020 TConnectedClient died: TPipe: GetOverlappedResult failed 

and finally the loading fails with:

W0520 12:50:54.178596  5628 extensions.cpp:780] Required extension not found or not loaded: .\extensions\trailofbits_osquery_extensions.ext.exe
E0520 12:50:54.178596  5628 init.cpp:569] An error occured during extension manager startup: Required extension not found or not loaded: .\extensions\trailofbits_osquery_extensions.ext.exe

If I load the extension with osqueryi --extension <trailofbits.ext.exe path> those annoying log messages still continuously appear but I can see and query the table windows_sync_objects. This is preventing me from programmatically querying the windows_sync_objects table without having to access the interactive shell...does anyone have hints about how what's causing the issue and how to solve it?

Thanks.

@mike-myers-tob mike-myers-tob added bug osquery-extensions windows_sync_objects Related to the synchronization objects table for Windows labels May 23, 2020
@mike-myers-tob
Copy link
Contributor

With Windows 10, osquery 4.5.1, we're also seeing the repeated log messages about GetOverlappedResult errored. @Smjert believes it is another manifestation of this bug in the osquery core: osquery/osquery#6152

If so, a fix is needed in the osquery SDK, possibly around this part of the code: https://github.com/osquery/osquery/blob/224423fb7581b9e7c4d60e084065238a8601e246/osquery/extensions/impl_thrift.cpp#L420

This issue in the osquery repo seems related, so I've added to the discussion there to continue to track this until it gets solved: osquery/osquery#6709 (comment)

@mike-myers-tob mike-myers-tob changed the title Extensions loading failure Thrift socket connection failures on Windows Nov 7, 2020
@mike-myers-tob mike-myers-tob removed the windows_sync_objects Related to the synchronization objects table for Windows label Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants