Teddy Reed
19998a001a
Harden watcher for more perf, use exec and watch from worker
2015-02-08 00:06:44 -07:00
Mitchell Grenier
898c0933e6
Fixed open sockets on OS X
...
Minimal fix
2015-02-06 14:41:38 -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
Teddy Reed
e37b16ce2f
Clang analyze fixups for Linux
2015-02-01 05:10:57 -07:00
Teddy Reed
c4fb5d45ed
Added make analyze (clang-analyze) and fixed output
2015-01-31 03:09:30 -08:00
Teddy Reed
59b757c5d5
Adding block_devices to OSX
2015-01-23 13:47:20 -08:00
Teddy Reed
b3fa936156
Add kernel_info to OSX
2015-01-23 13:47:20 -08:00
Teddy Reed
22273b403d
Adding kernel_info to Linux
2015-01-23 13:47:20 -08:00
Teddy Reed
ee44764098
Add libglog to OBJCXX targets
2015-01-21 23:43:50 -07:00
Teddy Reed
9c1faec090
Isolate glog include and depend on libglog for #652
2015-01-21 13:37:06 -08:00
mike@arpaia.co
ba2e465472
migrating smbios to use new hash api
2015-01-20 15:54:00 -08:00
Teddy Reed
b7549e09ca
SMBIOS parsing on Linux using mem
2015-01-20 15:10:19 -08:00
Teddy Reed
b7852650c2
SMBIOS structure tables for OSX
2015-01-20 15:06:34 -08:00
Teddy Reed
7b0f7f3c49
Rename ACPI length to size
2015-01-20 15:06:34 -08:00
Teddy Reed
64d82388e4
Update the md5 hashing callsites
2015-01-20 14:52:07 -08:00
Mike Arpaia
4937e5cd2e
Merge pull request #641 from theopolis/iokit_registry
...
Separate IOKit devicetree from registry
2015-01-20 13:31:24 -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
Mitchell Grenier
053fcc28ef
More minor changes to address marpias requests
2015-01-20 12:13:10 -08:00
Mitchell Grenier
b8b1837bd6
Replaced loop with auto iterator, eliminating need to dereference
2015-01-20 12:13:10 -08:00
Mitchell Grenier
d2fe1826ae
Minor code change and clang-format
2015-01-20 12:13:10 -08:00
Mitchell Grenier
34e6bd45c3
Addressed @marpia s changes
2015-01-20 12:13:10 -08:00
Mitchell Grenier
b9c477080f
NFS Table for darwin systems.
...
Currently table readonly field is a string, this may change in the future to an
integer to stay consistent with other parts of osquery.
2015-01-20 12:13:09 -08:00
Teddy Reed
716aa41c15
Separate IOKit devicetree from registry
2015-01-20 11:15:20 -08:00
Teddy Reed
8475522e76
Remove goto/sprintf from NVRAM parsing
2015-01-19 17:10:40 -08:00
Teddy Reed
066b7d78d9
Add basic acpi_tables hashing to Linux
2015-01-17 23:02:14 -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
Teddy Reed
1df958c583
ACPI tables for OSX
2015-01-15 21:37:02 -08:00
Teddy Reed
803204a9dd
iokit_registry table
2015-01-15 12:53:46 -08:00
mike@arpaia.co
aef517a29e
Fix for #628
2015-01-15 12:11:25 -08:00
Teddy Reed
4db7c90758
Merge pull request #608 from theopolis/linux_ports
...
Moved socket_inode on Linux to process_open_files
2015-01-13 14:54:35 -08:00
Teddy Reed
ac0f2f96e4
Split OSX process_open_files into files/sockets
2015-01-13 11:05:54 -08:00
Teddy Reed
bb6f313c6c
Moved socket_inode on Linux to process_open_files
2015-01-13 08:26:47 -08:00
Teddy Reed
a2cc1c85ea
[ Fix #599 ] Rename kextstat->kernel_extensions
2015-01-11 00:38:03 -07:00
Teddy Reed
2ad15763e2
Provide example config, improve pid check
2015-01-07 15:22:50 -08:00
Teddy Reed
dbb7050376
Merge pull request #575 from theopolis/fix_574
...
[Fix #574 ] Undef DEBUG for apt-pkg for make debug
2015-01-06 07:29:02 -08:00
Teddy Reed
27541d4260
[ Fix #574 ] Undef DEBUG for apt-pkg for make debug
2015-01-06 06:53:42 -08:00
Teddy Reed
f865647d0c
[ Fix #545 ] Simpler socket_info parsing in process_open_files
2015-01-06 06:23:48 -08:00
Norm MacLennan
7a6eb8255a
renaming apt sources gen function
2015-01-05 18:02:55 -05:00
Norm MacLennan
a6b769b6f4
a table to show apt package sources
2015-01-04 19:44:45 -05:00
Norm MacLennan
cf08d605f0
code review changes and adding revision field
2015-01-02 13:30:04 -05:00
Norm MacLennan
18f40b0952
fixing compatibility issues with 1204 dpkg version
2015-01-01 18:58:00 -05:00
Norm MacLennan
beff9471f8
resolve merge conflict with upstream
2014-12-30 18:21:00 -05:00
Norm MacLennan
0191f1de29
resurrect the deb_packages table
2014-12-30 17:24:49 -05:00
Sean Williams
c54a568af3
Merge pull request #528 from facebook/linux-camb
...
Initial linux kernel instrumentation bits
2014-12-29 14:20:54 -08:00
Teddy Reed
8c6e45e9b5
Fix ca_certs memory leak
2014-12-25 12:49:45 -08:00
Theodore M. Reed
01005c72b3
Moved crontab out of utility
2014-12-23 14:39:59 -08:00
Teddy Reed
ff7ca1e800
Merge pull request #557 from theopolis/xprotect_results
...
OSX results of XProtect hits
2014-12-18 13:04:08 -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
888f74de36
OSX results of XProtect hits
2014-12-17 18:35:01 -08:00
Teddy Reed
4453806dce
Remove raw pattern from XProtect
2014-12-17 14:46:53 -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
8c38492b2a
Add XProtect vtable to OSX
2014-12-16 17:59:07 -08:00
Teddy Reed
7b56fa605d
PCI/USB parity
2014-12-10 19:51:18 -08:00
Teddy Reed
a75fa3bf11
Merge pull request #538 from theopolis/improve_usb
...
Improve usb_devices on OSX
2014-12-10 19:51:08 -08:00
Teddy Reed
b08ad3cb14
Check USB property for CFString type
2014-12-10 09:12:12 -08:00
Teddy Reed
f29e0c17ca
Update ca_certs_tests to use moved OSX conversions
2014-12-10 01:59:13 -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
Teddy Reed
ab8df11818
Add filesystem_error catching and remove suid_bin from BL
2014-12-09 20:13:39 -08:00
Teddy Reed
9a9de67b93
Restrict suid_bin to common search paths
2014-12-09 16:38:14 -08: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
48bf3192e1
kernel_integrity vtable to use camb
2014-12-08 23:58:33 +00:00
Teddy Reed
b890670be1
Replace linux cmdline tokens with spaces
2014-12-07 00:35:24 -07:00
Teddy Reed
7c738c8497
Codemod to improve include search paths
2014-12-03 15:14:02 -08:00
Wesley Shields
2504c06feb
Implement signed columns for users and groups.
...
Fixes #475 .
2014-12-01 11:52:13 -05:00
Teddy Reed
3ec6b473dd
[ Fix #498 ] Remove default catch in quaratine
2014-11-30 22:01:31 -07:00
Teddy Reed
13c8277bb4
Add query constraints to logged_in_users
2014-11-29 22:40:11 -08: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
3fa2442e25
Rename/improve bash_history to shell_history
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
Teddy Reed
b18068f114
Improve kextstat/startup_items code and perf
2014-11-29 22:36:06 -08:00
Theodore M. Reed
8ab1863790
Predicate constraints for FreeBSD
2014-11-29 22:36:06 -08:00
Teddy Reed
59367b41af
Predicate constraints for Linux
2014-11-29 22:36:06 -08:00
Teddy Reed
b4be08a702
Updating table generators to use QueryContext
2014-11-29 22:36:05 -08:00
Teddy Reed
cd8413d483
Organizing affinity types into tables.
2014-11-29 22:36:05 -08:00
Teddy Reed
750cc807cf
Merge pull request #493 from wxsBSD/issue_9
...
Implement logged_in_users.
2014-11-29 22:22:10 -08:00
mike@arpaia.co
fdcea6daa7
manual fix to spacing issue
2014-11-25 09:08:00 -08:00
mike@arpaia.co
8f50cae3aa
clang-format on the codebase
...
Periodic clang-format run.
2014-11-25 09:05:16 -08:00
Wesley Shields
7abc9f75f2
Implement logged_in_users.
...
Fixes #9 .
2014-11-22 23:49:37 -05:00
Teddy Reed
4de3c8a0cf
Fix memory leaks in USB Devices for OSX
2014-11-22 18:04:47 -08:00
Nick
acad6d8e8d
Added USB device support for Mac (Linux coming next)
2014-11-22 17:42:56 -08:00
Wesley Shields
059403eac4
Merge branch 'master' into macros
...
Conflicts:
osquery/tables/system/darwin/processes.cpp
2014-11-22 15:12:21 -05:00
Teddy Reed
44181b7aeb
Add basic support for unsigned long long int
2014-11-21 10:32:56 -08:00
Teddy Reed
1961921d95
Pull process_open_files out of processes.cpp and reduce logging
2014-11-20 17:19:04 -08:00
Mike Arpaia
ac70916719
Merge pull request #434 from lwhsu/freebsd-build
...
FreeBSD support of build infrastructure
2014-11-19 09:23:17 -08:00
mike@arpaia.co
ee15228819
fixing naming of columns in tests
2014-11-18 17:43:16 -08:00
Wesley Shields
9cf662cca0
More explicit usage of macros.
2014-11-18 19:40:14 -05:00
Wesley Shields
550bf15c74
First pass at macro usage in tables.
2014-11-18 19:25:34 -05:00
Li-Wen Hsu
4f8006ad02
Add dummy table implementations for FreeBSD
2014-11-19 05:07:59 +08:00
Mike Arpaia
3c243e02f2
Merge pull request #463 from facebook/mounts-unified
...
Unified mounts spec
2014-11-18 11:32:17 -08:00
Teddy Reed
12a5daa225
Change user_name, group_name to username, groupname
2014-11-18 10:48:47 -08:00
mike@arpaia.co
ecb8e474a4
Unified mounts spec
2014-11-18 10:46:48 -08:00
Li-Wen Hsu
6c55b51c53
Merge branch 'master' into freebsd-build
...
Conflicts:
osquery/core/system.cpp
tools/provision.sh
2014-11-19 01:50:38 +08:00
Teddy Reed
7287ad5e63
Fix process free regression for libprocps
2014-11-17 16:52:20 -08:00
Mike Goffin
57faad63fa
Merge branch 'master' into mounts_table
2014-11-17 15:03:50 -05:00
Mike Goffin
2ce6882317
Format fixes.
...
- ran clang-format.
- lowercased column names for table.
- removed include for boost as it's no longer being used.
2014-11-17 15:02:33 -05:00
Mike Goffin
6cddf4ad39
Mounts table for Darwin.
...
Associated with #255 , this adds Mounts table support for Darwin.
2014-11-17 13:43:59 -05:00
Teddy
968f8027e6
Cleaner arp_table->arp_cache on Linux/OSX
2014-11-17 02:37:15 -08:00
Teddy Reed
ee015343f9
Simplify arp, move to arp_table
2014-11-16 19:49:40 -08:00
Li-Wen Hsu
ea7b617a7c
No utmpxname() under FreeBSD
2014-11-16 01:41:50 +08:00
Vincent Mauge
632151d56a
Set ouput_bit to 0 instead of cast error
2014-11-12 22:02:04 -08:00
Teddy Reed
0d8b9d3eaa
Use SQLite types
2014-11-12 11:07:24 -08:00
Teddy Reed
525a3b79a0
Tons of new build features
...
* The OS/DISTRO are available as defines when writing tables:
UBUNTU, UBUNTU_14_04, UBUNTU_12_04
CENTOS, CENTOS_6_6
DARWIN, DARWIN_10_10, DARWIN_10_9
* The table generation tooling now grabs virtual tables templates
from ./osquery/tables/templates/<name>.cpp.in.
* The table generation tooling will detect reserved column names.
* suid_bin uses the new UBUNTU to restrict calls to root (fix #362 ).
2014-11-12 00:57:47 -08:00
Teddy Reed
86d2ac208b
Use leaks for OSX memory leak profiling
2014-11-10 11:34:17 -08:00
Mike Arpaia
3245e5a6cd
Merge pull request #394 from wizzat/process_args
...
Add cmdline to darwin
2014-11-10 13:20:47 -05:00
Teddy Reed
19aa99583e
Linux processes vtable use freeproc
2014-11-10 10:12:47 -08:00
Mark Roberts
dc1684fca7
Add cmdline to darwin
2014-11-10 09:36:17 -08:00
Teddy Reed
b0ff403d3d
Fixing librpm API usage leaks
2014-11-10 01:48:07 -08:00
Teddy Reed
b77406b122
[ Fix #367 ] Check RPMTAG class before cast
2014-11-09 02:07:49 -08:00
Teddy Reed
078d4cf7d2
Refector shell flags/versioning
2014-11-08 20:27:28 -08:00
Veres Lajos
afc82c722f
typo fixes - https://github.com/vlajos/misspell_fixer
2014-11-07 22:18:02 +00:00
Alexander Polyakov
00dbf282a6
/ is not always readable
2014-11-07 01:00:58 +03:00
Alexander Polyakov
c0d827f534
Add euid / egid to process table
...
(not tested on darwin)
2014-11-06 01:35:52 +03:00
mike@arpaia.co
05cfff81c8
clang-format
2014-11-04 11:42:30 -08:00
mike@arpaia.co
896a4f2957
generic users function and some general cleanups
2014-11-04 11:40:54 -08:00
Zachary Wasserman
0b30b9f692
Add basic Mac startup items vtable
2014-11-04 11:40:54 -08:00
Alexander Polyakov
a60230af5e
linux/processes: fix infinite loop, throw away workaround
2014-11-04 15:31:35 +03:00
Teddy Reed
03034780f1
Add note about blocking process_env as non-su
2014-11-03 23:46:47 -08:00
Teddy Reed
ea3880eefb
Merge pull request #354 from wizzat/graceful_envs
...
Graceful envs
2014-11-03 23:43:04 -08:00
Mike Arpaia
37734bc5a4
Merge pull request #351 from LTD-Beget/blockdev_table
...
Blockdev table for linux
2014-11-03 22:29:35 -08:00
Mark Roberts
5780fffa22
Potential Linux fix, pending boost::filesystem::path fix on master. Issue #323
2014-11-03 20:39:51 -08:00
Alexander Polyakov
cbc2139047
block_devices: trim spaces around model and vendor
2014-11-04 05:00:24 +03:00
Teddy Reed
dc77df602e
[format] Cleanup various PRs not run through clang-format
2014-11-03 17:57:01 -08:00
Mark Roberts
176af65fb5
Remove logging of permissions error when running as non-root user on OSX
...
Issue #323
2014-11-03 17:29:22 -08:00
Alexander Polyakov
95aeaba024
pci_devices: unref things after use
2014-11-04 01:48:42 +03:00
Alexander Polyakov
1ce1424d01
Add braces
2014-11-04 01:21:02 +03:00
Alexander Polyakov
e3364ac34c
Add braces
2014-11-04 01:13:49 +03:00
Alexander Polyakov
f96180e926
pci_devices: udev_device_get_property_values() can return NULL
2014-11-03 23:56:59 +03:00
Alexander Polakov
274e037527
Blockdev table for linux
2014-11-03 23:39:14 +03:00
Akshay Dixit
c99c08c607
changed comments to // from /* , char* to std::string consts, and ran clang-format on the file
2014-11-02 21:09:04 -07:00
Akshay Dixit
cb1bf1c305
cleaned up pci_devices.cpp
2014-11-02 21:09:04 -07:00
Akshay Dixit
6c418507e6
renamed lspci to pci_devices and specified it linux only
2014-11-02 21:09:04 -07:00
Akshay Dixit
afd9d5e160
changed lspci to be a linux only virtual table, and added udev dependency to provisions.sh
2014-11-02 21:07:35 -07:00
Akshay Dixit
7896e7f78e
added lspci virtual table and libudev dependencies
2014-11-02 21:03:43 -07:00
Teddy Reed
37b8336a1f
Silence parentheses warnings in linux/mounts
2014-11-02 01:42:04 -08:00
Alexander Polyakov apolyakov@beget.ru
fd5ed3bc19
Rename dir to path
2014-11-02 01:09:24 +03:00
Alexander Polyakov apolyakov@beget.ru
fa81e54e27
Fix indentation, no functional change
2014-11-02 00:36:56 +03:00
Alexander Polyakov
58716d6cfa
Mounts table for linux
2014-11-01 16:12:56 +03:00
Teddy Reed
eb240ac527
RPM table and more robust Linux building
2014-10-31 21:59:10 -07:00
castrapel
2557bac3d4
RPM Package listing is now working
2014-10-31 16:52:58 -07:00
castrapel
a51f97871f
Adding RPM functionality for CentOS packages (Not working in EL6 due to older rpm-devel)
2014-10-31 16:52:58 -07:00
Teddy Reed
fd8f5782ab
Merge pull request #308 from facebook/lsof
...
Darwin lsof
2014-10-31 16:32:30 -07:00
Mark Roberts
675dc308b9
Fix possible errors with getProcPath and getProcName
2014-10-31 16:07:09 -07:00
Pablo S. Torralba
42c73897bf
Some minor stetic changes to keep the code clean
2014-10-31 14:27:15 -07:00
Mark Roberts
534999b396
Whitespace
2014-10-31 13:49:25 -07:00
Pablo S. Torralba
366274504b
Feedback fixes to clean the code a bit
2014-10-31 13:44:00 -07:00
Mark Roberts
f38bcd390e
Add file_type to process_open_files
2014-10-31 11:13:35 -07:00
Pablo S. Torralba
a6e04efdd7
Add quarantine vtable for OSX
...
The tables reports:
- path: The file in quarantine
- creator: The application that created the file
Example:
osquery> select * from quarantine limit 10;
+----------------------------------------------------------------------------+---------------+
| path | creator |
+----------------------------------------------------------------------------+---------------+
| /Applications/Adium.app | Google Chrome |
| /Applications/Adium.app/Contents | Google Chrome |
| /Applications/Adium.app/Contents/_CodeSignature | Google Chrome |
| /Applications/Adium.app/Contents/_CodeSignature/CodeResources | Google Chrome |
| /Applications/Adium.app/Contents/Frameworks | Google Chrome |
| /Applications/Adium.app/Contents/Frameworks/Adium.framework | Google Chrome |
| /Applications/Adium.app/Contents/Frameworks/Adium.framework/Adium | Google Chrome |
| /Applications/Adium.app/Contents/Frameworks/Adium.framework/Headers | Google Chrome |
| /Applications/Adium.app/Contents/Frameworks/Adium.framework/PrivateHeaders | Google Chrome |
| /Applications/Adium.app/Contents/Frameworks/Adium.framework/Resources | Google Chrome |
+----------------------------------------------------------------------------+---------------+
Fixes issue #231
2014-10-31 06:10:51 -07:00
Mark Roberts
3cf5aa4bae
Add lsof for #28 functionality to Darwin, refactor to use shared infra for process_envs
2014-10-31 03:28:14 -07:00
yetanotherhacker
8cee7e0b3c
Spelling fixes in comments and output.
2014-10-30 04:27:00 -04:00
Mark Roberts
0867c2b547
Add process_envs table for OSX and Linux for issue #99
2014-10-29 03:45:26 -07:00
Teddy Reed
39f866387f
[vtables] CPUID asm call feature information
2014-10-29 03:09:34 -07:00
Teddy Reed
6db0c67555
Merge pull request #269 from vmauge/suidbin
...
Add suid_bin vtable
2014-10-29 02:30:29 -07:00
Teddy Reed
94c64d80ce
Merge pull request #267 from facebook/kernel_modules
...
[vtables] Linux kernel modules from procfs
2014-10-29 02:03:46 -07:00
Vincent Mauge
471d5faaa0
Add suid_bin vtable
...
The vtabel report :
- path: full path of the file
- unix_user: name of the owner (if not available display the uid)
- unix_group: name of the groupe (if not available display the gid)
- permissions: report suid or guid
* S for suid bin
* G for guid bin
Example :
osquery> select * from suid_bin;
+----------------------------------------------------------------------------------------------------+-----------+---------------+-------------+
| path | unix_user | unix_group | permissions |
+----------------------------------------------------------------------------------------------------+-----------+---------------+-------------+
| "/bin/ps" | root | wheel | S |
| "/bin/rcp" | root | wheel | S |
| "/Users/vmauge/suid_test" | vmauge | 999 | SG |
| "/usr/bin/at" | root | wheel | S |
| "/usr/bin/atq" | root | wheel | S |
| "/usr/bin/atrm" | root | wheel | S |
| "/usr/bin/batch" | root | wheel | S |
| "/usr/bin/crontab" | root | wheel | S |
| "/usr/bin/ipcs" | root | wheel | S |
| "/usr/bin/lockfile" | root | mail | G |
| "/usr/bin/login" | root | wheel | S |
| "/usr/bin/newgrp" | root | wheel | S |
| "/usr/bin/procmail" | root | mail | G |
| "/usr/bin/quota" | root | wheel | S |
| "/usr/bin/rlogin" | root | wheel | S |
| "/usr/bin/rsh" | root | wheel | S |
| "/usr/bin/su" | root | wheel | S |
| "/usr/bin/sudo" | root | wheel | S |
| "/usr/bin/top" | root | wheel | S |
| "/usr/bin/wall" | root | tty | G |
| "/usr/bin/write" | root | tty | G |
| "/usr/sbin/postdrop" | root | _postdrop | G |
| "/usr/sbin/postqueue" | root | _postdrop | G |
| "/usr/sbin/rpc.net" | root | wheel | S |
| "/usr/sbin/rpcset" | root | wheel | S |
| "/usr/sbin/traceroute" | root | wheel | S |
| "/usr/sbin/traceroute6" | root | wheel | S |
+----------------------------------------------------------------------------------------------------+-----------+---------------+-------------+
This commit fixes issue #253 .
2014-10-29 01:33:58 -07:00
Teddy Reed
339b63677e
[vtables] Rename homebrew files, some cleanup
2014-10-29 00:34:55 -07:00
Martin Majlis
d645dfc257
Initial implementation for the homebrew table.
2014-10-28 21:03:56 -07:00
Teddy Reed
9abcbcd485
[vtables] Linux kernel modules from procfs
2014-10-28 21:01:51 -07:00
Teddy Reed
6e60612520
Using clang-format 3.5
2014-10-27 17:37:36 -07:00
Mike Arpaia
0f57dba4d9
Merge pull request #228 from facebook/bash_history_table
...
Adding virtual table bash_history, for linux and darwin
2014-10-27 16:41:17 -04:00
mike@arpaia.co
dafd2d7534
updating comment
2014-10-27 16:34:00 -04:00
Javier Marcos
c8c3363455
Changed logic to ignore when history file is not found (expected)
2014-10-24 20:38:09 -07:00
Javier Marcos
542d53fd5e
Refactoring and added column for history file, also more history files supported
2014-10-24 20:29:23 -07:00
Teddy Reed
a82792b3f7
Log results as events
2014-10-24 17:05:17 -07:00
Javier Marcos
bf3cd15c91
Final fix for the allocation problem
2014-10-23 17:17:50 -07:00
Javier Marcos
f69913938f
Bad memory leak with OpenDirectory and pwd/grp.h code
2014-10-22 23:49:16 -07:00
Javier Marcos
1066f667ab
Adding virtual table bash_history, for linux and darwin
2014-10-22 15:21:05 -07:00
Javier Marcos
06792db7f0
Adding support for last in linux
2014-10-13 18:19:08 -07:00
Javier Marcos
b3208bab70
Errors handled, shit is on fire
2014-10-10 16:09:45 -07:00
Javier Marcos
b518c6b9e0
Adding groups vtable and refactoring users
2014-10-10 15:09:14 -07:00
mike@arpaia.co
ae91f7af7e
only index if it's not nullptr
2014-10-09 22:08:37 -07:00
mike@arpaia.co
0033e9bd02
cleaning up some memory leak supps
2014-10-09 22:06:55 -07:00
Javier Marcos
19a2d64959
Making sure we do not add duplicated users
2014-10-09 18:55:25 -07:00
mike@arpaia.co
f45798d31a
OMG memory leaks
2014-10-09 18:08:31 -07:00
Javier Marcos
d09e6037dd
Fixing infinite loop adding mutex
2014-10-09 14:42:37 -07:00
Javier Marcos
7944ab50da
Adding vtable for users
2014-10-09 12:50:34 -07:00
Javier Marcos
e66a4d8873
Install package depending on arch and better comments
2014-10-08 23:09:02 +00:00
Javier Marcos
5db9fa59a5
Adding support to build osquery in centos 6.5
2014-10-08 03:45:56 +00:00
Teddy Reed
2063252f73
[vtable] Fix warning for process in-condition assignment
2014-10-04 13:29:17 -07:00
Javier Marcos
7c1afd1558
Adding support to build in Ubuntu 12
2014-10-02 17:58:56 +00:00
mike@arpaia.co
2348460ca4
Revert "Support for Ubuntu 12, precise"
...
This reverts commit ed0e051eba
.
2014-10-01 23:00:23 -07:00
Javier Marcos
ed0e051eba
Support for Ubuntu 12, precise
2014-10-02 01:24:23 +00:00
mike@arpaia.co
627821abc1
Periodic clang-format
2014-09-21 14:29:28 -07:00
mike@arpaia.co
b5ee19f49f
Removing the osquery::db namespace
2014-09-21 14:27:09 -07:00
Teddy Reed
9516bf8fd7
Regressions from core NS removal, linux includes
2014-09-17 10:29:22 -06:00
mike@arpaia.co
de426754d9
moving fs to the global namespace
2014-09-15 11:47:52 -07:00
mike@arpaia.co
ad9b0bb5c1
Doxyfile, for docs
2014-09-13 15:18:26 -07:00
mike@arpaia.co
cec7b33afb
removing unused header includes
2014-09-09 18:43:41 -07:00
mike@arpaia.co
df1332277d
clang-format
2014-09-09 16:14:54 -07:00
Teddy Reed
bfba3d491d
Merge pull request #117 from facebook/linux-processes-vtable
...
[vtables] Processes table for Linux (procps3)
2014-09-09 14:43:26 -07:00
Teddy Reed
2bcd89d70f
[vtables] Adding cmdline, path to Linux processes
2014-09-09 10:59:16 -07:00
mike@arpaia.co
8fcad82b35
periodic clang-format
2014-09-09 00:56:27 -07:00
Teddy Reed
c6a7e86b18
[vtables] Processes table for Linux (procps3)
2014-09-08 22:42:17 -07:00
Teddy Reed
e23e7bdab8
Merge pull request #102 from facebook/linux-build
...
Changes for Linux (Ubuntu 14.04) build
2014-09-05 14:52:35 -07:00
Teddy Reed
4ffd184eaf
Changes for Linux (Ubuntu 14.04) build
2014-09-05 10:58:58 -07:00
Javier Marcos
344ca31f26
Adding last
virtual table
2014-09-04 16:42:18 -07:00
mike@arpaia.co
66a2a6fdec
Fix performance issue with the disk serializer
...
This is the issue noted in #76 . Keeping all historical results of
queries in the HistoricalQueryResults struct makes serializing and
deserializing those structs very, very slow as time goes on. By only
storing the last execution of the query, we keep the performance
constant, but we kill the feature where osquery can rebuild timelines
without accessing logs. After talking it over, we decided that this
isn't actually that big of a deal because, if you really wanted to
rebuild the old data, you should be able to process the logs, similarly
to bin log replication in MySQL.
2014-09-02 13:13:12 -07:00
mike@arpaia.co
2b08ba60e3
Fixing #67
...
Escaping spaces in the Program field of the launchd table since it
represents a path
2014-09-02 12:22:12 -07:00
mike@arpaia.co
6498f45924
renaming the cacerts table to ca_certs
2014-09-01 18:46:16 -07:00
Teddy Reed
c653e0b1be
[vtable_nvram] Fixing type description memory leak, and re-org
2014-09-01 18:32:49 -07:00
mike@arpaia.co
3b05ffb97d
breaking out objective-c tables such that they use arc
2014-08-30 03:19:16 -07:00
mike@arpaia.co
194127bf08
more memory leak fixed
2014-08-26 16:27:33 -07:00
mike@arpaia.co
648303b1a0
CFReleasing options_dict
2014-08-26 14:58:22 -07:00
mike@arpaia.co
6279f5cb96
setting property to null in the event that the property type is unknown
2014-08-26 14:58:10 -07:00
mike@arpaia.co
3d3271a625
kextstat allocation clarity
2014-08-26 13:34:08 -07:00
mike@arpaia.co
fbc37d9399
clang-format on objective-c++ files
2014-08-19 20:18:49 -07:00
Teddy Reed
444cea0649
[vtable_cacerts] New CA certificates table.
2014-08-19 13:47:09 -07:00
mike@arpaia.co
3760e4cce5
Apple virtual table for LaunchAgents and LaunchDaemons
2014-08-15 13:46:09 -07:00
mike@arpaia.co
9973335e49
OS X virtual tables for currently installed applications
2014-08-15 12:58:19 -07:00
mike@arpaia.co
e723306c13
Ran clang-format across the codebase
2014-08-15 12:29:51 -07:00
mike@arpaia.co
f6e6629d98
fixing include path in osx_version.mm
2014-08-14 11:35:30 -07:00
Mike Arpaia
3161e8cfeb
Merge pull request #48 from facebook/firewall
...
Virtual table for Apple's application level firewall
2014-08-14 11:33:53 -07:00
mike@arpaia.co
1a381e0feb
Virtual tables for Apple's application level firewall
2014-08-14 11:33:20 -07:00
mike@arpaia.co
2311022e7f
moving cocoa backports to core/osx
2014-08-13 23:20:58 -07:00
Mike Arpaia
5f9a24202f
Merge pull request #42 from facebook/kexts
...
Loaded kernel extensions vtable
2014-08-13 11:49:48 -07:00
mike@arpaia.co
e2bd07008d
[kextstat] osquery virtual table which uses the Core Foundation APIs to
...
expose kernel extension information.
For information about memory managament in Core Foudnation, see:
https://developer.apple.com/library/ios/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029
2014-08-13 11:48:53 -07:00
Mike Arpaia
702d53af10
Merge pull request #47 from facebook/system_version
...
osx_version table which exposes the major, minor and patch version of the operating system
2014-08-13 11:44:14 -07:00
mike@arpaia.co
b65f96d666
osx_version table which exposes the major, minor and patch version of
...
the operating system
2014-08-13 11:02:17 -07:00
Teddy Reed
1b6ef08611
Silencing various compiler errors for goto statements.
2014-08-13 08:56:39 -07:00
Teddy Reed
83dc09bca3
[vtable_nvram] Various code cleanups
2014-08-12 11:43:38 -07:00
Teddy Reed
1888150596
[vtable_nvram] Added NVRAM variables vtable (name, variable type, value).
2014-08-12 00:02:38 -07:00
mike@arpaia.co
968a8a8355
forward declarations in table files
2014-08-07 13:14:06 -07:00
mike@arpaia.co
b048b699d4
a zwass special, unordered_set::find
2014-08-06 15:24:08 -07:00
mike@arpaia.co
64bf1db2fe
more intelligent sizing of data structures
2014-08-06 15:17:51 -07:00
mike@arpaia.co
5a4517cfe6
removing range based for loop for pids and removing memsets for chars
2014-08-06 15:02:14 -07:00
mike@arpaia.co
a5edef6782
string::length instead of strlen
2014-08-06 14:13:37 -07:00
mike@arpaia.co
5863fb2948
unordered set
2014-08-06 14:09:37 -07:00
mike@arpaia.co
9cb52eb1e1
unordered_map and better logic around on_disk
2014-08-06 14:07:19 -07:00
mike@arpaia.co
e6a38a2b71
num_pids lower case and comment on negative pids
2014-08-06 13:58:23 -07:00
mike@arpaia.co
b0863e1af5
reorder of headers
2014-08-05 18:16:27 -07:00
mike@arpaia.co
32808d5830
moving processes table into systems dir
2014-08-05 18:14:32 -07:00