Snapshot của palantir/osquery-configuration: 898★. A repository for using osquery for incident detection and response
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This repository is the companion to the osquery Across the Enterprise blog post.
The goal of this project is to provide a baseline template for any organization considering a deployment of osquery in a production environment. It is
our belief that queries which are likely to have a high level of utility for a large percentage of users should be committed directly to the osquery project, which is
exactly what we have done with our unwanted-chrome-extensions query pack and additions to the windows-attacks pack.
However, we have included additional query packs
that are more tailored to our specific environment that may be useful to some or at least serve as a reference to other organizations. osquery operates best when
operators have carefully considered the datasets to be collected and the potential use-cases for that data.
performance-metrics.conf
security-tooling-checks.conf
windows-application-security.conf
windows-compliance.conf
windows-registry-monitoring.conf
Note: We also utilize packs that are maintained in the official osquery project. In order to ensure you receive the most up to date version of the pack, please view them using the links below:
ossec-rootkit.conf
osx-attacks.conf
unwanted-chrome-extensions.conf
windows-attacks.conf
Repository Layout
This repository is organized as follows:
At the top level, there are two directories titled "Classic" and "Fleet"
The Classic directory contains configuration files for a standard osquery deployment
The Fleet directory contains YAML files to be imported into Kolide's Fleet osquery management tool
Within each of those folders, you will find the following subdirectories:
Endpoints: The contents of this folder are tailored towards monitoring MacOS and Windows endpoints that are not expected to be online at all times. You may notice the interval of many queries in this folder set to 28800. We purposely set the interval to this value because the interval timer only moves forward when a host is online and we would only expect an endpoint to be online for about 8 hours, or 28800 seconds, per day.
Servers: The contents of this folder are tailored towards monitoring Linux servers. This configuration has process and network auditing enabled, so expect an exponentially higher volume of logs to be returned from the agent.
Using This Repository
Note: We recommend that you spin up a lab environment before deploying any of these configurations to a production
environment.
Endpoints Configuration Overview
The configurations in this folder are meant for MacOS and Windows and the interval timings assume that these hosts are only online for ~8 hours per day
The flags included in this configuration enable TLS client mode in osquery and assume it will be connected to a TLS server. We have also included non-TLS flagfiles for local testing.
File integrity monitoring on MacOS is enabled for specific files and directories defined in osquery.conf
Events are disabled on Windows via the --disable_events flag in osquery.flags. We use Windows Event Forwarding and don't have a need for osquery to process Windows event logs.
These configuration files utilize packs within the packs folder and may generate errors if started without them
Servers Configuration Overview
This configuration assumes the destination operating system is Linux-based and that the hosts are online at all times
Auditing mode is enabled for processes and network events. Ensure auditd is disabled or removed from the system where this will be running as it may conflict with osqueryd.
File integrity monitoring is enabled for specific files and directories defined in osquery.conf
Requires the ossec-rootkit.conf pack found to be located at /etc/osquery/packs/ossec-rootkit.conf
The subscriber for user_events is disabled
Quickstart - Classic
Install osquery
Copy the osquery.conf and osquery.flags files from this repository onto the system and match the directory structure shown below
Start osquery via sudo osqueryctl start on Linux/MacOS or Start-Process osqueryd on Windows
Logs are located in /var/log/osquery (Linux/MacOS) and c:\ProgramData\osquery\logs (Windows)
Quickstart - Fleet
Install Fleet version 2.0.0 or higher
2. Enroll hosts to your Fleet server by configuring the appropriate [flags]
3. Configure the fleetctl utility to communicate with your Fleet server
4. Assuming you'd like to use the endpoint configs, you can use the commands below to apply them:
git clone https://github.com/palantir/osquery-configuration.git
fleetctl apply -f osquery-configuration/Fleet/Endpoints/options.yaml
fleetctl apply -f osquery-configuration/Fleet/Endpoints/MacOS/osquery.yaml
fleetctl apply -f osquery-configuration/Fleet/Endpoints/Windows/osquery.yaml
for pack in osquery-configuration/Fleet/Endpoints/packs/*.yaml;
do fleetctl apply -f "$pack"
done
The desired osquery directory structure for Linux, MacOS, and Windows is outlined below:
Contributions, fixes, and improvements can be submitted directly against this project as a GitHub issue or pull request.
License
MIT License
Copyright (c) 2017 Palantir Technologies Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/palantir/osquery-configuration là nguồn chính thức.
palantir/osquery-configuration có bao nhiêu sao?
palantir/osquery-configuration có 898 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/palantir/osquery-configuration. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
palantir/osquery-configuration có những chủ đề gì?
GitHub topics của palantir/osquery-configuration: "detection", "incident-response", "information-security", "octo-correct-managed", "osquery". TopGit xếp repo vào nhóm mã nguồn mở.
palantir/osquery-configuration còn đang phát triển không?
Commit gần nhất trên palantir/osquery-configuration là 11 tháng trước (theo timestamp GitHub). Repo có 122 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
palantir/osquery-configuration viết bằng ngôn ngữ gì?
Dữ liệu TopGit chưa ghi nhận ngôn ngữ chính cho palantir/osquery-configuration. Xem danh sách file trên GitHub để biết chi tiết.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về osquery-configuration?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về osquery-configuration.