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

Add socketfilterfw parser table #1812

Merged
merged 9 commits into from
Aug 1, 2024

Conversation

Micah-Kolide
Copy link
Contributor

With the release of MacOS 15, Apple has deprecated the use of a plist for application firewall settings. Instead they say to use socketfilterfw if you relied on the plist in past versions.

osquery does not have a pattern for executing and parsing data from binaries (yet), so I've added this table to fill in the gap if that table stays unsupported for MacOS 15.

@Micah-Kolide
Copy link
Contributor Author

Micah-Kolide commented Jul 30, 2024

osquery> SELECT * FROM kolide_socketfilterfw ORDER BY fullkey;
+-----------------------------------+--------+---------------------------------+-----------+-------+
| fullkey                           | parent | key                             | value     | query |
+-----------------------------------+--------+---------------------------------+-----------+-------+
| 0/allow_built-in_signed_enabled   | 0      | allow_built-in_signed_enabled   | 1         | *     |
| 0/allow_downloaded_signed_enabled | 0      | allow_downloaded_signed_enabled | 1         | *     |
| 0/block_all_enabled               | 0      | block_all_enabled               | 0         | *     |
| 0/global_state_enabled            | 0      | global_state_enabled            | 1         | *     |
| 0/logging_enabled                 | 0      | logging_enabled                 | 1         | *     |
| 0/logging_option                  | 0      | logging_option                  | throttled | *     |
| 0/stealth_enabled                 | 0      | stealth_enabled                 | 0         | *     |
+-----------------------------------+--------+---------------------------------+-----------+-------+
osquery> SELECT * FROM kolide_socketfilterfw_apps ORDER BY fullkey;
+------------------------------+--------+----------------------------+---------------------+-------+
| fullkey                      | parent | key                        | value               | query |
+------------------------------+--------+----------------------------+---------------------+-------+
| 0/allow_incoming_connections | 0      | allow_incoming_connections | 1                   | *     |
| 0/name                       | 0      | name                       | replicatord         | *     |
| 1/allow_incoming_connections | 1      | allow_incoming_connections | 0                   | *     |
| 1/name                       | 1      | name                       | Pop Helper.app      | *     |
| 2/allow_incoming_connections | 2      | allow_incoming_connections | 1                   | *     |
| 2/name                       | 2      | name                       | Google Chrome       | *     |
| 3/allow_incoming_connections | 3      | allow_incoming_connections | 1                   | *     |
| 3/name                       | 3      | name                       | rtadvd              | *     |
| 4/allow_incoming_connections | 4      | allow_incoming_connections | 1                   | *     |
| 4/name                       | 4      | name                       | com.docker.backend  | *     |
| 5/allow_incoming_connections | 5      | allow_incoming_connections | 1                   | *     |
| 5/name                       | 5      | name                       | sshd-keygen-wrapper | *     |
+------------------------------+--------+----------------------------+---------------------+-------+

@Micah-Kolide Micah-Kolide marked this pull request as ready for review July 30, 2024 22:48
Copy link
Contributor

@RebeccaMahany RebeccaMahany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once seph's comments are addressed!

@Micah-Kolide Micah-Kolide force-pushed the micah/add_socketfilterfw_exec_table branch from 494f2af to 6ddfff6 Compare July 31, 2024 18:56
@Micah-Kolide Micah-Kolide force-pushed the micah/add_socketfilterfw_exec_table branch from 3984ca8 to 2a7fcf9 Compare August 1, 2024 17:24
Copy link
Contributor

@RebeccaMahany RebeccaMahany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, had a final nitpick for conciseness

@Micah-Kolide Micah-Kolide added this pull request to the merge queue Aug 1, 2024
Merged via the queue into main with commit 551d945 Aug 1, 2024
29 checks passed
@Micah-Kolide Micah-Kolide deleted the micah/add_socketfilterfw_exec_table branch August 1, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:table Table Changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants