Scarleteel Targets AWS Fargate, Launches DDoS Campaigns


The Scarleteel menace targets AWS Fargate environments for knowledge theft and extra malicious sorts of assaults equivalent to cryptojacking and DDoS. Learn to mitigate this menace.

Shield key lock icon for cybersecurity system.
Picture: sarayut_sy/Shutterstock

Sysdig, a cloud and container safety firm, has launched a new report on the Scarleteel menace that targets particular AWS environments for knowledge theft and extra malicious actions. Find out how the Scarleteel menace operates and the right way to safe your corporation from this menace.

Soar to:

What’s the Scarleteel menace?

Scarleteel is a classy assault on AWS cloud environments that was found in February 2023 by Sysdig. That operation began by compromising Kubernetes containers to unfold to the sufferer’s AWS account with one aim in thoughts: stealing proprietary software program. The assault additionally dropped a cryptominer on the compromised atmosphere, but Sysdig’s Risk Analysis Workforce estimated the cryptojacking operation was in all probability used as a decoy to evade the detection of the information theft operation.

The assault confirmed that the menace actor had stable data of AWS cloud mechanics together with Elastic Compute Cloud roles, lambda serverless capabilities and Terraform, an open-source infrastructure as code software that is ready to automate operations on infrastructures on any sort of cloud answer.

Scarleteel’s new operation

Scarleteel’s Techniques, Strategies and Procedures has improved, in line with the Sysdig Risk Analysis Workforce. As within the earlier operation, the ultimate aim of the menace actor right here appears to be knowledge theft, though the actor nonetheless crops cryptominers throughout its assault (Determine A).

Determine A

Scarleteel's attack workflow.
Scarleteel’s assault workflow. Picture: Sysdig

How Scarleteel targets AWS Fargate credentials

This time, the assault begins with the menace actor exploiting JupyterLab pocket book containers deployed in a Kubernetes cluster. Then, the attacker focuses on credential stealing, utilizing a number of scripts to attempt to get AWS Fargate credentials within the occasion metadata service (IMDSv1 and IMDSv2) within the filesystem and within the Docker containers created within the focused machine. The stolen credentials are despatched to an IP handle that was beforehand utilized by Scarleteel.

The attacker managed to steal AWS credentials in containers that had been utilizing IMDSv1. IMDSv2 password theft extremely relies on the particular atmosphere. Relying on the configuration, it may not be attainable for an attacker to steal credentials on IMDSv2.

To evade detections based mostly on the usage of the curl and wget command-line instruments, which are sometimes monitored by safety options, the menace actor determined to make use of a customized script to exfiltrate the obtained credentials (Determine B). The info is base64-encoded, so it wouldn’t be despatched as clear textual content.

Determine B

Custom credential exfiltration script to evade curl/wget detections.
Customized credential exfiltration script to evade curl/wget detections. Picture: Sysdig

As soon as the attacker is in possession of the credentials, they set up the AWS Command-Line Interface with Pacu, an open-source AWS exploitation framework designed for offensive safety testing.

The attacker then used the AWS CLI to hook up with Amazon S3-compatible Russian programs utilizing the –endpoint-url choice, which permits the attackers to obtain their instruments and exfiltrate knowledge with out being logged by the sufferer’s CloudTrail.

After the menace actor carried out automated reconnaissance within the goal’s AWS atmosphere, they obtained admin entry and created a consumer named “aws_support,” switching to it to proceed the operation.

How Scarleteel targets Kubernetes

The menace actor actively targets Kubernetes within the sufferer’s atmosphere. The attacker has used Peirates, a Kubernetes penetration software that allows an attacker to escalate privileges and pivot by way of a Kubernetes cluster. It additionally automates recognized strategies to steal and acquire tokens and secrets and techniques.

The menace actor additionally executed Pandora, a Mirai-like malware that runs DDoS assaults utilizing Linux programs and IoT programs to particular targets. As said by the researchers, “This assault is probably going a part of a DDoS-as-a-Service marketing campaign, the place the attacker gives DDoS capabilities for cash.”

Cryptojacking presumably used as a decoy

Through the assault, the menace actor created 42 situations of the XMRig cryptominer, which is a reputable software usually used by attackers in cryptojacking operations. This big variety of situations all working the miner was caught shortly, however the menace actor then created different accounts to attain the identical function by stealing secrets and techniques from the Secret Supervisor or updating SSH keys to run new situations. It failed because of inadequate privileges.

It’s intriguing to see a menace actor working a stealth operation out of the blue begin such a loud exercise. This as soon as once more leads us to imagine that the cryptomining a part of the operation may simply be a decoy to cover all the information theft exercise.

Methods to shield from this cybersecurity menace

  • Container pictures ought to all the time come from trusted sources and continually up to date with the newest safety patches.
  • Pointless companies ought to all the time be disabled so the assault floor isn’t elevated. Privileges must also be minimized, and useful resource limitations ought to be enforced.
  • Utilizing AWS IMDSv2 as a substitute of IMDSv1 is a really helpful safety finest follow for containers as a result of it makes credential stealing tougher for attackers, relying on the configuration.
  • AWS Id and Entry Administration position permissions ought to be fastidiously checked.
  • Safety scanning instruments ought to be used to establish vulnerabilities and malware in container pictures.
  • Exact inbound and outbound insurance policies ought to be deployed to restrict entry to solely essential duties. AWS CloudTrail logs ought to be analyzed for any suspicious exercise.
  • Multifactor authentication ought to be deployed for connecting to AWS accounts.

Disclosure: I work for Pattern Micro, however the views expressed on this article are mine.

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here