Categories: Kali Linux

SkyArk : A Cloud Security Project With Two Main Scanning Modules

SkyArk is a cloud security project with two main scanning modules:

  • AzureStealth – Scans Azure environments
  • AWStealth – Scan AWS environments

These two scanning modules will discover the most privileged entities in the target AWS and Azure.

The Main Goal – Discover The Most Privileged Cloud Users

It currently focuses on mitigating the new threat of Cloud Shadow Admins, and helps organizations to discover, assess and protect cloud privileged entities.

Stealthy and undercover cloud admins may reside in every public cloud platform and SkyArk helps mitigating the risk in AWS and Azure.

In defensive/pentest/risk assessment procedures – make sure to address the threat and validate that those privileged entities are indeed well secured.

Background

SkyArk deals with the new uprising threat of Cloud Shadow Admins – how attackers can find and abuse non-trivial and so-called “limited” permissions to still make it through and escalate their privileges and become full cloud admins.
Furthermore, attackers can easily use those tricky specific permissions to hide stealthy admin entities that will wait for them as an undercover persistence technique.

SkyArk was initially published as part of our research on the threat of AWS Shadow Admins, this research was presented at RSA USA 2018 conference.
The AWS Shadow Admins blog post:

https://www.cyberark.com/threat-research-blog/cloud-shadow-admin-threat-10-permissions-protect/

The recording of the RSA talk:

https://www.rsaconference.com/videos/sneak-your-way-to-cloud-persistenceshadow-admins-are-here-to-stay

About a year later, we added the AzureStealth scan to SkyArk for mitigating the Shadow Admins threat in Azure!

Tool Description

It currently contains two main scanning modules AWStealth and AzureStealth.

With the scanning results – organizations can discover the entities (users, groups and roles) who have the most sensitive and risky permissions.
In addition, we also encourage organizations to scan their environments from time to time and search for suspicious deviations in their privileged entities list.

Potential attackers are hunting for those users and the defensive teams should make sure these privileged users are well secured – have strong, rotated and safety stored credentials, have MFA enabled, being monitored carefully, etc.

Remember that we cannot protect the things we don’t aware of, and SkyArk helps in the complex mission of discovering the most privileged cloud entities – including the straight-forward admins and also the stealthy shadow admins that could easily escalate their privileges and become full admins as well.

  • AzureStealth Scan

Discover the most privileged users in the scanned Azure environment – including the Azure Shadow Admins.

How To Run AzureStealth?

The full details are in the AzureStealth’s Readme file:
https://github.com/cyberark/SkyArk/blob/master/AzureStealth/README.md
In short:

  • Download/sync locally the SkyArk project
  • Open PowerShell in the SkyArk folder with the permission to run scripts:
    “powershell -ExecutionPolicy Bypass -NoProfile”
  • Run the following commands:

(1) Import-Module .\SkyArk.ps1 -force
(2) Start-AzureStealth

AzureStealth needs only Read-Only permissions over the scanned Azure Directory (Tenant) and Subscription.
*You can also run the scan easily from within the Azure Portal by using the built-in CloudShell:

(1) IEX (New-Object Net.WebClient).DownloadString(‘https://raw.githubusercontent.com/cyberark/SkyArk/master/AzureStealth/AzureStealth.ps1’)
(2) Scan-AzureAdmins

AzureStealth DEMO

  • AWStealth Scan

Discover the most privileged entities in the scanned AWS environment – including the Azure Shadow Admins.

How To Run AWStealth?

The full details are in the AWStealth’s Readme file:
https://github.com/cyberark/SkyArk/tree/master/AWStealth
In short:

  • Download/sync locally the SkyArk project
  • Open PowerShell in the SkyArk folder with the permission to run scripts:
    “powershell -ExecutionPolicy Bypass -NoProfile”
  • Run the following commands:

(1) Import-Module .\SkyArk.ps1 -force
(2) Start-AWStealth

AWStealth needs only Read-Only permissions over the IAM service of the scanned AWS environment.

AWStealth DEMO:

  • SkyArk includes more small sub-modules for playing around in the cloud security field
  • An example for such a sub-module is AWStrace module.
  • AWStrace – analyzes AWS CloudTrail Logs and can provide new valuable insights from CloudTrail logs.
  • It especially prioritizes risky sensitive IAM actions that potential attackers might use as part of their malicious actions as AWS Shadow Admins.
  • The module analyzes the log files and produces informative csv result file with important details on each executed action in the tested environment.
  • Security teams can use the results files to investigate sensitive actions, discover the entities that took those actions and reveal additional valuable details on each executed and logged action.

Quick Start

R K

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

10 hours ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

10 hours ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

2 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

5 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago