mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-21 19:44:57 +00:00
New tests for rule + exception, macro with unknown source
Add new test cases for a rule with an unknown source *and* an exception, and a macro with an unknown source. The first results in a rule warning (and no error), and the second prints an error and skips. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
- rule: Cloudtrail Create Instance
|
||||
desc: Detect Creating an EC2 Instance
|
||||
condition: evt.num > 0 and ct.name="StartInstances"
|
||||
output: EC2 Instance Created (evtnum=%evt.num info=%evt.plugininfo id=%ct.id user name=%json.value[/userIdentity/userName])
|
||||
exceptions:
|
||||
- name: user_secreid
|
||||
fields: [aws.user, aws.region]
|
||||
priority: INFO
|
||||
source: aws_cloudtrail
|
4
test/rules/plugins/cloudtrail_macro.yaml
Normal file
4
test/rules/plugins/cloudtrail_macro.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
- macro: Some Cloudtrail Macro
|
||||
condition: aws.user=bob
|
||||
source: aws_cloudtrail
|
||||
|
Reference in New Issue
Block a user