Correct errors
This commit is contained in:
@@ -26,7 +26,7 @@ title: Auditing with Falco
|
|||||||
[Falco](https://falco.org/) is an open source project for intrusion and abnormality detection for Cloud Native platforms.
|
[Falco](https://falco.org/) is an open source project for intrusion and abnormality detection for Cloud Native platforms.
|
||||||
This section describes how to set up Falco, how to send audit events to the Kubernetes Audit endpoint exposed by Falco, and how Falco applies a set of rules to automatically detect suspicious behavior.
|
This section describes how to set up Falco, how to send audit events to the Kubernetes Audit endpoint exposed by Falco, and how Falco applies a set of rules to automatically detect suspicious behavior.
|
||||||
-->
|
-->
|
||||||
[Falco](https://falco.org/)是一个用于云原生平台入侵和异常检测开源项目。本节介绍如何设置Falco,如何将审计事件发送到Falco公开的Kubernetes Audit端点,以及Falco如何应用一组规则来自动检测可疑行为。
|
[Falco](https://falco.org/)是一个开源项目,用于为云原生平台提供入侵和异常检测。本节介绍如何设置 Falco、如何将审计事件发送到 Falco 公开的 Kubernetes Audit 端点、以及 Falco 如何应用一组规则来自动检测可疑行为。
|
||||||
|
|
||||||
{{% /capture %}}
|
{{% /capture %}}
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ Install Falco by using one of the following methods:
|
|||||||
- [Kubernetes DaemonSet][falco_installation]
|
- [Kubernetes DaemonSet][falco_installation]
|
||||||
- [Falco Helm Chart][falco_helm_chart]
|
- [Falco Helm Chart][falco_helm_chart]
|
||||||
-->
|
-->
|
||||||
- [Standalone Falco][falco_installation]
|
- [独立安装 Falco][falco_installation]
|
||||||
- [Kubernetes DaemonSet][falco_installation]
|
- [Kubernetes DaemonSet][falco_installation]
|
||||||
- [Falco Helm Chart][falco_helm_chart]
|
- [Falco Helm Chart][falco_helm_chart]
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ webserver:
|
|||||||
<!--
|
<!--
|
||||||
This configuration is typically found in the `/etc/falco/falco.yaml` file. If Falco is installed as a Kubernetes DaemonSet, edit the `falco-config` ConfigMap and add this configuration.
|
This configuration is typically found in the `/etc/falco/falco.yaml` file. If Falco is installed as a Kubernetes DaemonSet, edit the `falco-config` ConfigMap and add this configuration.
|
||||||
-->
|
-->
|
||||||
配置通常可以在`/ etc / falco / falco.yaml`文件中找到。 如果Falco作为Kubernetes DaemonSet安装,请编辑`falco-config` ConfigMap并添加此配置。
|
此配置通常位于 `/etc/falco/falco.yaml` 文件中。如果 Falco 作为 Kubernetes DaemonSet 安装,请编辑 `falco-config` ConfigMap 并添加此配置。
|
||||||
<!--
|
<!--
|
||||||
#### Configure Kubernetes Audit
|
#### Configure Kubernetes Audit
|
||||||
-->
|
-->
|
||||||
@@ -94,7 +94,7 @@ This configuration is typically found in the `/etc/falco/falco.yaml` file. If Fa
|
|||||||
users: []
|
users: []
|
||||||
EOF
|
EOF
|
||||||
-->
|
-->
|
||||||
1. 为 [kube-apiserver][kube-apiserver] webhook 审计后端创建一个[kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/)配置文件。
|
1. 为 [kube-apiserver][kube-apiserver] webhook 审计后端创建一个[kubeconfig](/docs/concepts/configuration/organize-cluster-access-kubeconfig/)文件。
|
||||||
|
|
||||||
cat <<EOF > /etc/kubernetes/audit-webhook-kubeconfig
|
cat <<EOF > /etc/kubernetes/audit-webhook-kubeconfig
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -119,7 +119,7 @@ This configuration is typically found in the `/etc/falco/falco.yaml` file. If Fa
|
|||||||
--audit-policy-file=/etc/kubernetes/audit-policy.yaml --audit-webhook-config-file=/etc/kubernetes/audit-webhook-kubeconfig
|
--audit-policy-file=/etc/kubernetes/audit-policy.yaml --audit-webhook-config-file=/etc/kubernetes/audit-webhook-kubeconfig
|
||||||
```
|
```
|
||||||
-->
|
-->
|
||||||
2. 使用以下选项开启 [kube-apiserver][kube-apiserver]:
|
2. 使用以下选项启动 [kube-apiserver][kube-apiserver]:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
--audit-policy-file=/etc/kubernetes/audit-policy.yaml --audit-webhook-config-file=/etc/kubernetes/audit-webhook-kubeconfig
|
--audit-policy-file=/etc/kubernetes/audit-policy.yaml --audit-webhook-config-file=/etc/kubernetes/audit-webhook-kubeconfig
|
||||||
@@ -137,7 +137,7 @@ There are three classes of rules.
|
|||||||
The first class of rules looks for suspicious or exceptional activities, such as:
|
The first class of rules looks for suspicious or exceptional activities, such as:
|
||||||
-->
|
-->
|
||||||
|
|
||||||
专门用于Kubernetes审计事件的规则可以在[k8s_audit_rules.yaml] [falco_k8s_audit_rules]中找到。 如果Audit Rules是作为本机软件包安装或使用官方Docker镜像安装的,则Falco会将规则文件复制到`/etc/falco/`中,以便可以使用。
|
专门用于 Kubernetes 审计事件的规则可以在 [k8s_audit_rules.yaml][falco_k8s_audit_rules] 中找到。如果审计规则是作为本机软件包安装或使用官方 Docker 镜像安装的,则 Falco 会将规则文件复制到 `/etc/falco/` 中以便使用。
|
||||||
|
|
||||||
共有三类规则。
|
共有三类规则。
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ The first class of rules looks for suspicious or exceptional activities, such as
|
|||||||
-在 kube-system 或 kube-public 命名空间中创建 pod 或服务帐户。
|
-在 kube-system 或 kube-public 命名空间中创建 pod 或服务帐户。
|
||||||
-尝试修改或删除系统 ClusterRole。
|
-尝试修改或删除系统 ClusterRole。
|
||||||
-创建一个 ClusterRoleBinding 到 cluster-admin 角色。
|
-创建一个 ClusterRoleBinding 到 cluster-admin 角色。
|
||||||
-使用通配动词或资源创建ClusterRole。 例如,过度赋权。
|
-创建 ClusterRole 时在动词或资源中使用通配符。 例如,过度赋权。
|
||||||
-创建具有写权限的 ClusterRole 或可以在 Pod 上执行命令的 ClusterRole。
|
-创建具有写权限的 ClusterRole 或可以在 Pod 上执行命令的 ClusterRole。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -197,7 +197,7 @@ The final class of rules simply displays any Audit Event received by Falco. This
|
|||||||
For further details, see [Kubernetes Audit Events][falco_ka_docs] in the Falco documentation.
|
For further details, see [Kubernetes Audit Events][falco_ka_docs] in the Falco documentation.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
最后一类规则显示Falco收到的所有审核事件。默认情况下,此规则是禁用的,因为它可能会很吵。
|
最后一类规则仅负责显示 Falco 收到的所有审核事件。默认情况下,此规则是禁用的,因为它可能会很吵。
|
||||||
|
|
||||||
有关更多详细信息,请参阅 Falco 文档中的[Kubernetes审计事件][falco_ka_docs]。
|
有关更多详细信息,请参阅 Falco 文档中的[Kubernetes审计事件][falco_ka_docs]。
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user