Skip to content

fix(output): honor include-actions for data exfiltration findings - #625

Open
nitrocode wants to merge 1 commit into
salesforce:masterfrom
nitrocode:fix/data-exfiltration-include-actions
Open

fix(output): honor include-actions for data exfiltration findings#625
nitrocode wants to merge 1 commit into
salesforce:masterfrom
nitrocode:fix/data-exfiltration-include-actions

Conversation

@nitrocode

@nitrocode nitrocode commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Problem

The DataExfiltration finding category only checks actions against the
hardcoded READ_ONLY_DATA_EXFILTRATION_ACTIONS list. Actions added via
include-actions in an exclusions file have no effect on this category,
even though other finding categories (e.g. Infrastructure Modification)
already respect include-actions.

Repro

  1. Create an exclusions file with include-actions: [s3:ListBucket]
  2. Scan a policy that grants s3:ListBucket on Resource: "*" with no condition
  3. Expected: s3:ListBucket appears under DataExfiltration.findings
  4. Actual: it does not, silently

Fix

Union include-actions into the set of actions checked by
PolicyFinding.data_exfiltration, so custom actions opted in via the
exclusions config are flagged consistently with how other finding
categories already treat include-actions.

Added a regression test covering both the include-actions and
no-include-actions cases.

Note: this is a behavior change for anyone already using include-actions
today, they may see new DataExfiltration findings that were previously
silently missed.

Fixes #624

The Data Exfiltration finding category only checked the hardcoded
READ_ONLY_DATA_EXFILTRATION_ACTIONS list, so actions added via
include-actions in an exclusions file had no effect on this category,
even though other finding categories (e.g. Infrastructure Modification)
already respect include-actions.

Union include-actions into the set of actions checked for data
exfiltration, so custom actions opted in via the exclusions config are
flagged consistently across finding categories.

Fixes salesforce#624
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.

include-actions in exclusions file has no effect on Data Exfiltration finding category

1 participant