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

fix egrep rule and ncat rule #617

Merged
merged 2 commits into from
Jun 5, 2019
Merged

fix egrep rule and ncat rule #617

merged 2 commits into from
Jun 5, 2019

Conversation

dms1lva
Copy link
Contributor

@dms1lva dms1lva commented May 23, 2019

fixed the grep binaries list that had egre instead of egrep
added the ncat command line arguments -c and -e that can be used to spawn remote shells

Launching this : ncat -l localhost 4443 -e "/bin/ls"

would not match anything when running: sudo sysdig "proc.name = \"ncat\" and (proc.args contains \"--sh-exec\" or proc.args contains \"--exec\")"

using sudo sysdig "proc.name = \"ncat\" and (proc.args contains \"--sh-exec\" or proc.args contains \"--exec\" or proc.args contains \"-e\")" fixes this

falco-CLA-1.0-signed-off-by: Dario Martins Silva <dmsilva@protonmail.com>
@fntlnz fntlnz self-requested a review May 24, 2019 13:17
@fntlnz fntlnz requested review from mstemm, Kaizhe and leodido May 29, 2019 14:13
rules/falco_rules.yaml Outdated Show resolved Hide resolved
falco-CLA-1.0-signed-off-by: Dario Martins Silva <dmsilva@protonmail.com>
@mstemm
Copy link
Contributor

mstemm commented Jun 5, 2019

The cause of the test failures was a recent sysdig change that I fixed with #646, and not due to the rules, so I'll go ahead and merge.

@mstemm mstemm merged commit 7a56f1c into falcosecurity:dev Jun 5, 2019
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.

None yet

4 participants