How securisec/cliam works
Project type and purpose
• This is a command-line application (“cliam”) for enumerating IAM permissions across multiple cloud providers (AWS, GCP, Azure). It is a monolithic Go-based CLI tool with a plugin-style internal structure for each provider.
File structure
• Top-level:
• cli/ – main binary (uses Cobra for commands/subcommands)
• aws/, gcp/, azure/ – provider-specific modules
– policy/ – policy definitions/generation
– scanner/ – code to query & parse permissions
– signer (AWS) – request signing
• shared/ – common helpers shared by all providers
• logger/ – centralized logging
• scripts/ – Python/Go scripts to generate or parse policy data
• .github/, goreleaser.yml – CI/CD, release automation
• Patterns:
• Command pattern via Cobra in cli/cmd
• Modular provider layers (divide each cloud into policy, scanner, signer)
• Shared utilities for concurrency, error handling, logging
README for additional insights
• Confirms three main commands: aws, gcp, azure (each with enumerate, service-group, rest, bruteforce modes)
• Emphasizes signed REST calls (AWS), REST or RPC calls (GCP), and Azure OAuth flows
• Mentions multi-threading, timeouts, and output formatting