Title
#macos
zwass

zwass

01/11/2022, 12:08 AM
I had a distinct memory that
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?
Mike Myers

Mike Myers

01/11/2022, 1:29 AM
https://github.com/osquery/osquery/issues/7206 looks like we've just had it in our backlog
zwass

zwass

01/11/2022, 1:31 AM
Ah, thank you.
s

seph

01/11/2022, 1:38 AM
Generally apple has been locking down the various APIs that lead API data. Mostly the
bssid
. So that's going generally stop appearing. wifi_survey probably works aside from that. There are a couple of apple system tools that leak the info. We report them to Apple, and they slowly get fixed.
1:39 AM
I haven't chased down what permissions are needed. I don't think there's a blanket entitlement. There might be a way to prompt for it through the privacy settings
zwass

zwass

01/11/2022, 1:41 AM
Ah, so the
wifi_survey
never stopped working besides for the
bssid
.
s

seph

01/11/2022, 1:41 AM
That's my understanding, yes.
zwass

zwass

01/11/2022, 1:41 AM
Thanks for clarifying y'all.
s

seph

01/11/2022, 1:42 AM
wifi_networks
looks liked a pretty simple fix, but I could quite make it work in the c++ code, and filed an issue instead of a PR.
f

fritz

01/11/2022, 2:30 AM
Iirc you were not mistaken earlier @zwass there was a period where querying wifi_survey resulted in a seg fault