Mehmet
09/27/2023, 10:51 AMsignature
table works on macOS in terms of the validation of a signature. I have a binary which has a valid ad-hoc signature(no team identifier and authority is available). I would expect the is_signed
value to be 0
, but I'm getting 1
. Is it an expected behavior for being signed when there is a valid signature without team identifier and authority?allister
09/27/2023, 1:07 PMallister
09/27/2023, 1:09 PMMehmet
09/27/2023, 1:49 PMsigned = 1
in osquery does not mean the signature adn hence the binary is trusted. It's kinda confusing 😕seph
Mehmet
09/27/2023, 2:17 PMseph
seph
osquery> select path, signed, team_identifier, authority from signature where path in ('/usr/local/kolide-k2/bin/osqueryd', '/usr/local/kolide-k2/Kolide.app');
+-----------------------------------+--------+-----------------+-----------------------------------------------------------------------------+
| path | signed | team_identifier | authority |
+-----------------------------------+--------+-----------------+-----------------------------------------------------------------------------+
| /usr/local/kolide-k2/Kolide.app | 1 | X98UFR7HA3 | Developer ID Application: Kolide, Inc (X98UFR7HA3) |
| /usr/local/kolide-k2/Kolide.app | 1 | X98UFR7HA3 | Developer ID Application: Kolide, Inc (X98UFR7HA3) |
| /usr/local/kolide-k2/Kolide.app | 1 | X98UFR7HA3 | Developer ID Application: Kolide, Inc (X98UFR7HA3) |
| /usr/local/kolide-k2/bin/osqueryd | 1 | 3522FA9PXF | Developer ID Application: OSQUERY A Series of LF Projects, LLC (3522FA9PXF) |
| /usr/local/kolide-k2/bin/osqueryd | 1 | 3522FA9PXF | Developer ID Application: OSQUERY A Series of LF Projects, LLC (3522FA9PXF) |
| /usr/local/kolide-k2/bin/osqueryd | 1 | 3522FA9PXF | Developer ID Application: OSQUERY A Series of LF Projects, LLC (3522FA9PXF) |
+-----------------------------------+--------+-----------------+-----------------------------------------------------------------------------+
Mehmet
09/27/2023, 2:19 PMseph
genSignature
https://github.com/osquery/osquery/blob/f3d84bb1b4ff3ac80260f33cba90e51cb6affe79/osquery/tables/system/darwin/signature.mm#L216Mehmet
09/27/2023, 2:20 PMsigned
value.seph
signed=1
happens when it returns success.Mehmet
09/27/2023, 2:24 PMtrusted
for that.Mehmet
09/27/2023, 2:26 PMBrian Bergstrand
09/27/2023, 5:15 PMsigned
just indicates the presence of a valid signature. Ad-hoc or otherwiseBrian Bergstrand
09/27/2023, 5:15 PMallister
09/27/2023, 11:34 PMMehmet
09/28/2023, 8:04 AM