aquasecurity / aquasecurity/tracee-action

properly scope file_writes policy

Open
#52 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Open Policy Agent
Stars
82
Forks
9
PR merge metrics
No merged PRs in 30d

Description

file_writes policy has a global scope and an even filter:

```yaml
scope:
- global
rules:
- event: security_file_open
filter:
- args.pathname=$WORKSPACE
```

could this be improved to reduce the scope of the trace before filtering the event?

Contributor guide

Open the contributing guide

Research direction

Locate the file_writes policy configuration and trace how its global scope and event filter are evaluated. Compare the current scoping and filtering behavior, then verify that the trace is narrowed before security_file_open events are filtered for $WORKSPACE.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.