
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@shieldly/iam-lint
Advanced tools
Lightweight, static-heuristic AWS IAM policy linter — no network, no AWS SDK dependency
Lightweight, static-heuristic AWS IAM policy linter. No network calls, no AWS SDK dependency — just deterministic rules over a parsed policy document. Powered by Shieldly.
npm install @shieldly/iam-lint
import { lint } from '@shieldly/iam-lint';
const policy = {
Version: '2012-10-17',
Statement: [
{ Effect: 'Allow', Action: 's3:*', Resource: '*' },
],
};
const findings = lint(policy);
// [
// { sev: 'high', title: 'Statement 1: Service-wide wildcard "s3:*"', detail: '...' },
// { sev: 'medium', title: 'Statement 1: Resource "*"', detail: '...' },
// ]
Each finding has a sev (critical | high | medium | info), a title, a detail, and
an optional link — when present, a path relative to https://www.shieldly.io with more
context (e.g. /iam/iam-passrole explains that specific privilege-escalation path).
The package ships an iam-lint command for CI and local use:
npx @shieldly/iam-lint policies/*.json
# or, installed globally:
iam-lint --fail-on medium policies/lambda-role.json
1 when any finding at or above the --fail-on threshold is found (default: high).PolicyDocument key (CloudFormation-style) are unwrapped automatically.Statement element are skipped, so globbing broadly is safe.Lint IAM policies on every commit with pre-commit:
# .pre-commit-config.yaml
repos:
- repo: https://github.com/shieldly-io/iam-lint
rev: v1.1.0
hooks:
- id: iam-lint
files: ^policies/.*\.json$ # scope to your IAM policy files (optional but faster)
Pass CLI flags through args, e.g. args: [--fail-on, medium].
Action: "*")s3:*)iam:PassRole, iam:CreatePolicyVersion, iam:AttachUserPolicy, and others)NotAction combined with AllowResource: "*")Condition)EffectThis applies fast, deterministic static rules — it does not reason about how permissions combine across statements, accounts, or services, and it does not resolve variables or evaluate conditions. For that — plus a plain-English explanation and a corrected policy — use Shieldly's AI-Powered analyzer. It's free to try, no signup required for the demo.
This is the same linting logic behind the free browser tool at shieldly.io/tools/iam-policy-linter.
This package runs entirely locally — it never makes a network call. Nothing you lint is sent anywhere.
MIT
FAQs
Lightweight, static-heuristic AWS IAM policy linter — no network, no AWS SDK dependency
We found that @shieldly/iam-lint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.