kibana/x-pack/plugins/cloud_defend
Alejandro Fernández Haro fd09c26d15
async-import plugins in the server side (#170856)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-15 00:55:56 -07:00
..
common [D4C] beta labels removed from k8s dashboard and tty output feature. (#162094) 2023-08-04 13:34:30 -07:00
public Consolidate <CodeEditor/> (#170313) 2023-11-03 09:30:58 -07:00
server async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
.i18nrc.json [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
jest.config.js
kibana.jsonc [Cloud Security] CODEOWNERS update (#164522) 2023-08-23 09:57:45 -07:00
README.md [Defend for containers] cloud_defend plugin UI boilerplate (#151533) 2023-02-28 16:46:30 -08:00
tsconfig.json Consolidate <CodeEditor/> (#170313) 2023-11-03 09:30:58 -07:00

Cloud Defend (for containers)

This plugin currently only exists to provide custom fleet policy UX for a set of new BPF LSM features. The first feature being container "drift prevention".

Drift prevention is a way to block when executables are created or modified. Our agent service detects these events, and applies a set of selectors and responses configured to either block, alert or both.

Example configuration

selectors:
  # default selector (user can modify or remove if they want)
  - name: default
    operation: [createExecutable, modifyExecutable, execMemFd]

  # example custom selector
  - name: nginxOnly
    containerImageName:
      - nginx

  # example selector used for exclude
  - name: excludeCustomNginxBuild
    containerImageTag:
      - staging

# responses are evaluated from top to bottom
# only the first response with a match will run its actions
responses:
  - match: [nginxOnly]
    exclude: [excludeCustomNginxBuild]
    actions: [alert, block]

  # default response
  # delete this if no default response needed
  - match: [default]
    actions: [alert]

Development

pre commit checks

node scripts/type_check.js --project x-pack/plugins/cloud_defend/tsconfig.json
node scripts/eslint.js x-pack/plugins/cloud_defend
yarn test:jest x-pack/plugins/cloud_defend

See the kibana contributing guide for instructions setting up your development environment.