Skip to content

STAC-3401 blacklisted processes - #71

Merged
TizianoPerrucci merged 7 commits into
masterfrom
stac-3401-blacklist-processes
Mar 14, 2019
Merged

STAC-3401 blacklisted processes#71
TizianoPerrucci merged 7 commits into
masterfrom
stac-3401-blacklist-processes

Conversation

@zandrewitte

Copy link
Copy Markdown

What does this PR do?

A brief description of the change being made with this pull request.
Adds default process blacklist of process that are typically uninteresting.

Motivation

What inspired you to submit this pull request?
STAC-3401 Story to filter uninteresting processes

Additional Notes

Anything else we should know when reviewing?

Comment thread pkg/config/config_template.yaml Outdated
- "^sshd:"
- "^/bin/bash"
- "^/usr/bin/bash"
- "^/usr/lib/systemd/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is a * needed ?
I see other example like ^/usr/sbin which correctly ignores sshd (as I can see from the molecule expectations)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm yes I think the * is not needed. I'll double check. The comparison / matching happens on the first argument of the cmd line. So in the case of sshd it actually matches only for ^sshd:

- "^pickup"
- "^qmgr"
# Windows Specific patterns
- "cmd.exe"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we order them alphabetically please :) ?

# blacklist_patterns:
blacklist_patterns:
# Linux Specific patterns
- "^/sbin/"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we order them alphabetically please :) ?

@TizianoPerrucci
TizianoPerrucci merged commit bbaf280 into master Mar 14, 2019
@TizianoPerrucci
TizianoPerrucci deleted the stac-3401-blacklist-processes branch March 14, 2019 11:39
TizianoPerrucci added a commit that referenced this pull request Mar 22, 2019
TizianoPerrucci added a commit that referenced this pull request Mar 22, 2019
TizianoPerrucci pushed a commit that referenced this pull request Mar 22, 2019
* stac-3401 blacklisted process names

* added process filtering test to molecule

* fixed lib/system/* process filtering

* alphabetically order the blacklisted patterns, fix * wildcard patterns, added windows 2012 R2 server to Vagrant boxes
@zandrewitte
zandrewitte restored the stac-3401-blacklist-processes branch January 19, 2022 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants