Courseiva
easyMultiple ChoiceObjective-mapped

Passive Discovery of Amazon S3 Buckets via Google Dorks

A penetration tester is tasked with discovering all publicly accessible Amazon S3 buckets that belong to a target company. Which technique is MOST effective for this purpose?

Quick Answer

The correct answer is querying Google dorks for 'site:s3.amazonaws.com [target_company]'. This technique is most effective because it leverages Google’s pre-crawled index to passively discover publicly accessible S3 buckets without sending any traffic to the target’s infrastructure, making it a true passive reconnaissance method. On the CompTIA PenTest+ PT0-002 exam, this question tests your understanding of OSINT and passive discovery techniques, specifically how misconfigured cloud storage can be exposed via search engines. A common trap is confusing this with active scanning tools like Nmap or bucket enumeration scripts, which generate network traffic and risk detection. Remember the memory tip: “Dork the bucket, don’t knock the bucket”—if you can find it in Google’s index, you don’t need to probe it directly.

⚠ Common exam trap

It's easy for candidates to think DNS enumeration (Option B) or port scanning (Option A) are effective for discovering cloud storage resources, but these methods fail because S3 buckets are external to the target's network and are not tied to the target's DNS or IP ranges.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Querying Google dorks for 'site:s3.amazonaws.com [target_company]'

Google dorks allow a penetration tester to search for indexed S3 bucket URLs that contain the target company's name, revealing publicly accessible buckets without direct interaction with the target's infrastructure. This technique leverages Google's crawlers to find buckets that may have been inadvertently exposed or misconfigured, making it highly effective for passive reconnaissance.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Scanning the target's IP ranges for open ports 443

    Why it's wrong here

    S3 buckets are hosted by AWS and do not necessarily resolve to the target's IP ranges; scanning target IPs will not discover S3 buckets.

  • Using dnsdumpster.com to find subdomains

    Why it's wrong here

    dnsdumpster finds subdomains, not S3 buckets; while some subdomains may point to S3, this is not a direct or efficient method.

  • Guessing bucket names based on common patterns

    Why it's wrong here

    Guessing bucket names is a manual and low-success approach; it may work occasionally but is not a systematic or effective technique.

  • Querying Google dorks for 'site:s3.amazonaws.com [target_company]'

    Why this is correct

    Google dorking using the site operator to search 's3.amazonaws.com' with the company name can find publicly listed bucket URLs. This is a proven passive reconnaissance technique.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This PT0-003 question is part of Courseiva's 185-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on PT0-003

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A penetration tester wants to identify all publicly accessible Amazon S3 buckets that belong to a specific organization. Which technique is most effective for passive reconnaissance?

easy
  • A.Use Google dorks to search for bucket names and URLs.
  • B.Send DNS queries for common bucket name prefixes.
  • C.Use nmap to scan all AWS IP ranges for open ports.
  • D.Perform a DNS zone transfer on the target organization's domain.

Why A: Google dorks (e.g., site:s3.amazonaws.com "companyname") allow a penetration tester to passively discover publicly accessible S3 bucket names and URLs indexed by search engines without sending any traffic to the target organization. This technique leverages existing search engine caches, making it purely passive and highly effective for identifying misconfigured buckets that have been crawled.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PT0-003 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PT0-003 exam.