Data Exfiltration: flag snapshot, export and batch secret-read actions

Open
#654 1 comment 0 reactions 0 assignees View on GitHub

@devteamaegis is already working on this.

Since Nov 4, 2026.

  • #668 by @devteamaegis — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, python
Domain
security

Research direction

Start by reading cloudsplaining/shared/constants.py, especially READ_ONLY_DATA_EXFILTRATION_ACTIONS and the DataExfiltration risk definition. Review the related issues #272 and #624, then decide how write-level snapshot and export actions should be represented alongside secret and parameter reads. Done means the selected design flags the listed actions in the Data Exfiltration assessment.

Written by the indexing model from the issue text.

Description

The Data Exfiltration finding flags five actions (READ_ONLY_DATA_EXFILTRATION_ACTIONS in
cloudsplaining/shared/constants.py): s3:GetObject, ssm:GetParameter, ssm:GetParameters,
ssm:GetParametersByPath and secretsmanager:GetSecretValue.

The DataExfiltration risk definition in the same file also says rds:CopyDBSnapshot and
rds:CreateDBSnapshot "can be used to exfiltrate RDS database contents", but neither is in the list,
so a policy that allows them on * is not flagged.

Proposed additions

Secret and parameter reads (the same shape as the existing entries):

Action Why
secretsmanager:BatchGetSecretValue Returns the values of up to 20 secrets in one call.
ssm:GetParameterHistory Returns a parameter's past values, decrypted when WithDecryption is set.

Snapshot, copy and export. Each puts a full copy of a data store where it can be shared with
another account or downloaded:

Action Why
rds:CreateDBSnapshot, rds:CopyDBSnapshot Already named in the risk definition.
rds:CreateDBClusterSnapshot, rds:CopyDBClusterSnapshot The Aurora cluster equivalents.
rds:StartExportTask Exports a DB or cluster snapshot to S3.
ec2:CreateSnapshot, ec2:CreateSnapshots, ec2:CopySnapshot EBS volume snapshots and copies.
ec2:CreateInstanceExportTask Exports an instance's disks to S3.
ec2:ExportImage Exports an AMI to S3.
dynamodb:ExportTableToPointInTime Exports a whole table to S3.
Design question

These are Write-level actions, so they don't fit a list named READ_ONLY_…. Two options:

  1. A second list, reported under the same Data Exfiltration finding.
  2. A separate finding type for "copies data out of its store".

Related: #272 (more read actions, closed) and #624 (include-actions doesn't reach the Data
Exfiltration check).

Dominant language
JavaScript
Stars
2.3k
Forks
224
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from salesforce/cloudsplaining

All issues in salesforce/cloudsplaining

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.