Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Tad Glines 3196e30125
Merge remaining release_2.1 branch bug fixes (#45)
* Bug fixes

- Fix formatting in AUOMS_STATUS errors field
- Improve RawEventReader error message
- Set NETLINK_NO_ENOBUFS on NETLINK socket
- Fix initialization of DATA_COLLECTION status
- Change OperationalStatus to use rapidjson to convert errors to json
- Fixed bug where Output incorrectly reported queue corruption during disonnect
- Fixed bug where Output incorrectly reported ack timeout during disconnect
- Fixed AckQueue so all previous acks are properly removed when ack is received
- Added AckQueue.Close() in AckReader so that waiting AckQueue.Add will return sooner
- Fixed IO so it properly handles errno==ECONRESET
- Added OutputInputTests.cpp to test Output and Input
2020-06-19 12:11:31 -07:00
Tad Glines 68ad23c06d
Add metrics collection and other changes (#36)
- Added collection of syscall metrics
- Added collection of auoms process CPU and MEM consumtion metrics
- Added system CPU and MEM metrics
- Added collection of event metrics
- Changed event accumulator so it uses steady clock for tracking event
  age instead of event id. Added more efficient LRU list.
- Changed so PATH records values are accumulated in a fixed set of
  fields where each field value is a JSON array of values ordered
  by PATH record order.
- Changed SYSCALL event type from AUOMS_EXECVE to AUOMS_SYSCALL
- Changed to include proctitle in non-execve syscall events.
- Fixed "-S all" and "-S <number>" rule handling.
- Fix std::function arg passing, make move semantics explicit.
- Move event filter logic into seperate class.
- Fix code so unit tests pass.
- Fix json encoding of escaped values.
- Remove exit(1) from ProcessNotify.
- Fix ProcessNotify/ProcessTree Stop().
- Fix parsing of INTEGRITY_POLICY_RULE records.
- Fix thread stack leak.
2019-11-21 14:55:06 -08:00
Tad Glines 7b8b09d5d4
Feature 3.0 (#27)
* Split into seperate collector and forwarder
- Add NETLINK data collection
- Add collector management to forwarder

* Modified auomscollect.cpp so that it exits if /sbin/auditd file is created

* Remove dependency on libaudit/libauparse, add rule management

* Added op status reporting and fixed many bugs

- Added EXECVE parse unit tests

* Fix loaded rule update logic

* Fix installer to properly restart/enable auoms
2019-04-30 12:06:02 -07:00