Magneto
10/09/2020, 6:00 PMSELECT * from users WHERE username NOT LIKE '_%';
returns nothing, but SELECT * FROM users WHERE username NOT LIKE '_a%';
returns expected results (I get _d and _k and _n usernames, but no _a results). v4.2.0 am I crazy?MaxosxOsquery
10/12/2020, 11:11 AMallister
10/12/2020, 11:12 AMfritz
10/15/2020, 9:07 PMfritz
10/15/2020, 9:11 PMdisk_encryption
table (perhaps @zwass knows the reason since he helped write it), you should always use a CROSS JOIN
to call disk_encryption
first in the FROM
clause otherwise the query runtime will be excessively slow, eg.
osquery> select m.path,
...> case when de.encrypted = 1 then "true" else "false" end as filevault
...> from disk_encryption de
...> CROSS join mounts m on m.device_alias = de.name;
+--------------------------+-----------+
| path | filevault |
+--------------------------+-----------+
| /Volumes/Jeyi | false |
| /System/Volumes/Data | true |
| /private/var/vm | true |
| / | true |
| /Volumes/Untitled | false |
+--------------------------+-----------+
Run Time: real 0.723 user 0.189720 sys 0.154101
osquery> select m.path,
...> case when de.encrypted = 1 then "true" else "false" end as filevault
...> from mounts m
...> CROSS join disk_encryption de on m.device_alias = de.name;
+--------------------------+-----------+
| path | filevault |
+--------------------------+-----------+
| / | true |
| /System/Volumes/Data | true |
| /private/var/vm | true |
| /Volumes/Jeyi | false |
| /Volumes/Untitled | false |
+--------------------------+-----------+
Run Time: real 5.845 user 1.532276 sys 1.258735
Tej Gandhi
10/19/2020, 3:06 PMTej Gandhi
10/27/2020, 2:50 PMMagneto
10/28/2020, 7:27 PMWilliam Guilherme
11/18/2020, 11:28 PMSELECT * FROM processes WHERE name='com.crowdstrike.falcon.Agent' OR 'falcond' AND (state='R' OR '82');
The process name com.crowdstrike.falcon.Agent is only present in BigSur but not in previous OS versions. Previous OSs, the process is called falcond. In other words, I need to be able to evaluate which one is true, but the above query is only working in BigSur. Any ideas on how to improve this query? Thank youBrandon
11/20/2020, 8:23 PM--force=true
--host_identifier=hostname
--verbose=true
--tls_dump=true
--tls_hostname=___SITE____
--tls_server_certs=__PATH_TO_CERTS__
--enroll_secret_path=__PATH_TO_SECRET___
--enroll_tls_endpoint=/api/v1/osquery/enroll
--config_plugin=tls
--config_tls_endpoint=/api/v1/osquery/config
--config_refresh=10
--disable_events=false
--disable_audit=false
--audit_allow_config=true
--audit_persist=true
--audit_allow_process_events=true
--disable_distributed=false
--distributed_plugin=tls
--distributed_interval=10
--distributed_tls_max_attempts=3
--distributed_tls_read_endpoint=/api/v1/osquery/distributed/read
--distributed_tls_write_endpoint=/api/v1/osquery/distributed/write
--logger_plugin=tls
--logger_tls_endpoint=/api/v1/osquery/log
--logger_tls_period=10
asparamancer
11/26/2020, 12:42 AMJuan Alvarez
12/15/2020, 11:44 AMasl
table. I understand it is deprecated since 10.12 but i still can query it and get data when i try in a 10.14 endpoint. But, is that data reliable? or will I be missing events? Should i be looking at using the trail of bits extension for the time being?terracatta
allister
12/31/2020, 6:14 AMSteve Poe
01/12/2021, 12:03 AMBen
01/21/2021, 3:43 AMfile_accesses
in my config. What else could I be forgetting?Ben
01/21/2021, 3:43 AMMagneto
01/27/2021, 7:02 PM~ ⯠sudo /usr/bin/codesign -vvvv --display --entitlements - ~/Downloads/osqueryd
Executable=/Users/user/Downloads/osqueryd
Identifier=osqueryd
Format=Mach-O thin (x86_64)
<snip>
Signature size=9077
Authority=Developer ID Application: Theodore Reed (B89LNTUADM)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=Dec 16, 2020 at 10:34:40 PM
Info.plist=not bound
TeamIdentifier=B89LNTUADM
Runtime Version=10.14.0
Sealed Resources=none
Internal requirements count=1 size=168
MaxosxOsquery
02/03/2021, 5:06 PMseph
seph
CptOfEvilMinions
03/01/2021, 5:31 PMfritz
03/01/2021, 10:00 PMThomas Marsh
03/08/2021, 2:15 PMgetQueryColumns
allister
03/09/2021, 3:37 AMallister
03/09/2021, 1:52 PM/private/var/osquery/lenses/{*}.aug
but it's one 'extra' level down⦠packs are at the expected level one below /p/v/osqā¦fritz
04/16/2021, 8:16 PMfritz
04/16/2021, 8:18 PMStephen Nelson
04/21/2021, 8:32 PMallister
05/20/2021, 1:41 PMsystem_extensions
table and the new mdm_managed column implementation⦠it doesn't rely on the presence of the sysext before returning its bool-as-int, 1 if "pre-allowed", 0 if not, correct?