Data Exfiltration: flag snapshot, export and batch secret-read actions
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
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:
- A second list, reported under the same Data Exfiltration finding.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from salesforce/cloudsplaining
-
include-actions in exclusions file has no effect on Data Exfiltration finding categoryPossibly taken @nitrocode claimed this 104 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 64/100
salesforce/cloudsplaining#624 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
salesforce/cloudsplaining#585 ·
-
Proposal: Implement Automated Logic Ingestion for IAM Privilege Escalation via Pathfinding.cloudOpen
Difficulty 4/5 3-5 days Newbie friendliness 45/100
salesforce/cloudsplaining#537 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
salesforce/cloudsplaining#386 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
salesforce/cloudsplaining#324 ·
All issues in salesforce/cloudsplaining
Similar issues
-
verified whatsapp
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 6 days
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
salesforce/sa11y#1022 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
githubnext/gh-aw-workshop#6379 ·
Maintainers usually reply within 1 day
-
FEATURE REQUEST
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
linuxmint/cinnamon-spices-applets#9386 ·
Maintainers usually reply within 1 day