Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
      • Pod
    • Helm Chart
    • OAuth2 Proxy
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Argo Events
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
      • Azure Cloud
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

An AWS IAM Security Tooling Reference [2024]

Posted on October 18, 2024October 18, 2024 By nim No Comments on An AWS IAM Security Tooling Reference [2024]

refer to: https://ramimac.me/aws-iam-tools-2024?ref=dailydev

Identity and Access Management (IAM) is a cornerstone of security. However, AWS IAM is not only crucially important, but also immensely complex.

This complexity and the resultant challenges it can pose for security have not gone unnoticed. In addition to efforts at education, AWS has developed Zelkova, an automated reasoning tool for AWS permissions. AWS IAM Access Analyzer uses Zelkova to “identify the resources in your organization and accounts, such as Amazon S3 buckets or IAM roles, that are shared with an external entity.” AWS IAM Access Advisor offers “last used” information on permissions, to help cull unnecessary access.

Outside of Amazon, numerous individuals and organizations have also released tools to help you reason about the usage of IAM in your AWS environment.

Contents

Toggle
  • PMapper
  • Cloudsplaining
  • Apeman
  • Parliament
  • aws-lint-iam-policies
  • IAMSpy
  • Generic Tools with IAM Findings
  • Unmaintained, Deprecated, or not practically recommended

PMapper

developed at nccgroup, with a more recently maintained fork available

Principal Mapper (PMapper) is a script from my former NCC Group coworker Erik Steringer that answers a couple of the most pressing questions about IAM Security:

  1. “Who can escalate privileges?” and
  2. “Which principals can access other principals?”

Since the 1.0 launch, PMapper has added support for:

  1. resource policies, permission boundaries, session policies, and service control policies
  2. New serviceaccess preset query: reporting which services can access which roles
  3. New wrongadmin preset query: finds admin users/roles that don’t have the AdministratorAccess (or a similar inline policy) set

The fork additionally adds support for externalaccess, a preset query to determine external access for an account.

PMapper accomplishes this by generating and traversing a graph of a given AWS account’s IAM users and roles. It also comes equipped with both a REPL and support for generating Visualizations.

Cloudsplaining

salesforce/cloudsplaining

Kinnaird McQuade of Salesforce’s Cloudsplaining is the most recent release to have made this list. Cloudsplaining identifies violations of least privilege with perhaps the most robust reporting of any tool on this list. While the primary focus is on identifying failures to take advantage of resource constraints, it has findings for:

  1. Privilege Escalation,
  2. Resource Exposure,
  3. Infrastructure Modification, and
  4. Data Exfiltration

Apeman

hotnops/apeman

Daniel Heinsen recently launched this new tool, offering a graph-based tool to model AWS IAM permissions. Check out the example query Daniel put together to show how you can use the underlying neo4j database to identify cognito vulnerable roles, as per research by Nick Frichette.

Parliament

duo-labs/parliament

Parliament, from Scott Piper (of Summit Route) and Duo Labs, is the OG AWS IAM linting library. It can identify hard to notice issues like the attempt to use a condition that is not documented as supported for the associated action, or the use of completely unknown actions. It also has rules for logical inconsistencies that might allow for privilege escalation, with the provided example “an S3 bucket where s3:Delete is not allowed, but s3:PutBucketPolicy is, which could be abused to grant anonymous object deletion.”

aws-lint-iam-policies

welldone-cloud/aws-lint-iam-policies

This tool from Michael Kirchner is a more recent AWS IAM linter. It primarily relies on the AWS IAM Access Analyzer policy validation feature, exposing it for use in CI/CD or in the CLI. It also contains a few custom checks, including coverage of trusts to other AWS accounts and wildcard principals.

IAMSpy

WithSecureLabs/IAMSpy

WithSecure’s Mohit Gupta has created an opensource variant on Zelkova, using the Z3 prover (an SMT solver) formally prove whether an action by a given IAM entity is possible against a particular resource.

Generic Tools with IAM Findings

There are generally a subset of findings in any cloud security tool that reference IAM.

  • Pacu – RhinoSecurityLabs/pacu’s iam__privesc_scan module
  • Prowler – prowler-cloud/prowler’s IAM checks
  • Steampipe – AWS Compliance benchmark for IAM, and compatibility with Access Advisor

Unmaintained, Deprecated, or not practically recommended

  • Cloudtracker – duo-labs/cloudtracker: an old tool that found unused permissions
  • SkyArk – cyberark/SkyArk: an unmaintained tool which identifies so-called “shadow admins” within an AWS account
  • AWSPX – WithSecureLabs/awspx: an unmaintained graph-based tool for visualizing effective access and resource relationships within AWS
  • Aaia – rams3sh/Aaia: an old tool for visualizing AWS IAM and Organizations in a graph format with help of Neo4j
  1. My friend Seth Art wrote his own analysis in 2021, when he released IAM Vulnerable. Very Cool! ↩
AWS - Amazon Web Service

Post navigation

Previous Post: [Golang/Redis/Riot] Redis migration from old to new infrastructure.
Next Post: [Ubuntu/LVM] Reattach LVM Disk to new Physical Server.

More Related Articles

[AWS] Using FSx Lustre to enhance disk performance for large-scale applications. AWS - Amazon Web Service
[Bitbucket Pipeline] Design bitbucket-pipeline and eksctl to upgrade EKS cluster AWS - Amazon Web Service
[AWS] Deploying Redis on AWS AWS - Amazon Web Service
[CoreDNS] How to improve the Coredns performance. AWS - Amazon Web Service
[AWS] Discovering how to design Cluster Autoscaler on EKS. AWS - Amazon Web Service
[Terraform] Error: InvalidPermission.Duplicate: the specified rule AWS - Amazon Web Service

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Laravel] Laravel Helpful June 26, 2025
  • [VScode] Hướng dẫn điều chỉnh font cho terminal June 20, 2025
  • [WordPress] Hướng dấn gửi mail trên WordPress thông qua gmail. June 15, 2025
  • [Bitbucket] Git Clone/Pull/Push with Bitbucket through API Token. June 12, 2025
  • [Teamcity] How to transfer the value from pipeline A to pipeline B June 9, 2025

Archives

  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • Argo Events
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • Golang
    • Jquery & JavaScript
    • Laravel
    • NextJS 14 & ReactJS & Type Script
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • Azure Cloud
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2025 NimTechnology.