Revesery
Dashboard
Home
Explore
Groups
Jobs
Tools
Rewards
Social Media
VideoBulk VideoProfile PictureSlide ShowSound / AudioUnfollowersDouyin
VideoBulk Video
VideoStoriesBulk VideoProfile PictureSlide ShowUnfollowersStalker CheckSoon
VideoUnfollowersLink Cleaner
MP4 · VideoMP3 · Audio
WhatsApp
Profile PictureCover Art & Preview
Profile Picture
Video & Image
Video & Photo
Utilities
AI Chat
Fake SNBTWatermark KTP
TeraboxVidey
Deep Voice CheckerReview Calculator
Surat IzinFoto Hijau Biru MerahQR GeneratorSoon
Case ConverterCookie Converter
Request a toolImage ToolsSoonText ToolsSoon
Premium
Soon
Add bookmarks
Revesery
HomeExploreGroupsJobsContributors
Most read
↑↓ selectEnter openEsc close/ to search from anywhere
Login
GA
Ghaisan AlfatihusyawalRookie
@gican · Nov 1, 2026 · 125 views
#Tools

How to Find Leaked AWS Keys in Your Own Code

Your site's JavaScript is public, and so is every repo you push. That means a stray AWS access key can sit there for months with nobody noticing.

Two grep one-liners will tell you in seconds whether a key ID is hiding in your own pages or your public repos. Long-term keys and temporary ones show up the exact same way.

How to Find Leaked AWS Keys in Your Own Code

What You Need

  • A site or repository you own or have permission to scan.
  • curl and grep on your machine, plus git for the repo check.

Tutorial

  1. Scan your live site's JavaScript for key IDs.
curl -s TARGET | grep -oP 'https?://[^"]+\.js' | xargs -I{} curl -s {} | grep -oP '\bA[KS]IA[0-9A-Z]{16}\b'

Swap TARGET for your own URL. The first grep pulls every script address out of the page, then the second checks each one.

  1. Clone a public repo shallowly and grep it for the same pattern.
git clone --depth=1 TARGET/repo.git /tmp/r && grep -rP '\bA[KS]IA[0-9A-Z]{16}\b' /tmp/r

Replace TARGET/repo.git with your repo's address. The --depth=1 flag keeps the download to the latest commit, so it finishes fast.

Wrapping Up

A match means an access key ID is sitting in code anyone can read, and both long-term and temporary keys are easy to leak and easy to abuse. Treat any hit as already compromised and rotate that key rather than just deleting the line. Run the two commands again after a big merge or a deploy and you will catch the next one early.

Liked Ghaisan Alfatihusyawal's share? Revesery is where people swap what they're actually building.

Join with Google
Be the first to sayBe first

Does this still work?

Nobody's checked yet

Sign in to tell everyone how it went.

Continue with Google

Be the first — one tap saves the next person an hour.

It takes 3 reports in 30 days to set the status.

Comments

Join the conversation — sign in to comment.

Sign In Now

No comments yet — start the conversation!

Read it later?
We'll email you the link to this share. Nothing else.

More shares you might like

ToolsHow to Get a Free .aidi Domain for a YearGhaisan Alfatihusyawal · 15h · 20 viewsToolsHow to Audit Your Site for Free With SEOmatorGhaisan Alfatihusyawal · 1d · 26 viewsNewsFirecrawl Local Scrapes 37x Faster With 230x Less MemoryGhaisan Alfatihusyawal · 2d · 36 viewsAIHow to Make AI Agents Write Modern Frontend CodeGhaisan Alfatihusyawal · 3d · 46 viewsAIGoogle's PaperOrchestra Turns Raw Ideas Into LaTeX PapersGhaisan Alfatihusyawal · 5d · 58 viewsToolsHow to Get 1 Million Free DeepL API CharactersGhaisan Alfatihusyawal · 5d · 64 views

Trending this week

Ranked by how many people read each share in the last 7 days, each person counted once. Bots, the author and clicks from this list don't count. Shares from the last 14 days with a real write-up. Refreshed every 5 minutes.
  1. 1How to Break Down Any Video With rea-video@jen41 views this week
  2. 2How to Claim 1 Month of SuperGrok for Free@jen40 views this week
  3. 3boss-skill Turns AI Coding Agents Into a Full Dev Team@jen36 views this week
  4. 4How to Get 1 Million Free DeepL API Characters@gican35 views this week
  5. 5Claude BugHunter Packs 83 Security Skills for AI Agents@alex33 views this week
See more on Explore

Site footer

Revesery

Empowering people to share valuable insights, discover hidden information, and connect with an amazing community of learners and experts.

  • 760Members
  • 908Shares published

Explore

  • Explore shares
  • Top contributors
  • Feedback

Company

  • About us
  • Editorial policy
  • Contact
  • Advertise with us
  • System status
© 2026 Revesery
  • Privacy
  • Terms
  • Trust & Safety
  • DMCA
HomeExploreShareToolsProfile
DRDAKR Ryder joined Revesery6 hours ago