Russell Hancox
aadc961429
santad: Clear caches when disks are unmounted. ( #760 )
...
This restores behavior that was recently removed
2022-03-18 13:38:35 -04:00
Russell Hancox
be66fd92f4
santactl/status: Re-org output in status re: USB Blocking. ( #759 )
2022-03-18 09:57:34 -04:00
Kent Ma
1c04c3a257
Remove code guarded by #ifdef kernel macros ( #752 )
...
* Remove code guarded by #ifdef kernel macros
2022-03-15 14:38:40 -04:00
np5
818d3f645f
santactl/sync: Add model identifier to preflight request ( #751 )
2022-03-15 14:24:05 +00:00
Pete Markowsky
15d6bb1f14
Made santad an early boot client to prevent racing other pids. ( #750 )
...
Make santad an early boot Endpoint Security Framework Client.
2022-03-15 10:16:40 -04:00
Kent Ma
211dbd123f
Remove the Santa kernel extension. ( #749 )
...
This includes:
* All of the code in Source/santa_driver containing the kernel extension
* The SNTDriverManager event provider
* All workflows in our CI related to testing if the driver builds
* Installation of the driver in install.sh. Note that code uninstalling existing instances of the driver is still intentionally kept present.
* Kernel extension-specific build rules
* Renames SNTKernelCommon to SNTCommon
* Driver version output from santactl version
* The [SNTConfigurator EnableSystemExtension] configuration key
2022-03-14 18:17:02 -04:00
Matt W
c67364fe76
Protobuf support, maildir format logging ( #731 )
...
* Initial protobuf support, maildir logging
Fix build issues in the integration test
Deduped some test code
Formatting
Address feedback from draft PR
Removed legacy labels. Updated docs.
Add in metrics. Fix protobuf logging test.
* Now use the Any proto for the LogBatch wrapper
* Changes based on PR feedback
* Added gauge metrics for spool dir
* Formatting
* Add event time to proto
* Fix build issue after rebase
* Update BUILD rules
* Updated language around protobuf logging to mark as beta
2022-03-14 15:46:52 -04:00
Pete Markowsky
2043983f69
Fix typo in SNTDeviceManager tests & ensure they run in the CI. ( #746 )
2022-03-14 12:57:07 -04:00
Russell Hancox
2f408936a0
Project: Disable bazel layering_check feature for most rules ( #742 )
2022-03-10 10:07:15 -05:00
Pete Markowsky
9588dd8a0e
Fix: Issue with SNTMetricHTTPWriter Timeouts ( #741 )
...
Fix issue with santametricservice timing out due to incorrect timeout argument.
2022-03-08 14:12:57 -05:00
Russell Hancox
e60f9cf6c5
Project: Add build version ( #736 )
2022-02-28 14:18:18 -05:00
Kent Ma
c7e309ccb1
Add a USB device blocking popup. ( #728 )
...
* Add a USB device blocking popup.
* Refactor SNTNotificationManager and SNTMessageWindowController to make
for generalized notification logic
* Add the configuration keys for custom block messages and resize window
2022-02-28 13:30:56 -05:00
Russell Hancox
d97abe36f2
santad: Fix fail open tests in SNTExecutionControllerTest ( #730 )
2022-02-14 20:13:08 -05:00
Pete Markowsky
faa8946056
Fix: remediate a crash in santametricservice ( #729 )
...
* Fix issue with task cancelation.
* Make export timeouts configurable.
This allows an export timeout to be set via configuration and eases testing.
2022-02-14 13:51:29 -05:00
Kent Ma
8b2b1f0bfc
Report USB blocking status with santactl status ( #727 )
...
* Report USB blocking status with santactl status
2022-02-10 16:02:40 -05:00
Matt W
0bd6a199a3
Fix additional strlcpy issue, simplify call paths ( #723 )
...
* Fix additional strlcpy issue, simplify call paths
* Remove unused interface from header
2022-02-03 12:53:22 -05:00
Russell Hancox
58e2b7e1b8
santad: Add fail-closed mode ( #722 )
2022-01-28 18:29:18 -05:00
Tom Burgin
b824a8e3e0
santad: only store events if there is a sync server configured ( #721 )
...
* santad: only store events if there is a sync server configured
* SNTExecutionControllerTest stub sync server
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-01-27 15:55:51 -05:00
Kent Ma
25bf2a93e4
Add DiskArbitrationTestUtil to shim out DiskArbitration for unit testing ( #720 )
2022-01-25 13:45:03 -05:00
Russell Hancox
f1ea1b369f
santactl/fileinfo: Switch certIndex to an NSNumber ( #719 )
...
* santactl/fileinfo: Switch certIndex to an NSNumber
2022-01-25 12:50:04 -05:00
Tom Burgin
5503a88308
rule download: return early on daemon timeout ( #718 )
...
* rule download: return early on daemon timeout
* wording update
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-01-21 17:19:44 +00:00
Kent Ma
8cf0f8217d
Add clang_analyzer generation ( #717 )
...
Fix warnings for unused variables. The other warnings are more
nontrivial & require some light refactoring to fix, and will come in a followup PR.
2022-01-21 17:14:44 +00:00
Pete Markowsky
cb61d0cc99
Create test suites for each component ( #702 )
...
Create test suites for each component.
2022-01-18 17:00:44 -05:00
Pete Markowsky
fb7447ceba
Fix off-by one error in strlcpy. ( #715 )
2022-01-18 15:31:30 -05:00
Russell Hancox
45e51e9c09
santactl/fileinfo: Clarify valid index for cert-index ( #714 )
2022-01-13 14:35:30 -05:00
Russell Hancox
b0f0cdd4e6
santactl/fileinfo: Update --cert-index usage ( #713 )
...
* santactl/fileinfo: Update --cert-index usage.
Fixes #710
2022-01-13 13:04:38 -05:00
Kent Ma
65090d3ef2
Support rule downloading of Team ID rules ( #709 )
...
* Support syncing Team ID rules and using 'identifier' instead of 'sha256' in sync rules
2022-01-13 10:55:14 -05:00
Russell Hancox
9c80f79d82
Sync: Allow configuring proxies ( #708 )
...
* Sync: Allow configuring proxies
Fixes #672
2022-01-13 15:04:11 +00:00
Kent Ma
93adaea81e
Add clang annotation for fallthrough ( #712 )
2022-01-12 13:56:47 -05:00
Russell Hancox
a125b340a5
santad: Don't use proc_pidpath when using ES ( #707 )
2022-01-11 20:32:29 -05:00
Kent Ma
fbd0de3d48
Add test coverage for syncing USB mounting options ( #711 )
2022-01-11 17:13:37 -05:00
Russell Hancox
6f2ae62bce
Project: Explicitly set calendar on ISO8601 dates ( #706 )
2022-01-06 09:33:04 -05:00
Kent Ma
197109a8ee
USB mass storage blocking and remounting ( #685 )
...
* USB mass storage blocking.
* Add the sync service and config key for enabling mass USB storage blocking
* Update docs with the sync service key
* Add ability to forcibly remount USBs with different flags
* update EndpointSecurityTestUtil and tests that use it to properly handle multiple ES clients
2021-12-16 13:38:48 -05:00
Kent Ma
91f3168c7a
Update santactl rule text to have accurate text for team IDs ( #701 )
2021-12-14 11:42:53 -05:00
Russell Hancox
c32248aaf7
santad: Fix PrinterProxy workaround for Monterey+ ( #698 )
2021-12-13 15:24:58 +00:00
Pete Markowsky
afd97bdf3e
Removed the check for export metrics in santad. ( #697 )
...
Remove the check for export metrics in santad
Metrics are always collected but only exported to a monitoring system when all of the necessary config options are set. Since they're always collected santactl metrics should always return metrics data.
2021-12-13 10:23:05 -05:00
Tom Burgin
73c4875b1f
santasyncservice: move sync code to the santasyncservice dir ( #696 )
...
* sync: move sync code from santactl dir to santasyncservice dir
* clang-format
* fix tests
* s/SNTCommandSync/SNTSync
* s/SNTCommandSync/SNTSync on content
2021-12-08 18:11:56 -05:00
Pete Markowsky
916fc8c0e6
Add a simple event counter to SNTExecutionController ( #694 )
...
Add a simple event counter for events per response.
2021-12-08 17:35:37 -05:00
Pete Markowsky
216ac811eb
Fix issue with reregistering metrics. ( #693 )
2021-12-07 15:32:15 -05:00
Pete Markowsky
82b71c0f20
Add a metrics command to santactl ( #687 )
...
Add a metrics command to santactl.
2021-12-02 14:30:39 -05:00
Pete Markowsky
acbbb9e7b0
Add a configuration option for users to add their own root labels ( #683 )
...
Add an option for users to add their own root labels.
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2021-11-19 10:34:18 -05:00
Kent Ma
3939ad9813
Add santametricservice information to santactl status ( #679 )
2021-11-16 16:04:59 -05:00
Kent Ma
d20455252d
Update santactl fileinfo, sync, and status to show teamID info ( #678 )
...
* Update santactl fileinfo, sync, and status to show teamID info
2021-11-16 14:57:02 -05:00
Pete Markowsky
5cd901034f
Fixed up typo related to hostname vs. host_name ( #676 )
...
Fixed up typo related to hostname vs. host_name.
2021-11-15 15:28:41 -05:00
Kent Ma
4e82392370
Update cli flag for --teamid in santactl ( #675 )
2021-11-11 15:56:18 +00:00
np5
19710f7233
Do not store Allow TeamID events in the database ( #674 )
2021-11-11 10:44:39 -05:00
Russell Hancox
27e32bd9ff
Tests: Update SNTMetricHTTPWriterTest ( #673 )
2021-11-11 08:59:14 -05:00
Kent Ma
c268ad4f9a
Change SNTEventLog to be a singleton emit a singleton Logger object ( #670 )
...
* Change SNTEventLog to be a singleton emit a singleton Logger object
2021-11-10 17:23:01 -05:00
Russell Hancox
f7a1a4cb39
Tests: Fix MetricServiceTest compatible with public OCMock ( #669 )
2021-11-08 15:53:57 -05:00
Russell Hancox
ad6e03e6cc
Tests: Stop using NSInvocation with OCMock's .andDo() ( #667 )
2021-11-08 12:19:20 -05:00