Google Hacking: Search Operators and the GHDB, Used Safely
Google hacking, or Google dorking, means combining search operators such as site:, filetype: and intitle: to find pages that were never meant to be public. The Google Hacking Database (GHDB), hosted on Exploit-DB, collects such queries by category.
Topic: Security Tools, Authorized Labs & CTFs in Cybersecurity & Ethical Hacking · Explainer
Also covers: Ethical Hacking, Penetration Testing
Quick answer: Google hacking, or Google dorking, means combining search operators such as site:, filetype: and intitle: to find pages that were never meant to be public. The Google Hacking Database (GHDB), hosted on Exploit-DB, collects such queries by category. Used safely, these techniques become an exposure audit: you search only your own domains, under a written policy, record what you find, fix it at the source and ask search engines to drop cached copies. Running the same queries to open or download other organisations’ exposed files is a different matter and can breach the IT Act. This guide gives a simple policy for authorised audits.
Key takeaways
- Search operators are ordinary features; how you use the results is what matters.
- Limit every audit query to domains you own or are authorised to assess.
- Treat the GHDB as a checklist of categories, not a list of targets.
- Fix leaks at the source first, then request removal from search results.
- Keep evidence and approvals, as for any security test.
Table of Contents
- What Is Google Hacking?
- Which Operators Matter for an Audit?
- How Should You Use the GHDB?
- What Should an Exposure Audit Policy Say?
- How Do You Run the Audit?
- How Do You Fix and Remove Findings?
- Where Are the Legal and Ethical Lines?
- References
What Is Google Hacking?
Search engines index whatever their crawlers can reach. Misconfigured servers, open directories and forgotten documents end up in results. MITRE lists attacker use of search engines as T1593.002, and the OWASP Web Security Testing Guide includes search engine discovery as a test step. Defenders should do it first. For a full operator reference, see our Google dorking guide.
Which Operators Matter for an Audit?
| Operator | Audit use |
|---|---|
site: | Restrict results to your domain or subdomains |
filetype: | Find indexed documents such as PDF, XLSX or LOG files |
intitle: | Find pages with telling titles such as directory listings |
- (minus) | Exclude known, expected pages to reduce noise |
"exact phrase" | Find internal labels such as a classification marking |
Google documents supported operators on its Search Help page; some older operators have been retired, so test before relying on one.
How Should You Use the GHDB?
The GHDB groups queries into categories such as files containing passwords, sensitive directories and vulnerable servers. Use the categories to plan which kinds of exposure to check on your own estate, and always add your site: restriction. Our GHDB explainer covers its history and structure.
What Should an Exposure Audit Policy Say?
| Policy element | Example content |
|---|---|
| Scope | List of owned domains and subdomains |
| Approval | Named owner signs off; dates recorded |
| Allowed actions | Search and view result snippets; open only own pages |
| Data handling | Screenshots stored encrypted; personal data minimised |
| Reporting | Findings to system owner with a fix deadline |
| Frequency | Quarterly and after major releases |
This mirrors the planning stage in NIST SP 800-115.
How Do You Run the Audit?
Start broad, then narrow. Example queries for your own domain:
site:example.com filetype:pdf "internal use only"
site:example.com intitle:"index of"
site:example.com -site:www.example.com
The last query reveals indexed subdomains you may have forgotten. Record each finding with the URL, date, screenshot and owner. Repeat on other search engines, since indexes differ.
How Do You Fix and Remove Findings?
- Remove or protect the file on the server, or add authentication.
- Disable directory listing on the web server.
- Use a
noindexheader for pages that must stay public but unlisted. - Request removal of outdated results through Google Search Central.
- Rotate any credentials or keys that were exposed.
Where Are the Legal and Ethical Lines?
Searching is legal. Downloading or using data from another organisation’s systems without permission can fall under Sections 43 and 66 of the IT Act, 2000. If you stumble on someone else’s leak, do not download it; report it to the organisation or to CERT-In. To learn authorised reconnaissance, ask about our ethical hacking training.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0