falcosecurity / rules

Falco rule repository
https://falcosecurity.github.io/rules/
Apache License 2.0
89 stars 64 forks source link

new(rules): add modification to authorized keys rule #166

Closed loresuso closed 9 months ago

loresuso commented 9 months ago

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind feature

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area rules

/area registry

/area build

/area documentation

Proposed rule maturity level

Uncomment one (or more) /area <> lines (only for PRs that add or modify rules):

/area maturity-stable

/area maturity-incubating

/area maturity-sandbox

/area maturity-deprecated

What this PR does / why we need it: Adding ssh keys to authorized_keys file is a common persistence/escalation technique, as reported here. Read rule's description for further details.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

loresuso commented 9 months ago

cc @incertum @darryk10

loresuso commented 9 months ago

Hello @incertum, thanks for your valuable feedback as usual! Comments addressed

github-actions[bot] commented 9 months ago

Rules files suggestions

falco-incubating_rules.yaml

Comparing 8977ff24cb2c9f12c8334801cb869c7eda97ff0f with latest tag falco-incubating-rules-2.0.0

Minor changes:

poiana commented 9 months ago

LGTM label has been added.

Git tree hash: ad9e5641aaa605fa93fe367ea2a1ece9b16c26e7

poiana commented 9 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: darryk10, incertum, loresuso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/falcosecurity/rules/blob/main/OWNERS)~~ [incertum] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment