Information Gatheringawsebssecretscloudscanning

Dufflebag

Dufflebag searches public AWS Elastic Block Storage (EBS) snapshots for accidentally exposed secrets. It operates as an Elastic Beanstalk application within an AWS environment.

Description

Dufflebag is designed to identify secrets left in exposed EBS snapshots that may have been accidentally made public. These snapshots can contain sensitive information if proper access controls were not applied during their creation or sharing.

The tool is structured as an Elastic Beanstalk (EB) application rather than a standalone binary, enabling it to handle the complex process of accessing EBS volumes in AWS. This deployment model allows automatic scaling and easy teardown after use.

Use cases include security assessments of cloud infrastructure, reconnaissance for exposed data, and compliance audits for AWS environments where public snapshots might leak credentials or other secrets.

How It Works

Dufflebag automates the nontrivial process of reading EBS snapshots: cloning the snapshot, creating a volume, attaching it to an instance, mounting the volume, and scanning for secrets. Deployed as an Elastic Beanstalk app, it operates within AWS to leverage native services for volume manipulation. It processes one AWS region per instance.

Installation

bash
sudo apt install dufflebag

Flags

AWS_REGIONSpecifies the AWS region to scan (positional argument, not a flag)

Examples

Deploys and runs Dufflebag to search public EBS snapshots for secrets in the us-east-1 region
dufflebag us-east-1
Scans public EBS snapshots in the us-west-2 region for exposed secrets
dufflebag us-west-2
Searches EBS snapshots in the eu-west-1 region for accidentally exposed secrets
dufflebag eu-west-1
Runs Dufflebag against public EBS snapshots in the ap-southeast-1 region
dufflebag ap-southeast-1
Displays usage information and examples for the tool
dufflebag -h
Views additional documentation referenced by the tool for deployment details
cat /usr/share/doc/dufflebag/README.md
Updated 2026-04-16kali.org ↗