Commit Graph

5660 Commits

Author SHA1 Message Date
Stefano Bonicatti
58be58c29d
Azure Pipelines: reclaim disk space after building (#6307)
With the increasing size of the build and the respective ccache
and sccache caches, the disk space sometimes is not enough
and the build fails.
This deletes the build folder as the last step since it shouldn't
be necessary anymore.
2020-03-18 10:06:29 -04:00
Nick Collier
09c5246823
Make AWS kinesis status logging configurable (#6135) 2020-03-15 21:04:03 -04:00
Jason Meller
309ca4a510
Add new macOS virtual table screenlock (#6243) 2020-03-15 21:03:16 -04:00
scoders-tob
4e5dcd9832
Adding LXD tables (#6249)
Co-authored-by: Stefano Bonicatti <stefano.bonicatti@gmail.com>
2020-03-15 21:02:18 -04:00
Breakwell
aeaf6249ce
If osquery fails to get the service description log a warning message and continue (#6281) 2020-03-15 21:01:04 -04:00
Exane Server Team
f61c0cace6
Fix 5569 pci ids on redhat like v2 (#6297) 2020-03-15 20:55:35 -04:00
Alessandro Gario
7560e3c26f
libs: Update the bzip2 remote URL (#6296) 2020-03-12 13:20:40 +01:00
Ivan Tse
4a4d52dbce
Fix database_dump for rocksdb (#6272) 2020-03-07 07:50:43 -05:00
flappy-sh
d9faba2d9e
Build librdkafka on Windows (#6095) 2020-03-06 15:06:55 -05:00
seph
1374238ed7
Add link to older releases (#6283)
Add a link to the README to the older documentation.
2020-03-03 20:35:46 -05:00
seph
ae66d8f3bc
Add path to ATC generated specs (#6278)
Add the `path` column to the ATC generate specs. This matches the existing data, as it is already includes in the returned rows.
2020-03-01 08:42:21 -05:00
Teddy Reed
983d2a30a4
tests: Fix flaky ProcessOpenFilesTest.test_sanity test (#6185) 2020-02-29 07:48:41 -05:00
Teddy Reed
036ef013fb
udev: Log errno for udev ERROR messages (#6186)
Co-Authored-By: Ryan Wilson <ryantimwilson@fb.com>
2020-02-29 00:24:50 -05:00
seph
6a6d08a247
Fix initialization of profiles variable (#6277)
Fix initialization of profiles variable by moving into into the for loop.
2020-02-28 12:44:13 -05:00
seph
85ac165405
Fix link in changelog (#6275)
Fix PR link in changelog
2020-02-28 12:06:08 -05:00
Ateeq Sharfuddin
b63dc57e24
fix: on Windows use UTF-8 strings instead of system default locale strings (#6190) 2020-02-28 11:12:22 -05:00
Oleg Dolgov
d3a10a33e7
check for errors return status from extension table. (#6108) 2020-02-28 11:03:04 -05:00
Jason Meller
a7655d3e37
Add new virtual table windows_security_center (#6256) 2020-02-28 10:51:55 -05:00
Ivan Tse
5d830021ea
Update unwanted-chrome-extensions.conf queries to include all users (#6265) 2020-02-28 10:18:36 -05:00
Stefano Bonicatti
3c544388c7
Azure Pipelines: Do not ignore a build failure on Windows (#6270)
When the batch script that implements the build step has been
changed to stop the sccache server as the last command,
all build failures started to be ignored because the last command,
always succeeding, was clearing out the exit status.
Batch scripts do not have a global "exit on error" option,
so manually checking the error level and exiting with such error is needed.
2020-02-27 16:02:37 +01:00
Fritz
d727e6bd3d
Fix typing issue with CFNumber conversion (#6273)
Fix typing issue with CFNumber conversion
2020-02-26 22:51:42 -05:00
Stefano Bonicatti
edf5de0a28
Limit regex_match and regex_split regex size (#6267)
* Limit regex_match and regex_split regex size

Add a new HIDDEN_FLAG, regex_max_size, with a default of 256 bytes,
which limits the size of the regex that can be used
with regex_match and regex_split SQL functions.

This is done since it's possible to create a regex
which makes the std::regex destruction go into a stack overflow,
due to too many alternate states (|).

Add a couple of tests to verify that the limit is correctly respected.

Restore the test for regex_split that was originally hanging when using
boost.
2020-02-27 01:37:49 +01:00
seph
b85f8cb00a
Non-error status messages should be verbose (#6271)
Non-error status messages should be verbose
2020-02-25 21:18:02 -05:00
Alessandro Gario
f3ca4f54db
libs: Update cmake/source/SQLite to version 3.31.1 (#6252) 2020-02-24 11:03:12 +01:00
scoders-tob
3eae135bc1
Adding docker_container_fs_changes table (#6178)
* adding docker pip package to dockerfile

* adding docker fs changes table

Co-authored-by: scoders <sahil@cs.toronto.edu>
2020-02-24 01:00:38 +01:00
Rachel Cipkins
3de799ef07
Support for "matches" and "js" keys from "content_scripts" in the chrome_extensions table (#6140)
Co-authored-by: William Woodruff <william@yossarian.net>
2020-02-21 18:13:41 -05:00
Antoinette
57ffaa89fc
Updating memory_info_ex function call to non-deprecated function (#6259)
Swap profile.py to non-deprecated memory_info
2020-02-20 15:59:39 -05:00
seph
d3c97d4f9c
Add the TSC to the contributing file (#6253)
Adds a section on the TSC to the contributing file.
2020-02-20 14:50:22 -05:00
prateeknischal
b9c55aec25
Fix codegen template for extension group (#6244)
The template has a reference to waitThenShutdown
which does not exist in the definitions.
Instead of that, a function, waitForShutdown is defined in the
osquery/system.h which should have been used.
This causes compilation to fail in case of building an extension.
This commit fixes that function call in the template.
2020-02-18 17:49:14 +01:00
Zachary Wasserman
6334fee634
Add community_id_v1 (#6211) to changelog (#6240) 2020-02-14 14:30:04 -05:00
Nick Anderson
7dbc6d3577
release: updating changelog for 4.2.0 release (#6239) 2020-02-13 12:26:33 -08:00
scoders-tob
4743cb9420
regex engine replacement: boost -> std (#6236)
Replace regex engine with std

Fixes issue #6061

Co-authored-by: scoders <sahil@cs.toronto.edu>
2020-02-13 11:52:37 -05:00
Alessandro Gario
498d64e9eb
http_client: Improve certificate verification (#6197) 2020-02-12 14:45:12 -08:00
Drake Aronhalt
da4bfd4762
mdls table implementation (#4825)
Created mdls table which mimics the functionality of the mdls command in macOS. Table allows osquery to retrieve key/value pairs from spotlight metadata.
2020-02-11 09:15:00 -08:00
Teddy Reed
d393d12f5c
Refactor and simplify shutdown logic (#6144)
The windows documentation mentions that ExitThread should not be
used in C++ code. When debugging these exit flows I saw exceptions
when running dtors.

When reviewing the shutdown code for Windows and POSIX there was a
lot of complexity. This change allows any part of code to request
a shutdown and simplifies the response.

We should expect the main thread to call ::waitForShutdown.
The exception is the shell, which waits in a repl.
2020-02-10 20:26:45 -05:00
Teddy Reed
9b1e2787ef
tables: Use basic TLS options within the curl table (#6044) 2020-02-10 11:48:58 -08:00
Teddy Reed
6935e91401 carver: Fix bug where carve returns empty files for hidden files (#6183)
Fix bug where carve returns empty files for hidden files

Co-Authored-By: Ryan Wilson <ryantimwilson@fb.com>
2020-02-08 11:18:28 -05:00
Zachary Wasserman
c296693bd5
Add community_id_v1 hash function to SQLite (#6211)
Implements the Community ID hash that will allow correlating network connections detected by osquery with other tools that support the standard (Zeek, Suricata, etc.).
2020-02-08 11:16:30 -05:00
Antoinette
0184ce69d4
Updated documentation for profile.py in performance-safety.md (#6232)
Updated performance-safety.md to include details about profile.py and it's output. The changes also include information about how profile.py sets the thresholds that appear in the script output.
2020-02-08 11:14:30 -05:00
Stefano Bonicatti
9a99c6b4c0
Add sccache to the Windows job (#6231)
* Add sccache to the Windows job

Also fix debug symbols on googletest,
so that it doesn't try to create a separate pdb.

* Fix uploading the submodule cache

sccache needs its cache to be uploaded as normal files,
not with a tar, otherwise the cache when extracted
will contain extraneous files and folders (PaxHeader).
The Files mode though by default ignores the .git folder,
so we have to use the .artifactignore file to unignore it,
and we have to copy in the cached path for the cache task to see it.
2020-02-06 16:07:58 +01:00
puffyCid
c722c68478
Expand SSH tables to support Windows (#6161) 2020-02-05 15:13:55 -05:00
Fritz
713c93fa29
Add Windows support to firefox_addons table (#6200) 2020-02-05 15:11:08 -05:00
scoders-tob
3f60071784
fixing extension test linking (#6219) 2020-02-05 15:10:03 -05:00
Stefano Bonicatti
9f30fd3f57
Fix heap buffer overflow in callDoubleFunc and powerFunc (#6225)
sqlite3_result_error() third parameter is the length
of the string of the second parameter, not the error code.

We set that to -1, which means that the length of the string
will be taken using strlen().

Addresses https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18694
2020-02-05 15:09:09 -05:00
scoders-tob
ccffaf7d8a
replacing boost::regex with std::regex for SQL StringExtensions (#6227) 2020-02-05 15:08:45 -05:00
Stefano Bonicatti
68ee6a2c67
Add git submodule db to the Azure Pipelines cache (#6229)
This will speed up the CMake configure phase since
it won't have to download the submodules data each time
through git, which is slower than downloading it
as an Azure Pipeline cache.
2020-02-05 19:42:37 +01:00
Stefano Bonicatti
283d0ab631
Fix boost process and asio build on Windows (#6222)
When using Boost.Process on Windows with Boost.Asio for async_pipe,
the build fails because Asio requires BOOST_ASIO_WINDOWS define
to enable access to async_pipe.

This only partially solves the issue since it's necessary that
Asio users will also include the "sdkddkver.h" header
before the "boost/asio.hpp" header to properly define
_WIN32_WINNT_WIN7, used by osquery.
2020-02-05 15:25:31 +01:00
kumarak
79f755c161
CMake: Fix the Boost.org iostreams module (#6199) 2020-02-04 21:21:02 +01:00
Stefano Bonicatti
36f9807b9c
Fix build without tests enabled (#6224) 2020-02-03 22:01:13 +01:00
Stefano Bonicatti
d0b42a98e2
Fix all TLS tests and framework (#6170) 2020-02-03 07:50:25 -08:00