Namespaces | |
| namespace | anonymous_namespace{RootGuardClient.cpp} |
| namespace | anonymous_namespace{RootGuardEvent.cpp} |
Classes | |
| struct | ApplicationRules |
| class | Client |
| struct | Event |
| struct | ServiceStatus |
| struct | Snapshot |
Enumerations | |
| enum class | EventSeverity { Telemetry , Observation , Incident } |
Functions | |
| std::optional< Event > | parse_event_json (const std::string &line) |
| std::string | format_event (const Event &event) |
| std::string | event_fingerprint (const Event &event) |
| EventSeverity | classify_event (const Event &event) noexcept |
| bool | is_security_observation (const Event &event) noexcept |
| bool | is_actionable_incident (const Event &event) noexcept |
| bool | is_system_service_path (const std::string &path) noexcept |
|
strong |
| Enumerator | |
|---|---|
| Telemetry | |
| Observation | |
| Incident | |
Definition at line 14 of file RootGuardEvent.hpp.
|
noexcept |
Definition at line 217 of file RootGuardEvent.cpp.
References classify_event(), Incident, Observation, RG_REASON_GLOBAL_METADATA, RG_REASON_METADATA_BURST, and Telemetry.
Referenced by classify_event(), is_actionable_incident(), is_security_observation(), main(), and RootGuardPage::render_incidents().
| std::string BastionGuard::RootGuard::event_fingerprint | ( | const Event & | event | ) |
Definition at line 209 of file RootGuardEvent.cpp.
References event_fingerprint().
Referenced by RootGuardPage::dismiss_alert(), RootGuardPage::dismiss_event(), event_fingerprint(), main(), RootGuardPage::queue_new_alerts(), and RootGuardPage::render_incidents().
| std::string BastionGuard::RootGuard::format_event | ( | const Event & | event | ) |
Definition at line 167 of file RootGuardEvent.cpp.
References BastionGuard::RootGuard::Event::actor_device, BastionGuard::RootGuard::Event::actor_executable, BastionGuard::RootGuard::Event::actor_inode, BastionGuard::RootGuard::Event::device, BastionGuard::RootGuard::Event::filename, format_event(), BastionGuard::RootGuard::Event::inode, BastionGuard::RootGuard::Event::new_euid, BastionGuard::RootGuard::Event::new_gid, BastionGuard::RootGuard::Event::new_mode, BastionGuard::RootGuard::Event::new_uid, BastionGuard::RootGuard::Event::old_euid, BastionGuard::RootGuard::Event::old_gid, BastionGuard::RootGuard::Event::old_mode, BastionGuard::RootGuard::Event::old_uid, BastionGuard::RootGuard::Event::parent_comm, BastionGuard::RootGuard::Event::parent_device, BastionGuard::RootGuard::Event::parent_executable, BastionGuard::RootGuard::Event::parent_inode, BastionGuard::RootGuard::Event::received_at, and BastionGuard::RootGuard::Event::rule_id.
Referenced by format_event(), main(), and RootGuardPage::render_events().
|
noexcept |
Definition at line 272 of file RootGuardEvent.cpp.
References classify_event(), Incident, and is_actionable_incident().
Referenced by is_actionable_incident(), main(), and RootGuardPage::queue_new_alerts().
|
noexcept |
Definition at line 267 of file RootGuardEvent.cpp.
References classify_event(), is_security_observation(), and Telemetry.
Referenced by is_security_observation(), main(), and RootGuardPage::render_incidents().
|
noexcept |
Definition at line 277 of file RootGuardEvent.cpp.
References is_system_service_path().
Referenced by anonymous_namespace{RootGuardPage.cpp}::incident_detail(), is_system_service_path(), main(), BastionGuard::RootGuard::Client::run_request(), and RootGuardPage::show_next_alert().
| std::optional< Event > BastionGuard::RootGuard::parse_event_json | ( | const std::string & | line | ) |
Definition at line 122 of file RootGuardEvent.cpp.
References parse_event_json(), and BastionGuard::RootGuard::Event::raw_json.
Referenced by main(), parse_event_json(), and BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::read_recent_events().