Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule: PTRACE anti-debug attempt #40

Merged
merged 1 commit into from
May 24, 2023

Conversation

Brucedh
Copy link
Contributor

@Brucedh Brucedh commented Mar 28, 2023

Signed-off-by: Alessandro Brucato [email protected]

What type of PR is this?

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

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind rule-create

Any specific area of the project related to this PR?

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

/area rules

/area registry

/area build

/area documentation

What this PR does / why we need it:
The ptrace system call is used by debuggers, such as GDB, to examine a target process. Malicious programs will often try to prevent this by using the ptrace system call first, preventing other programs from using it on them. This rule detects that behavior. Legitimate processes may also do this for DRM or diagnostic purposes.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
This PR has been ported from falcosecurity/falco#2227

@poiana
Copy link

poiana commented Mar 28, 2023

@Brucedh: The label(s) kind/rule-create cannot be applied, because the repository doesn't have them.

In response to this:

Signed-off-by: Alessandro Brucato [email protected]

What type of PR is this?

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

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind rule-create

Any specific area of the project related to this PR?

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

/area rules

/area registry

/area build

/area documentation

What this PR does / why we need it:
The ptrace system call is used by debuggers, such as GDB, to examine a target process. Malicious programs will often try to prevent this by using the ptrace system call first, preventing other programs from using it on them. This rule detects that behavior. Legitimate processes may also do this for DRM or diagnostic purposes.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
This PR has been ported from falcosecurity/falco#2227

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@poiana
Copy link

poiana commented Mar 28, 2023

Welcome @Brucedh! It looks like this is your first PR to falcosecurity/rules 🎉

@leogr
Copy link
Member

leogr commented Mar 28, 2023

cc @loresuso @darryk10

@poiana
Copy link

poiana commented May 24, 2023

LGTM label has been added.

Git tree hash: 24545f38a8a3978e69cce257b11bbda0aa2d529b

@leogr
Copy link
Member

leogr commented May 24, 2023

/kind rule-create

@poiana
Copy link

poiana commented May 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Brucedh, leogr, 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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit afc7ff7 into falcosecurity:main May 24, 2023
@jasondellaluce jasondellaluce added this to the falco-rules-1.0.0 milestone Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants