mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
This PR closes https://github.com/fleetdm/fleet/issues/21108 @noahtalerman, I double-checked all redirects, and they are working. Clicking through the URLs in [this spreadsheet](https://docs.google.com/spreadsheets/d/1djVynIMuJK4pT5ziJW12CluVqcaoxxnCLaBO3VXfAt4/edit?usp=sharing) is a pretty quick way to go through them all. Note that "Audit logs" and "Understanding host vitals" redirect to the contributor docs on GitHub, so they will throw a 404 until this is merged. Some new guides benefitted from a name change, so they make more sense as stand-alone guides, and also so that we don't have to mess around with more redirects later. Those name changes followed [this convention](https://fleetdm.com/handbook/company/communications#headings-and-titles), which was recently documented in the handbook. Have fun! --------- Co-authored-by: Eric <eashaw@sailsjs.com> Co-authored-by: Noah Talerman <noahtal@umich.edu>
55 lines
2.7 KiB
Markdown
55 lines
2.7 KiB
Markdown
# Standard query library
|
|
|
|
Fleet's [standard query library](https://fleetdm.com/queries) includes a growing collection of useful policies and miscellaneous queries for organizations deploying Fleet and osquery.
|
|
|
|
## Importing the queries in Fleet
|
|
|
|
After cloning the [fleetdm/fleet](https://github.com/fleetdm/fleet) repo, import the queries and policies found in `docs/01-Using-Fleet/standard-query-library/standard-query-library.yml` using [fleetctl](https://fleetdm.com/docs/using-fleet/fleetctl-cli):
|
|
|
|
```sh
|
|
fleetctl apply -f docs/01-Using-Fleet/standard-query-library/standard-query-library.yml
|
|
```
|
|
|
|
## Contributors
|
|
|
|
Do you want to add your own query?
|
|
|
|
1. Please copy the following YAML section and paste it at the bottom of the [`standard-query-library.yml`](https://github.com/fleetdm/fleet/blob/main/docs/01-Using-Fleet/standard-query-library/standard-query-library.yml) file.
|
|
|
|
```yaml
|
|
---
|
|
apiVersion: v1
|
|
kind: query
|
|
spec:
|
|
name: What is your query called? Please use a human-readable query name.
|
|
platforms: What operating systems support your query? This can usually be determined by the osquery tables included in your query. Heading to the https://osquery.io/schema webpage to see which operating systems are supported by the tables you include.
|
|
description: Describe your query. What information does your query reveal? (optional)
|
|
query: Insert query here
|
|
purpose: What is the goal of running your query? Ex. Detection
|
|
remediation: Are there any remediation steps to resolve the detection triggered by your query? If not, insert "N/A."
|
|
contributors: zwass,mike-j-thomas
|
|
tags: Keywords that can help users find other relevant queries; a comma should separate each tag. (e.g., "foo, bar")
|
|
```
|
|
|
|
2. Replace each field and submit a pull request to the fleetdm/fleet GitHub repository.
|
|
|
|
3. If you want to contribute multiple queries, please open one pull request that includes all your queries.
|
|
|
|
For instructions on submitting pull requests to Fleet, check out [the Committing Changes
|
|
section](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#committing-changes) in the Contributors
|
|
documentation.
|
|
|
|
|
|
## Additional resources
|
|
|
|
Listed below are great resources that contain additional queries.
|
|
|
|
- Osquery (https://github.com/osquery/osquery/tree/master/packs)
|
|
- Palantir osquery configuration (https://github.com/palantir/osquery-configuration/tree/master/Fleet)
|
|
|
|
<meta name="category" value="guides">
|
|
<meta name="authorGitHubUsername" value="noahtalerman">
|
|
<meta name="authorFullName" value="Noah Talerman">
|
|
<meta name="publishedOn" value="2024-04-04">
|
|
<meta name="articleTitle" value="Standard query library">
|
|
<meta name="description" value="Learn how to use and contribute to Fleet's standard query library.">
|