-
Notifications
You must be signed in to change notification settings - Fork 102
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
data flatten table should handle binary data passed as raw_data #1748
Comments
I suspect we'll need to encode it. Can we could use base64 and not hex? |
@directionless , is there a function for base64 encoding in sqlite? I did some googling, but could find anything outside of sqlite extensions. |
Osquery ships a |
@directionless , looks like these the |
Huh. So I guess ATC doesn't expose the osquery sql extensions. Naive question, when you did this without the hex, I assume it was a straight join. I'm wondering if it would work if the ATC was still bare, but our raw_data allowed a base64 in, and we joined there. I don't have the right words, but I think there are 2 places this is getting passed as a string, and I'm trying to isolate where the issue is. Though saying that.... There's high odds the ATC implementation doesn't handle binary data correctly. I wonder if we can fix that. |
using an ATC config such as this
will result in an error for a query such as
because the
dataclass_properties
column is binary dataone possible solution is to adjust the ATC config to pass the binary column as hex like:
and then decode the hex with inside launcher before parsing the plist
The text was updated successfully, but these errors were encountered: