Commit Graph

5762 Commits

Author SHA1 Message Date
Alessandro Gario
af41184a00
BPF: Fix wrong d_type compare in fs classes (#6774) 2020-11-29 14:38:14 +01:00
Alessandro Gario
4aaeb7a3dc
startup_info: Fix memory leak in the dbus classes (#6773) 2020-11-29 14:37:57 +01:00
Stefano Bonicatti
7ea3bc0090
Change urls for submodules gpg-error, libgcrypt, libcap (#6768)
The gpg-error and libgcrypt repositories often fail cloning.
We use our mirrored version on Github instead.

libcap repository does not support shallow cloning,
change the url to another official mirror which supports it.
2020-11-26 13:45:48 +01:00
Alessandro Gario
fc2bf46c9c
libs: Port the RocksDB Win7 compat patch to MSBuild (#6765) 2020-11-26 13:40:40 +01:00
seph
f986e9c04d
PackageIdentifiers are optional in InstallHistory.plist (#6767)
Allow nil PackageIdentifiers, as they sometimes appear in `/Library/Receipts/InstallHistory.plist` 

Fixes: #6766
2020-11-25 10:20:38 -05:00
Alessandro Gario
76c7733a75
Port the extended_attributes table to Linux, add support for Linux capabilities (#6195) 2020-11-24 13:36:56 -08:00
Pawel Kadluczka
8a79e7cb93
Adding support for pretty-printing JSON results (#6695) 2020-11-24 13:51:06 -05:00
Alessandro Gario
37f2be6143
CMake: Disable BPF support if the LLVM libs are not compatible (#6746) 2020-11-24 13:50:18 -05:00
Alejandro Ortuno
1de11719e5
Added notices about journald audit logs masking (#6748) 2020-11-24 13:49:16 -05:00
Stefano Bonicatti
e96a963dfa
Do not use memset on VirtualTable, a non-POD type (#6760)
Reported by cppcheck:
[osquery/sql/virtual_table.cpp:557]: (error) Using 'memset' on struct that contains a 'std::shared_ptr'
2020-11-24 13:49:03 -05:00
Alessandro Gario
bf46e53995
libs: Update ebpfpub to latest version (#6757)
This imports an upstream commit that fixes an assert on single core machines
2020-11-22 22:40:10 -08:00
Rachel Cipkins
82908870a1
startup_items: Add systemd support on Linux (#6562)
Co-authored-by: Alessandro Gario <alessandro.gario@gmail.com>
2020-11-22 22:37:55 -08:00
Alessandro Gario
dab1a20582
libs: Update RocksDB to version 6.14.5 (#6759) 2020-11-21 17:41:16 +01:00
ntuckerxx
2da28bb188
Fixes #6752 - support TLS client cert chains (#6753) 2020-11-19 20:38:11 -05:00
Sharvil Shah
c1636adbc1
Extend EC2 table support to Windows (#6756) 2020-11-19 11:06:12 -08:00
Sharvil Shah
a407121f17
Enable AWS Instance profile as credential provider on Windows (#6754) 2020-11-18 10:07:09 -08:00
Sharvil Shah
e2b3598bac
libs: update aws-sdk to 1.7.230 (#6749) 2020-11-18 10:06:10 -08:00
tracefinder
dba573bd90
Add Yandex Browser support for chrome_extensions (#6735) 2020-11-11 21:51:59 -05:00
Nick Collier
42e2d7f874
Fix deadlock when registering two extensions (#6745) 2020-11-11 21:50:31 -05:00
Alessandro Gario
5daeed98c0
BPF: Implement additional syscalls to track fd usage (#6723)
Add support for mknod, mknodat, name_to_handle_at,
open_by_handle_at
2020-11-11 11:28:32 +01:00
Alessandro Gario
ffa3da4941
extensions: Always compile examples to prevent them from breaking (#6747) 2020-11-10 20:38:05 -05:00
Stefano Bonicatti
da621067f8
Make the usb_devices pack query available only on posix (#6739)
The usb_devices table and respective query in the packs/it-compliance.conf pack is posix only.
2020-10-31 23:33:40 -04:00
Ben Montour
7627af388d
Updated unwanted-chrome-extensions pack (#6720)
Updating the unwanted-chrome-extensions query pack with three new extensions that were recently compromised and made tech news sites. Extensions have been removed by Google from Chrome Web Store. Since removal from the Chrome Web Store does not remove already installed extensions, this query will allow users of osquery to monitor their endpoints for these malicious extensions.
2020-10-27 20:09:10 -04:00
Ateeq Sharfuddin
5d8d25b3e4
bugfix-6719: removing PUNYCODE flag (#6730)
Remove `PUNYCODE` flag from cert string parsing.

Fixes #6719
2020-10-27 20:07:56 -04:00
Arif Zuhairi
04b4d7f31f
Docs: Update remote.md (#6729)
Update documented arguments for running the test server to current directory structure.
2020-10-27 20:06:20 -04:00
Alessandro Gario
8753dbfd84
BPF: Add container support to fork/vfork/clone (#6721)
Update the tracing logic for the fork/vfork/clone system calls, allowing osquery to retrieve PIDs in the host namespace even when using containers
2020-10-27 20:04:31 -04:00
Sharvil Shah
ceeadb5c9a
build: Fix windows build on newer MSVC (#6732)
Correct how cmake passes the include for `random_shuffle`
2020-10-27 20:00:52 -04:00
Mike Myers
22d614cba2
Fix last_connected column in wifi_networks on Catalina (#6669) 2020-10-21 10:31:40 -04:00
Alessandro Gario
a7364d0d19 BPF: Fix syscall filtering on error 2020-10-19 08:10:06 -04:00
Alessandro Gario
e0027adf8a Docs: Add BPF to the process auditing wiki page 2020-10-19 08:10:06 -04:00
Alessandro Gario
4aad1a9230 BPF: Lower the default memory settings 2020-10-19 08:10:06 -04:00
Alessandro Gario
617b815cc0 BPF: Report error counters once every 5 seconds 2020-10-19 08:10:06 -04:00
Teddy Reed
14804127d8
Reduce linkage requirements for tests (#6715) 2020-10-18 10:47:00 -04:00
Ryan Mack
d71420be93
Fix missing negations, duplicate rows in iptables table (#6713) 2020-10-16 14:33:25 -04:00
Alessandro Gario
5c1bf4ff0c
Initial implementations for BPF-based socket and process events tables (#6571)
* deb_packages: Fix include order issue

* bpf_socket_events, bpf_process_events: Initial implementation

* BPF: Add process tracking to process events, remove sockets_event

* CMake: Upgrade the C++ standard to C++17

* BPF: Improve initial system state snapshot and event collection

* BPF: Add tests for SystemStateTracker

* BPF: Add tests for BPFEventPublisher

* BPF: Refactor, add tests for ProcessContextFactory

* Refactor: Improve initial scan/event handling, fix openat

* BPF: Improve event ordering

* BPF: Fix test issue in BPFEventPublisher::processOpenAt

* BPF: Mark WIP functions as deprecated

* BPF: Improve tests

* BPF: Add back bpf_socket_events and connect() support

* BPF: Add Netlink addr support, add bind()

* BPF: Add accept/accept4 support

* BPF: Add tests for BPFEventPublisher::processOpenat2Event

* BPF: Add remaining tests for BPFEventPublisher

* BPF: Add configuration flags for memory management

* BPF: Add cmdline support to ProcessContextFactory

* BPF: Add additional tests

* BPF: Add unit test for SystemStateTracker::accept

* BPF: Update cwd handling

* BPF: Add tests for bpf_socket_events

* BPF: Add tests for bpf_process_events

* BPF: Add json_cmdline hidden column to bpf_process_events

* BPF: Update all copyright headers

* BPF: Add syscall duration in socket_events/process_events

* BPF: Code review changes

* BPF: Update ebpfpub to the latest version

* BPF: Removed unused functions

* BPF: Code review changes

Add whitespace around namespaces

* BPF: Revert header changes in rot13.cpp

* BPF: Code review changes

Rename the bpf_ntime column in bpf_socket_events/bpf_process_events
to ntime and make it the last visible column

* BPF: Code review changes

Update the dependencies for the BPF tests

* BPF: Code review changes

Update the dependencies for the BPF table tests

* BPF: Code review changes

Update how characters are appended to strings in the
system state tracker class

* BPF: Code review changes

Update the string -> integer conversion utilities in the
process context factory class.

* BPF: Hide failed exec syscalls from bpf_process_events results

* BPF: Do not log an error for invalid sockaddr structures

* BPF: Code review changes

Remove clang-format ignore block

* BPF: Code review changes

Update log messages in the BPFEventPublisher class

* BPF: Code review changes

Remove clang-format ignore block around the function tracer
descriptors

* BPF: Code review changes

Document the IFilesystem interface

* BPF: Code review changes

Document the IProcessContextFactory interface

* BPF: Code review changes

Document the ISystemStateTracker interface
2020-10-16 01:14:00 -07:00
Nabil Schear
91a7f24bb8
type of size field in kernel_modules table should be BIGINT (#6712) 2020-10-15 22:22:32 -04:00
Ateeq Sharfuddin
9a3890ca81
Free memory allocated by ConvertStringSidToSid (#6714) 2020-10-15 22:20:45 -04:00
Teddy Reed
aa27b07ed2
carver: Refactor carver to use the Scheduler (#6671) 2020-10-14 13:26:39 -04:00
Teddy Reed
ad2c5c0c6e
libraries: Build x86_64 configurations on Ubuntu 14.04 (#6687) 2020-10-13 10:20:23 -04:00
seph
dc40255eb7
Fix shadow table to detect empty passwords (#6696) 2020-10-12 21:59:34 -04:00
ec4n6
523c59b4ed
Add Reptile rootkit to ossec-rootkit pack (#6703) 2020-10-12 21:58:53 -04:00
garanews
58950edec0
Fix typos (#6705) 2020-10-12 21:58:09 -04:00
Sharvil Shah
76bac4c3ab
Fix apps and startup_items tests on Catalina (#6704) 2020-10-08 09:44:46 -04:00
Teddy Reed
70d05a4b95
Add a README.md to source-based libraries (#6686) 2020-10-07 10:23:37 -04:00
seph
e8b9932182
Add additional file stat flags to darwin (bsd_flags) (#6699) 2020-10-07 10:21:17 -04:00
seph
335c013603
Changelog 4.5.1 (#6692)
Changelog for 4.5.1
2020-10-05 13:04:15 -04:00
Teddy Reed
3e10c887ad
Fix incorrect stat return checking within process_events (#6694) 2020-10-05 08:43:01 -04:00
Teddy Reed
c9f89cd0cb
tests: Reduce flakiness of test_osqueryi (#6688) 2020-10-05 08:42:44 -04:00
Teddy Reed
26940599aa
Flush stdout with --help (#6693) 2020-10-04 19:01:20 -04:00
Mike Myers
73d997ca5c
Enable cppcheck target in macOS builds (#6685) 2020-10-04 16:33:42 -04:00