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
Russell Hancox
8ecc3f879a
Tests: Fix some flaky tests. ( #666 )
...
1. OCMock objects don't need stopMocking to be called - it's only necessary to call that in cases where the original object behavior must be restored before the end of the test. Otherwise the mock automatically restores during deallocation.
2. SNTMetricRawJSONFormat still used a plain NSDateFormatter and so was applying timezone calculations. In tests we've switched to using NSISO8601DateFormatter but this requires 10.13 and our deployment target is still 10.9 so I've stuck to applying the UTC timezone to the formatter instead.
2021-11-05 18:03:57 -04:00
Pete Markowsky
d51093501c
Fix Flaky Execution Controller Tests ( #665 )
...
* Fix up some issues with flaky tests.
2021-11-05 13:51:04 -04:00
np5
05dd1b6215
Add AboutText option for the Santa.app ( #662 )
2021-11-04 22:02:23 -04:00
Pete Markowsky
8c3320e3e9
Change NSDateFormatter to NSISO8601DateFormatter ( #661 )
...
Change NSDateFormatter to NSISO8601DateFormatter.
2021-11-02 13:11:51 -04:00
Tom Burgin
369dc9a63c
Add KVO binding for EnableBadSignatureProtection ( #659 )
2021-10-28 17:34:56 -04:00
Pete Markowsky
7adc55007c
Change to NSISO8601DateFormatter to ensure UTC timestamps in unit tests ( #658 )
...
Change to NSISO8601DateFormatter to ensure UTC timestamps in unit tests.
2021-10-28 15:34:31 -04:00
Pete Markowsky
727b009a1c
Fixed one set of tests. ( #652 )
2021-10-26 15:36:54 -04:00
Pete Markowsky
1c42f06135
Add Metrics and Metrics Service to Santa ( #641 )
...
Add santametricservice and basic metrics to Santad.
This PR adds the santametricservice, and adds basic metrics to santad. It also updates the SNTMetricSet to have and updates packaging scripts to include the santametricservice (aka metric service) in the final bundle.
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2021-10-26 09:25:10 -04:00
Pete Markowsky
3702af0309
Add description to SNTMetricSet and Fix issues with SNTMetricMonarchJSONFormat ( #649 )
...
* Added description to SNTMetricSet and fixed typos in SNTMonarchJSONFormat.
2021-10-21 16:41:24 -04:00
Kent Ma
5735a12424
Update list of critical system binaries and include comment about Monterrey behavior ( #647 )
2021-10-20 16:45:42 -04:00