Policy Sentry IAM Least Privilege Policy Generator Step 1: Create the Template Step 2: Copy/paste ARNs Step 3: Write-policy command Tutorial Installation Package managers Shell completion Step 1: Create the Template Step 2: Copy/paste ARNs Step 3: Write-policy command Cheat sheets Policy Writing cheat sheet IAM Database Query Cheat Sheet Local Initialization (Optional) Other Usage Commands Python Library usage Docker Terraform References Documentation For walkthroughs and full documentation, please visit the project on ReadTheDocs. See the Salesforce Engineering Blog post on Policy Sentry. Overview Writing security-conscious IAM Policies by hand can be very tedious and inefficient. Many Infrastructure as Code developers have experienced something like this: Determined to make your best effort to give users and roles the least amount of privilege you need to perform your duties, you spend way too much time combing through the AWS IAM Documentation on Actions, Resources, and Condition Keys for AWS Services. Your team lead encourages you to build security into your IAM Policies for product quality, but eventually you get frustrated due to project deadlines. You don't have an embedded security person on your team who can write those IAM Policies for you, and there
FEATURES
ALTERNATIVES
A simple drop-in library for managing users, permissions, and groups in your application.
This article discusses protected accounts and groups in Active Directory, providing examples and screenshots to illustrate key concepts.
DumpsterDiver is a tool for analyzing big volumes of data to find hardcoded secrets like keys and passwords.
AWS IAM Security Assessment tool for identifying violations of least privilege and generating risk-prioritized reports.
Runs IAM policy linting checks against AWS accounts to identify security best practices and policy errors.
CLI for generating AWS IAM policy documents, SAM policy templates or SAM Connectors
PINNED

Mandos Brief Newsletter
A weekly newsletter providing cybersecurity leadership insights, industry updates, and strategic guidance for security professionals advancing to management positions.

PTJunior
An AI-powered penetration testing platform that autonomously discovers, exploits, and documents vulnerabilities while generating NIST-compliant reports.

CTIChef.com Detection Feeds
A tiered cyber threat intelligence service providing detection rules from public repositories with varying levels of analysis, processing, and guidance for security teams.

ImmuniWeb® Discovery
ImmuniWeb Discovery is an attack surface management platform that continuously monitors an organization's external digital assets for security vulnerabilities, misconfigurations, and threats across domains, applications, cloud resources, and the dark web.

Checkmarx SCA
A software composition analysis tool that identifies vulnerabilities, malicious code, and license risks in open source dependencies throughout the software development lifecycle.

Orca Security
A cloud-native application protection platform that provides agentless security monitoring, vulnerability management, and compliance capabilities across multi-cloud environments.

DryRun
A GitHub application that performs automated security code reviews by analyzing contextual security aspects of code changes during pull requests.