Commit Graph

1250 Commits

Author SHA1 Message Date
Teddy Reed
22c9664ae1 [Fix #530] Continue to read from NL socket 2014-12-09 15:49:40 -08:00
Teddy Reed
f4a226f4cf Merge pull request #533 from theopolis/static_build_osx
Link the brew dependencies statically on OSX
2014-12-09 14:03:54 -08:00
Teddy Reed
2fae6c0d7c Link the brew dependencies statically on OSX 2014-12-09 13:40:53 -08:00
Teddy Reed
c26c3a6dfa Merge pull request #532 from arirubinstein/master
Force git to return something if tags aren't found
2014-12-09 10:12:19 -08:00
Ari Rubinstein
27b6fb021e Force git to return something if tags aren't found
If there are no tags in the current repository, this command will fail leaving the OSQUERY_BUILD_VERSION blank, and therefore breaking the package building process (and presumably other things too) due to the empty version flag.  By adding the flag --always, this forces git to fallback to a commit id instead of returning nothing.
2014-12-09 09:52:36 -08:00
Mike Arpaia
ee285fca91 Merge pull request #531 from facebook/pidfile-fix
Fixing pidfile creation bug
2014-12-09 02:21:01 -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
mike@arpaia.co
fda82f21ab TARGETS updates 2014-12-08 18:20:02 -08:00
Sean Williams
3984b8268f Merge branch 'linux-camb' of github.com:facebook/osquery into linux-camb 2014-12-09 01:50:47 +00:00
Sean Williams
341fbc3b53 -Conform to new table function signature
-Add proper include and fix brackets on macro
-Let osquery core do the integer cast for syscall_addr_modified
-Fix misc cruft
2014-12-09 01:47:51 +00:00
Sean Williams
1b89e07287 Let osquery core do the integer cast for syscall_addr_modified 2014-12-09 01:36:21 +00:00
Sean Williams
1fe8ce89c5 Add proper include and fix brackets on macro 2014-12-09 00:27:08 +00:00
Teddy Reed
a5fa544568 Merge pull request #529 from theopolis/linux_events_udev
Linux udev events
2014-12-08 16:11:43 -08:00
Sean Williams
f192722ef2 Conform to new table function signature 2014-12-09 00:06:48 +00:00
Sean Williams
b51ccd83cb Merge branch 'linux-camb' of github.com:facebook/osquery into linux-camb
Conflicts:
	include/osquery/kernel/linux/sysfs.h
	osquery/kernel/linux/hash.c
	osquery/kernel/linux/main.c
2014-12-09 00:02:42 +00:00
Sean Williams
48bf3192e1 kernel_integrity vtable to use camb 2014-12-08 23:58:33 +00:00
Sean Williams
cd5bedbb0e Remove hooking of init module: it should really go in an LSM proper; also fix Makefile when SMAP is not specified 2014-12-08 23:58:32 +00:00
Sean Williams
c979656cc9 Makefile more flexible; fix a few bugs; optionally naively hide module 2014-12-08 23:58:08 +00:00
Sean Williams
7a81544ac0 Makefile more flexible; fix a few bugs; optionally naively hide module 2014-12-08 23:58:07 +00:00
mike@arpaia.co
376b292c57 removing trailing content 2014-12-08 23:54:56 +00:00
mike@arpaia.co
c49286dd96 new headers 2014-12-08 23:54:18 +00:00
mike@arpaia.co
c6f14b9776 moving to top-level kernel directory 2014-12-08 23:52:34 +00:00
Sean Williams
d2bde43331 Fix a couple bugs; cleanup unused code/includes 2014-12-08 23:47:30 +00:00
Sean Williams
05ce70f871 Detect some linux kernel tampering. initial branch; not yet complete
-Download kernel headers, enter camb directory, and type 'make'
-New sysfs directory /sys/kernel/camb created with two files undearneath it:
syscall_addr_modified and text_segment_hash.

File `syscall_addr_modified` is either 1 or 0 representing whether the syscall function pointers were modified or not respectively.
File `text_segment_hash` is the current sha1 hash of the kernel's .text segment (excluding loaded modules)

The address range that camb currently hashes is subject to change because it's probably not comprehensive. However, it caught the rootkits that I've thrown at it, one of which is suterusu (https://github.com/mncoppola/suterusu).
2014-12-08 23:47:30 +00:00
Sean Williams
6ad17759d8 Makefile more flexible; fix a few bugs; optionally naively hide module 2014-12-08 23:47:29 +00:00
Sean Williams
218f74ae80 Makefile more flexible; fix a few bugs; optionally naively hide module 2014-12-08 23:47:29 +00:00
mike@arpaia.co
ece9d4fa00 removing trailing content 2014-12-08 23:47:26 +00:00
mike@arpaia.co
1ce1e17902 new headers 2014-12-08 23:47:25 +00:00
mike@arpaia.co
5b80664c5e moving to top-level kernel directory 2014-12-08 23:47:25 +00:00
Sean Williams
279d55e49d Fix a couple bugs; cleanup unused code/includes 2014-12-08 23:47:24 +00:00
Sean Williams
0953b17e93 Detect some linux kernel tampering. initial branch; not yet complete
-Download kernel headers, enter camb directory, and type 'make'
-New sysfs directory /sys/kernel/camb created with two files undearneath it:
syscall_addr_modified and text_segment_hash.

File `syscall_addr_modified` is either 1 or 0 representing whether the syscall function pointers were modified or not respectively.
File `text_segment_hash` is the current sha1 hash of the kernel's .text segment (excluding loaded modules)

The address range that camb currently hashes is subject to change because it's probably not comprehensive. However, it caught the rootkits that I've thrown at it, one of which is suterusu (https://github.com/mncoppola/suterusu).
2014-12-08 23:47:24 +00:00
Teddy Reed
96d68ce98a Clean before building CI 2014-12-08 15:22:17 -08:00
Teddy Reed
2ebbbf6f98 Linux udev events 2014-12-08 14:13:47 -08:00
mike@arpaia.co
e260007f04 Change exit(-1) to exit(EXIT_FAILURE) 2014-12-08 10:40:10 -08:00
Teddy Reed
fb5048596c Merge pull request #527 from theopolis/fix_linux_processes_cmdline
Replace linux cmdline tokens with spaces
2014-12-07 18:11:07 -08:00
Teddy Reed
f8cc579d36 Fix json results clear 2014-12-07 15:53:37 -07:00
Teddy Reed
b890670be1 Replace linux cmdline tokens with spaces 2014-12-07 00:35:24 -07:00
Teddy Reed
a0866c0972 Merge pull request #524 from theopolis/events_expiry
Events expiry
2014-12-06 19:52:16 -08:00
Teddy Reed
b77f469752 Merge pull request #526 from theopolis/json-output
Add -json output mode for shell
2014-12-06 19:52:06 -08:00
Teddy Reed
19695d40aa Add expiration to events 2014-12-06 18:28:03 -07:00
Teddy Reed
78ecc73d81 Add -json output mode for shell 2014-12-06 18:22:48 -07:00
Sean Williams
16a1cbf563 kernel_integrity vtable to use camb 2014-12-06 23:36:50 +00:00
Sean Williams
0b1b1f5b72 Merge branch 'linux-camb' of github.com:facebook/osquery into linux-camb
Conflicts:
	osquery/kernel/linux/Makefile
	osquery/kernel/linux/main.c
2014-12-06 12:54:02 -08:00
Sean Williams
f651254bc5 Remove hooking of init module: it should really go in an LSM proper; also fix Makefile when SMAP is not specified 2014-12-06 12:47:59 -08:00
Sean Williams
c74c972e1d Update CONTRIBUTING.md 2014-12-06 12:35:02 -08:00
Sean Williams
9c513c20e7 Update CONTRIBUTING.md 2014-12-06 12:34:19 -08:00
Teddy Reed
7b16e45f55 Improve pubsub unittests 2014-12-05 16:18:05 -07:00
Teddy Reed
76597aa25f Merge pull request #522 from theopolis/make_pkg_simple
Add -s flag to OSX package script
2014-12-04 09:46:03 -08:00
Teddy Reed
f3ab333cf1 Add -s flag to OSX package script 2014-12-04 09:33:04 -08:00
Teddy Reed
bd64fb4619 Merge pull request #519 from theopolis/better_includes2
Codemod to improve include search paths for includes
2014-12-03 17:40:06 -08:00