Cyber Security News

S3crets Scanner – New Tool to Scan and Secure Public AWS S3 Buckets

The information that is stored accidentally in AWS S3 or public storage buckets that are exposed publicly could now be accessed by security researchers and red team members with the help of a new open-source scanner tool, called S3crets Scanner.

AWS S3 is an Amazon cloud storage service that permits companies to store several key elements like their data, tools, and services in containers. 

The containers that are provided by Amazon S3 are referred to as buckets, and they are made available to specific groups by the companies.

Companies, however, are not always fortunate when it comes to the security of their buckets. In short, sometimes they fail to adequately secure them and as a result, they become publicly accessible. Due to this, all these buckets expose their essential data to the public.

Data Exposure

In the past, such silly misconfigurations have led to extensive data breaches. The following information is some of the data that may be accessed by threat actors in breaches like this:-

  • Employee details
  • Customer details
  • Saved backups
  • Other essential data

Moreover, the AWS S3 buckets can also contain ‘secrets’ in source code or configuration files, such as:-

  • Authentication keys
  • Access tokens
  • API keys
  • Private keys

Exposure of these essential data could lead the threat actors to exploit more extensive and critical resources of the company.

As far as file exposure is concerned, there are two types of permissions and here they are:-

  • Public
  • Objects can be public

Identifying secrets in S3

Cybersecurity researcher, Eilon Harel has recently developed an automated open-source scanner tool, “S3crets Scanner” that was released on GitHub, and this tool is based on Python programming language.

Here in the below image, you can see all the auto action capabilities of S3crets Scanner:-

Below we have listed all the S3 bucket configurations that are set to false since this automated scanner only selects the S3 buckets consisting of these configurations:-

  • BlockPublicAcls
  • BlockPublicPolicy
  • IgnorePublicAcls
  • RestrictPublicBuckets

The Trufflehog3 tool is used by the script to inspect the content of text files inside a bucket during the scanning process. Trufflehog3 is an enhanced version of the secrets scanner tool and this version of the tool is completely based on the Go programming language.

This enhanced version of the tool has the capability to scan the credentials and private keys on the following platforms:-

  • GitHub
  • GitLab
  • Filesystems
  • S3 buckets

In Trufflehog3 a set of custom rules are used to scan the files that have been downloaded by S3crets. These rules target the following things:- 

  • PII exposure
  • Internal access tokens

Moreover, it is believed that this “S3crets Scanner” tool may be helpful to firms in preventing their probabilities of losing data or having their networks compromised.

Download Free SWG – Secure Web Filtering – E-book

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

4 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

6 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

6 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago