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

Aperta
#654 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@devteamaegis ci sta già lavorando.

Dal 4/11/2026.

  • #668 di @devteamaegis — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
aws, python
Ambito
security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
2.3k
Fork
224
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di salesforce/cloudsplaining

Tutte le issue di salesforce/cloudsplaining

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.