Teddy Reed
b88d6816f3
Additional TSK tables
2015-12-07 08:36:22 -08:00
Teddy Reed
fef53fa0d0
Add config and database dumping to stdout
2015-12-06 11:01:26 -08:00
Teddy Reed
f57968e0f6
Use a static 'binary' name for Glog
2015-11-27 11:27:09 -08:00
Teddy Reed
2bad9d6a74
Changes to suport node-based configs
2015-11-24 14:44:56 -08:00
Teddy Reed
35129a7af7
[ #1665 , #1615 ] Refactor user-based tables to act uniformly
2015-11-24 12:46:25 -08:00
Teddy Reed
e1d7511600
Remove column type string representations
2015-11-14 15:57:30 -08:00
Teddy Reed
c2be670806
Table results caching
...
1. Table implementations (spec files) can mark the table as 'cachable'.
2. Cached results depend on the shortest/quickest interval of scheduled
queries that act on results of the table.
3. The table API generator blocks caching on index/additional/required
table column options.
2015-11-14 15:57:23 -08:00
Teddy Reed
4c2319f8dd
Add GID to PrivilegeDropper
2015-11-08 01:03:08 -08:00
Teddy Reed
57e8ef2ab3
[ #1546 ] Add computer_name to system_info and extend to Linux
2015-11-04 10:31:16 -08:00
Teddy Reed
edea3d6edd
[ Fix #1626 ] Add schedule blacklist and protect DBHandle
2015-11-03 20:50:22 -08:00
Teddy Reed
15215cdbc0
Add persistent splays
2015-11-02 14:10:04 -08:00
Teddy Reed
425e5e5596
Change the watcher limits to default=loose
2015-11-02 10:57:01 -08:00
Teddy Reed
5233d7dcf8
Add start time to osquery_info, remove md5/path
2015-11-02 10:57:01 -08:00
Teddy Reed
a1a9131174
Optimize socket_events and Linux users
2015-11-02 10:37:56 -08:00
Teddy Reed
d27a7ecc4c
Fix clang warnings, promote warnings to errors
2015-11-01 02:12:07 -08:00
Teddy Reed
09e4e3c42e
Expand the scope of permissions dropping
2015-10-30 09:56:33 -07:00
Teddy Reed
8ca2925ef0
[ Fix #1583 ] Require osqueryd to have R/W access to RocksDB
2015-10-27 16:09:24 -07:00
Teddy Reed
b8087a1b26
Fix readFile TOCTOU error
2015-10-26 01:21:05 -07:00
Robert C. Seacord
09481d0381
Fixed some type problems, casting away const, integer types, old style casts, etc.
2015-10-21 20:56:58 +00:00
Robert C. Seacord
e57828aac3
changes for integer sign problems
2015-10-17 00:18:35 +00:00
Robert C. Seacord
acb2f6f628
eliminating diagnostics, mostly for comparisons between signed and unsigned operations
2015-10-16 16:10:37 +00:00
Teddy Reed
201fbabb28
[ Fix #1559 ] Allow boost.filesystem incorrect LC_CTYPE
2015-10-13 09:55:44 -07:00
Teddy Reed
689ae4c865
Minor nits around distributed CLIs
2015-10-02 11:33:50 -07:00
Teddy Reed
5890901c00
Add state, group, and nice to processes
2015-09-24 13:11:46 -07:00
Teddy Reed
97ca0e627a
[ #1488 ] Stop OS X event publishers with SIGINT
2015-09-21 22:02:27 -07:00
Teddy Reed
c51d214ddd
Scheduled query success tracking
2015-09-16 23:31:07 -07:00
Mike Arpaia
dc6e395b77
Only log to warning if the config can't be read by the daemon
...
fix #1504
2015-09-16 10:54:38 -07:00
Teddy Reed
7852c356ec
Merge pull request #1494 from theopolis/signals
...
[#1488 ] Use signal handlers for teardown and reloading
2015-09-15 16:14:40 -07:00
Teddy Reed
7c2a625ef2
Use signal handlers for teardown and reloading
2015-09-14 16:57:00 -07:00
Scott Piper
5e7d0d6a37
Added system_info table
2015-09-09 10:26:16 -07:00
Mike Arpaia
aaa03a1058
Distributed queries client-side
2015-09-08 13:33:48 -07:00
Mike Arpaia
de58353131
Config MD5 a bit more deterministic
...
```
$ ./build/darwin/osquery/osqueryi --config_path=/asdfasdfadfs
E0903 11:45:02.050308 1990836992 init.cpp:370] Error reading config: config file does not exist
Using a virtual database. Need help, type '.help'
osquery> .mode line
osquery> .all osquery_info
pid = 33700
version = 1.5.2-43-gb06fa92
config_md5 =
config_valid = 0
config_path = /asdfasdfadfs
extensions = active
build_platform = darwin
build_distro = 10.10
osquery> .exit
$ ./build/darwin/osquery/osqueryi
osquery> .mode line
osquery> .all osquery_info
pid = 33781
version = 1.5.2-43-gb06fa92
config_md5 = 8a432ac93d3de080c62d77ba99b89783
config_valid = 1
config_path = /var/osquery/osquery.conf
extensions = active
build_platform = darwin
build_distro = 10.10
osquery> .exit
```
2015-09-03 22:03:40 -07:00
Teddy Reed
bb2b5f594b
Static analysis cleanups, static libmagic
2015-09-02 16:55:20 -07:00
Mike Arpaia
a140333441
[ fix #1390 ] query pack re-org
...
This commit contains the features specified in #1390 as well as a
refactoring of the general osquery configuration code.
The API for the config plugins hasn't changed, although now there's a
`genPack` method that config plugins can implement. If a plugin doesn't
implement `genPack`, then the map<string, string> format cannot be used.
The default config plugin, the filesystem plugin, now implements
`genPack`, so existing query packs code will continue to work as it
always has.
Now many other config plugins can implement custom pack handling for
what makes sense in their context. `genPacks` is not a pure virtual, so
it doesn't have to be implemented in your plugin if you don't want to
use it. Also, more importantly, all config plugins can use the standard
inline pack format if they want to use query packs. Which is awesome.
For more information, refer to #1390 , the documentation and the doxygen
comments included with this pull requests, as well as the following
example config which is now supported, regardless of what config plugin
you're using:
```json
{
"options": {
"enable_monitor": "true"
},
"packs": {
"core_os_monitoring": {
"version": "1.4.5",
"discovery": [
"select pid from processes where name like '%osqueryd%';"
],
"queries": {
"kernel_modules": {
"query": "SELECT name, size FROM kernel_modules;",
"interval": 600
},
"system_controls": {
"query": "SELECT * FROM system_controls;",
"interval": 600,
"snapshot": true,
},
"usb_devices": {
"query": "SELECT * FROM usb_devices;",
"interval": 600
}
}
},
"osquery_internal_info": {
"version": "1.4.5",
"discovery": [
"select pid from processes where name like '%osqueryd%';"
],
"queries": {
"info": {
"query": "select i.*, p.resident_size, p.user_time, p.system_time, time.minutes as counter from osquery_info i, processes p, time where p.pid = i.pid;",
"interval": 60,
"snapshot": true
},
"registry": {
"query": "SELECT * FROM osquery_registry;",
"interval": 600,
"snapshot": true
},
"schedule": {
"query": "select name, interval, executions, output_size, wall_time, (user_time/executions) as avg_user_time, (system_time/executions) as avg_system_time, average_memory from osquery_schedule;",
"interval": 60,
"snapshot": true
}
}
}
}
}
```
The `osquery_packs` table was modified to remove the superfluous
columns which could already have been found in `osquery_schedule`. Two
more columns were added in their place, representing stats about pack's
discovery query execution history.
Notably, the internal API for the `osquery::Config` class has changed
rather dramatically as apart of the refactoring. We think this is an
improvement. While strictly adhering to the osquery config plugin
interface will have avoided any compatibility errors, advanced users may
notice compilation errors if they access config data directly. All
internal users of the config have obviously been updated. Yet another
reason to merge your code into mainline; we update it for you when we
refactor!
2015-09-02 10:56:26 -07:00
Teddy Reed
0e16f56c8d
Add 'hidden' flags to customize TLS plugins
2015-08-28 12:57:53 -07:00
Teddy Reed
8082a0b5ac
Use SIGKILL on OS X
2015-07-29 17:05:45 -07:00
Teddy Reed
220fa0bd92
Merge pull request #1383 from theopolis/fix_1381
...
[Fix #1381 ] Add documentation/install for daemon+Homebrew
2015-07-23 18:25:40 -07:00
Michael O'Farrell
66b075a685
Merge pull request #1377 from mofarrell/benchmark
...
Added benchmarking targets.
2015-07-23 17:37:56 -07:00
Michael O'Farrell
a65f8dd93c
Added benchmarking targets.
2015-07-23 17:07:42 -07:00
Teddy Reed
81aa36ecc7
[ Fix #1381 ] Add documentation/install for daemon+Homebrew
2015-07-23 16:05:59 -07:00
Teddy Reed
bcdbb40f0c
[ Fix #1356 ] Tokenize process environ by '\0' on Linux
2015-07-19 14:34:49 -07:00
Teddy Reed
4cb6e37f1d
Merge pull request #1338 from theopolis/join_bug
...
Fix broken JOIN predicate passing
2015-07-16 11:45:33 -07:00
Teddy Reed
deecef81c5
Fix broken JOIN predicate passing
2015-07-16 11:29:56 -07:00
Teddy Reed
263090e8f2
[ Fix #1332 ] Check mode for links in readFile
...
1. "really" check for links in readFile
2. Apply the same restrictions and flag ACLs to file hashing.
2015-07-14 14:24:52 -07:00
Michael O'Farrell
4bbb591b37
Added kernel process events table.
2015-07-08 13:47:07 -07:00
Teddy Reed
f48619ed28
[ #1285 , #1276 ] Faster, optimized subscriber results
2015-07-07 00:59:28 -07:00
Teddy Reed
dd9fa25d78
[ Fix #1171 , #1089 ] Add configurable max reads
...
There are 3 new options that control how files are read:
--read_max: controls the maximum size, in bytes, for file reads. If a file is larger than `read_max` the read will fail.
--read_user_max: similar to `read_max` but applies additional limitations to user-controlled files.
--read_user_links: a boolean control to enable/disable following symlinks for user-controlled files.
Important highlights:
If files exceed the configured max, those reads will fail.
The `read_max` will override `read_user_max` if it is set lower.
A default integer value of `0` will disable the limitations.
The default `read_max` is set to 50M and the default `read_user_max` is 10M.
2015-07-06 00:49:43 -07:00
Ryan Steinmetz
6f6bd8cabc
- Fix build under FreeBSD
2015-07-03 19:47:47 -04:00
Teddy Reed
79de0a5def
[ #1277 ] Forward status logs to osqueryd workers
...
If watcher processes generate warning or error status logs they
will "relay" to the worker processes upon successful sanity check.
2015-07-01 15:26:26 -07:00
Teddy Reed
e7ed68e187
[ Fix #1198 ] Faster death/timeout checks in extensions tests
2015-06-25 02:53:53 -07:00
Teddy Reed
040d9d5fd1
Merge pull request #1216 from sharvilshah/osx_mount_events
...
[Implement #1103 ] DMG Mount Events
2015-06-22 12:38:32 -07:00
Sharvil Shah
f676ba7642
Implements disk_events and the related publisher and subscriber.
...
We now have a Publisher to report on disk events and its metadata,
using the DiskArbitration framework on OS X. Currently disk appearance
and disappearance events are published for both physical and
virtual disks (DMG files). On an event trigger, disk properties are
parsed and that metadata is reported along with the action.
The Subscriber subscribes to virtual disk events currently.
This closes #1103 .
2015-06-22 11:09:18 -07:00
Teddy Reed
37188f788b
Fixups in tables, add DOUBLE, shell extensions
2015-06-22 04:17:23 -04:00
Teddy Reed
e7ab2fc47b
Limit scope of git/tag version defines.
...
Harden plist parsing against internal fuzzing tests.
Improve file/stream read speeds.
2015-06-12 10:10:20 -07:00
Teddy Reed
d143b22cfa
[ Fix #1202 ] Replace argv[*] with spaces, fallback to path in [0]
2015-06-11 20:58:17 -07:00
Teddy Reed
727f5b091f
Various table perf improvements and TLS docs
2015-06-05 22:03:15 -07:00
Teddy Reed
1168b6ef3b
Fix the watchdog/scheduler limit tracking
2015-06-04 17:43:37 -07:00
Teddy Reed
e244883ea4
[ #1190 ] Schedule queries without logging removed results
2015-06-04 13:53:55 -07:00
Teddy Reed
c934ad0df3
Update tooling/profiling paths
2015-06-03 21:22:12 -07:00
Teddy Reed
33f53809ad
Fix DBHandle checking with concurrent processes.
...
`make tests` fails with another osquery process running.
The backing-store check happens after a config plugin is setUp and
the initial load occures. This may involve calls to cached keys, the
check should occur pre-config initialize.
2015-06-02 02:50:04 -07:00
Michael O'Farrell
77aa36fa0b
Constraint existence now check for constraints using specific operator types.
...
This change allows QueryContext constraints to be checked for based on
operator type. This makes checks for the existence of an equality
operator allow enumeration.
Example:
if (context.constraints["pid"].exists(EQUALS)) {
pids = context.constraints["pid"].getAll(EQUALS);
} else {
osquery::procProcesses(pids);
}
2015-05-29 13:47:04 -07:00
Mark Ignacio
84f8203dfd
Converted CFAbsoluteTime in X509 certificates to UNIX time
2015-05-27 15:23:46 -07:00
Teddy Reed
8b3686a58a
TLS plugin workflow tests
2015-05-26 19:55:00 -07:00
Teddy Reed
5e8c9b66d4
Merge pull request #1153 from theopolis/cleans
...
Detect TLS version from OpenSSL/CMake FIND_LIBRARY
2015-05-23 13:57:23 -07:00
Teddy Reed
4a6c002f62
Allow unit tests execs from project root
2015-05-23 13:12:31 -07:00
Teddy Reed
5969ae4fbf
Clean up TLS-version from OpenSSL detection
2015-05-23 13:04:36 -07:00
Teddy Reed
700384dedc
Minify tables namespace, extra CMake macros
2015-05-22 10:29:04 -07:00
Mike Arpaia
fff36af0af
Removing trailing whitespace
2015-05-11 23:31:13 -07:00
Teddy Reed
771ed4da2f
[ Fix #1125 #1126 ] Flag padding checks, config_check tests
2015-05-11 10:37:16 -07:00
Teddy Reed
a7daa0ace5
Apply a safe permissions check to worker
2015-05-07 00:19:10 -07:00
Teddy Reed
23933cefe8
Harden extensions/dispatcher tests
2015-05-05 23:34:10 -07:00
Teddy Reed
cdb112eccb
Add a CMake variable for packages
2015-05-04 17:09:09 -07:00
Teddy Reed
d6eb63ae2f
Merge pull request #1097 from theopolis/intel_perf_limits
...
Limit memory checks to worker allocations
2015-05-04 12:14:43 -07:00
Teddy Reed
5b60eb9fb8
Limit memory checks to worker allocations
2015-05-04 11:30:25 -07:00
Teddy Reed
893f678403
Linting and asan fixups
2015-05-04 11:00:21 -07:00
Teddy Reed
c63bf0451a
Various exception hardening
2015-05-03 14:18:20 -07:00
Teddy Reed
e01a73b4f3
Schedule monitoring, doc updates, logger plugin fixes
2015-05-03 11:54:15 -07:00
Sharvil Shah
2735e731de
Implement --disable_tables runtime flag
2015-04-30 01:41:01 -07:00
Teddy Reed
b66a350526
Allow snapshot scheduled items
2015-04-29 15:55:00 -07:00
Teddy Reed
d0bbb0bc4f
Towards safer and shuffled unittests
2015-04-29 14:43:27 -07:00
Teddy Reed
2c5cbdee63
Various shell fixups
2015-04-27 16:40:05 -07:00
Teddy Reed
be65922569
Fast tests
2015-04-27 09:40:31 -07:00
Teddy Reed
b90aeab2fe
Fix dameon flags loading from options
2015-04-24 11:37:51 -07:00
Javier Marcos
ddb41ae84a
Adding tests to the prototocols table
2015-04-22 17:49:27 -07:00
Teddy Reed
c59ce0e4e4
Lint fixes and clang analyze
2015-04-17 09:18:46 -07:00
Mike Arpaia
c37be342ec
updating wiki link to read the docs
2015-04-15 01:02:58 -07:00
Teddy Reed
e1f0106710
Various fixes, checks
2015-04-11 15:57:12 -07:00
Mike Arpaia
5cebb95134
Merge pull request #979 from theopolis/fast_shell_query
...
Skip event publishers when a single query is used
2015-04-10 23:03:51 -07:00
Teddy Reed
aaecffa096
Skip event publishers when a single query is used
2015-04-10 17:37:49 -07:00
Mitchell Grenier
41283223af
Better extended attributes
...
For the second time in a couple of weeks, I've rewritten the xattr table into
a new extended_attributes table.
If we find an attribute that we don't have a parser for, we will check if it
contains non printable characters. If it does, we'll base64 it. If it doesn't,
we will just output the unencoded string.
2015-04-10 13:17:22 -07:00
Sharvil Shah
e7a3d24ece
Fix etc_hosts hostname parsing so that inline comments are now ignored; update tests
2015-04-06 23:32:56 -07:00
Mike Arpaia
91e70d1df3
Merge pull request #928 from theopolis/config_check_pp
...
[#915 ] Skip daemon initialization if checking config
2015-04-04 00:12:12 -07:00
Teddy Reed
2b20d3dde0
Merge yara subscribers
2015-04-03 00:48:13 -07:00
Teddy Reed
6dd92bd051
[ #915 ] Skip daemon initialization if checking config
2015-04-02 13:31:51 -07:00
Teddy Reed
38bfed3414
Remove libprocps(ng) in favor of parsing proc manually
2015-03-27 12:37:16 -07:00
Teddy Reed
14a09cc6f2
Change schedule to a map, splay on config update
2015-03-24 16:28:49 -07:00
Teddy Reed
79ddc5ba38
Remove unused shell functions
2015-03-19 16:14:29 -07:00
Teddy Reed
afd11fe1f3
Set osquery_extensions for worker child
2015-03-17 10:36:19 -07:00
Teddy Reed
1a0334ec9a
Use a .load file instead of delimited dirs
2015-03-17 10:11:43 -07:00
Teddy Reed
dd354c279d
Merge pull request #854 from theopolis/osqueryi_tmp
...
[Fix #852 ] Use a user-specific temporary dir for shell state
2015-03-16 10:51:38 -07:00
Teddy Reed
8b990c546d
[ Fix #852 ] Use a user-specific temporary dir for shell state
2015-03-16 09:29:50 -07:00
Teddy Reed
4440b2f791
Renamed osx_version to os_version, include Linux versions
2015-03-15 16:07:49 -07:00
Teddy Reed
1170887d56
Improve extensions integration testing
2015-03-13 18:33:55 -07:00
Teddy Reed
fe0f369af0
Extension-dependent config/logger plugins
2015-03-13 12:01:30 -07:00
Teddy Reed
90b7f0a986
Merge pull request #836 from theopolis/active_plugins
...
Move logger/config to use Registry getActive
2015-03-10 16:04:40 -07:00
Teddy Reed
6a81cec937
Organize kernel_extensions to add signatures
2015-03-09 11:43:06 -07:00
Teddy Reed
6e7f3dbbbd
Move logger/config to use Registry getActive
2015-03-08 14:52:13 -07:00
Teddy Reed
95a9716e02
Remove shell tools from daemon
2015-03-04 23:21:16 -08:00
Teddy Reed
0673900837
Registry modules
2015-03-04 20:33:10 -08:00
Teddy Reed
99beceaef6
Switch lazy=active concept for registry setup
2015-03-04 18:51:41 -08:00
Teddy Reed
8efa07e520
Watcher process will fail if DB path is incorrect
2015-03-04 18:51:41 -08:00
Teddy Reed
3c02806cd8
Extensions autoloading prequel
2015-03-04 18:51:41 -08:00
Mitchell Grenier
3d27fff697
Merge pull request #784 from jedi22/directory_monitoring
...
Adding ability to monitor whole folders
2015-03-02 17:21:24 -08:00
Mitchell Grenier
544615ef57
Bug fix for REC_LIST_FOLDERS
...
Fixed a bug where when using REC_LIST_FOLDERS, the root resolution directory
would not be returned.
2015-03-01 18:26:37 -08:00
Teddy Reed
9031bad609
Extensions helpers, API additions
...
Use --socket for extensions, limit help
Add an 'active' concept to registries, support a blank item call
Add osquery_registry to list the internal/external plugin details
2015-02-25 01:02:05 -07:00
Mike Arpaia
503cf32522
Merge pull request #794 from marpaia/fix-785
...
Adding warning text if the system is not configured
2015-02-24 13:27:16 -08:00
mike@arpaia.co
5a5ec45bbb
Adding warning text if the system is not configured
...
See #785 for context. If you don't have a properly configured system,
osqueryd will print a convenient warning with instructions.
2015-02-24 13:19:37 -08:00
Teddy Reed
925deb8e74
[lints] Basic cpp linting
2015-02-24 03:47:12 -08:00
Teddy Reed
f173fb6e0a
Working on sync using new non-macro decisions
2015-02-23 23:15:04 -08:00
Teddy Reed
ace433e49d
Allow external calls from within registry
2015-02-23 21:35:54 -08:00
Teddy Reed
a29addba61
Extensions integrations testing
2015-02-22 22:56:18 -07:00
Teddy Reed
0f3adbbe24
Merge pull request #781 from theopolis/watcher_full_path
...
Use full path for exec in watcher
2015-02-19 17:02:46 -08:00
Teddy Reed
fa8dbf2b7f
Use full path for exec in watcher
2015-02-19 16:00:12 -08:00
Teddy Reed
451ef686ed
Building example extension with SDK
2015-02-18 20:11:00 -08:00
Teddy Reed
1f8dacec3c
Add flag aliasing, logger/flag tests
2015-02-17 16:26:14 -08:00
Teddy Reed
6f155d63c5
Improve flag storage and printing
2015-02-16 16:26:06 -08:00
Teddy Reed
6994361f26
Improved logging control
2015-02-16 14:42:22 -08:00
Teddy Reed
3c36c4196b
Merge pull request #731 from jedi22/wildcard_events
...
Added parsing of extra data along with its addition to the osqueryconfig structure
2015-02-15 19:16:54 -08:00
Teddy Reed
95dd2a808f
Merge pull request #762 from theopolis/startup_items
...
[Fix #758 ] Parse startup_items Alias data
2015-02-15 16:33:39 -08:00
Teddy Reed
1ea06a9d15
[ Fix #758 ] Parse startup_items Alias data
2015-02-13 17:40:02 -08:00
Mitchell Grenier
de5ac74fab
All changes addressed
2015-02-13 16:52:11 -08:00
Zachary Wasserman
79034111a5
POC for client side of distributed queries.
...
This introduces the notion of a DistributedQueryHandler that uses a "provider" to read/write requests and results to and from the master. The full flow is exercised via integration tests, and unit tests for each component.
It is intended to foster discussion around this client side interface, as well as provide a base to build from.
2015-02-13 13:01:02 -08:00
Mitchell Grenier
54ef2045e5
Made config a meyers singleton. Load should now only ever have to happen once
2015-02-13 12:32:54 -08:00
Teddy Reed
9eeda1f02c
Safer compile flags
2015-02-11 10:45:04 -08:00
Teddy Reed
d2b18c05c9
Add watcher profiles
2015-02-09 12:38:50 -08:00
Teddy Reed
19998a001a
Harden watcher for more perf, use exec and watch from worker
2015-02-08 00:06:44 -07:00
Teddy Reed
993e2c4577
Changes to flags, extensions now loaded with shell/daemon
2015-02-06 09:40:49 -08:00
Teddy Reed
ed9bae29b7
Organizing headers/build for SDK
2015-02-03 14:59:32 -08:00
Mitchell Grenier
50eaccc40b
Merge pull request #653 from jedi22/osx-xattr
...
OS X Where From
2015-02-03 11:55:35 -08:00
Mitchell Grenier
30e268b22b
Can query for where a file came from using the OS X eXtended attributes
2015-02-03 11:34:29 -08:00
Zachary Wasserman
ac53637bcf
Add getQueryColumns function to core
...
This new getQueryColumns function allows us to determine what columns
will be returned by executing a given query. It is intended to be used
with the distributed query system, to determine a schema for the
results before sending the query.
Tested by unit tests. Also used valgrind and did not find errors that
looked related to this change (though there appear to be many errors
related to glog logging).
2015-02-02 10:11:00 -08:00
Teddy Reed
5072b40997
Fix missing virtual destructors for event APIs
2015-02-01 04:32:18 -07:00
Teddy Reed
f96b498ae3
Remove EventFactory::deregister... in favor of ::end
2015-02-01 02:20:09 -07:00
Teddy Reed
bd620853aa
Verbose log when table row is missing a column
2015-02-01 02:20:09 -07:00
Teddy Reed
d39f1fae95
Minor registry documentation, using macros for create/add
2015-02-01 02:20:09 -07:00
Teddy Reed
ab1cb942a8
Fix typo in passwd subscriber, merge vtable tests
2015-02-01 02:20:09 -07:00
Teddy Reed
ab08bc76a8
Towards a new registry
2015-02-01 02:20:09 -07:00
Teddy Reed
38a757c7f0
Merge pull request #673 from theopolis/fork
...
Adding a watcher/worker model for osqueryd
2015-01-30 19:09:55 -08:00
Zachary Wasserman
5a2296b91b
Add useful operator implementations to Status
2015-01-29 17:33:41 -08:00
schettino72
f7357dd4b8
add column info to CREATE VIRTUAL TABLE statement.
2015-01-30 01:08:36 +08:00
schettino72
3a8df753e2
Add unit-test for TablePlugin::statement().
2015-01-30 01:08:36 +08:00
Mitchell Grenier
0e7bf914a3
Removed 2 lines of code that didn't look like they were doing anything
2015-01-27 17:27:01 -08:00
Teddy Reed
a9ede83446
[ FIx #676 ] Add --force option to osqueryd
2015-01-27 16:00:39 -08:00
Mike Arpaia
db24472539
Update init osquery to not overwrite the logging plugin
2015-01-26 10:44:27 -08:00
Teddy Reed
8fd56417fd
Adding a watcher/worker model for osqueryd
2015-01-26 01:22:50 -07:00
Teddy Reed
d912009569
Add unit testing to hashing
2015-01-21 16:24:40 -08:00
Teddy Reed
9c1faec090
Isolate glog include and depend on libglog for #652
2015-01-21 13:37:06 -08:00
Mike Arpaia
778789d74e
Merge pull request #648 from marpaia/hash-docs
...
hash.h documentation
2015-01-20 16:04:32 -08:00
mike@arpaia.co
ecfe29282b
hash.h documentation
...
I added some doxygen docs for hash.h
2015-01-20 15:36:53 -08:00
mike@arpaia.co
b6eed30688
removing md5.h
2015-01-20 15:07:50 -08:00
Teddy Reed
64d82388e4
Update the md5 hashing callsites
2015-01-20 14:52:07 -08:00
Teddy Reed
11237d2397
Merge pull request #644 from theopolis/md5_macros
...
Use API macro for hash algorithms
2015-01-20 14:33:55 -08:00
Teddy Reed
a2d9236478
Use API macro for hash algorithms
2015-01-20 14:24:49 -08:00
Zachary Wasserman
ee798cdde7
Use sizeof with memcpy and memset
...
I'd like to make sure we use expressions of sizeof to relate buffer
sizes to memcpy and memset. This should make modifying the code less
error prone.
Conflicts:
osquery/tables/system/darwin/nvram.cpp
2015-01-20 12:36:36 -08:00
Teddy Reed
416198732a
Merge pull request #631 from jedi22/sha-hashs
...
Added SHA1 and SHA256 in Hash Table
2015-01-20 11:24:43 -08:00
Mitchell Grenier
8f407a1e8f
Moving commits around for efficientcy
2015-01-20 10:49:58 -08:00
Teddy Reed
8475522e76
Remove goto/sprintf from NVRAM parsing
2015-01-19 17:10:40 -08:00
Teddy Reed
09ce5099b2
Merge pull request #632 from theopolis/osx_boot_info
...
OSX IOKit registry and ACPI table data
2015-01-17 17:56:51 -08:00
Mitchell Grenier
c1a1013e5a
Minor code changes and namespacing
2015-01-16 12:03:23 -08:00
Teddy Reed
ba716712cf
[ Fix #630 ] Clear stacking index plans
2015-01-16 06:47:32 -08:00
Teddy Reed
1df958c583
ACPI tables for OSX
2015-01-15 21:37:02 -08:00
Mitchell Grenier
570c6a32f3
Moved hashing functions into core. #include<osquery/hash.h>
2015-01-15 17:16:05 -08:00
Teddy Reed
663e481d9e
[ Fix #620 ] Add query plan estimates bias toward constraints
2015-01-13 21:17:15 -08:00
Teddy Reed
376a438516
Moving splay to scheduler and adding config logging
2015-01-12 12:53:05 -08:00
Teddy Reed
84ef94ce9d
Testing for table query constraints
2015-01-12 12:52:29 -08:00
Teddy Reed
2ad15763e2
Provide example config, improve pid check
2015-01-07 15:22:50 -08:00
Teddy Reed
9b0adcc47f
[ Fix #560 ] Improve config tests
2015-01-01 22:05:03 -08:00
Theodore M. Reed
53d683a3b3
Remove tables dependency from CMake build
2014-12-23 14:37:07 -08:00
mike@arpaia.co
b9f732c31f
Updating the license comment to be the correct open source header
...
As per t5494224, all of the license headers in osquery needed to be updated
to reflect the correct open source header style.
2014-12-18 10:52:55 -08:00
Teddy Reed
6a6851c4bc
Merge pull request #544 from theopolis/events_2.0
...
Events 2.0
2014-12-17 20:17:02 -08:00
Teddy Reed
7602d17de9
Move base64Decode from ca_certs testing to conversions
2014-12-17 14:03:52 -08:00
Teddy Reed
fefe6de824
OSX XProtect siganture DB as virtual table
2014-12-16 21:35:26 -08:00
Teddy Reed
30a27798d5
osqueryd should announce to syslog when starting
2014-12-16 12:04:43 -08:00
Teddy Reed
d5c5253bbc
Add osquery_flags vtable
2014-12-16 02:07:50 -08:00
Teddy Reed
6de14466db
Events 2.0 using pbr
2014-12-15 11:55:05 -08:00
Teddy Reed
7b56fa605d
PCI/USB parity
2014-12-10 19:51:18 -08:00
Teddy Reed
b08ad3cb14
Check USB property for CFString type
2014-12-10 09:12:12 -08:00
Teddy Reed
4644c5e19b
Simple usb_devices updates
2014-12-10 01:52:02 -08:00
Teddy Reed
0b5083bd0e
Improve usb_devices on OSX
2014-12-10 01:17:24 -08:00
mike@arpaia.co
0846b6ddd5
Fixing pidfile creation bug
...
If osqueryd was killed and another process was started with osqueryd's
old pid before a new osqueryd could start, osqueryd would encounter a
bug where osqueryd would never start.
This executes an osquery query to the processes table to make sure that
the name of the process is "osqueryd". Of course, you could perhaps
denial of service osqueryd this way, but that would require root
filesystem access (assuming that the last version of osqueryd was
ran as root). Thoughts?
2014-12-08 23:52:38 -08:00
Teddy Reed
7c738c8497
Codemod to improve include search paths
2014-12-03 15:14:02 -08:00
Teddy Reed
5d99dc0325
Use a single class for Table plugins
2014-12-03 12:43:55 -08:00
Teddy Reed
119eb37731
Simple template functions
2014-12-02 21:02:50 -08:00
Teddy Reed
f4337243ec
Towards simple table generation
2014-12-02 20:36:46 -08:00
Teddy Reed
43b4debd47
Read arguments/options from config
2014-12-01 02:05:46 -07:00
Teddy Reed
6a46513a08
Fix abrt in osqueryd as non-su
2014-11-30 22:36:55 -07:00
Teddy Reed
e33443d354
clang-format on feature-predicate updates
2014-11-29 22:36:07 -08:00
Teddy Reed
76780aa6f0
Improve OSX apps table
2014-11-29 22:36:07 -08:00
Teddy Reed
b1cf8f1e61
Improve and use constraints for various OSX tables
2014-11-29 22:36:07 -08:00
Teddy Reed
56014b9c31
Moving tables definitions into core/tables.cpp
2014-11-29 22:36:06 -08:00