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

Đang mở
#654 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

@devteamaegis đang làm issue này rồi.

Từ ngày 4/11/2026.

  • #668 của @devteamaegis — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, python
Lĩnh vực
security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
JavaScript
Star
2.3k
Fork
224
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của salesforce/cloudsplaining

Tất cả issue của salesforce/cloudsplaining

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.