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

オープン
#654 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@devteamaegis がすでに取り組んでいます。

2026年11月4日 から。

  • #668 @devteamaegis による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
aws, python
領域
security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
JavaScript
スター
2.3k
フォーク
224
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

salesforce/cloudsplaining のほかの issue

salesforce/cloudsplaining の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。