Data Exfiltration: flag snapshot, export and batch secret-read actions
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
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:
- 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).
- 主要言語
- JavaScript
- スター
- 2.3k
- フォーク
- 224
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
salesforce/cloudsplaining のほかの issue
-
include-actions in exclusions file has no effect on Data Exfiltration finding category対応中かも @nitrocode が 105 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
salesforce/cloudsplaining#624 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
salesforce/cloudsplaining#585 ·
-
Proposal: Implement Automated Logic Ingestion for IAM Privilege Escalation via Pathfinding.cloudオープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
salesforce/cloudsplaining#537 · コメント 1 件 · リアクション 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
salesforce/cloudsplaining#386 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
salesforce/cloudsplaining#324 ·
salesforce/cloudsplaining の issue をすべて見る
似ている issue
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount due対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
verified whatsapp
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 6 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信